VisionResultData class final

A result as an adapter delivers it.

Constructors

VisionResultData({required Map<String, dynamic> result, required int width, required int height, int? timestamp, Float64List? landmarks, List<int>? counts, List<(String, List<int>)>? parts})
result holds the task's fields in Google's JavaScript shape, except that masks arrive as [width, height, Float32List or Uint8List] and that packed landmarks replace the image-space landmarks' JSON lists: landmarks with counts (points per subject). Holistic packs every part into landmarks in the order of parts, each entry a part name and its points per subject.
const
VisionResultData.fromBrowser(Map<String, dynamic> json, {Float64List? landmarks})
Reads the browser worker's reply: its decoded JSON (width, height, timestamp, result, and counts or parts when the worker packed the image landmarks) with the packed landmarks it transferred.
factory

Properties

counts → List<int>?
Points per subject in landmarks.
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
Decoded input height.
final
landmarks → Float64List?
Packed image-space landmarks, five doubles per point.
final
parts → List<(String, List<int>)>?
Holistic's packed parts, in the order they appear in landmarks.
final
result → Map<String, dynamic>
The task's result fields.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → int?
The frame's timestamp in video mode.
final
width → int
Decoded input width.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited