Skip to content

EndPointCorp/opencv_autocrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages