Skip to content

About

Simple program that crops arbitrary background

Resources

Stars

4 stars

Watchers

45 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

OpenCV autocrop

This program will crop arbitrary background from input image.

Example:

Input:

alttext

Output:

alttext

Requirements

  • opencv apt-get install libopencv-highgui-dev libopencv-dev

  • compiler apt-get install build-essential

Building

  • set you pkg flags:

PKG_FLAGS=pkg-config opencv --cflags --libs

  • run compilation g++ -o autocrop autocrop.cpp $PKG_FLAGS ; chmod +x autocrop

Usage

autocrop <input_image_path> <output_image_path>

Example: ./autocrop input.png output.png

About

Simple program that crops arbitrary background

Resources

Stars

4 stars

Watchers

45 watching

Forks

Releases

Packages

Contributors

Languages