OpenCVTip's profile picture. Infrequent tips on OpenCV.

OpenCV Tips

@OpenCVTip

Infrequent tips on OpenCV.

An example usage of parallel_for_() that paints an image to random colors in parallel: gist.github.com/barisdemiroz/3…

OpenCVTip's tweet image. An example usage of parallel_for_() that paints an image to random colors in parallel:
gist.github.com/barisdemiroz/3…

You can use parallel_for_() to easily parallelize your data processing loops.


You can initialize/seed RNGs using `state` field. e.g. theRNG().state = getTickCount();


You can use theRNG() to access default, thread local random number generator. e.g. float x = theRNG();


There is an undocumented TickMeter class to measure elapsed time.

OpenCVTip's tweet image. There is an undocumented TickMeter class to measure elapsed time.

OpenCV announces VTK-based 3D visualization module: viz demo: youtube.com/watch?v=75Ytgy… docs: docs.opencv.org/modules/viz/do…


OpenCV Tips reposted

OpenCV Development Team worked hard in scorching summer heat and has prepared the OpenCV 2.4.6 release for you! opencv.org/opencv-2-4-6-i…


Sorry, this time it is not about OpenCV, it is about my home country, Turkey. wrttn.in/129692


OpenCV Tips reposted

Microsoft released Image Watch, a free Visual Studio extension for viewing in-memory OpenCV images during debugging: opencv.org/image-debugger…


[tutorial] How to build OpenCV library and debug it in VS2010? anlak.com/build-debug-op…


OpenCV Tips reposted

Try out the beta version of OpenCV 2.4.4. The final 2.4.4 is expected within ~2 weeks. opencv.org/opencv-2-4-4-i…


e.g. rectangle(img, rect, CV_RGB(255,0,0)); // draws a red rectangle.


As drawing function color parameters, use CV_RGB() macro for clarity instead of Scalar().


OpenCV Tips reposted

A new cv::putText to print text on image in the same way as you print "Hello world!" to std::cout.goo.gl/PeZBF

cvtalks's tweet image. A new cv::putText to print text on image in the same way as you print "Hello world!" to std::cout.goo.gl/PeZBF

You can find the code to produce the image in previous tweet here: pastebin.com/xTw3rSmT


Here you can see how all the available fonts in OpenCV 2.4.3 appear: i.imgur.com/r9Jzu.png


...Use getTextSize() for that purpose. docs.opencv.org/modules/core/d…


You need to know the text size in order to position the text or create an image that's big enough to contain the text...


To write text on an image use putText() docs.opencv.org/modules/core/d…


Loading...

Something went wrong.


Something went wrong.