Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 355 Bytes

README.md

File metadata and controls

11 lines (10 loc) · 355 Bytes

REMOVE BACKGROUND OF AN IMAGE

This script removes bacckground of images.

steps :

Read the input
Convert to gray
Threshold and invert as a mask
Optionally apply morphology to clean up any extraneous spots
Anti-alias the edges
Convert a copy of the input to BGRA and insert the mask as the alpha channel
Save the results