google-cloud-document_ai-v1beta3 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0c9d575f9c01541fe46b985d6386ea3f38ef540dc7a77b497df3e683ce8afc4
4
- data.tar.gz: fa25f03cb9ac13c8b3ecf738da03665ad6ec187dc3b6352087a6cd7582bef9d6
3
+ metadata.gz: f96e06f5993662b4d9d77466576f9f7f6d65ae47f546bf70e4ec5694de7760aa
4
+ data.tar.gz: ed4cd004c4dfaf3ecfc7c188d5bc7e2130063126e753d8115c7d7cf0232012ce
5
5
  SHA512:
6
- metadata.gz: 398b11a2c1f5585a1cf036dfdadf8d26eedf30fd464a559221d09a31652f63ae8abf78082ab5b722ce5af5d472c3cf0e3488cdbbbffc60ffb315cf40627087f7
7
- data.tar.gz: 5f02e1764e8e984892a1989605ea77d3f9c72c43e95056fe8f2388141ecab4fd8ef62da85643063b874ae8a27642436d7b690b2eb48ee55d22dd7690f4fd77e1
6
+ metadata.gz: cbcefbb8b3de4db4ec03976deaf9b755a84df1f30c69eb8d34f6f6b09a49d8b5b413f02c60d731c91b153ecee88d3b64734f898ab4459f008ebda7d25faed065
7
+ data.tar.gz: 2121af5cbe6c114fb5ce14d0faf79e351f476fa82b6308bfbe32bd6031071f074192e988ffef2e440d6e9d5f351d88abdf537b15c2d7de552713024d2e37bf9b
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.20.0"
24
+ VERSION = "0.21.0"
25
25
  end
26
26
  end
27
27
  end
@@ -42,8 +42,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
42
42
  optional :pages_overlap, :int32, 2
43
43
  end
44
44
  add_message "google.cloud.documentai.v1beta3.OcrConfig" do
45
+ optional :hints, :message, 2, "google.cloud.documentai.v1beta3.OcrConfig.Hints"
45
46
  optional :enable_native_pdf_parsing, :bool, 3
47
+ optional :enable_image_quality_scores, :bool, 4
46
48
  repeated :advanced_ocr_options, :string, 5
49
+ optional :enable_symbol, :bool, 6
50
+ end
51
+ add_message "google.cloud.documentai.v1beta3.OcrConfig.Hints" do
52
+ repeated :language_hints, :string, 1
47
53
  end
48
54
  end
49
55
  end
@@ -61,6 +67,7 @@ module Google
61
67
  DocumentOutputConfig::GcsOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig").msgclass
62
68
  DocumentOutputConfig::GcsOutputConfig::ShardingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig").msgclass
63
69
  OcrConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.OcrConfig").msgclass
70
+ OcrConfig::Hints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.OcrConfig.Hints").msgclass
64
71
  end
65
72
  end
66
73
  end
@@ -116,16 +116,41 @@ module Google
116
116
  end
117
117
 
118
118
  # Config for Document OCR.
119
+ # @!attribute [rw] hints
120
+ # @return [::Google::Cloud::DocumentAI::V1beta3::OcrConfig::Hints]
121
+ # Hints for the OCR model.
119
122
  # @!attribute [rw] enable_native_pdf_parsing
120
123
  # @return [::Boolean]
121
124
  # Enables special handling for PDFs with existing text information. Results
122
125
  # in better text extraction quality in such PDF inputs.
126
+ # @!attribute [rw] enable_image_quality_scores
127
+ # @return [::Boolean]
128
+ # Enables intelligent document quality scores after OCR. Can help with
129
+ # diagnosing why OCR responses are of poor quality for a given input.
130
+ # Adds additional latency comparable to regular OCR to the process call.
123
131
  # @!attribute [rw] advanced_ocr_options
124
132
  # @return [::Array<::String>]
125
133
  # A list of advanced OCR options to further fine-tune OCR behavior.
134
+ # @!attribute [rw] enable_symbol
135
+ # @return [::Boolean]
136
+ # Includes symbol level OCR information if set to true.
126
137
  class OcrConfig
127
138
  include ::Google::Protobuf::MessageExts
128
139
  extend ::Google::Protobuf::MessageExts::ClassMethods
140
+
141
+ # Hints for OCR Engine
142
+ # @!attribute [rw] language_hints
143
+ # @return [::Array<::String>]
144
+ # List of BCP-47 language codes to use for OCR. In most cases, not
145
+ # specifying it yields the best results since it enables automatic language
146
+ # detection. For languages based on the Latin alphabet, setting hints is
147
+ # not needed. In rare cases, when the language of the text in the
148
+ # image is known, setting a hint will help get better results (although it
149
+ # will be a significant hindrance if the hint is wrong).
150
+ class Hints
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
129
154
  end
130
155
  end
131
156
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-document_ai-v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common