mkdir tf
cd tf
wget https://www.piwheels.org/simple/tensorflow/tensorflow-1.14.0-cp37-none-linux_armv7l.whl
sudo init 3 # disable desktop environment
pip3 install ./tensorflow-1.14.0-cp37-none-linux_armv7l.whl
sudo init 5 # enable desktop environment
sudo apt-get install libatlas-base-dev
sudo apt-get install libxml2-dev libxslt1-dev
pip3 install lxml
pip3 install pillow matplotlib cython
sudo apt-get install python-tk
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install qt4-dev-tools -y
pip3 install opencv-python==3.4.6.27 # 最新版的opencv在RPI上執行會有問題, 安裝舊版會比較穩定
sudo apt-get install protobuf-compiler
mkdir tensorflow1
cd tensorflow1
git clone --recurse-submodules https://github.com/tensorflow/models.git
nano ~/.bashrc
# Put the following parameter to .bashrc
export PYTHONPATH=$PYTHONPATH:/home/pi/tensorflow1/models/research:/home/pi/tensorflow1/models/research/slim
# save and exit
source ~/.bashrc
cd /home/pi/tensorflow1/models/research
protoc object_detection/protos/*.proto --python_out=.
cd /home/pi/tensorflow1/models/research/object_detection
wget http://download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz
tar xzvf ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz
# Path location: /home/pi/tensorflow1/models/research/object_detection
wget https://raw.githubusercontent.com/EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi/master/Object_detection_picamera.py
python3 Object_detection_picamera.py
使用virtualbox + ubuntu18 (64bit, Desktop) (較安定)
May 21, 2024用latex寫ref的時候, 通常會用這兩種語法: 另外準備一個new_ref.bib檔案: 把所有欄位填好, 系統自動套用template轉出格式 (懶人用) \bibliographystyle{IEEEtran} \bibliography{new_ref} 用bibitem: 你寫什麼, 他就產生什麼 (需要對ref格式很清楚, 不太建議用這個 XD) \bibitem{}R. Fardel, M. Nagel, F. Nuesch, T. Lippert, and A. Wokaun, ``Fabrication of organic light emitting diode pixels by laser-assisted forward transfer,'' {\em Appl. Phys. Lett.}, vol. 91, no. 6, Aug. 2007, Art. no. 061103.
Feb 23, 2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up