https://github.com/ryeguard/cvpipe
A tool for quickly prototyping computer vision filters and operations using OpenCV/GoCV.
https://github.com/ryeguard/cvpipe
gocv opencv
Last synced: 4 months ago
JSON representation
A tool for quickly prototyping computer vision filters and operations using OpenCV/GoCV.
- Host: GitHub
- URL: https://github.com/ryeguard/cvpipe
- Owner: ryeguard
- License: mit
- Created: 2024-01-31T22:03:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-20T17:02:25.000Z (over 1 year ago)
- Last Synced: 2025-03-20T18:22:08.182Z (over 1 year ago)
- Topics: gocv, opencv
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cvpipe
`cvpipe` is a tool for quickly prototyping computer vision filters and operations using [OpenCV](https://opencv.org/)/[GoCV](https://gocv.io/).
## Getting Started
Build and run the docker image to quickly get started:
```bash
docker build -t cvpipe .
```
```bash
docker run -it --rm \
--mount type=bind,source="$(pwd)/data",target=/go/src/cvpipe/data \
-t cvpipe
```
## Usage
The `cvpipe` package provides a simple API for chaining together OpenCV operations in Go. The following pseudo-code demonstrates the intention of the package:
```go
pipe := NewPipe()
defer pipe.Close()
result := pipe.
Add(ResizeOperation(0.5)).
Add(BlurOperation(5)).
Add(ThresholdOperation(127)).
Run(image)
defer result.Close()
// Do something with the result
```
For up-to-date, working/running examples, see the [cmd](./cmd) directory.