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'
The file referenced by the error message is the following:
Who can help me? How should this error be resolved?
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'
The file referenced by the error message is the following:
Who can help me? How should this error be resolved?