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

__construct()

No description

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.

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.

float
getConfidence()

Confidence of this being a salient region. Range [0, 1].

setConfidence(float $var)

Confidence of this being a salient region. Range [0, 1].

float
getImportanceFraction()

Fraction of importance of this salient region with respect to the original image.

setImportanceFraction(float $var)

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;

Return Value

BoundingPoly

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;

Parameters

BoundingPoly $var

at line 75
float getConfidence()

Confidence of this being a salient region. Range [0, 1].

Generated from protobuf field float confidence = 2;

Return Value

float

at line 86
setConfidence(float $var)

Confidence of this being a salient region. Range [0, 1].

Generated from protobuf field float confidence = 2;

Parameters

float $var

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;

Return Value

float

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;

Parameters

float $var