How to detect and crop the rectangle shape from bitmap using android opencv without using any c/c++ code ?

asked 2014-08-21 06:17:50 -0600

Anilkumar gravatar image

updated 2014-08-22 06:23:00 -0600

I want to detect the rectangle shape from bitmap using android opencv without using any c/c++ code.

edit retag flag offensive close merge delete

Comments

"Give me any source codes" - what's the magic word ?

berak gravatar imageberak ( 2014-08-21 08:04:54 -0600 )edit

@berak source code means any sample bro I stuck with this in my app. I have done the grabbing the text from bitmap by using tesseract the only thing I left is detect the rectangle and crop the rectangle image and send that bitmap to tesseract api.

Anilkumar gravatar imageAnilkumar ( 2014-08-21 08:15:27 -0600 )edit

again, findcontours) (together with the squares code), and then submat) for the cropping

berak gravatar imageberak ( 2014-08-21 13:47:19 -0600 )edit

So did u manage to do it?

Mostafa gravatar imageMostafa ( 2015-05-12 08:01:40 -0600 )edit