aws-sdk-textract 1.39.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-textract/client.rb +106 -13
- data/lib/aws-sdk-textract/client_api.rb +19 -0
- data/lib/aws-sdk-textract/types.rb +76 -14
- data/lib/aws-sdk-textract.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754294e61f5f0f0e9cb1c875d4cbe5a4e06712a19c4b73a52c7541884626c389
|
4
|
+
data.tar.gz: 601f69a067b54498668aa5a3abbaef3b9db593dd795e5c3bf007df884efa7025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456de2e7293e98f7b235864ff26685aa482900047de89c7f16d854fe4221f358a55b6aa93fb14aa521404034ef4bdb05233aa4f8191f322c95cb2539d87da171
|
7
|
+
data.tar.gz: 00a3a8cc34f9e3235cc724715d79e4e48c84067e75cc2a721bc41efa8cadc0eed1abeb6e6687f9f9333c51c99a7e6733ddb9bf49858f41a8f36d6b7568683346
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.40.0 (2022-10-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces additional support for 30+ normalized fields such as vendor address and currency. It also includes OCR output in the response and accuracy improvements for the already supported fields in previous version
|
8
|
+
|
4
9
|
1.39.0 (2022-10-25)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.40.0
|
@@ -397,10 +397,12 @@ module Aws::Textract
|
|
397
397
|
# document are returned (including text that doesn't have a
|
398
398
|
# relationship with the value of `FeatureTypes`).
|
399
399
|
#
|
400
|
-
# *
|
401
|
-
#
|
402
|
-
#
|
403
|
-
#
|
400
|
+
# * Query. A QUERY Block object contains the query text, alias and link
|
401
|
+
# to the associated Query results block object.
|
402
|
+
#
|
403
|
+
# * Query Result. A QUERY\_RESULT Block object contains the answer to
|
404
|
+
# the query and an ID that connects it to the query asked. This Block
|
405
|
+
# also contains a confidence score.
|
404
406
|
#
|
405
407
|
# Selection elements such as check boxes and option buttons (radio
|
406
408
|
# buttons) can be detected in form data and in tables. A
|
@@ -535,7 +537,7 @@ module Aws::Textract
|
|
535
537
|
# financially related relationships between text.
|
536
538
|
#
|
537
539
|
# Information is returned as `ExpenseDocuments` and seperated as
|
538
|
-
# follows
|
540
|
+
# follows:
|
539
541
|
#
|
540
542
|
# * `LineItemGroups`- A data set containing `LineItems` which store
|
541
543
|
# information about the lines of text, such as an item purchased and
|
@@ -614,6 +616,12 @@ module Aws::Textract
|
|
614
616
|
# resp.expense_documents[0].summary_fields[0].value_detection.geometry.polygon[0].y #=> Float
|
615
617
|
# resp.expense_documents[0].summary_fields[0].value_detection.confidence #=> Float
|
616
618
|
# resp.expense_documents[0].summary_fields[0].page_number #=> Integer
|
619
|
+
# resp.expense_documents[0].summary_fields[0].currency.code #=> String
|
620
|
+
# resp.expense_documents[0].summary_fields[0].currency.confidence #=> Float
|
621
|
+
# resp.expense_documents[0].summary_fields[0].group_properties #=> Array
|
622
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].types #=> Array
|
623
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].types[0] #=> String
|
624
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].id #=> String
|
617
625
|
# resp.expense_documents[0].line_item_groups #=> Array
|
618
626
|
# resp.expense_documents[0].line_item_groups[0].line_item_group_index #=> Integer
|
619
627
|
# resp.expense_documents[0].line_item_groups[0].line_items #=> Array
|
@@ -639,6 +647,41 @@ module Aws::Textract
|
|
639
647
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].value_detection.geometry.polygon[0].y #=> Float
|
640
648
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].value_detection.confidence #=> Float
|
641
649
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].page_number #=> Integer
|
650
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].currency.code #=> String
|
651
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].currency.confidence #=> Float
|
652
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties #=> Array
|
653
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types #=> Array
|
654
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types[0] #=> String
|
655
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].id #=> String
|
656
|
+
# resp.expense_documents[0].blocks #=> Array
|
657
|
+
# resp.expense_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT"
|
658
|
+
# resp.expense_documents[0].blocks[0].confidence #=> Float
|
659
|
+
# resp.expense_documents[0].blocks[0].text #=> String
|
660
|
+
# resp.expense_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
|
661
|
+
# resp.expense_documents[0].blocks[0].row_index #=> Integer
|
662
|
+
# resp.expense_documents[0].blocks[0].column_index #=> Integer
|
663
|
+
# resp.expense_documents[0].blocks[0].row_span #=> Integer
|
664
|
+
# resp.expense_documents[0].blocks[0].column_span #=> Integer
|
665
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.width #=> Float
|
666
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.height #=> Float
|
667
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.left #=> Float
|
668
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.top #=> Float
|
669
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon #=> Array
|
670
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon[0].x #=> Float
|
671
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon[0].y #=> Float
|
672
|
+
# resp.expense_documents[0].blocks[0].id #=> String
|
673
|
+
# resp.expense_documents[0].blocks[0].relationships #=> Array
|
674
|
+
# resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
|
675
|
+
# resp.expense_documents[0].blocks[0].relationships[0].ids #=> Array
|
676
|
+
# resp.expense_documents[0].blocks[0].relationships[0].ids[0] #=> String
|
677
|
+
# resp.expense_documents[0].blocks[0].entity_types #=> Array
|
678
|
+
# resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
|
679
|
+
# resp.expense_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
|
680
|
+
# resp.expense_documents[0].blocks[0].page #=> Integer
|
681
|
+
# resp.expense_documents[0].blocks[0].query.text #=> String
|
682
|
+
# resp.expense_documents[0].blocks[0].query.alias #=> String
|
683
|
+
# resp.expense_documents[0].blocks[0].query.pages #=> Array
|
684
|
+
# resp.expense_documents[0].blocks[0].query.pages[0] #=> String
|
642
685
|
#
|
643
686
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeExpense AWS API Documentation
|
644
687
|
#
|
@@ -706,9 +749,9 @@ module Aws::Textract
|
|
706
749
|
|
707
750
|
# Detects text in the input document. Amazon Textract can detect lines
|
708
751
|
# of text and the words that make up a line of text. The input document
|
709
|
-
# must be
|
710
|
-
# `DetectDocumentText` returns the detected text in an array of
|
711
|
-
# objects.
|
752
|
+
# must be in one of the following image formats: JPEG, PNG, PDF, or
|
753
|
+
# TIFF. `DetectDocumentText` returns the detected text in an array of
|
754
|
+
# Block objects.
|
712
755
|
#
|
713
756
|
# Each document page has as an associated `Block` of type PAGE. Each
|
714
757
|
# PAGE `Block` object is the parent of LINE `Block` objects that
|
@@ -828,10 +871,19 @@ module Aws::Textract
|
|
828
871
|
# relationship with the value of the `StartDocumentAnalysis`
|
829
872
|
# `FeatureTypes` input parameter).
|
830
873
|
#
|
831
|
-
# *
|
832
|
-
#
|
833
|
-
#
|
834
|
-
#
|
874
|
+
# * Query. A QUERY Block object contains the query text, alias and link
|
875
|
+
# to the associated Query results block object.
|
876
|
+
#
|
877
|
+
# * Query Results. A QUERY\_RESULT Block object contains the answer to
|
878
|
+
# the query and an ID that connects it to the query asked. This Block
|
879
|
+
# also contains a confidence score.
|
880
|
+
#
|
881
|
+
# <note markdown="1"> While processing a document with queries, look out for
|
882
|
+
# `INVALID_REQUEST_PARAMETERS` output. This indicates that either the
|
883
|
+
# per page query limit has been exceeded or that the operation is trying
|
884
|
+
# to query a page in the document which doesn’t exist.
|
885
|
+
#
|
886
|
+
# </note>
|
835
887
|
#
|
836
888
|
# Selection elements such as check boxes and option buttons (radio
|
837
889
|
# buttons) can be detected in form data and in tables. A
|
@@ -1152,6 +1204,12 @@ module Aws::Textract
|
|
1152
1204
|
# resp.expense_documents[0].summary_fields[0].value_detection.geometry.polygon[0].y #=> Float
|
1153
1205
|
# resp.expense_documents[0].summary_fields[0].value_detection.confidence #=> Float
|
1154
1206
|
# resp.expense_documents[0].summary_fields[0].page_number #=> Integer
|
1207
|
+
# resp.expense_documents[0].summary_fields[0].currency.code #=> String
|
1208
|
+
# resp.expense_documents[0].summary_fields[0].currency.confidence #=> Float
|
1209
|
+
# resp.expense_documents[0].summary_fields[0].group_properties #=> Array
|
1210
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].types #=> Array
|
1211
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].types[0] #=> String
|
1212
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].id #=> String
|
1155
1213
|
# resp.expense_documents[0].line_item_groups #=> Array
|
1156
1214
|
# resp.expense_documents[0].line_item_groups[0].line_item_group_index #=> Integer
|
1157
1215
|
# resp.expense_documents[0].line_item_groups[0].line_items #=> Array
|
@@ -1177,6 +1235,41 @@ module Aws::Textract
|
|
1177
1235
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].value_detection.geometry.polygon[0].y #=> Float
|
1178
1236
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].value_detection.confidence #=> Float
|
1179
1237
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].page_number #=> Integer
|
1238
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].currency.code #=> String
|
1239
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].currency.confidence #=> Float
|
1240
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties #=> Array
|
1241
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types #=> Array
|
1242
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types[0] #=> String
|
1243
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].id #=> String
|
1244
|
+
# resp.expense_documents[0].blocks #=> Array
|
1245
|
+
# resp.expense_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT"
|
1246
|
+
# resp.expense_documents[0].blocks[0].confidence #=> Float
|
1247
|
+
# resp.expense_documents[0].blocks[0].text #=> String
|
1248
|
+
# resp.expense_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
|
1249
|
+
# resp.expense_documents[0].blocks[0].row_index #=> Integer
|
1250
|
+
# resp.expense_documents[0].blocks[0].column_index #=> Integer
|
1251
|
+
# resp.expense_documents[0].blocks[0].row_span #=> Integer
|
1252
|
+
# resp.expense_documents[0].blocks[0].column_span #=> Integer
|
1253
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.width #=> Float
|
1254
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.height #=> Float
|
1255
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.left #=> Float
|
1256
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.top #=> Float
|
1257
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon #=> Array
|
1258
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon[0].x #=> Float
|
1259
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon[0].y #=> Float
|
1260
|
+
# resp.expense_documents[0].blocks[0].id #=> String
|
1261
|
+
# resp.expense_documents[0].blocks[0].relationships #=> Array
|
1262
|
+
# resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
|
1263
|
+
# resp.expense_documents[0].blocks[0].relationships[0].ids #=> Array
|
1264
|
+
# resp.expense_documents[0].blocks[0].relationships[0].ids[0] #=> String
|
1265
|
+
# resp.expense_documents[0].blocks[0].entity_types #=> Array
|
1266
|
+
# resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
|
1267
|
+
# resp.expense_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
|
1268
|
+
# resp.expense_documents[0].blocks[0].page #=> Integer
|
1269
|
+
# resp.expense_documents[0].blocks[0].query.text #=> String
|
1270
|
+
# resp.expense_documents[0].blocks[0].query.alias #=> String
|
1271
|
+
# resp.expense_documents[0].blocks[0].query.pages #=> Array
|
1272
|
+
# resp.expense_documents[0].blocks[0].query.pages[0] #=> String
|
1180
1273
|
# resp.warnings #=> Array
|
1181
1274
|
# resp.warnings[0].error_code #=> String
|
1182
1275
|
# resp.warnings[0].pages #=> Array
|
@@ -1531,7 +1624,7 @@ module Aws::Textract
|
|
1531
1624
|
params: params,
|
1532
1625
|
config: config)
|
1533
1626
|
context[:gem_name] = 'aws-sdk-textract'
|
1534
|
-
context[:gem_version] = '1.
|
1627
|
+
context[:gem_version] = '1.40.0'
|
1535
1628
|
Seahorse::Client::Request.new(handlers, context)
|
1536
1629
|
end
|
1537
1630
|
|
@@ -39,11 +39,14 @@ module Aws::Textract
|
|
39
39
|
EntityType = Shapes::StringShape.new(name: 'EntityType')
|
40
40
|
EntityTypes = Shapes::ListShape.new(name: 'EntityTypes')
|
41
41
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
42
|
+
ExpenseCurrency = Shapes::StructureShape.new(name: 'ExpenseCurrency')
|
42
43
|
ExpenseDetection = Shapes::StructureShape.new(name: 'ExpenseDetection')
|
43
44
|
ExpenseDocument = Shapes::StructureShape.new(name: 'ExpenseDocument')
|
44
45
|
ExpenseDocumentList = Shapes::ListShape.new(name: 'ExpenseDocumentList')
|
45
46
|
ExpenseField = Shapes::StructureShape.new(name: 'ExpenseField')
|
46
47
|
ExpenseFieldList = Shapes::ListShape.new(name: 'ExpenseFieldList')
|
48
|
+
ExpenseGroupProperty = Shapes::StructureShape.new(name: 'ExpenseGroupProperty')
|
49
|
+
ExpenseGroupPropertyList = Shapes::ListShape.new(name: 'ExpenseGroupPropertyList')
|
47
50
|
ExpenseType = Shapes::StructureShape.new(name: 'ExpenseType')
|
48
51
|
FeatureType = Shapes::StringShape.new(name: 'FeatureType')
|
49
52
|
FeatureTypes = Shapes::ListShape.new(name: 'FeatureTypes')
|
@@ -121,6 +124,7 @@ module Aws::Textract
|
|
121
124
|
StartExpenseAnalysisResponse = Shapes::StructureShape.new(name: 'StartExpenseAnalysisResponse')
|
122
125
|
StatusMessage = Shapes::StringShape.new(name: 'StatusMessage')
|
123
126
|
String = Shapes::StringShape.new(name: 'String')
|
127
|
+
StringList = Shapes::ListShape.new(name: 'StringList')
|
124
128
|
TextType = Shapes::StringShape.new(name: 'TextType')
|
125
129
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
126
130
|
UInteger = Shapes::IntegerShape.new(name: 'UInteger')
|
@@ -216,6 +220,10 @@ module Aws::Textract
|
|
216
220
|
|
217
221
|
EntityTypes.member = Shapes::ShapeRef.new(shape: EntityType)
|
218
222
|
|
223
|
+
ExpenseCurrency.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "Code"))
|
224
|
+
ExpenseCurrency.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
225
|
+
ExpenseCurrency.struct_class = Types::ExpenseCurrency
|
226
|
+
|
219
227
|
ExpenseDetection.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
|
220
228
|
ExpenseDetection.add_member(:geometry, Shapes::ShapeRef.new(shape: Geometry, location_name: "Geometry"))
|
221
229
|
ExpenseDetection.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
@@ -224,6 +232,7 @@ module Aws::Textract
|
|
224
232
|
ExpenseDocument.add_member(:expense_index, Shapes::ShapeRef.new(shape: UInteger, location_name: "ExpenseIndex"))
|
225
233
|
ExpenseDocument.add_member(:summary_fields, Shapes::ShapeRef.new(shape: ExpenseFieldList, location_name: "SummaryFields"))
|
226
234
|
ExpenseDocument.add_member(:line_item_groups, Shapes::ShapeRef.new(shape: LineItemGroupList, location_name: "LineItemGroups"))
|
235
|
+
ExpenseDocument.add_member(:blocks, Shapes::ShapeRef.new(shape: BlockList, location_name: "Blocks"))
|
227
236
|
ExpenseDocument.struct_class = Types::ExpenseDocument
|
228
237
|
|
229
238
|
ExpenseDocumentList.member = Shapes::ShapeRef.new(shape: ExpenseDocument)
|
@@ -232,10 +241,18 @@ module Aws::Textract
|
|
232
241
|
ExpenseField.add_member(:label_detection, Shapes::ShapeRef.new(shape: ExpenseDetection, location_name: "LabelDetection"))
|
233
242
|
ExpenseField.add_member(:value_detection, Shapes::ShapeRef.new(shape: ExpenseDetection, location_name: "ValueDetection"))
|
234
243
|
ExpenseField.add_member(:page_number, Shapes::ShapeRef.new(shape: UInteger, location_name: "PageNumber"))
|
244
|
+
ExpenseField.add_member(:currency, Shapes::ShapeRef.new(shape: ExpenseCurrency, location_name: "Currency"))
|
245
|
+
ExpenseField.add_member(:group_properties, Shapes::ShapeRef.new(shape: ExpenseGroupPropertyList, location_name: "GroupProperties"))
|
235
246
|
ExpenseField.struct_class = Types::ExpenseField
|
236
247
|
|
237
248
|
ExpenseFieldList.member = Shapes::ShapeRef.new(shape: ExpenseField)
|
238
249
|
|
250
|
+
ExpenseGroupProperty.add_member(:types, Shapes::ShapeRef.new(shape: StringList, location_name: "Types"))
|
251
|
+
ExpenseGroupProperty.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
|
252
|
+
ExpenseGroupProperty.struct_class = Types::ExpenseGroupProperty
|
253
|
+
|
254
|
+
ExpenseGroupPropertyList.member = Shapes::ShapeRef.new(shape: ExpenseGroupProperty)
|
255
|
+
|
239
256
|
ExpenseType.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
|
240
257
|
ExpenseType.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
241
258
|
ExpenseType.struct_class = Types::ExpenseType
|
@@ -427,6 +444,8 @@ module Aws::Textract
|
|
427
444
|
StartExpenseAnalysisResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
428
445
|
StartExpenseAnalysisResponse.struct_class = Types::StartExpenseAnalysisResponse
|
429
446
|
|
447
|
+
StringList.member = Shapes::ShapeRef.new(shape: String)
|
448
|
+
|
430
449
|
ThrottlingException.struct_class = Types::ThrottlingException
|
431
450
|
|
432
451
|
UnsupportedDocumentException.struct_class = Types::UnsupportedDocumentException
|
@@ -332,7 +332,7 @@ module Aws::Textract
|
|
332
332
|
# status of the selection element.
|
333
333
|
#
|
334
334
|
# * *QUERY* - A question asked during the call of AnalyzeDocument.
|
335
|
-
# Contains an alias and an ID that
|
335
|
+
# Contains an alias and an ID that attaches it to its answer.
|
336
336
|
#
|
337
337
|
# * *QUERY\_RESULT* - A response to a question asked during the call
|
338
338
|
# of analyze document. Comes with an alias and ID for ease of
|
@@ -422,13 +422,14 @@ module Aws::Textract
|
|
422
422
|
#
|
423
423
|
# @!attribute [rw] page
|
424
424
|
# The page on which a block was detected. `Page` is returned by
|
425
|
-
# asynchronous operations. Page values greater than 1
|
426
|
-
# returned for multipage documents that are in PDF or TIFF
|
427
|
-
# scanned image (JPEG/PNG)
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
425
|
+
# synchronous and asynchronous operations. Page values greater than 1
|
426
|
+
# are only returned for multipage documents that are in PDF or TIFF
|
427
|
+
# format. A scanned image (JPEG/PNG) provided to an asynchronous
|
428
|
+
# operation, even if it contains multiple document pages, is
|
429
|
+
# considered a single-page document. This means that for scanned
|
430
|
+
# images the value of `Page` is always 1. Synchronous operations
|
431
|
+
# operations will also return a `Page` value of 1 because every input
|
432
|
+
# document is considered to be a single-page document.
|
432
433
|
# @return [Integer]
|
433
434
|
#
|
434
435
|
# @!attribute [rw] query
|
@@ -670,6 +671,25 @@ module Aws::Textract
|
|
670
671
|
#
|
671
672
|
class DocumentTooLargeException < Aws::EmptyStructure; end
|
672
673
|
|
674
|
+
# Returns the kind of currency detected.
|
675
|
+
#
|
676
|
+
# @!attribute [rw] code
|
677
|
+
# Currency code for detected currency.
|
678
|
+
# @return [String]
|
679
|
+
#
|
680
|
+
# @!attribute [rw] confidence
|
681
|
+
# Percentage confideence in the detected currency.
|
682
|
+
# @return [Float]
|
683
|
+
#
|
684
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseCurrency AWS API Documentation
|
685
|
+
#
|
686
|
+
class ExpenseCurrency < Struct.new(
|
687
|
+
:code,
|
688
|
+
:confidence)
|
689
|
+
SENSITIVE = []
|
690
|
+
include Aws::Structure
|
691
|
+
end
|
692
|
+
|
673
693
|
# An object used to store information about the Value or Label detected
|
674
694
|
# by Amazon Textract.
|
675
695
|
#
|
@@ -713,12 +733,18 @@ module Aws::Textract
|
|
713
733
|
# `LineItems`.
|
714
734
|
# @return [Array<Types::LineItemGroup>]
|
715
735
|
#
|
736
|
+
# @!attribute [rw] blocks
|
737
|
+
# This is a block object, the same as reported when DetectDocumentText
|
738
|
+
# is run on a document. It provides word level recognition of text.
|
739
|
+
# @return [Array<Types::Block>]
|
740
|
+
#
|
716
741
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseDocument AWS API Documentation
|
717
742
|
#
|
718
743
|
class ExpenseDocument < Struct.new(
|
719
744
|
:expense_index,
|
720
745
|
:summary_fields,
|
721
|
-
:line_item_groups
|
746
|
+
:line_item_groups,
|
747
|
+
:blocks)
|
722
748
|
SENSITIVE = []
|
723
749
|
include Aws::Structure
|
724
750
|
end
|
@@ -744,13 +770,48 @@ module Aws::Textract
|
|
744
770
|
# The page number the value was detected on.
|
745
771
|
# @return [Integer]
|
746
772
|
#
|
773
|
+
# @!attribute [rw] currency
|
774
|
+
# Shows the kind of currency, both the code and confidence associated
|
775
|
+
# with any monatary value detected.
|
776
|
+
# @return [Types::ExpenseCurrency]
|
777
|
+
#
|
778
|
+
# @!attribute [rw] group_properties
|
779
|
+
# Shows which group a response object belongs to, such as whether an
|
780
|
+
# address line belongs to the vendor's address or the recipent's
|
781
|
+
# address.
|
782
|
+
# @return [Array<Types::ExpenseGroupProperty>]
|
783
|
+
#
|
747
784
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseField AWS API Documentation
|
748
785
|
#
|
749
786
|
class ExpenseField < Struct.new(
|
750
787
|
:type,
|
751
788
|
:label_detection,
|
752
789
|
:value_detection,
|
753
|
-
:page_number
|
790
|
+
:page_number,
|
791
|
+
:currency,
|
792
|
+
:group_properties)
|
793
|
+
SENSITIVE = []
|
794
|
+
include Aws::Structure
|
795
|
+
end
|
796
|
+
|
797
|
+
# Shows the group that a certain key belongs to. This helps
|
798
|
+
# differentiate responses like addresses that can appear similar in
|
799
|
+
# response JSON.
|
800
|
+
#
|
801
|
+
# @!attribute [rw] types
|
802
|
+
# Informs you on the kind of label associated with the group
|
803
|
+
# @return [Array<String>]
|
804
|
+
#
|
805
|
+
# @!attribute [rw] id
|
806
|
+
# Provides a group Id number, which will be the same for each in the
|
807
|
+
# group.
|
808
|
+
# @return [String]
|
809
|
+
#
|
810
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseGroupProperty AWS API Documentation
|
811
|
+
#
|
812
|
+
class ExpenseGroupProperty < Struct.new(
|
813
|
+
:types,
|
814
|
+
:id)
|
754
815
|
SENSITIVE = []
|
755
816
|
include Aws::Structure
|
756
817
|
end
|
@@ -1500,16 +1561,17 @@ module Aws::Textract
|
|
1500
1561
|
# @return [String]
|
1501
1562
|
#
|
1502
1563
|
# @!attribute [rw] pages
|
1503
|
-
#
|
1504
|
-
# rules for using this
|
1564
|
+
# Pages is a parameter that the user inputs to specify which pages to
|
1565
|
+
# apply a query to. The following is a list of rules for using this
|
1566
|
+
# parameter.
|
1505
1567
|
#
|
1506
1568
|
# * If a page is not specified, it is set to `["1"]` by default.
|
1507
1569
|
#
|
1508
1570
|
# * The following characters are allowed in the parameter's string:
|
1509
1571
|
# `0 1 2 3 4 5 6 7 8 9 - *`. No whitespace is allowed.
|
1510
1572
|
#
|
1511
|
-
# * When using
|
1512
|
-
# in the
|
1573
|
+
# * When using * to indicate all pages, it must be the only element
|
1574
|
+
# in the list.
|
1513
1575
|
#
|
1514
1576
|
# * You can use page intervals, such as `[“1-3”, “1-1”, “4-*”]`. Where
|
1515
1577
|
# `*` indicates last page of document.
|
data/lib/aws-sdk-textract.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-textract
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|