Marek Mauder
https://galfar.vevb.net/deskew
https://github.com/galfar/deskew
v1.30 2019-06-07
Deskew는 스캔 한 텍스트 문서를 Deskewing을위한 명령 줄 도구입니다. Hough Transform을 사용하여 이미지에서 "텍스트 라인"을 감지합니다. 출력으로 선이 수평이되도록 이미지를 회전시킵니다.
이 플랫폼 (bin 폴더에 위치)을 위해 구축 된 사전 컴파일 된 바이너리가 있습니다 : Win64 ( deskew.exe ), Win32 ( deskew32.exe ), Linux X86_64 ( deskew ), MacOS X86_64 ( deskew-mac ), Linux ARM Aarch64 ( deskew-arm64 ) 및 V7 ( deskew-arm ).
이 CLI 도구의 GUI Frontend도 사용할 수 있으며 (Windows, Linux 및 MacOS) GUI의 readME를 참조하십시오.
라이센스 : MPL 2.0
https://github.com/galfar/deskew/releases
https://galfar.vevb.net/deskew#downloads
Usage:
deskew [-o output] [-a angle] [-b color] [..] input
input: Input image file
Options:
-o output: Output image file (default: out.png)
-a angle: Maximal expected skew angle (both directions) in degrees (default: 10)
-b color: Background color in hex format RRGGBB|LL|AARRGGBB (default: black)
Ext. options:
-q filter: Resampling filter used for rotations (default: linear,
values: nearest|linear|cubic|lanczos)
-t a|treshold: Auto threshold or value in 0..255 (default: a)
-r rect: Skew detection only in content rectangle (pixels):
left,top,right,bottom (default: whole page)
-f format: Force output pixel format (values: b1|g8|rgb24|rgba32)
-l angle: Skip deskewing step if skew angle is smaller (default: 0.01)
-g flags: Operational flags (any combination of):
c - auto crop, d - detect only (no output to file)
-s info: Info dump (any combination of):
s - skew detection stats, p - program parameters, t - timings
-c specs: Output compression specs for some file formats. Several specs
can be defined - delimited by commas. Supported specs:
jXX - JPEG compression quality, XX is in range [1,100(best)]
tSCHEME - TIFF compression scheme: none|lzw|rle|deflate|jpeg|g4
Supported file formats
Input: BMP, JPG, PNG, JNG, GIF, DDS, TGA, PBM, PGM, PPM, PAM, PFM, TIF, PSD
Output: BMP, JPG, PNG, JNG, GIF, DDS, TGA, PGM, PPM, PAM, PFM, TIF, PSDLinux 및 MacOS의 TIFF 지원을 위해서는 Libtiff 4.x를 설치해야합니다 (패키지는 일반적으로 libtiff5라고합니다).
MACOS의 경우 Prebuilt Libtiff Binaries를 여기에서 다운로드 할 수 있습니다 : https://galfar.github.io/store/tifflibbins-macos.zip. 아카이브 내부의 파일을 deskew-mac 실행 파일과 동일한 폴더에 넣으십시오.
Libtiff에 연결되는 ARM 대상은 현재 비활성화됩니다 (Deskew와 충돌하는 것으로 알려짐). 자신을 시도하려면 ImagingTiff.pas 단위로 활성화하십시오.
증언 폴더 및 스크립트에서 일부 테스트 이미지를 찾을 수 있으며 BIN에서 테스트 ( RunTests.bat 및 runtests.sh )를 실행할 수 있습니다. 기본적으로 스크립트는 deskew 명령을 호출하지만 다른 것을 매개 변수로 전달할 수 있습니다 (예 : runtests.sh deskew-arm ).
여기에 제출하십시오.
https://github.com/galfar/deskew/issues
v1.30 2019-06-07 :
v1.25 2018-05-19 :
v1.21 2017-11-01 :
v1.20 2016-09-01 :
v1.10 2014-03-04 :
v1.00 2012-06-04 :
v0.95 2010-12-28 :
V0.90 2010-02-12 :
Deskew는 Object Pascal로 작성되었습니다. 다시 컴파일하려면 무료 Pascal 또는 Delphi가 필요합니다.
이러한 IDE에 대한 프로젝트 파일이 있습니다.
또한 Scripts 폴더에는 독립형 FPC 컴파일러 용 Compile Shell/Batch 스크립트가 있습니다.
Deskew는 Win32, Win64, Linux X86_64, MacOS X86_64, Linux ARM AARCH64 + V7과 같은 이러한 플랫폼에서 편집 할 수 있으며 테스트되었습니다.
최신 소스 코드는 여기에서 찾을 수 있습니다.
https://github.com/galfar/deskew
뱀파이어 이미징 라이브러리는 컴파일을 위해 필요하며 이미징 폴더의 Deskew의 리포에 포함되어 있습니다.