Ask Your Question

Daniel A's profile - activity

2014-06-24 06:25:59 -0600 answered a question Same image is inputted to the opencv-ios and opencv-android on different desktops to process. RGB's are differing, why?

Short Answer: No. RGB is the internal representation of an image, regardless the platform. And if the algorithms don't have a stochastic aspect(RANSAC for example), they will have the same output.

2014-05-30 20:59:00 -0600 answered a question How to create a ''tripwire'' to detect a specified contour collision/intersection

You can approximate you object (contour) to a convex hull or find its bounding rectangle. This way, checking the position relative to the line will much much simplified. E.g. finding the intersections with the bounding lines from the approximation.

Here you can find a tutorial on how to draw lines. It is done by calling the line function, supplying an image, where the line will be draw, starting position, end, colour (you can use CV_RGB(red_value, green_value, blue_value)), thickness.