# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "layoutparser-ort" version = "0.1.0" exclude = ["examples/data/*"] description = "A simplified port of LayoutParser for detecting layout elements on documents." homepage = "https://github.com/styrowolf/layoutparser-ort" readme = "README.md" keywords = [ "document", "analysis", "layout", "deep-learning", ] categories = [ "computer-vision", "multimedia::images", "science", "visualization", ] license = "Apache-2.0" repository = "https://github.com/styrowolf/layoutparser-ort" [[example]] name = "ocr" required-features = [ "ocr", "png", ] [[example]] name = "boxes" required-features = ["png"] [[example]] name = "predict_detectron2" required-features = ["png"] [[example]] name = "predict_yolox" required-features = ["png"] [dependencies.csv] version = "1.3.0" optional = true [dependencies.geo-types] version = "0.7.13" [dependencies.hf-hub] version = "0.3.2" [dependencies.hocr-parser] version = "0.1.0" optional = true [dependencies.image] version = "0.25.1" default-features = false [dependencies.itertools] version = "0.12.1" [dependencies.ndarray] version = "0.15.6" [dependencies.ort] version = "2.0.0-rc.2" [dependencies.serde] version = "1.0.199" features = ["derive"] optional = true [dependencies.tesseract] version = "0.15.1" optional = true [dependencies.thiserror] version = "1.0.59" [dependencies.tracing] version = "0.1.40" [features] acl = ["ort/acl"] armnn = ["ort/armnn"] avif = ["image/avif"] avif-native = ["image/avif-native"] bmp = ["image/bmp"] cann = ["ort/cann"] coreml = ["ort/coreml"] cuda = ["ort/cuda"] dds = ["image/dds"] default = [] default-formats = ["image/default-formats"] directml = ["ort/directml"] exr = ["image/exr"] ff = ["image/ff"] gif = ["image/gif"] hdr = ["image/hdr"] ico = ["image/ico"] jpeg = ["image/jpeg"] migraphx = ["ort/migraphx"] nasm = ["image/nasm"] nnapi = ["ort/nnapi"] ocr = [ "dep:tesseract", "dep:hocr-parser", ] onednn = ["ort/onednn"] openvino = ["ort/openvino"] png = ["image/png"] pnm = ["image/pnm"] qnn = ["ort/qnn"] qoi = ["image/qoi"] rayon = ["image/rayon"] rknpu = ["ort/rknpu"] rocm = ["ort/rocm"] save = ["dep:csv"] serde = ["dep:serde"] tensorrt = ["ort/tensorrt"] tga = ["image/tga"] tiff = ["image/tiff"] tvm = ["ort/tvm"] vitis = ["ort/vitis"] webp = ["image/webp"] xnnpack = ["ort/xnnpack"]