iyotetsuya / RectangleDetection

Using OpenCV 2411 and RxJava implement a rectangle detection Android App
MIT License
38 stars 13 forks source link

Detect the object with custom design #9

Closed kiranlanke closed 7 years ago

kiranlanke commented 7 years ago

Thank you for great example. For detecting the object you are using blue color boarder but i want to use some custom design instead of blue boarder. Is there any way to do that?

iyotetsuya commented 7 years ago

Depends on what kinds of design you want to use. but basically, https://github.com/iyotetsuya/RectangleDetection/blob/823dc19fce41abad018997957547657cabcb84f5/app/src/main/java/io/github/iyotetsuya/rectangledetection/utils/OpenCVHelper.java#L153 will find 4 points as quadrilateral's vertex, you have to map those points to your design. In this project implement, I convert points to quadrilateral's edges, and use https://github.com/iyotetsuya/RectangleDetection/blob/823dc19fce41abad018997957547657cabcb84f5/app/src/main/java/io/github/iyotetsuya/rectangledetection/views/DrawView.java#L41 to draw paths.

iyotetsuya commented 7 years ago

Please reopen it if you have additional questions

kiranlanke commented 7 years ago

Thank you for your support. I'll get back to you soon...