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

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
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.

Returns
TypeDescription
float

setQualityScore

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getDetectedDefects

A list of detected defects.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDetectedDefects

A list of detected defects.

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