mjk188 / ASL-Translator

American Sign Language Translator using OpenCV and Machine Learning.
67 stars 48 forks source link

TypeError #8

Open prashanthaldiyal opened 4 years ago

prashanthaldiyal commented 4 years ago

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

abdullahmujahidali commented 3 years ago

self.model.train(samples, cv2.ml.ROW_SAMPLE, responses)

use this.