mjk188 / ASL-Translator

American Sign Language Translator using OpenCV and Machine Learning.
68 stars 49 forks source link

error locateROI #9

Closed micha223 closed 3 years ago

micha223 commented 3 years ago

Hello,

I have an error when I run ASL. I work on a Raspberry Pi 4B whit Raspberry Pi OS. I get the flowing error:

Traceback (most recent call last): File "/home/pi/Documents/ASL/ASL.py", line 6, in model=st.trainSVM(17) File "/home/pi/Documents/ASL/svm_train.py", line 80, in trainSVM samples=preprocess_hog(imgs) # images sent for pre processeing using hog which returns features for the images File "/home/pi/Documents/ASL/svm_train.py", line 31, in preprocess_hog gx = cv2.Sobel(img, cv2.CV_32F, 1, 0) cv2.error: OpenCV(4.1.0) /home/pi/opencv-python/opencv/modules/core/src/matrix.cpp:757: error: (-215:Assertion failed) dims <= 2 && step[0] > 0 in function 'locateROI'

error_1

The file referenced by the error message is the following:

error_2

Who can help me? How should this error be resolved?