Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 502 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 502 Bytes

pagesegtest1 written by Rust

What's this

A porting of leptonica pagesegtest1.c.

Build

Install before building

sudo apt install libclang-10-dev libleptonica-dev

Run

cargo build

Test

Run

cargo run pageseg1.tif 

Then, /tmp/lept/pageseg/debug.pdf will be created.

TIPS

Create bilevel gray image

convert -verbose -type bilevel -depth 1 input.jpg output.tif