Hand Gesture Recognition with Python, OpenCV and Keras

preview_player
Показать описание

I developed a hand gesture recognition prototype to demonstrate the basics of computer vision and machine learning.
Рекомендации по теме
Комментарии
Автор

That's really cool. Thanks for sharing.

BenBotto
Автор

getting an error

display = self.frame.copy() # Frame we'll do all the graphical drawing to
AttributeError: 'NoneType' object has no attribute 'copy'

prashantgautam
Автор

got it corrected

changed self.video = cv2.VideoCapture(1)

to

self.video = cv2.VideoCapture(0)

prashantgautam
Автор

did you put up some mask to your hand?

shalinibagadhi
Автор

You should call swing 'Hail Satan'. Also, I think that a truly intelligent machine would recognise when it was being flipped the bird!

UFBMusic
Автор

module 'cv2.cv2' has no attribute 'TrackerKCF_create' this error is hapenned to me

Автор

how can i run this on my system? this code in the zip folder

bhurvasharma
Автор

batch_size = 16

training_set = ImageDataGenerator(
rotation_range=50,
width_shift_range=0.1,
height_shift_range=0.1,
shear_range=0.2,
zoom_range=0.2,
horizontal_flip=True,
fill_mode='nearest'
)

validation_datagen = ImageDataGenerator(zoom_range=0.2, rotation_range=10)

training_generator =
'training_data',
target_size=(54, 54),
batch_size=batch_size,
color_mode='grayscale'
)

validation_generator =
'validation_data',
target_size=(54, 54),
batch_size=batch_size,
color_mode='grayscale'
)
Traceback (most recent call last):

File "<ipython-input-58-788d6c07832e>", line 19, in <module>
color_mode='grayscale'

File "C:\Users\latoz\Anaconda3\lib\site-packages\keras_preprocessing\image.py", line 1013, in flow_from_directory
interpolation=interpolation)

File "C:\Users\latoz\Anaconda3\lib\site-packages\keras_preprocessing\image.py", line 1875, in __init__
for subdir in

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'training_data'

sir what is the problem of error code?

JLMLBB
welcome to shbcf.ru