iyotetsuya / RectangleDetection

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

Crop Image #12

Closed hongtou820 closed 6 years ago

hongtou820 commented 6 years ago

How to crop image, after rectangle detected ?

iyotetsuya commented 6 years ago

The rough idea is:

  1. get bitmap and the points info when rectangle detected.
  2. mapping points to bitmap and creates new bitmap depends on new points.
  3. save the bitmap as picture or shows on screen.
hongtou820 commented 6 years ago

Yes~ i Fund out solution for this~ but i now got other question i cannot detect some Light Blue Color rectangle box, with background is white color

iyotetsuya commented 6 years ago

in this case, you need to tuning OpenCV function for a more clear edge. There's the document may help you get the idea.

https://docs.opencv.org/2.4/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html https://docs.opencv.org/3.4/d2/d2c/tutorial_sobel_derivatives.html

iyotetsuya commented 6 years ago

Issue closed, please reopen it if you have other question.