i have the following picture of which i want to crop out all letters in to new images.

http://imgur.com/N2JqmFi

The result of each letter should look like this for example:

http://imgur.com/LvjdZh1

I have had troubles achieving this, i have used thresholding, findContours, and many other things. I just cannot seem to cut out the letters since the image contains very much noise.

Can someone please provide some help and information?

有帮助吗?

解决方案

if it did not find any contours in your img, rect_min will contain invalid negative numbers, and submat will crash.

you'll have to add some logic, that cares for that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top