[英]how to detect rectangles in an image using javacv or any other java library?
My requirement is to implement auto-crop in a scanned image so that unwanted parts in the image can be cropped off. 我的要求是在扫描的图像中实现自动裁剪,以便可以裁剪掉图像中不需要的部分。 The scanning material will be a rectangle shaped document.
扫描材料将是一个矩形文档。 Is it possible to detect the rectangle shaped document from the scanned image and how?
是否可以从扫描的图像中检测出矩形文档?如何?
Thanks in advance. 提前致谢。
Try this following blog post, it might help: 试试以下博客文章,可能会有所帮助:
http://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrilateral-objects/ http://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrilateral-objects/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.