The gesture recognition is based on Google's tensorflow framework. We use tensorflow for model training. Windows-based PC, Python is used as the programming language, and opencv is used for image processing. SP7021 uses tensorflowlite (tensorflow for embed system).
Tensorflow System Requirement
Python3.5~Python3.7
pip 19.0 or higher.
Windows 7 or higher (64-bit)
Microsoft Visual C++ redistributable package for Visual Studio 2015, 2017 and 2019
Python install
The Tensorflow suppport the python3.5~3.7, so we install the python3.7, the python3.7 link:Python Download ,
...
Install Tensorflow by pip
Check whether the Python environment is configured:
Code Block | ||
---|---|---|
| ||
python3 --version
pip3 --version |
The version of pip is less than 19.0, you must upgrade pip
Code Block | ||
---|---|---|
| ||
python3 -m pip install --upgrade pip |
Tensorflow install
Code Block | ||
---|---|---|
| ||
pip3 install --user --upgrade tensorflow |
In China, you can use other mirror servers as acceleration pip install the package, for exmaple:
Code Block |
---|
pip3 install -i https://mirrors.aliyun.com/pypi/simple tensorflow
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow |