OpenCV-Playing-Card-Detector
OpenCV-Playing-Card-Detector copied to clipboard
Use Screenshot as input => Readjust size value in findCards function
Hi there,
I wanted to try this on a screenshot, being succesfull just to decission of cards, my size value of my contours has about 355 and the minimum size is above 25000 I guess.
What do I need to readjust here? have i missed some scaling?
for i in range(len(cnts_sort)): size = cv2.contourArea(cnts_sort[i]) // has size of 300 and min size is 25000 peri = cv2.arcLength(cnts_sort[i],True) approx = cv2.approxPolyDP(cnts_sort[i],0.01*peri,True)