Cargo Features

layoutparser-ort has no features set by default.

[dependencies]
layoutparser-ort = { version = "0.1.0", features = ["serde", "save", "ocr", "cuda", "tensorrt", "directml", "coreml", "rocm", "openvino", "onednn", "xnnpack", "qnn", "cann", "nnapi", "tvm", "acl", "armnn", "migraphx", "vitis", "rknpu", "default-formats", "rayon", "avif", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp", "nasm", "avif-native"] }
serde

Enables serde

save

Enables csv

ocr

Enables hocr-parser and tesseract

Affects layoutparser-ort::ocr

cuda

ort/onnxruntime execution providers: https://ort.pyke.io/setup/cargo-features

Enables cuda of ort

tensorrt

Enables tensorrt of ort

directml

Enables directml of ort

coreml

Enables coreml of ort

rocm

Enables rocm of ort

openvino

Enables openvino of ort

onednn

Enables onednn of ort

xnnpack

Enables xnnpack of ort

qnn

Enables qnn of ort

cann

Enables cann of ort

nnapi

Enables nnapi of ort

tvm

Enables tvm of ort

acl

Enables acl of ort

armnn

Enables armnn of ort

migraphx

Enables migraphx of ort

vitis

Enables vitis of ort

rknpu

Enables rknpu of ort

default-formats

image features

Enables default-formats of image

rayon

Enables rayon of image

image:

Other features
Enables multi-threading

avif

Enables avif of image

bmp

Enables bmp of image

dds

Enables dds of image

exr

Enables exr of image

ff

Farbfeld image format

Enables ff of image

gif

Enables gif of image

hdr

Enables hdr of image

ico

Enables ico of image

jpeg

Enables jpeg of image

png

Enables png of image

pnm

Enables pnm of image

qoi

Enables qoi of image

tga

Enables tga of image

tiff

Enables tiff of image

webp

Enables webp of image

nasm

Enables nasm of image

image:

Enables use of nasm by rav1e (requires nasm to be installed)

avif-native

Enables avif-native of image

image:

Enable native dependency libdav1d