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

Variable error in preprocess_card() of Cards.py #9

@cycgp

Description

@cycgp
def preprocess_image(image):
    img_w, img_h = np.shape(image)[:2]
    return thresh

should be change to

def preprocess_image(image): 
    img_h, img_w = np.shape(image)[:2]
    return thresh

np.shape() will actually return height than width

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