# 長榮中學 AICourse HackMD:https://hackmd.io/@Titi/r1-G8MzGA # 熱像儀 Powershell ## Wi-Fi SSID: AICourse Password: 1234567809* ## 連線 raspberry pi - 透過 ssh 協定連線 ```shell! $ ssh pi@192.168.50.xxx ``` > 密碼:0000 ## 透過遠端桌面操作 raspberry pi - 開啟遠端桌面 vnc 介面 ```shell! $ sudo raspi-config ``` ![截圖 2024-05-04 上午11.32.03](https://hackmd.io/_uploads/ry1BhXQzC.png) - 把 I3、I4、I5 enable ![截圖 2024-05-04 下午12.10.07](https://hackmd.io/_uploads/BkzUSNXf0.png) ![截圖 2024-05-04 上午11.33.28](https://hackmd.io/_uploads/HJ8cnQmzC.png) - 按 ESC 離開 - 重開機 ```shell! $ sudo reboot now ``` - 在自己的筆電下載遠端桌面 vnc client [VNC client](https://www.realvnc.com/en/connect/download/viewer/) ### 開啟 VNC 遠端桌面 ![截圖 2024-05-04 上午11.42.01](https://hackmd.io/_uploads/ryEcAXQMR.png) - 輸入帳號密碼 > username: pi > password: 0000 ![截圖 2024-05-04 上午11.42.35](https://hackmd.io/_uploads/HyI2RQ7fC.png) #### 強制開啟 HDMI ```shell! $ sudo nano /boot/config.txt ``` ```shell # For more options and information see # http://rpf.io/configtxt # Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default "safe" mode #hdmi_safe=1 hdmi_force_hotplug=1 hdmi_group=2 hdmi_mode=9 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 ``` > 儲存:ctl+O -> enter > 離開:ctl+X - 重開機 ```shell! $ sudo reboot now ``` ## 下載程式碼 ```shell! $ scp -r pi@192.168.50.68:~/FLIR ./ ``` ## 測試 RGB Camera ### 安裝相關套件 - 更新 ```shell! $ sudo apt-get update ``` - 下載 OpenCV ```shell! $ sudo apt-get install python3-opencv -y ``` ### 執行程式 ```shell! $ cd ~/FLIR $ python3 color_preview.py --preview ``` - 停止程式:點擊該畫面,按Q ### 測試 Thermal camera ### 安裝相關套件 ```shell! $ cd $ git clone https://github.com/groupgets/pylepton.git -b lepton3-dev $ cd ~/pylepton $ sudo python3 setup.py install ``` ### 執行程式 ```shell! $ cd FLIR $ python3 thermal_preview.py --preview ``` ### 對齊 Thermal 與 RGB ```shell! $ python3 dual_preview.py --preview ``` ## 人臉辨識 ```shell! $ python3 FaceDetection.py --preview ``` ## 測量額溫 ```shell! $ python3 fusion.py --preview ```