开发者

Removing the background from an image using C#

开发者 https://www.devze.com 2023-02-18 14:26 出处:网络
i am trying to create an application that remove the background of an image on a click of a button, can anyone give me any direction on how to build it.

i am trying to create an application that remove the background of an image on a click of a button, can anyone give me any direction on how to build it.

the photos are like passport photos i need to remove the white background from t开发者_如何学Chem

i am a beginner C# developer and i could use all the help :)


You can implement an edge detection algorithm, and have that scan the image. Then start in the upper-left and upper-right corners of the picture, and turn every pixel transparent until you meet and edge, where you stop.

That should keep you from making people's teeth and eyes disappear. White hair might be out of luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消