BoxAnswer class final
Answer to a Box question: the edges of a box around what its
instructions describe, each a fraction of the image's size measured from
the top-left corner. Multiply by the image's width or height in pixels to
draw or crop it.
Experimental, like the Box question. The edges are passed through
exactly as returned by the API, not clamped or reordered.
Constructors
Properties
- bottom → double
-
Bottom edge, as a fraction of the image's height.
final
- confidence → double
-
How sure the model is of the box, in
[0, 1]. There is no recommended threshold yet; tune one on your own images.final - hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
The box's height, as a fraction of the image's height.
no setter
- left → double
-
Left edge, as a fraction of the image's width.
final
- right → double
-
Right edge, as a fraction of the image's width.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double
-
Top edge, as a fraction of the image's height.
final
- type → JudgementType
-
Which judgement this answers.
no setterinherited
- width → double
-
The box's width, as a fraction of the image's width.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Encodes this answer in the API's JSON shape. The
typeentry is written here so it can never drift from type; subtypes add the rest.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override