Ask Your Question
-1

find outlined text in an image and cut the outline text ; with python

asked 2019-07-17 10:37:14 -0600

marquest gravatar image

Hi everybody, I am looking for a way to find outlined text in an image in the first step and cut the outline text and save it in a seperate images in the second (python)

I try out a few CV function, but nothing works. Iss there somebody who can handle this problem? C:\fakepath\ausschnitt .png --> example of image

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-07-25 09:57:19 -0600

Would something like the following work?

Here are the steps for the images below.

  1. convert the image to mono with cvtColor

  2. use threshold with binary_inverse and a zero threshold value

  3. use findContours with list and filter contours by area

From here you can get the remaining contour rectangle and extract/save this roi in the original image to a file.

image description

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-07-17 10:37:14 -0600

Seen: 1,018 times

Last updated: Jul 25 '19