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 \ PageMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ quality_score |
float
The overall quality score. Range |
↳ 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 |