how to count visible lines in textArea?
3 views (last 30 days)
Image Analyst on 29 Jun 2022
I'd take a vertical profile and threshold it. You forgot to attach your picture. But if you have an image with black text on a white background
verticalProfile = mean(grayImage, 2);
mask = verticalProfile < 128;
[labeledLines, numberOfLines] = bwlabel(mask)