简体   繁体   English

如何使用javacv或任何其他Java库检测图像中的矩形?

[英]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. 提前致谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM