Hi all,
I want to detect the outline (contour) of gray and orange colored post-it stickers (16:9 size and might be rotated) like the photo I attached but I'm having a difficulty achieving this because of the color of post-it colors are close to the background. I'm using OpenCV for Java to try to achieve this.
So far I have tried with the following procedures using OpenCV but nothing seems to work to retrieve the contour of stickers.
I would like to know if there are good way to retrieve this issue using OpenCV.
Thanks,
[Method 1]
1. first convert it to grayscaled image (also from each color channel).
2. Thresholding with Imgproc.THRESH_OTSU + Imgproc.THRESH_BINARY_INV.
3. Find contours.
-> fails because thresholding doesn't really differentiate the background and the stickers.
[Method 2]
1. convert the image to grayscaled.
2. detect the blob of stickers.
3. crop the image around the blob point.
4. use Adaptive Threshold to get the edge for each cropped image.
5. use HoughLinesP to get the edge..
-> fails because Adaptive Threshold doesn't give me a closed edge.



↧