OpenCV-Playing-Card-Detector icon indicating copy to clipboard operation
OpenCV-Playing-Card-Detector copied to clipboard

Variable error in preprocess_card() of Cards.py

Open cycgp opened this issue 6 years ago • 0 comments
trafficstars

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

cycgp avatar Jan 14 '19 07:01 cycgp