Cloud Vision V1 Client - Class CropHintsParams (2.1.1)

Reference documentation and code samples for the Cloud Vision V1 Client class CropHintsParams.

Parameters for crop hints annotation request.

Generated from protobuf message google.cloud.vision.v1.CropHintsParams

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ aspect_ratios
array

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.

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.

Returns
Type
Description

setAspectRatios

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.

Parameter
Name
Description
var
float[]
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: