View Code? Open in Web Editor
NEW
Opencv python code to read a handwritten word , threshold the characters, draw bounding boxes around it and save the individual letters
character-detection-and-crop-from-an-image-using-opencv-python's People
Contributors
Watchers
character-detection-and-crop-from-an-image-using-opencv-python's Issues
charDetect.py
Traceback (most recent call last):
charDetect.py", line 5, in
_,contours, hierarchy = cv2.findContours(thresh1,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)
Traceback (most recent call last): File "charDetect.py", line 21, in <module> cv2.imshow('BindingBox',im) cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-1syr35c1/opencv/modules/highgui/src/window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'
The code seems to be corrupted ! Nothing is saved at all !!