Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Screenshot as input => Readjust size value in findCards function #17

Open
42isTheAnswer42 opened this issue Aug 22, 2023 · 0 comments

Comments

@42isTheAnswer42
Copy link

42isTheAnswer42 commented Aug 22, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant