Ask Your Question
1

Character Slant Correction

asked 2013-07-02 05:08:08 -0600

123ezone gravatar image

Hi, I'm Trying to correct slant of cursive handwritten characters before do the segmentation.What I need is to rotate the letters so they are upright. Can someone please help with opencv code to find a solution. Thank You very much !

edit retag flag offensive close merge delete

Comments

std::vector<cv::Point> points;

cv::Mat_<uchar>::iterator it = img.begin<uchar>();

cv::Mat_<uchar>::iterator end = img.end<uchar>();

for (; it != end; ++it)

if (*it)

points.push_back(it.pos());

Can someone help me with converting this into opencv version 2.4.3. I have tried that but it didn't work.

123ezone gravatar image123ezone ( 2013-07-02 12:06:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-02 06:46:40 -0600

Jawaher Khemakhem gravatar image

Here some codes here and here may be it help you .

edit flag offensive delete link more

Comments

Thank You!

123ezone gravatar image123ezone ( 2013-07-02 12:03:16 -0600 )edit

Question Tools

Stats

Asked: 2013-07-02 05:08:08 -0600

Seen: 1,242 times

Last updated: Jul 02 '13