Line segmentation based on projection profiles.
Extracted lines will be returned in cell array format, the function takes an input image and the threshold, if threshold is not provided the mean will be used. The plot of the projections will also be shown for the purpose of changing the threshold in case the mean gives poor results.
This works best on printed and non-noisy text. If your text line is handwritten or curved this may not work as required.
Faraz (2022). Text Line Extraction using Projection Profiles (https://www.mathworks.com/matlabcentral/fileexchange/62829-text-line-extraction-using-projection-profiles), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!