/cvpipe

A tool for quickly prototyping computer vision filters and operations using OpenCV/GoCV.

Primary LanguageGoMIT LicenseMIT

cvpipe

cvpipe is a tool for quickly prototyping computer vision filters and operations using OpenCV/GoCV.

Getting Started

Build and run the docker image to quickly get started:

docker build -t cvpipe .
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:

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 directory.