testing library

Test support for code that uses apple_vision_native.

Replace AppleVisionBindings.instance with bindings backed by fake AppleVisionHostApi and AppleVisionPlatformApi implementations to exercise the Dart API without a device.

Classes

AestheticsScoresMessage
Mirrors ImageAestheticsScoresObservation.
AnalysisMessage
Everything one AppleVisionHostApi.perform call produced.
AppleVisionBindings
The platform APIs the apple_vision_native library talks to.
AppleVisionHostApi
Registered only when Vision is available.
AppleVisionPlatformApi
Always registered.
BarcodeObservationMessage
Mirrors BarcodeObservation.
BodyPoseObservationMessage
Mirrors HumanBodyPoseObservation.
ClassificationMessage
Mirrors ClassificationObservation.
ContourMessage
One contour of a ContoursObservation.
ContoursMessage
Mirrors ContoursObservation.
DocumentListItemMessage
One item of a list inside a recognized document.
DocumentListMessage
A list inside a recognized document.
DocumentObservationMessage
Mirrors DocumentObservation, flattened to its top-level container.
DocumentSegmentationMessage
Mirrors DetectedDocumentObservation.
DocumentTableCellMessage
One cell of a table inside a recognized document.
DocumentTableMessage
A table inside a recognized document.
DocumentTextMessage
A run of text inside a recognized document.
ErrorMessage
A failure, either of one request or of the whole call.
FaceObservationMessage
Mirrors FaceObservation.
FeaturePrintMessage
Mirrors FeaturePrintObservation.
HorizonMessage
Mirrors HorizonObservation.
HumanObservationMessage
Mirrors HumanObservation.
ImageInputMessage
An image to analyze.
ImageSizeMessage
The pixel size of a decoded image, after applying its orientation.
InstanceMaskMessage
Mirrors InstanceMaskObservation.
JointMessage
Mirrors Joint.
LandmarkRegionMessage
One named region of FaceObservation.Landmarks2D.
MaskImageMessage
Raw bytes of a mask or heat map produced by Vision.
NormalizedPointMessage
A point in Vision's normalized, lower-left-origin coordinate space.
NormalizedRectMessage
A rectangle in Vision's normalized, lower-left-origin coordinate space.
PoseObservationMessage
A hand or animal pose: HumanHandPoseObservation or AnimalBodyPoseObservation.
QuadrilateralMessage
A QuadrilateralProviding observation: four corners plus their axis aligned bounding box.
RecognizedObjectMessage
Mirrors RecognizedObjectObservation.
RecognizedTextObservationMessage
Mirrors RecognizedTextObservation.
RequestMessage
One Vision request, with the options that apply to its kind.
RequestResultMessage
The outcome of one RequestMessage. Exactly one payload field is set, unless error is, in which case the request failed on its own.
SaliencyMessage
Mirrors SaliencyImageObservation.
SmudgeMessage
Mirrors SmudgeObservation.
TextCandidateMessage
One interpretation of a recognized line of text.
TextObservationMessage
Mirrors TextObservation (text rectangles, no recognition).

Enums

BarcodeCompositeTypeMessage
Mirrors BarcodeObservation.CompositeType.
BarcodeSymbologyMessage
Mirrors BarcodeSymbology.
ChiralityMessage
Mirrors HumanHandPoseObservation.Chirality.
CropAndScaleActionMessage
Mirrors ImageCropAndScaleAction.
ImageInputKindMessage
How the bytes of an image input should be interpreted.
ImageOrientationMessage
Mirrors CGImagePropertyOrientation (raw values 1 to 8, in order).
ListMarkerMessage
Mirrors DocumentObservation.Container.List.Marker.
PointsClassificationMessage
Mirrors FaceObservation.Landmarks2D.Region.PointsClassification.
RecognitionLevelMessage
Mirrors RecognizeTextRequest.RecognitionLevel.
RequestKindMessage
Every Vision request this plugin can run on a still image.
SegmentationQualityMessage
Mirrors GeneratePersonSegmentationRequest.QualityLevel.
TextAlignmentMessage
Mirrors DocumentObservation.Container.Text.Alignment.
TextDirectionMessage
Mirrors RecognizedTextObservation.Direction.