- Open the terminal on the raspberry pi and type the command
sudo apt-get update
- When finished, type
sudo apt-get upgrade
- Check that the Camera option in the raspberry pi configuration menu is enabled
- Then, type
cd Desktop
to move to the Desktop folder - Download this repo by typing
git clone https://github.com/zackbeucler/Research495.git
- After the download finsihes, type
cd tflite1
to move to the TensorFlow folder - Then, type
sudo pip3 install virtualenv
to install virtual enviroments for Python3 - Next, create a virtual enviroment by typing
python3 -m venv tflite1-env
to create an enviroment calledtflite1-env
- Start that enviroment by typing
source tflite1-env/bin/activate
- Download additional requirements but typing
bash get_pi_requirements.sh
- Run the detection program by typing
python3 TFLite_detecton_webcam.py --modeldir=Sample_TFLite_model
- You can quit the program by typing
q
when it's running
- Open terminal and type
cd Desktop/tflite1
- Run the virtual enviroment by typing
source tflite1-env/bin/activate
- Run the program by typing
python3 TFLite_detection_webcam.py --modeldir=Sample_TFLite_model
Last updated: March 22, 2021