Remove white edges from image C#

喜欢而已 提交于 2019-12-11 16:16:32

问题


I am looking for a way to detect and crop a image in scan I am receiving. The picture is a form that gets scanned as a result it also contains the white background of scan cover.

Any suggestions how I could do that automatically?


回答1:


There is an algorithm (with examples) for use in just this scanning situation:

https://github.com/rajbot/autocrop

It is not c# but it should be simple to migrate much of it without significant difficulty.

There is also a simpler algorithm which may fit your needs written in VB for .net here:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1755&lngWId=10



来源:https://stackoverflow.com/questions/5875035/remove-white-edges-from-image-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!