SlideShare a Scribd company logo
1 of 21
Download to read offline
影像辨識
2018/6/14
TensorFlow
• Google Brain Team團隊開發,主要用於機器學習與深度神經網路
方面研究。
• TensorFlow是利用資料流圖(Data Flow Graphs)來表達數值運算的
開放式原始碼函式庫。
y
random_nor…
b
W
張量x 亂數初始化b
運算add
運算MatMul
random_nor…
亂數初始化W
x
add
MatMul
7
7
2
14
1
1
15
2
TensorFlow
• TensorFlow是比較低階的深度學習API,所以設計模型時,必須自
行設計:張量乘積、卷積等底層操作,好處是可以自行設計各種
深度學習模型;缺點是開發需要更多程式碼,要花更多時間。
高階API
前端程式語言
TensorFlow 分散式引擎
處理器
平台
TF-Layer TF-Learn TF-Slim Keras
Python C++
Windows Linux Android iOS Raspberry Pi
CPU GPU TPU
3
OpenCV
• 全名是Open Source Computer Vision Library,開放原始碼電腦視
覺程式庫。
• 由Intel公司發起的OpenCV,由C++撰寫而成,主要技術包含:影
像處理、視訊處理、電腦視覺和機器學習等相關技術。
• 可供學術界和產業界免費使用,因此被廣泛應用在各個領域。
4
webcam
結果
5
臉部辨識
6
已經訓練好的人臉辨識樣本
將人臉辨識樣本載入Cascade分類器
偵測到目標後會以矩形形式放在串列裡回傳
detectMultiScale(灰階圖片,
每次調整圖片時要縮小的比例,
至少有5次檢測到目標,才認為是人臉,
被辨識的目標範圍大小)
在frame裡面將臉部的位置以矩形畫出來
rectangle(圖片、矩形左上角的位置、矩形右下角的位置、顏色、粗細)
7
即時物品辨識
8
https://github.com/anujshah1003/Real_time_Object_detectio
n_TF
9
下載然後解壓縮後的資料夾,開啟資料夾
10
執行object_detection_webcam.py
11
加入這兩行
12
分類模型下載後
可離線執行
13
tensorflow安裝
14
下載
https://github.com/lhelontra/tensorflow-on-arm/releases
15
下載的檔案
16
安裝
17
18
OpenCV安裝
19
20
• sudo apt-get update
• sudo apt-get install libhdf5-dev
• sudo apt-get update
• sudo apt-get install libhdf5-serial-dev
21

More Related Content

Similar to 2018 Week 16 Computer Vision

Dreaming Infrastructure
Dreaming InfrastructureDreaming Infrastructure
Dreaming Infrastructure
kyhpudding
 
2006 recycle opensourceprojects
2006 recycle opensourceprojects2006 recycle opensourceprojects
2006 recycle opensourceprojects
George Ang
 
Recycle Open Source Projects
Recycle Open Source ProjectsRecycle Open Source Projects
Recycle Open Source Projects
George Ang
 
轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)
FLASH开发者交流会
 

Similar to 2018 Week 16 Computer Vision (20)

Where We Are Today with Deep Learning and Kubernetes - KEUC2017(Shanghai)
Where We Are Today with Deep Learning and Kubernetes - KEUC2017(Shanghai)Where We Are Today with Deep Learning and Kubernetes - KEUC2017(Shanghai)
Where We Are Today with Deep Learning and Kubernetes - KEUC2017(Shanghai)
 
用十分鐘瞭解 Tensorflow.js (Google的JavaScript深度學習套件)
用十分鐘瞭解 Tensorflow.js   (Google的JavaScript深度學習套件)  用十分鐘瞭解 Tensorflow.js   (Google的JavaScript深度學習套件)
用十分鐘瞭解 Tensorflow.js (Google的JavaScript深度學習套件)
 
Dreaming Infrastructure
Dreaming InfrastructureDreaming Infrastructure
Dreaming Infrastructure
 
2006 recycle opensourceprojects
2006 recycle opensourceprojects2006 recycle opensourceprojects
2006 recycle opensourceprojects
 
Recycle Open Source Projects
Recycle Open Source ProjectsRecycle Open Source Projects
Recycle Open Source Projects
 
an gentle introduction to tensorflow graph
an gentle introduction to  tensorflow graphan gentle introduction to  tensorflow graph
an gentle introduction to tensorflow graph
 
轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)
 
R 語言教學: 探索性資料分析與文字探勘初探
R 語言教學: 探索性資料分析與文字探勘初探R 語言教學: 探索性資料分析與文字探勘初探
R 語言教學: 探索性資料分析與文字探勘初探
 
