C # Image Deskew

Has anyone seen any image algorithms in C #? I found: http://www.codeproject.com/KB/graphics/Deskew_an_Image.aspx

but unfortunately, it is not very suitable for images without text. I'm specifically trying to auto-adjust the image of a hard-edged book, but with minimal text.

Has anyone seen anything that can do this?

+3
source share
1 answer

The main algorithm is to use the Hough transform to find lines, and then try to make most of the lines horizontal. Here is some basic code http://www.sydlogan.com/deskew.html

, , , . , - , .

, Atalasoft.

DotImage .NET . :

 AtalaImage img = new AtalaImage("imagefile.tif");
 AutoDeskewCommand cmd = new AutoDeskewCommand();
 AtalaImage resultImage = cmd.Apply(img).Image;
 resultImage.Save("result.tif", new TiffEncoder(), null);

- .

, ( 1:14)

http://www.atalasoft.com/products/dotimage/tutorials/capture/lesson4.aspx

:

http://www.atalasoft.com/products/dotimage/tutorials/capture/lesson1.aspx http://www.atalasoft.com/products/dotimage/tutorials/capture/lesson2.aspx http://www.atalasoft.com/products/dotimage/tutorials/capture/lesson3.aspx

+3

Source: https://habr.com/ru/post/1739491/


All Articles