我如何使用C#裁剪图像 [英] How can i crop image using C#
问题描述
我从相机拍摄的文档图片。
现在我要做的就是庄稼只能从图像文档。
请任何人都可以建议我如何最好是可以做到的,或第一是有可能与否
I have a picture of document taken from camera. Now what i have to do is crop only document from that image . Please can anyone suggest me how best it can be done or first is it possible or not
修改
有关更多信息..我的下一个问题
HTTP ://stackoverflow.com/questions/1890422/how-to-get-edge-coordinates-of-a-image
For more information .. my next question http://stackoverflow.com/questions/1890422/how-to-get-edge-coordinates-of-a-image
推荐答案
如果您知道包含要裁剪图像数据的区域,可以使用本文从MSDN:结果
的 http://msdn.microsoft.com/en-us/library/ms752345.aspx
If you know the area that contains the image data you would like to crop, you could use this article from MSDN:
http://msdn.microsoft.com/en-us/library/ms752345.aspx
如果你需要裁剪之前找到相关的领域,你需要调查的一些图像处理技术。例如角检测
If you need to find the relevant area before cropping, you need to investigate some image processing techniques. e.g. Corner Detection
这篇关于我如何使用C#裁剪图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!