CVForge 是一個以 Go 開發的輕量級 Computer Vision CLI 工具。
透過模組化 Filter Pipeline 架構,讓使用者可以快速組合影像處理流程, 從基礎影像轉換到進階電腦視覺演算法皆可擴充。
-
Modular Filter Pipeline
每個影像處理功能皆為獨立 Filter,可自由組合:
Input Image
|
v
+-----------+
| Grayscale |
+-----------+
|
v
+-----------+
| Blur |
+-----------+
|
v
+-----------+
| Resize |
+-----------+
|
v
Output Image
| Feature | Command | Description |
|---|---|---|
| Grayscale | grayscale |
RGB 轉灰階 |
| Blur | blur |
Gaussian-like Blur |
| Resize | resize |
調整影像尺寸 |
| Rotate | rotate |
旋轉影像 |
| Crop | crop |
裁切影像 |
git clone https://github.com/kylin419/CVforge.git
cd CVforge
go build .
cvforge grayscale input.jpg output.jpg
cvforge resize \
input.jpg \
output.jpg \
--w WIDTH \
--h HEIGHT
cvforge rotate \
input.jpg \
output.jpg \
--angle ANGLE
cvforge crop \
input.jpg \
output.jpg \
--x X \
--y Y \
--w W \
--h H
