find bounding box of the image

asked 2015-06-27 11:04:07 -0600

ato gravatar image

Hello everybody I have to find the min coord and max coord of this image. (see the red rectangle of the image) How can I do? I know the color is white (255) I made an algorithm but it is too slow. There is a native method of open cv. Thank you all.

boundingbox.jpg

edit retag flag offensive close merge delete

Comments

1

look http://answers.opencv.org/question/64... you can find the solution here if you change the code like minRect = BoundingRect( Mat(contours[i]) ); is suited to you

sturkmen gravatar imagesturkmen ( 2015-06-27 11:17:02 -0600 )edit

thank you it is possible write a code in visual basic ? tank you

ato gravatar imageato ( 2015-06-27 13:26:49 -0600 )edit

@ato , there is no official opencv support for visual basic.

berak gravatar imageberak ( 2015-06-28 02:41:17 -0600 )edit

ok excuse me! where is support for visual basic ?

ato gravatar imageato ( 2015-06-28 03:45:30 -0600 )edit

@ato, maybe you can abuse some 3rd party .net wrapper, but, tbh, they're all badly maintained, and incomplete.

rather learn python ;) (or c++, even)

berak gravatar imageberak ( 2015-06-28 04:01:44 -0600 )edit