Google Cloud Document Ai V1 Client - Class ImageQualityScores (1.0.1)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class ImageQualityScores.

Image Quality Scores for the page image

Generated from protobuf message google.cloud.documentai.v1.Document.Page.ImageQualityScores

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ quality_score float

The overall quality score. Range [0, 1] where 1 is perfect quality.

↳ detected_defects array<Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect>

A list of detected defects.

getQualityScore

The overall quality score. Range [0, 1] where 1 is perfect quality.

Generated from protobuf field float quality_score = 1;

Returns
TypeDescription
float

setQualityScore

The overall quality score. Range [0, 1] where 1 is perfect quality.

Generated from protobuf field float quality_score = 1;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getDetectedDefects

A list of detected defects.

Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDetectedDefects

A list of detected defects.

Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
NameDescription
var array<Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect>
Returns
TypeDescription
$this