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!