This tool extracts contour from image and output the result.
To build from source, Go and OpenCV library is required.
go install github.com/egawata/contour
contour -i input.jpg -o output.png-i: input image-o: output image-t1-t2: threshold. Default =t1: 100t2: 200
docker build -t egawata/contour .
docker run -p 8080:8080 egawata/contourThen open http://localhost:8080 on your browser.
To build from source, Go, npm and OpenCV library is required. After prepared, run the following.
script/build.shThen, run the app and open http://localhost:8080 from your browser.
cd backend
./appcontour -i sample/input.jpg -o sample/output.jpg -t1 50 -t2 150
Input image
Output image
Licensed under the Apache 2.0 license. Copyright (c) 2024 by egawata


