straighten a image
13 次查看(过去 30 天)
显示 更早的评论
hello people am working on a ocr of braille! i have finished the entire project! the one drawback of my project seems to be that, my code doesn't work on images which are slightly curved during scanning! the input to my code is a scanned braille script! so if the image is tilted, then my code gives me an error! so i wanna know if there's any algorithm or method by which i can straighten that image!! any help would be greatly appreciated. thank you
2 个评论
Geoff
2012-5-24
Sorry, first you say "curved", then you say "tilted". Which is it? Or is it both?
"Curved" implies you need to de-warp the image. "Tilted" implies you just need to rotate it. If it's the latter, do you have any reference lines in your image to indicate what true vertical or horizontal is?
采纳的回答
Image Analyst
2012-5-25
Can you detect the dots? If so, you might be able to use radon() or RANSAC ( http://en.wikipedia.org/wiki/Ransac) or possibly hough() to find the angle, then use imrotate.
0 个评论
更多回答(3 个)
goutam
2012-5-25
1 个评论
Image Analyst
2012-5-25
There are a few different ways to do it. Did you look up any of the ways I suggested?
goutam
2012-5-25
4 个评论
Image Analyst
2012-5-26
Well what can I say without seeing your code? All I can say is that you did something wrong.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!