Ask Your Question

Revision history [back]

Thank you for your answer! I got the idea about what i was doing wrong. Now im thinking of using cv2.findcontours to solve my problem, but i got another question. When im using cv2.findcontours, it gives me many unnecessary contours. So, i think, solution to this is applying canny edge detector or thresholding the image before passing it to the cv2.findcontours function. But when im trying to use canny with differenth low and high treshold values, i still can't get the perfect edges of object without noises. Did you know any methods to increase accuracy of edge detection? Thanks in advance!