mjk188 / asl-translator Goto Github PK
View Code? Open in Web Editor NEWAmerican Sign Language Translator using OpenCV and Machine Learning.
American Sign Language Translator using OpenCV and Machine Learning.
on running after Q is being loaded this error comes:
self.model.train(samples, responses,params=svm_params) # inbuilt training function
TypeError: only size-1 arrays can be converted to Python scalars
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?
File "ASL.py", line 39
temp+=1
^
TabError: inconsistent use of tabs and spaces in indentation
Traceback (most recent call last):
File "ASL.py", line 6, in
model=st.trainSVM(17)
File "C:\Users\Wall-E\Desktop\n\svm_train.py", line 85, in trainSVM
model.train(samples, labels) # features trained against the labels using svm
File "C:\Users\Wall-E\Desktop\n\svm_train.py", line 23, in train
self.model.train(samples, responses,params=svm_params) # inbuilt training function
TypeError: only size-1 arrays can be converted to Python scalars
when i use this code, it can not detection my hand .Can you tell me the reason?
Traceback (most recent call last):
File "C:/Users/Abdulsemed Mohammed/Downloads/Compressed/ASL-Translator-master/ASL-Translator-master/ASL.py", line 3, in
import util as ut
File "C:\Users\Abdulsemed Mohammed\Downloads\Compressed\ASL-Translator-master\ASL-Translator-master\util.py", line 3, in
import svm_train as st
File "C:\Users\Abdulsemed Mohammed\Downloads\Compressed\ASL-Translator-master\ASL-Translator-master\svm_train.py", line 6, in
svm_params = dict(kernel_type=cv2.SVM_RBF,
AttributeError: module 'cv2.cv2' has no attribute 'SVM_RBF'
The train set data has been truncated. So can you share a drive link to the training set data?
print('Class '+unichr(i)+' is being loaded ')
NameError: name 'unichr' is not defined
Class Q is being loaded
Class Q is being loaded
Class Q is being loaded
Class Q is being loaded
Class Q is being loaded
SVM is building wait some time ...
6800
6800
Traceback (most recent call last):
File "ASL.py", line 6, in
model=st.trainSVM(17)
File "C:\Users\Rakshit\Desktop\ASL-Translator-master\ASL-Translator-master\svm_train.py", line 82, in trainSVM
model = SVM(C=2.67, gamma=5.383)
File "C:\Users\Rakshit\Desktop\ASL-Translator-master\ASL-Translator-master\svm_train.py", line 14, in init
self.model = cv2.SVM()
AttributeError: module 'cv2.cv2' has no attribute 'SVM'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.