pub struct CameraViewJudgedPayload {
pub schema_version: u32,
pub frame_sha256: String,
pub outcome: ViewOutcome,
pub view_correction: Option<ViewCorrection>,
pub reason: Option<String>,
pub landmarks: Vec<JudgedLandmark>,
pub residual_px: Option<f64>,
}Expand description
One judgement of a print’s camera view, on one frame: one for every judgement, whatever it found and whether or not it repeats the last.
view_correction is what the frame was judged against, so it repeats
from check to check for as long as one correction stays in force;
landmarks and residual_px are what was measured on this frame.
Fields§
§schema_version: u32The version of this record: the schema’s maximum for every record
this server writes, and 1 for a record stating none, which was written
before landmarks and residual_px existed.
frame_sha256: StringThe stored frame it was judged on.
outcome: ViewOutcomeWhat it found.
view_correction: Option<ViewCorrection>The correction in force when the frame was judged; null when none was. Its landmarks are the reference this frame was compared against, found on the frame the correction was taken on rather than on this one.
reason: Option<String>Why the frame may not be drawn on: for the three refusals, and for a refit view, whose camera has moved since its calibration; null for an unshifted one.
landmarks: Vec<JudgedLandmark>Every landmark of the calibration as this frame showed it, in the calibration’s order; absent when the frame could not be searched, as one of another size or stream cannot.
residual_px: Option<f64>The RMS distance, over this frame’s visible landmarks, between where it showed them and where the judgement expected them: the correction in force’s reference, over the landmarks it names, or each landmark’s calibrated place when none is in force. Absent when no landmark it compared was visible.
Implementations§
Source§impl CameraViewJudgedPayload
impl CameraViewJudgedPayload
Sourcepub fn of(
frame_sha256: &str,
view: &ViewJudgement,
view_correction: Option<ViewCorrection>,
reason: Option<String>,
) -> Self
pub fn of( frame_sha256: &str, view: &ViewJudgement, view_correction: Option<ViewCorrection>, reason: Option<String>, ) -> Self
The record of one view judgement of the frame frame_sha256: what it
found, and every landmark the judgement measured on that frame,
against the correction in force.
Trait Implementations§
Source§impl Clone for CameraViewJudgedPayload
impl Clone for CameraViewJudgedPayload
Source§impl Debug for CameraViewJudgedPayload
impl Debug for CameraViewJudgedPayload
Source§impl<'de> Deserialize<'de> for CameraViewJudgedPayload
impl<'de> Deserialize<'de> for CameraViewJudgedPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for CameraViewJudgedPayload
impl JsonSchema for CameraViewJudgedPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CameraViewJudgedPayload
impl PartialEq for CameraViewJudgedPayload
Source§impl Sample for CameraViewJudgedPayload
impl Sample for CameraViewJudgedPayload
Source§fn sample_full() -> Self
fn sample_full() -> Self
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
Source§impl Serialize for CameraViewJudgedPayload
impl Serialize for CameraViewJudgedPayload
impl StructuralPartialEq for CameraViewJudgedPayload
Auto Trait Implementations§
impl Forget for CameraViewJudgedPayload
impl Freeze for CameraViewJudgedPayloadwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ReferenceLandmark>: Freeze,
PhantomData<JudgedLandmark>: Freeze,
impl Move for CameraViewJudgedPayload
impl RefUnwindSafe for CameraViewJudgedPayload
impl Send for CameraViewJudgedPayloadwhere
RawVecInner: Send,
impl Sync for CameraViewJudgedPayloadwhere
RawVecInner: Sync,
impl Unpin for CameraViewJudgedPayload
impl UnsafeUnpin for CameraViewJudgedPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReferenceLandmark>: UnsafeUnpin,
PhantomData<JudgedLandmark>: UnsafeUnpin,
impl UnwindSafe for CameraViewJudgedPayloadwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.