Ask Your Question

Detecting rectangle on android

asked 2017-11-14 09:46:18 -0500

namacos gravatar image

I am trying to detect rectangle in a picture taken by android.

After of several days struggling I am still unable to do this. It surprises me that I am unable to find this kind of example. I found several solutions with cpp but not something that can easily be ported on android.

I am new to opencv and in computer vision in general.

Can someone please give me some simple sample project that detects rectangle in android ? That will be very helpful to me at this moment.

Thanks in advance

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-11-14 15:13:13 -0500

supra56 gravatar image

How about this one? detected_rectangle

edit flag offensive delete link more


I accept you answer. It works, but is it easy to convert this to detection of multiple rectangles ? Thanks

namacos gravatar imagenamacos ( 2017-11-16 05:57:05 -0500 )edit

I tested it on raspberry pi 3 using python 3.5. The answer is yes. You can detected multiple.

supra56 gravatar imagesupra56 ( 2017-11-16 06:47:24 -0500 )edit

answered 2017-11-16 03:16:25 -0500

ChukZ gravatar image

This one worked for me. DetectingShapes

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-11-14 09:46:18 -0500

Seen: 4,231 times

Last updated: Nov 16 '17