这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@42isTheAnswer42

Description

@42isTheAnswer42

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions