surya-veer / RealTime-DigitRecognition

RealTime DigitRecognition using Convolutional Neural Network(CNN) with keras.
GNU General Public License v3.0
122 stars 63 forks source link

Error #6

Open lemorlenny opened 5 years ago

lemorlenny commented 5 years ago

after terminate to track any symbol I receive this:

File "D:\Project_Python\RealtimeDigitRecon\RealTime-DigitRecognition-master\RealTime-DigitRecognition-master\process_image.py", line 59, in get_output_image im2,contours,hierarchy = cv2.findContours(thresh, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE) ValueError: not enough values to unpack (expected 3, got 2)

Python 3.7.1 Keras 2.0.8 Pygame 1.9.6

Best regards

surya-veer commented 5 years ago

This problem is because of OpenCv version, you can now use: contours,hierarchy = cv2.findContours(thresh, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE)

AadhithyanKarthick commented 4 years ago

Traceback (most recent call last): File "app.py", line 86, in output_img = get_output_image(fname) File "K:\RealTime-DigitRecognition-master\RealTime-DigitRecognition-master\process_image.py", line 80, in get_output_image pred = predict_digit(roi) File "K:\RealTime-DigitRecognition-master\RealTime-DigitRecognition-master\process_image.py", line 14, in predict_digit return np.argmax(model.predict(test_image))

TypeError: Value passed to parameter 'input' has DataType uint8 not in list of allowed values: float16, bfloat16, float32, float64

I am getting this error after changing the code as below mentioned contours,hierarchy = cv2.findContours(thresh, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE)

tauthichmi1307 commented 4 years ago

hello surya-veer!!! I run into a small error that is no module named 'process_image' Can you help me!