object_detector 0.2.1

Object detection using ORT and the yoloe-26-seg model. This model can detect multiple objects per image, each having a tag, pixel-level mask, and a boundingbox. It's pretrained, it has a vocabulary of 4000+ objects.
Documentation
# 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 = "2024"
name = "object_detector"
version = "0.2.1"
build = false
exclude = [
    "assets",
    ".github",
    "TODO.md",
    "justfile",
    "output",
    "py-yolo",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Object detection using ORT and the yoloe-26-seg model. This model can detect multiple objects per image, each having a tag, pixel-level mask, and a boundingbox. It's pretrained, it has a vocabulary of 4000+ objects. "
homepage = "https://github.com/RuurdBijlsma/object_detector-rs"
documentation = "https://docs.rs/object_detector"
readme = "README.md"
license = "AGPL-3.0"
repository = "https://github.com/RuurdBijlsma/object_detector-rs"

[features]
acl = ["ort/acl"]
armnn = ["ort/armnn"]
azure = ["ort/azure"]
cann = ["ort/cann"]
copy-dylibs = ["ort/copy-dylibs"]
coreml = ["ort/coreml"]
cuda = ["ort/cuda"]
default = [
    "download-binaries",
    "copy-dylibs",
    "hf-hub",
    "serde",
]
directml = ["ort/directml"]
download-binaries = ["ort/download-binaries"]
hf-hub = ["dep:hf-hub"]
load-dynamic = [
    "ort/load-dynamic",
    "open_clip_inference/load-dynamic",
]
migraphx = ["ort/migraphx"]
nnapi = ["ort/nnapi"]
nvrtx = ["ort/nvrtx"]
onednn = ["ort/onednn"]
openvino = ["ort/openvino"]
qnn = ["ort/qnn"]
rknpu = ["ort/rknpu"]
serde = ["dep:serde"]
tensorrt = ["ort/tensorrt"]
tvm = ["ort/tvm"]
vitis = ["ort/vitis"]
webgpu = ["ort/webgpu"]
xnnpack = ["ort/xnnpack"]

[lib]
name = "object_detector"
path = "src/lib.rs"

[[example]]
name = "export_regression_outputs"
path = "examples/export_regression_outputs.rs"

[[example]]
name = "prompt_free_basic"
path = "examples/prompt_free_basic.rs"

[[example]]
name = "promptable_basic"
path = "examples/promptable_basic.rs"

[[example]]
name = "visualize"
path = "examples/visualize.rs"

[[test]]
name = "detector_test"
path = "tests/detector_test.rs"

[[test]]
name = "regression"
path = "tests/regression.rs"

[[bench]]
name = "predict_benchmark"
path = "benches/predict_benchmark.rs"
harness = false

[dependencies.bon]
version = "3.9.1"

[dependencies.hf-hub]
version = "0.5.0"
features = ["tokio"]
optional = true

[dependencies.image]
version = "0.25.10"

[dependencies.ndarray]
version = "0.17.2"

[dependencies.num_cpus]
version = "1.17.0"

[dependencies.open_clip_inference]
version = "0.3.0"

[dependencies.ort]
version = "2.0.0-rc.12"
features = ["ndarray"]

[dependencies.rayon]
version = "1.11.0"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.ab_glyph]
version = "0.2"

[dev-dependencies.color-eyre]
version = "0.6.5"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.imageproc]
version = "0.26.1"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.tokio]
version = "1.50"
features = ["full"]