Skip to content

egawata/contour

Repository files navigation

Contour detection

日本語ドキュメント

Description

This tool extracts contour from image and output the result.

CLI

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: 100 t2: 200

Web Application

Pull Docker image

Docker image

Or build Docker image manually

docker build -t egawata/contour .
docker run -p 8080:8080 egawata/contour

Then open http://localhost:8080 on your browser.

Build from source

To build from source, Go, npm and OpenCV library is required. After prepared, run the following.

script/build.sh

Then, run the app and open http://localhost:8080 from your browser.

cd backend
./app

Sample

contour -i sample/input.jpg -o sample/output.jpg -t1 50 -t2 150

Input image

Output image

License

Licensed under the Apache 2.0 license. Copyright (c) 2024 by egawata

About

contour detection from image

Resources

Stars

Watchers

Forks

Packages

No packages published