CropHint
class CropHint extends Message
Single crop hint that is used to generate a new crop when serving an image.
Protobuf type Google\Cloud\Vision\V1\CropHint
Methods
No description
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
Confidence of this being a salient region. Range [0, 1].
Confidence of this being a salient region. Range [0, 1].
Fraction of importance of this salient region with respect to the original image.
Fraction of importance of this salient region with respect to the original image.
Details
at line 39
__construct()
at line 51
BoundingPoly
getBoundingPoly()
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
Generated from protobuf field .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
at line 63
setBoundingPoly(BoundingPoly $var)
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
Generated from protobuf field .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
at line 75
float
getConfidence()
Confidence of this being a salient region. Range [0, 1].
Generated from protobuf field float confidence = 2;
at line 86
setConfidence(float $var)
Confidence of this being a salient region. Range [0, 1].
Generated from protobuf field float confidence = 2;
at line 99
float
getImportanceFraction()
Fraction of importance of this salient region with respect to the original image.
Generated from protobuf field float importance_fraction = 3;
at line 111
setImportanceFraction(float $var)
Fraction of importance of this salient region with respect to the original image.
Generated from protobuf field float importance_fraction = 3;