Reputation: 747
I am trying to extract the text from flowcharts and decision trees. If I use the image with original boxes/shapes, the text region detection is poor. Is there any way to remove these shapes (keeping the text)?
Upvotes: 4
Views: 766
Reputation: 14530
You could use connectedComponentsWithStats()
, you will have single component for the chart lines, then just remove that component from the image.
Upvotes: 1