Comments (5)
ooops, looks like something was wrong with the code instertion ... apologies :-/
from cvui.
Apologies, I'll read how to send patch, because I'm more used to speak patch language than html things.
from cvui.
Hello! Don't worry about formatting nor any Github idiosyncrasy, your contribution is the valuable part.
I would like you to elaborate a bit more regarding cvui::printf
portability. Is it not portable because of a misbehavior or compilation warning/error on Linux/Mac?
I see the benefit of using cv::putText
, but the general idea of cvui is to abstract opencv drawing primities to provide a simpler and more powerful API. I think the methods you suggested (intToString()
and floatToString()
) could be replaced by the already existing std::to_string()
:
// ...
cv::putText(frame,
"cvuiv" + std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_MICRO),
cv::Point(frame.cols - 80,frame.rows - 10 /*FIXME : use font height instead of a magic */),
fontFace,
0.4,
aColor,
1.5,
8);
//...
from cvui.
Le 31/10/2016 20:16, Fernando Bevilacqua a écrit :
Hello! Don't worry about formatting nor any Github idiosyncrasy, your contribution is the valuable part.
Hello Fernando,
Apologies for the loooong delay : several things made me away from
keyboard, and I hope I'll have more time this week.
(of course, I'll answer the other mails you sent me asap)
I would like you to elaborate a bit more regarding
cvui::printf
portability. Is it not portable because of a misbehavior or compilation warning/error on Linux/Mac?
The problem is most of the time Microsoft, deciding something, without
verify the portability is respected on other OS's, and what I read here
and there told me it's simply not possible to use this directly. As I
wrote, I was busy last week, but I'll try to propose another solution
-means something simly working on Unix'es- once I'll have the time to
work on that. e.g., currently, some strings displaying is broken, due to
the uggly workaround I used (first thing was to make it compile, per see
:-)
I see the benefit of using
cv::putText
, but the general idea of cvui is to abstract opencv drawing primities to provide a simpler and more powerful API. I think the methods you suggested (intToString()
andfloatToString()
) could be replaced by the already existingstd::to_string()
:
OOOops, my bad :-)
I was simply unaware such solution was existing. Of course it is more
simple to use that, under to condition to build adding "-std=c++11 " in
the command line.
// ... cv::putText(frame, "cvuiv" + std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_MICRO), cv::Point(frame.cols - 80,frame.rows - 10 /*FIXME : use font height instead of a magic */), fontFace, 0.4, aColor, 1.5, 8);
Tested one minute ago => works as expected on Linux (not tested on Mac OS X)
Regards,
Eric Bachard
//...
from cvui.
I think all the issues reported here were fixed by 80f382f. If you face any problems, please open a new issue.
from cvui.
Related Issues (20)
- linux cvui cpu consumption HOT 3
- Move this under "Immediate Mode UI" organization HOT 2
- Button to add theWinName parameter
- Is it possible support the function of text box input? HOT 3
- why both HOT 4
- True Headless Mode HOT 3
- cursor.x and cursor.y not updating in loop
- Issue when having multiple windows and multiple enhanced windows inside them HOT 1
- how to print inside a window HOT 1
- Feature request: add parameter to adjust windows size by mouse drag
- Add not clickable state to the button
- [FEATURE] Port from Travis CI to GitHub Actions HOT 2
- Make elements fill column / row
- [Feature request] Radio buttons (mutually exclusive options) HOT 3
- The so stupid project HOT 1
- Bug cvui:image() crash when size of image is larger from canvas HOT 3
- EnhancedWindow draws image outside of window HOT 3
- _CVUI_COMPILE_MESSAGE as unknown-pragmas HOT 1
- Unicode/ASCII issue HOT 4
- Add API to draw bounding boxes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cvui.