# 物件辨識

## Introduction
### What is an digital image?
A digital image is a H * W * c matrix
| Gray Scale | RGB |
| --------------------------------------------------| -------- |
| |  |
## Traditional Method

### 1. Digital Image Processing (mainly for enhancement or augmentation)


### 2. Feature Extraction
Literally anything can be a feature, but what is a good feature?
#### Edge

#### HOG (Histogram of Gradient)

#### And many more..
[OpenCV](/T3DOhvaDSZCvXCIyZ3kr7w)
### 3. Machine Learning
#### Logistic Regression

#### K-means

#### SVM (Support Vector Machine)

#### And many more...
## Deep Learning

### Deep Learning Feature

https://www.youtube.com/@HungyiLeeNTU/playlists
## Detecting a Ball
### OpenCV (w/o Machine Learning)

https://github.com/Practical-CV/Color-Based-Ball-Tracking-With-OpenCV
### YOLOv8
YOLOv8 is one of the state-of-the-art object detection model nowadays.
訓練一個 YOLOv8 模型: https://hackmd.io/VNhcl1kgQc6obh53VP-7kw?view
### Traditional Method vs Deep Learning
| Traditional Method | Deep Learning |
| -------- | -------- |
| 精準度低、泛用性低 | 精準度高、泛用性高 |
| 運算需求較低 | 運算需求較高 |
| 通常用CPU運算 | 通常用GPU運算,可高度平行化 |
| 針對特定簡單的任務 | 泛用物件偵測 |