How to use profile for image detection in documents
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (1)
Image Analyst
el 20 de En. de 2016
Editada: Image Analyst
el 20 de En. de 2016
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.
Ver también
Categorías
Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!