Skip to content

eosay/robotCNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robotCNN

Supervised learning with a Convolutional Neural Network to control a linear robotic slider with hand gestures. The CNN is trained and used for inference on a PC, with movement commands sent over USB serial communication to a microcontoller. The CNN classifies webcamera images for the classes 'left', 'right', and 'stop'. The network is built and trained using Pytorch. A GPU is highly recommended, but CPU usage is also supported. The corresponding blog post is here.


Neural Network inference on pointing hand gestures

Prerequisites

Python3
pytorch
torchvision
cv2
pyserial

Hardware

Usage

Collect data from webcamera.

python3 collect.py

Once collect.py is run three times for seperate data classes, the network can be trained.

python3 train.py

Now run the network for live inference and robotic control. This command may need to be run as root, since it deals with USB serial communication.

python3 infer.py

About

Control a linear robotic slider with hand gestures using a Convolutional Neural Network

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages