文章目录
Reference
https://www.bilibili.com/video/BV1Aq4y1E75N
https://github.com/nicknochnack/TFODCourse
https://github.com/tzutalin/labelImg
Edible Instruction
- Original video is using python venv, it didn’t work with my python3.9, so I removed 3.9 and installed 3.8
- Although many people said Anaconda sucks, but it’s so easy(GUI) to create new profile, and Jupyter Notebook also included. (Only need one command to link the profile)
- I’m also a novice of AI, if you can’t comprehend those things, just keep trying. you’ll be success one day!
Error Guide
The Jupyter notebook didn’t work after PC reboot.
Error message as down blow (Not mine),
Solution: (refer to https://www.jianshu.com/p/b3f076182fe3)
pip uninstall pyzmq
pip install pyzmq
(execute it on tfod profile)
Can’t install --upgrade pyqt5 lxml on Jupyter notebook
Solution: Pyqt5 is too big, and need run install many times.
Collect images
-
Git clone https://github.com/nicknochnack/TFODCourse
-
open 1. Image Collection.ipynb with Jupyter notebook
-
Press Shift + Enter for each cells
Note: cap = cv2.VideoCapture(0) you may need to change the number to find your own camera.
4. 5 pictures for each gesture.
Make sure you got the clearly pictures. if not, do it again.
Image Labelling
-
pip install --upgrade pyqt5 lxml
-
Create folder and git clone another repositories
the command didn’t work on my Jupyter, so I git clone manually.
-
Open labelimg application
-
Label your images as video tutorial.
-
Create and copy files to train and test folder