Google Cloud Document Ai V1 Client - Class ImageQualityScores (1.13.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

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page

Methods

__construct

Constructor.

Parameters
Name Description
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.

Returns
Type Description
float

setQualityScore

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

Parameter
Name Description
var float
Returns
Type Description
$this

getDetectedDefects

A list of detected defects.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDetectedDefects

A list of detected defects.

Parameter
Name Description
var array<Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect>
Returns
Type Description
$this