TFLite Object Detection Raspberry Pi da Çalıştırılması | SSD Mobilenet | Real Time Detection Raspi
Selamlar herkese,
Videolarda kullandığım tüm python dosyaları için: https://drive.google.com/drive/folders/183swgf_mmpIGZUbZt-THJgR7x7ci69Zl
1-Rasbian hızlı kurulum
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
2- Raspi Imager: https://www.raspberrypi.org/software/
Wifi ve ssh ayarı
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
Boot altında: wpa_supplicant.conf dosyası oluştur.
Boot altında: boş bir txt açıp ismini ssh yapıyoruz.
3- Modem ara yüzünden IP buluyoruz.
4-Putty ile ip üzerinden bağlantı kuruyoruz. (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)
VNC aktifleştiriyoruz. : sudo raspi-config
5- VNC ile bağlanıyoruz. (https://www.realvnc.com/en/connect/download/viewer/ )
7-Raspi kamerayı aktif ediyoruz.
8-Kameranın çalışıp çalışmadığını kontrol ediyoruz.
https://www.raspberrypi.org/documentation/usage/camera/raspicam/raspistill.md
Raspistill –v –o test.jpg
9- Sudo apt-get update
10- Sudo apt-get dist-upgrade
11- Dosya oluştur.
12- Sanal env kur. // sudo pip3 install virtualenv
13- Sanal env oluştur. // python3 -m venv tflite1-env
14- Sanal env aktifleştir. // source tflite1-env/bin/activate
15- Projede kullanacağımız tensorflow ve opencv kütüphanelerini ve bunların temeli olan kütüphanelerini kuralım.
TFlite yorumlayıcısının kurulumu: https://www.tensorflow.org/lite/guide/python
Bash get_pi_requirements.sh
16-Hazır model indirelim.
wget https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
unzip coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip -d Sample_TFLite_model
17-Hadi çalıştıralım.
python3 TFLite_detection_webcam.py –modeldir=Sample_TFLite_model
source