imgly / background-removal-js

Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.
https://img.ly/showcases/cesdk/web/background-removal/web
GNU Affero General Public License v3.0
5.49k stars 339 forks source link

Returned mask is not binary #117

Open wonjunior opened 2 months ago

wonjunior commented 2 months ago

I noticed that the resulting image has partially masked pixels which seems incorrect. Why isn't the mask binary when extracted? I used the code from the example file node-examples/src/example_001.cjs

IMG20240502144422

DanielHauschildt commented 1 month ago

It's an alphamask and partially provides values between 0 and 255 in areas which need to blend with the background.