Help please, How to segmentation image of scanned documents

1 次查看(过去 30 天)
I am working on segmentation of scanned document images and I need a matlab code.... can anyone give me the code?
Thank you

回答(1 个)

Prasanna
Prasanna 2024-9-20
Hi Andrew,
It is my understanding that you want more information regarding image segmentation of scanned documents. To perform image segmentation on scanned documents, you can perform the following steps:
  • Preprocess the loaded image by converting it to grayscale, and apply thresholding to convert the image to binary format
  • Perform image segmentation based on pixel intensity and perform morphological operations like imfill, imdilate, etc to clean up the binary image.
  • To identify the dark regions, create a mask for the same in the grayscale image, and display the regions as potential text area.
For more resources on performing image segmentation on scanned document images, refer the following links:
Hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by