1#![forbid(unsafe_code)]
41#![allow(
42 clippy::cast_possible_truncation,
43 clippy::cast_precision_loss,
44 clippy::cast_sign_loss
45)]
46
47mod config;
48mod decode;
49mod detect_decode;
50mod device;
51mod error;
52pub mod evidence;
53mod integrity;
54mod manifest;
55#[cfg(feature = "onnx")]
56mod onnx_backend;
57mod pipeline;
58mod preprocess;
59mod reference;
60mod registry;
61
62pub use config::{HostBundleConfig, ModelSpec, ModelTask};
63pub use decode::{DecodedRgb, decode_encoded_rgb, decode_photo_rgb};
64pub use detect_decode::{
65 DetectorDecodeConfig, RawBox, decode_detector_output, detections_from_raw_boxes,
66};
67pub use device::DevicePreference;
68pub use error::HostError;
69pub use evidence::{
70 AnomalyEvidence, EvidencePack, EvidencePackPaths, MotEvidence, RedactionEvidence, ReidEvidence,
71 build_synthetic_anomaly_evidence, build_synthetic_evidence_pack, build_synthetic_mot_evidence,
72 build_synthetic_redaction_evidence, build_synthetic_reid_evidence, write_evidence_pack,
73};
74pub use integrity::{file_sha256_hex, maybe_verify_sha256, verify_file_sha256};
75pub use manifest::{ModelManifest, ResolvedModel, resolve_manifest};
76#[cfg(feature = "onnx")]
77pub use onnx_backend::{OnnxDetector, OnnxEmbedder, OnnxModel};
78pub use pipeline::HostPipeline;
79pub use preprocess::{
80 Letterbox, PreprocessConfig, crop_rgb8, letterbox_rgb8, prepare_rgb8_nchw,
81 prepare_rgb8_nchw_with_meta, resize_rgb8_nearest, rgb8_to_chw_f32,
82};
83pub use reference::{
84 ReferenceEmbedder, ReferenceFaceDetector, ReferenceHostModels, ReferencePersonDetector,
85 frame_to_rgb8,
86};
87#[cfg(feature = "download")]
88pub use registry::HttpModelFetcher;
89pub use registry::{
90 DeferredDownloadFetcher, FilesystemFetcher, ModelFetcher, ensure_cache_dir, write_cache_readme,
91};
92
93pub use sightloom::{
95 DetectorAdapter, EmbeddingTask, FrameView, IndexSession, PhotoEmbeddingAdapter, PhotoView,
96 PixelFormat, TrackEmbeddingAdapter,
97};