Help please, How to segmentation image of scanned documents

1 view (last 30 days)
I am working on segmentation of scanned document images and I need a matlab code.... can anyone give me the code?
Thank you

Answers (1)

Prasanna
Prasanna on 20 Sep 2024
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!