Skip to main content

Crate printobserver_panels

Crate printobserver_panels 

Source
Expand description

printobserver-panels.

Owns: what lets a print check show the agent the current layer’s planned toolpath where it sits in the camera’s own view — one printer’s camera calibration file and its fisheye projection (calibration), the check that the camera has not moved since (drift), the per-print check that the projection lands on the printed first layer (alignment), and the check image’s three panels and their drawing (compose), panel 1’s plan of the current layer, its colours and its text (panel_one), what the head and gantry hide of it wherever they stand (occlusion), whether the view still matches the print’s correction (view), the measurement of whether the parts grew since an earlier frame (growth), the camera’s alignment judged on the empty build sheet before a print (sheet), the whole camera frame scaled to a check’s bound ([whole_frame]), and a look at the printer’s image of the whole frame over a close-up of the sheet’s edges and clips ([sheet_edges]).

May depend on: printobserver-types; printobserver-vision-api, whose validated web address the calibration’s snapshot URL is held to; and printobserver-core, whose planned geometry — object outlines and a layer’s toolpath in bed millimetres (printobserver_core::toolpath) — it draws; the core alone reads G-code, and this crate never sees a G-code line. It needs no OpenCV. Never an implementation crate.

Re-exports§

pub use alignment::AlignmentInputs;
pub use alignment::AlignmentVerdict;
pub use alignment::FirstLayerInputs;
pub use alignment::FirstLayerJudgement;
pub use alignment::FirstLayerVerdict;
pub use alignment::InconclusiveReason;
pub use alignment::judge_first_layer;
pub use alignment::verify_first_layer_alignment;
pub use calibration::BedPose;
pub use calibration::CalibrationError;
pub use calibration::CameraCalibration;
pub use calibration::Fit;
pub use calibration::Intrinsics;
pub use calibration::Landmark;
pub use calibration::Motion;
pub use calibration::SCHEMA_VERSION;
pub use compose::CheckImage;
pub use compose::CheckImageInputs;
pub use compose::compose_check_image;
pub use error::ComposeError;
pub use error::FrameField;
pub use growth::Growth;
pub use growth::GrowthInputs;
pub use growth::measure_growth;
pub use occlusion::Occluders;
pub use sheet::SheetFit;
pub use sheet::SheetInputs;
pub use sheet::SheetOutline;
pub use sheet::SheetVerdict;
pub use sheet::UnjudgeableCause;
pub use sheet::fit_sheet;
pub use sheet_edges::LocatedBy;
pub use sheet_edges::SheetEdges;
pub use sheet_edges::SheetEdgesInputs;
pub use sheet_edges::sheet_edges;
pub use view::FoundLandmark;
pub use view::ReferenceLandmark;
pub use view::ViewCorrection;
pub use view::ViewJudgement;
pub use view::ViewModel;
pub use view::ViewOutcome;
pub use view::found_landmarks;
pub use view::judge_found;
pub use view::judge_view;
pub use view::landmarks_in_frame;
pub use whole_frame::WHOLE_FRAME_HEIGHT;
pub use whole_frame::WHOLE_FRAME_WIDTH;
pub use whole_frame::WholeFrame;
pub use whole_frame::whole_frame;

Modules§

alignment
The per-print check that the projection lands on the printed first layer.
calibration
One printer’s camera calibration: the file tools/camera-calibration writes, validated as it is read, and the projection it defines.
compose
The check image, as one JPEG: panels 1 and 2 at 1024x576, each under a 40 px label band; and under them panel 3 at PREVIOUS_WIDTHxPREVIOUS_HEIGHT, its label in the column beside it. Panel 3 is nine sixteenths of a full panel’s width, the least that still shows a part’s place beside panel 1, so that the image costs a turn fewer image tokens than the three full panels it replaced. The image carries no text of the layer’s: what panel 1’s drawing means is told in the turn’s own text, from CheckImage::text.
drift
Whether the camera has moved since it was calibrated, and whether a frame is the calibration’s at all.
error
Why a check image or an alignment verdict could not be made.
growth
Whether the parts the current layer lays have grown since an earlier frame, measured rather than judged by eye.
occlusion
What can stand between the camera and the plane the nozzle prints on: the print head, and the gantry that carries it.
panel_one
Panel 1: the current frame with the current layer’s whole plan drawn over it, split where the job’s file position stands; and the lines the turn is told of it, saying what the drawing shows and what each colour means. The image itself carries no text of the layer’s.
sheet
Whether the camera is still aligned with its calibration, judged on one frame of the empty build sheet, before anything is printed.
sheet_edges
The image a look at the printer is shown: the whole camera frame, and under it a close-up of the build sheet’s edges and clips.
view
Whether the camera’s view still matches what a check draws through.
whole_frame
A check’s image of a whole camera frame: the frame scaled whole to fit WHOLE_FRAME_WIDTH by WHOLE_FRAME_HEIGHT, never cropped and never enlarged.