# 即時物件辨識 ###### tags:`碩班` `開發紀錄` ## 目的 大學部申請入學團體面試 Demo ## 環境 * Ubuntu 16.04 LTS * WebCam (個人使用 [Logitech](https://www.logitech.com/zh-tw/product/hd-pro-webcam-c920?crid=34)) * Python 3.6 (with miniconda), CUDA 9.0 & cuDNN 7.0 [[1](https://github.com/williamFalcon/tensorflow-gpu-install-ubuntu-16.04)] * * TensorFlow-gpu * * Cython * * pillow * * lxml * * jupyter * * matplotlib * * OpenCV ## 使用下列兩個項目 * TensorFlow Object Detection API [[2](https://github.com/tensorflow/models/tree/master/research/object_detection)]: 辨識物體用 * OpenCV: 串流影像用 ## 參考文章 Real-Time Object detection API using Tensorflow and OpenCV [[3](https://towardsdatascience.com/real-time-object-detection-api-using-tensorflow-and-opencv-47b505d745c4)] ## 步驟 1. 依照 [1] 之方法安裝 TensorFlow-gpu 版本 (在安裝過程中,有遇到 cuDNN 版本不對的問題,請務必下載 cudnn-9.0-linux-x64-v7.0.tgz,文中使用 cudnn-9.0-linux-x64-v7.1,但個人在使用時遇到問題) 2. 下載 protobuf-compiler [連結](https://github.com/google/protobuf/releases),Linux apt 版本過舊會出 error。 (我直接下載 binary 檔,解壓縮後將 ./bin/protoc 複製到 /usr/bin/。如果你想要用 C++ 編譯應該也行,我沒試過) 3. 使用 git 下載 [2] ([從這裡](https://github.com/tensorflow/models)),依照 [Install](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md) 教學中的 **COCO API installation** 繼續安裝。 4. 安裝結束後,切換路徑至 **./models/research/object_detection/**。 5. 使用 git 下載 [object_detection_webcam.py](https://github.com/ChampDBG/Real-Time-Object-detection) 到上述路徑,執行該程式,即開始即時物件辨識。
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.