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 | |
|---|---|
| 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.
Generated from protobuf field float quality_score = 1;
| Returns | |
|---|---|
| Type | Description |
float |
|
setQualityScore
The overall quality score. Range [0, 1] where 1 is perfect quality.
Generated from protobuf field float quality_score = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDetectedDefects
A list of detected defects.
Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|