做一个“懒惰”的程序员-LCP框架系列交流
做一个“懒惰”的程序员-LCP框架系列交流做一个“懒惰”的程序员-LCP框架系列交流
做一个“懒惰”的程序员-LCP框架系列交流
 
Erlang高级原理和应用
Erlang高级原理和应用Erlang高级原理和应用
Erlang高级原理和应用
 
VPU&Teachable Machine介紹
VPU&Teachable Machine介紹VPU&Teachable Machine介紹
VPU&Teachable Machine介紹
 
AI for Everyone (Chinese)
AI for Everyone (Chinese)AI for Everyone (Chinese)
AI for Everyone (Chinese)
 
Full Stack Monitoring with Prometheus and Grafana (Updated)
Full Stack Monitoring with Prometheus and Grafana (Updated)Full Stack Monitoring with Prometheus and Grafana (Updated)
Full Stack Monitoring with Prometheus and Grafana (Updated)
 
2020 MLaaS 產業介紹.pdf
2020 MLaaS 產業介紹.pdf2020 MLaaS 產業介紹.pdf
2020 MLaaS 產業介紹.pdf
 
TensorFlow 深度學習快速上手班--深度學習
 TensorFlow 深度學習快速上手班--深度學習 TensorFlow 深度學習快速上手班--深度學習
TensorFlow 深度學習快速上手班--深度學習
 
Etu DW Offload 解放資料倉儲的運算效能
Etu DW Offload 解放資料倉儲的運算效能Etu DW Offload 解放資料倉儲的運算效能
Etu DW Offload 解放資料倉儲的運算效能
 
LabView with Lego NXT
LabView  with Lego NXTLabView  with Lego NXT
LabView with Lego NXT
 
運用MMLSpark 來加速Spark 上 機器學習專案
運用MMLSpark 來加速Spark 上機器學習專案運用MMLSpark 來加速Spark 上機器學習專案
運用MMLSpark 來加速Spark 上 機器學習專案
 
給軟體工程師的不廢話 R 語言精要班
給軟體工程師的不廢話 R 語言精要班給軟體工程師的不廢話 R 語言精要班
給軟體工程師的不廢話 R 語言精要班
 
Jobforcompal
JobforcompalJobforcompal
Jobforcompal
 

More from AkashaC1

More from AkashaC1 (20)

How to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdfHow to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdf
 
Config RouterOS openVPN.pdf
Config RouterOS openVPN.pdfConfig RouterOS openVPN.pdf
Config RouterOS openVPN.pdf
 
AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20
 
AR Implementation 2
AR Implementation 2AR Implementation 2
AR Implementation 2
 
Post article to KM with Python
Post article to KM with PythonPost article to KM with Python
Post article to KM with Python
 
2018 Week 7 Data Analysis
2018 Week 7 Data Analysis2018 Week 7 Data Analysis
2018 Week 7 Data Analysis
 
2018 Week 5 DHT11
2018 Week 5 DHT112018 Week 5 DHT11
2018 Week 5 DHT11
 
2018 Week 4 PIR
2018 Week 4 PIR2018 Week 4 PIR
2018 Week 4 PIR
 
2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition
 
2018 Week 15 Speaker
2018 Week 15 Speaker2018 Week 15 Speaker
2018 Week 15 Speaker
 
2018 Week 14 HC-SR04
2018 Week 14 HC-SR042018 Week 14 HC-SR04
2018 Week 14 HC-SR04
 
2018 Week 13 Servo Motor
2018 Week 13 Servo Motor2018 Week 13 Servo Motor
2018 Week 13 Servo Motor
 
2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization
 
2018 Week 11 Bluetooth and Wi-Fi
2018 Week 11 Bluetooth and Wi-Fi2018 Week 11 Bluetooth and Wi-Fi
2018 Week 11 Bluetooth and Wi-Fi
 
2018 Week 10 Read Time Data Sending
2018 Week 10 Read Time Data Sending2018 Week 10 Read Time Data Sending
2018 Week 10 Read Time Data Sending
 
2018 Week 10 IoT and Robot
2018 Week 10 IoT and Robot2018 Week 10 IoT and Robot
2018 Week 10 IoT and Robot
 
2018 Week 8 Relay
2018 Week 8 Relay2018 Week 8 Relay
2018 Week 8 Relay
 
2018 Week 8 IoT and Wearable Devices
2018 Week 8 IoT and Wearable Devices2018 Week 8 IoT and Wearable Devices
2018 Week 8 IoT and Wearable Devices
 
2018 Week 7 Photoresistor
2018 Week 7 Photoresistor2018 Week 7 Photoresistor
2018 Week 7 Photoresistor
 
2018 Week 4 Data Storage
2018 Week 4 Data Storage2018 Week 4 Data Storage
2018 Week 4 Data Storage
 

2018 Week 16 Computer Vision