如何使用 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
Edit
For more information .. my next question
How to get edge coordinates of a image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您知道包含要裁剪的图像数据的区域,您可以使用 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
假设您正在执行 OCR 预处理,我会考虑使用 Aforge 框架,如果可能的。
成像类中有一组特定的函数,用于执行裁剪以及您可能需要的任何其他相关操作(图像旋转、色调调整、亮度/对比度调整、过滤噪声等)。
In the assumption you are performing preprocessing for OCR, I would look into using the Aforge Framework if possible.
There is a specific set of functions in the Imaging classes for preforming crops and any other related manipulations(image rotation, hue adjustment, brightness/contrast adjustment, filter noise, etc) that you might need.
两个链接
http://google.com/search?q=c% 23+crop+位图和 http://www.nerdydork.com/crop-an-image-bitmap-in-c-or-vbnet.html
Two links for you
http://google.com/search?q=c%23+crop+bitmap and http://www.nerdydork.com/crop-an-image-bitmap-in-c-or-vbnet.html