CropHint class

Single crop hint that is used to generate a new crop when serving an image.

Annotations
  • @JsonSerializable()

Constructors

CropHint({required BoundingPoly boundingPoly, required double confidence, required double importanceFraction})
CropHint.fromJson(Map<String, dynamic> json)
factory

Properties

boundingPoly BoundingPoly
The bounding polygon for the crop region. The coordinates of the bounding box are in the original image's scale.
final
confidence double
Confidence of this being a salient region. Range [0, 1].
final
hashCode int
The hash code for this object.
no setterinherited
importanceFraction double
Fraction of importance of this salient region with respect to the original image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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