Skip to content

Microsheep/Opencv_photo_background_removal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background removal using opencv.


1. photo: image for testing
2. bgremove: code for background removal
3. demo: demo images for 6/17 version of code
(bgremove.out is the executable for linux)

Background Remove: (-h for help)


[-i input] [-o output] [-mo mask_output]
[-l lonely_start lonely_end lonely_times]
[-s $total_sources "a1,b1" "a2,b2" ... source]
[-bw black_white] [-m margin] [-h | help]

Default:


input - in.png
output - out.png
mask_output - mask.out.png
black_white = 20 (20/255 black-white seperate)
lonely_start = 6 (less than 6/25 is black)
lonely_end = 20 (greater than 20/25 is white)
lonely_times = 1 (the times lonely kill is executed)
margin = 2 (the radius killed when flood)
total_sources = 1 (the number of sources to flood)
source = (0,0)

About

opencv background removal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published