Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions crates/nvisy-engine/src/entity.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Detected entities and the leaf types their fields carry.
//! Detected entities, their labels, and their audit trail.
//!
//! [`Entity`] is the modality-generic detection record produced
//! by the analyzer and consumed by the anonymizer; [`EntityRecord`]
Expand All @@ -8,19 +8,10 @@
//! the deployment's label vocabulary. [`Provenance`] carries the
//! audit trail (which rule / model / pattern produced each
//! detection).
//!
//! Primitive value types ([`BoundingBox`], [`Confidence`],
//! [`Language`], ...) appear as leaf fields on entities and on
//! wire schemas that constrain detection.

pub use nvisy_schema::entity::{
Attribution, Entity, EntityCoRef, EntityRef, Event, EventKind, Label, LabelCatalog, LabelRef,
ModelEvent, PatternEvent, Provenance, RuleMatch,
};
pub use nvisy_schema::primitive::{
BoundingBox, Color, Confidence, ConfidenceThreshold, CountryCode, Dimensions, Dpi, Language,
LanguageProvenance, LanguageSpan, LanguageTag, Languages, PixelRegion, Point, Polygon,
TimeSpan, UnitBoundingBox,
};

pub use crate::pipeline::EntityRecord;
1 change: 1 addition & 0 deletions crates/nvisy-engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub mod entity;
pub mod modality;
pub mod plan;
mod pipeline;
pub mod primitive;
pub mod provider;

#[doc(inline)]
Expand Down
16 changes: 16 additions & 0 deletions crates/nvisy-engine/src/primitive.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! Primitive value types wire schemas carry directly.
//!
//! Bounding boxes, confidence, colors, languages, country codes,
//! time spans, and friends. Appear as leaf fields on entities,
//! on the recognition [`Scope`], on [`plan`] recognizer params,
//! and on [`policy`] operators.
//!
//! [`Scope`]: crate::Scope
//! [`plan`]: crate::plan
//! [`policy`]: crate::policy

pub use nvisy_schema::primitive::{
BoundingBox, Color, Confidence, ConfidenceThreshold, CountryCode, Dimensions, Dpi, Language,
LanguageProvenance, LanguageSpan, LanguageTag, Languages, PixelRegion, Point, Polygon,
TimeSpan, UnitBoundingBox,
};