diff --git a/docs/dyn/documentai_v1.projects.locations.processors.html b/docs/dyn/documentai_v1.projects.locations.processors.html index c2fe92f584a..53248258a31 100644 --- a/docs/dyn/documentai_v1.projects.locations.processors.html +++ b/docs/dyn/documentai_v1.projects.locations.processors.html @@ -738,6 +738,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -1552,6 +1561,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html b/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html index f50748ebf04..9834961ccdf 100644 --- a/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html +++ b/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html @@ -461,6 +461,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html b/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html index 61a24894478..c8a389ff59a 100644 --- a/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html +++ b/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html @@ -647,6 +647,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -1461,6 +1470,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1beta2.projects.documents.html b/docs/dyn/documentai_v1beta2.projects.documents.html index 31e115ff455..3d7ac1a7b45 100644 --- a/docs/dyn/documentai_v1beta2.projects.documents.html +++ b/docs/dyn/documentai_v1beta2.projects.documents.html @@ -604,6 +604,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1beta2.projects.locations.documents.html b/docs/dyn/documentai_v1beta2.projects.locations.documents.html index 11f8a6e2817..03f1d829747 100644 --- a/docs/dyn/documentai_v1beta2.projects.locations.documents.html +++ b/docs/dyn/documentai_v1beta2.projects.locations.documents.html @@ -604,6 +604,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1beta3.projects.locations.processors.html b/docs/dyn/documentai_v1beta3.projects.locations.processors.html index 5a7e170d6ba..bad9bb4339b 100644 --- a/docs/dyn/documentai_v1beta3.projects.locations.processors.html +++ b/docs/dyn/documentai_v1beta3.projects.locations.processors.html @@ -746,6 +746,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -1545,6 +1554,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -2359,6 +2377,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html b/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html index 26ce64bd7fa..93c5a8df0a0 100644 --- a/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html +++ b/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html @@ -409,6 +409,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -1259,6 +1268,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html b/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html index 42ce0ea1a2a..00c522d7dcc 100644 --- a/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html +++ b/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html @@ -655,6 +655,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -1454,6 +1463,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. @@ -2268,6 +2286,15 @@

Method Details

"mimeType": "A String", # Encoding mime type for the image. "width": 42, # Width of the image in pixels. }, + "imageQualityScores": { # Image Quality Scores for the page image # Image Quality Scores. + "detectedDefects": [ # A list of detected defects. + { # Image Quality Defects + "confidence": 3.14, # Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. + "type": "A String", # Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small", "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare" + }, + ], + "qualityScore": 3.14, # The overall quality score. Range [0, 1] where 1 is perfect quality. + }, "layout": { # Visual element describing a layout unit on a page. # Layout for the page. "boundingPoly": { # A bounding polygon for the detected image annotation. # The bounding polygon for the Layout. "normalizedVertices": [ # The bounding polygon normalized vertices. diff --git a/googleapiclient/discovery_cache/documents/documentai.v1.json b/googleapiclient/discovery_cache/documents/documentai.v1.json index e9c3eefaeec..e04885a02c1 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1.json @@ -1069,7 +1069,7 @@ } } }, - "revision": "20220919", + "revision": "20220928", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -2325,6 +2325,10 @@ "$ref": "GoogleCloudDocumentaiV1DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", "description": "Layout for the page." @@ -2598,6 +2602,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1DocumentPageLayout", @@ -4254,6 +4293,10 @@ "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", "description": "Layout for the page." @@ -4527,6 +4570,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", @@ -5512,6 +5590,10 @@ "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", "description": "Layout for the page." @@ -5785,6 +5867,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", diff --git a/googleapiclient/discovery_cache/documents/documentai.v1beta2.json b/googleapiclient/discovery_cache/documents/documentai.v1beta2.json index 695a43b97e5..80b4a8b3c00 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1beta2.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1beta2.json @@ -292,7 +292,7 @@ } } }, - "revision": "20220919", + "revision": "20220928", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1673,6 +1673,10 @@ "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", "description": "Layout for the page." @@ -1946,6 +1950,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", @@ -2956,6 +2995,10 @@ "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", "description": "Layout for the page." @@ -3229,6 +3272,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", diff --git a/googleapiclient/discovery_cache/documents/documentai.v1beta3.json b/googleapiclient/discovery_cache/documents/documentai.v1beta3.json index 61cd930fdd8..92efb664ace 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1beta3.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1beta3.json @@ -836,7 +836,7 @@ } } }, - "revision": "20220919", + "revision": "20220928", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -2217,6 +2217,10 @@ "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", "description": "Layout for the page." @@ -2490,6 +2494,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", @@ -3475,6 +3514,10 @@ "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", "description": "Layout for the page." @@ -3748,6 +3791,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", @@ -4991,6 +5069,10 @@ "$ref": "GoogleCloudDocumentaiV1beta3DocumentPageImage", "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores", + "description": "Image Quality Scores." + }, "layout": { "$ref": "GoogleCloudDocumentaiV1beta3DocumentPageLayout", "description": "Layout for the page." @@ -5264,6 +5346,41 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores": { + "description": "Image Quality Scores for the page image", + "id": "GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores", + "properties": { + "detectedDefects": { + "description": "A list of detected defects.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect" + }, + "type": "array" + }, + "qualityScore": { + "description": "The overall quality score. Range [0, 1] where 1 is perfect quality.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect", + "properties": { + "confidence": { + "description": "Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.", + "format": "float", + "type": "number" + }, + "type": { + "description": "Name of the defect type. Supported values are \"quality/defect_blurry\", \"quality/defect_noisy\", \"quality/defect_dark\", \"quality/defect_faint\", \"quality/defect_text_too_small\", \"quality/defect_document_cutoff\", \"quality/defect_text_cutoff\", \"quality/defect_glare\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentPageLayout": { "description": "Visual element describing a layout unit on a page.", "id": "GoogleCloudDocumentaiV1beta3DocumentPageLayout",