Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages