layoutparser-ort 0.1.0

A simplified port of LayoutParser for detecting layout elements on documents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use layoutparser_ort::{
    models::{YOLOXModel, YOLOXPretrainedModels},
    Result,
};

fn main() -> Result<()> {
    let img = image::open("examples/data/paper-example.png").unwrap();

    let model = YOLOXModel::pretrained(YOLOXPretrainedModels::Tiny)?;

    let predictions = model.predict(&img)?;

    println!("{:?}", predictions);

    Ok(())
}