printobserver_panels/lib.rs
1//! `printobserver-panels`.
2//!
3//! Owns: what lets a print check show the agent the current layer's planned
4//! toolpath where it sits in the camera's own view — one printer's camera
5//! calibration file and its fisheye projection ([`calibration`]), the check
6//! that the camera has not moved since ([`drift`]), the per-print check that
7//! the projection lands on the printed first layer ([`alignment`]), and the
8//! check image's three panels and their drawing ([`compose`]), panel 1's
9//! plan of the current layer, its colours and its text ([`panel_one`]), what
10//! the head and gantry hide of it wherever they stand ([`occlusion`]), whether the view still matches the print's correction
11//! ([`view`]), the measurement of whether the parts grew since an earlier
12//! frame ([`growth`]), the camera's alignment judged on the empty build
13//! sheet before a print ([`sheet`]), the whole camera frame scaled to a check's bound
14//! ([`whole_frame`]), and a look at the printer's image of the whole frame over a
15//! close-up of the sheet's edges and clips ([`sheet_edges`]).
16//!
17//! May depend on: `printobserver-types`; `printobserver-vision-api`, whose
18//! validated web address the calibration's snapshot URL is held to; and
19//! `printobserver-core`, whose
20//! planned geometry — object outlines and a layer's toolpath in bed
21//! millimetres ([`printobserver_core::toolpath`]) — it draws; the core alone
22//! reads G-code, and this crate never sees a G-code line. It needs no
23//! `OpenCV`. Never an implementation crate.
24
25pub mod alignment;
26pub mod calibration;
27pub mod compose;
28pub mod drift;
29pub mod error;
30mod geometry;
31pub mod growth;
32pub mod occlusion;
33pub mod panel_one;
34pub mod sheet;
35pub mod sheet_edges;
36mod text;
37pub mod view;
38pub mod whole_frame;
39
40pub use alignment::{
41 AlignmentInputs, AlignmentVerdict, FirstLayerInputs, FirstLayerJudgement, FirstLayerVerdict,
42 InconclusiveReason, judge_first_layer, verify_first_layer_alignment,
43};
44pub use calibration::{
45 BedPose, CalibrationError, CameraCalibration, Fit, Intrinsics, Landmark, Motion, SCHEMA_VERSION,
46};
47pub use compose::{CheckImage, CheckImageInputs, compose_check_image};
48pub use error::{ComposeError, FrameField};
49pub use growth::{Growth, GrowthInputs, measure_growth};
50pub use occlusion::Occluders;
51pub use sheet::{SheetFit, SheetInputs, SheetOutline, SheetVerdict, UnjudgeableCause, fit_sheet};
52pub use sheet_edges::{LocatedBy, SheetEdges, SheetEdgesInputs, sheet_edges};
53pub use view::{
54 FoundLandmark, ReferenceLandmark, ViewCorrection, ViewJudgement, ViewModel, ViewOutcome,
55 found_landmarks, judge_found, judge_view, landmarks_in_frame,
56};
57pub use whole_frame::{WHOLE_FRAME_HEIGHT, WHOLE_FRAME_WIDTH, WholeFrame, whole_frame};