class CropHintsParams extends Message

Parameters for crop hints annotation request.

Protobuf type Google\Cloud\Vision\V1\CropHintsParams

Methods

__construct()

No description

RepeatedField
getAspectRatios()

Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.

setAspectRatios(array|RepeatedField $var)

Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.

Details

at line 30
__construct()

at line 46
RepeatedField getAspectRatios()

Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.

Generated from protobuf field repeated float aspect_ratios = 1;

Return Value

RepeatedField

at line 62
setAspectRatios(array|RepeatedField $var)

Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.

Generated from protobuf field repeated float aspect_ratios = 1;

Parameters

array|RepeatedField $var