How to use profile for image detection in documents
2 次查看(过去 30 天)
显示 更早的评论
Hello,I am writing Matlab code to detect images in a document (like a scanned magazine). First I divided my whole document into blocks. Now I don't know how to use morphology or profile to detect images(not histogram or text). My code and data base document are attached. Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153439/image.png)
回答(1 个)
Image Analyst
2016-1-20
编辑:Image Analyst
2016-1-20
Try thresholding for white. Then use bwareafilt() or bwareaopen() to throw out blobs smaller than a certain size. Or you can throw out non-rectangular shapes.
All that stuff in your code about dividing an image up into blocks, you can throw out. It's not appropriate.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!