aws-sdk-textract 1.39.0 → 1.41.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-textract/client.rb +135 -13
- data/lib/aws-sdk-textract/client_api.rb +20 -0
- data/lib/aws-sdk-textract/types.rb +107 -15
- 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: ed566c195dad52bbc47888392969db539855ff6d9b69c6d78c63ae33aafaefd3
|
4
|
+
data.tar.gz: efabc2a1b67e08cad8dc6a7a2b06214b34742c52c81c65784f52a56cb066ef47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6456b626ed0d1d251ff49ad10f14bb1ed20dfd3d366a775b3e87df73d955a96fda6f8f93e75413213e36d80a4312bc78b0077e97a95a1f03b7931373ad3eb158
|
7
|
+
data.tar.gz: d760d23d896a6e9c3dbd4703fb39c71579532b1d2046ce515fa16a7480aaabc469997e5f5973f73b4f6164c03e9945acbebfe30fac8bd3e658ee5259f37c5ca6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.41.0 (2022-11-01)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add ocr results in AnalyzeIDResponse as blocks
|
8
|
+
|
9
|
+
1.40.0 (2022-10-31)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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
|
13
|
+
|
4
14
|
1.39.0 (2022-10-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.41.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
|
#
|
@@ -692,6 +735,35 @@ module Aws::Textract
|
|
692
735
|
# resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value #=> String
|
693
736
|
# resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value_type #=> String, one of "DATE"
|
694
737
|
# resp.identity_documents[0].identity_document_fields[0].value_detection.confidence #=> Float
|
738
|
+
# resp.identity_documents[0].blocks #=> Array
|
739
|
+
# resp.identity_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"
|
740
|
+
# resp.identity_documents[0].blocks[0].confidence #=> Float
|
741
|
+
# resp.identity_documents[0].blocks[0].text #=> String
|
742
|
+
# resp.identity_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
|
743
|
+
# resp.identity_documents[0].blocks[0].row_index #=> Integer
|
744
|
+
# resp.identity_documents[0].blocks[0].column_index #=> Integer
|
745
|
+
# resp.identity_documents[0].blocks[0].row_span #=> Integer
|
746
|
+
# resp.identity_documents[0].blocks[0].column_span #=> Integer
|
747
|
+
# resp.identity_documents[0].blocks[0].geometry.bounding_box.width #=> Float
|
748
|
+
# resp.identity_documents[0].blocks[0].geometry.bounding_box.height #=> Float
|
749
|
+
# resp.identity_documents[0].blocks[0].geometry.bounding_box.left #=> Float
|
750
|
+
# resp.identity_documents[0].blocks[0].geometry.bounding_box.top #=> Float
|
751
|
+
# resp.identity_documents[0].blocks[0].geometry.polygon #=> Array
|
752
|
+
# resp.identity_documents[0].blocks[0].geometry.polygon[0].x #=> Float
|
753
|
+
# resp.identity_documents[0].blocks[0].geometry.polygon[0].y #=> Float
|
754
|
+
# resp.identity_documents[0].blocks[0].id #=> String
|
755
|
+
# resp.identity_documents[0].blocks[0].relationships #=> Array
|
756
|
+
# resp.identity_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
|
757
|
+
# resp.identity_documents[0].blocks[0].relationships[0].ids #=> Array
|
758
|
+
# resp.identity_documents[0].blocks[0].relationships[0].ids[0] #=> String
|
759
|
+
# resp.identity_documents[0].blocks[0].entity_types #=> Array
|
760
|
+
# resp.identity_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
|
761
|
+
# resp.identity_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
|
762
|
+
# resp.identity_documents[0].blocks[0].page #=> Integer
|
763
|
+
# resp.identity_documents[0].blocks[0].query.text #=> String
|
764
|
+
# resp.identity_documents[0].blocks[0].query.alias #=> String
|
765
|
+
# resp.identity_documents[0].blocks[0].query.pages #=> Array
|
766
|
+
# resp.identity_documents[0].blocks[0].query.pages[0] #=> String
|
695
767
|
# resp.document_metadata.pages #=> Integer
|
696
768
|
# resp.analyze_id_model_version #=> String
|
697
769
|
#
|
@@ -706,9 +778,9 @@ module Aws::Textract
|
|
706
778
|
|
707
779
|
# Detects text in the input document. Amazon Textract can detect lines
|
708
780
|
# 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.
|
781
|
+
# must be in one of the following image formats: JPEG, PNG, PDF, or
|
782
|
+
# TIFF. `DetectDocumentText` returns the detected text in an array of
|
783
|
+
# Block objects.
|
712
784
|
#
|
713
785
|
# Each document page has as an associated `Block` of type PAGE. Each
|
714
786
|
# PAGE `Block` object is the parent of LINE `Block` objects that
|
@@ -828,10 +900,19 @@ module Aws::Textract
|
|
828
900
|
# relationship with the value of the `StartDocumentAnalysis`
|
829
901
|
# `FeatureTypes` input parameter).
|
830
902
|
#
|
831
|
-
# *
|
832
|
-
#
|
833
|
-
#
|
834
|
-
#
|
903
|
+
# * Query. A QUERY Block object contains the query text, alias and link
|
904
|
+
# to the associated Query results block object.
|
905
|
+
#
|
906
|
+
# * Query Results. A QUERY\_RESULT Block object contains the answer to
|
907
|
+
# the query and an ID that connects it to the query asked. This Block
|
908
|
+
# also contains a confidence score.
|
909
|
+
#
|
910
|
+
# <note markdown="1"> While processing a document with queries, look out for
|
911
|
+
# `INVALID_REQUEST_PARAMETERS` output. This indicates that either the
|
912
|
+
# per page query limit has been exceeded or that the operation is trying
|
913
|
+
# to query a page in the document which doesn’t exist.
|
914
|
+
#
|
915
|
+
# </note>
|
835
916
|
#
|
836
917
|
# Selection elements such as check boxes and option buttons (radio
|
837
918
|
# buttons) can be detected in form data and in tables. A
|
@@ -1152,6 +1233,12 @@ module Aws::Textract
|
|
1152
1233
|
# resp.expense_documents[0].summary_fields[0].value_detection.geometry.polygon[0].y #=> Float
|
1153
1234
|
# resp.expense_documents[0].summary_fields[0].value_detection.confidence #=> Float
|
1154
1235
|
# resp.expense_documents[0].summary_fields[0].page_number #=> Integer
|
1236
|
+
# resp.expense_documents[0].summary_fields[0].currency.code #=> String
|
1237
|
+
# resp.expense_documents[0].summary_fields[0].currency.confidence #=> Float
|
1238
|
+
# resp.expense_documents[0].summary_fields[0].group_properties #=> Array
|
1239
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].types #=> Array
|
1240
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].types[0] #=> String
|
1241
|
+
# resp.expense_documents[0].summary_fields[0].group_properties[0].id #=> String
|
1155
1242
|
# resp.expense_documents[0].line_item_groups #=> Array
|
1156
1243
|
# resp.expense_documents[0].line_item_groups[0].line_item_group_index #=> Integer
|
1157
1244
|
# resp.expense_documents[0].line_item_groups[0].line_items #=> Array
|
@@ -1177,6 +1264,41 @@ module Aws::Textract
|
|
1177
1264
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].value_detection.geometry.polygon[0].y #=> Float
|
1178
1265
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].value_detection.confidence #=> Float
|
1179
1266
|
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].page_number #=> Integer
|
1267
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].currency.code #=> String
|
1268
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].currency.confidence #=> Float
|
1269
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties #=> Array
|
1270
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types #=> Array
|
1271
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types[0] #=> String
|
1272
|
+
# resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].id #=> String
|
1273
|
+
# resp.expense_documents[0].blocks #=> Array
|
1274
|
+
# 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"
|
1275
|
+
# resp.expense_documents[0].blocks[0].confidence #=> Float
|
1276
|
+
# resp.expense_documents[0].blocks[0].text #=> String
|
1277
|
+
# resp.expense_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
|
1278
|
+
# resp.expense_documents[0].blocks[0].row_index #=> Integer
|
1279
|
+
# resp.expense_documents[0].blocks[0].column_index #=> Integer
|
1280
|
+
# resp.expense_documents[0].blocks[0].row_span #=> Integer
|
1281
|
+
# resp.expense_documents[0].blocks[0].column_span #=> Integer
|
1282
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.width #=> Float
|
1283
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.height #=> Float
|
1284
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.left #=> Float
|
1285
|
+
# resp.expense_documents[0].blocks[0].geometry.bounding_box.top #=> Float
|
1286
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon #=> Array
|
1287
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon[0].x #=> Float
|
1288
|
+
# resp.expense_documents[0].blocks[0].geometry.polygon[0].y #=> Float
|
1289
|
+
# resp.expense_documents[0].blocks[0].id #=> String
|
1290
|
+
# resp.expense_documents[0].blocks[0].relationships #=> Array
|
1291
|
+
# resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
|
1292
|
+
# resp.expense_documents[0].blocks[0].relationships[0].ids #=> Array
|
1293
|
+
# resp.expense_documents[0].blocks[0].relationships[0].ids[0] #=> String
|
1294
|
+
# resp.expense_documents[0].blocks[0].entity_types #=> Array
|
1295
|
+
# resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
|
1296
|
+
# resp.expense_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
|
1297
|
+
# resp.expense_documents[0].blocks[0].page #=> Integer
|
1298
|
+
# resp.expense_documents[0].blocks[0].query.text #=> String
|
1299
|
+
# resp.expense_documents[0].blocks[0].query.alias #=> String
|
1300
|
+
# resp.expense_documents[0].blocks[0].query.pages #=> Array
|
1301
|
+
# resp.expense_documents[0].blocks[0].query.pages[0] #=> String
|
1180
1302
|
# resp.warnings #=> Array
|
1181
1303
|
# resp.warnings[0].error_code #=> String
|
1182
1304
|
# resp.warnings[0].pages #=> Array
|
@@ -1531,7 +1653,7 @@ module Aws::Textract
|
|
1531
1653
|
params: params,
|
1532
1654
|
config: config)
|
1533
1655
|
context[:gem_name] = 'aws-sdk-textract'
|
1534
|
-
context[:gem_version] = '1.
|
1656
|
+
context[:gem_version] = '1.41.0'
|
1535
1657
|
Seahorse::Client::Request.new(handlers, context)
|
1536
1658
|
end
|
1537
1659
|
|
@@ -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
|
@@ -314,6 +331,7 @@ module Aws::Textract
|
|
314
331
|
|
315
332
|
IdentityDocument.add_member(:document_index, Shapes::ShapeRef.new(shape: UInteger, location_name: "DocumentIndex"))
|
316
333
|
IdentityDocument.add_member(:identity_document_fields, Shapes::ShapeRef.new(shape: IdentityDocumentFieldList, location_name: "IdentityDocumentFields"))
|
334
|
+
IdentityDocument.add_member(:blocks, Shapes::ShapeRef.new(shape: BlockList, location_name: "Blocks"))
|
317
335
|
IdentityDocument.struct_class = Types::IdentityDocument
|
318
336
|
|
319
337
|
IdentityDocumentField.add_member(:type, Shapes::ShapeRef.new(shape: AnalyzeIDDetections, location_name: "Type"))
|
@@ -427,6 +445,8 @@ module Aws::Textract
|
|
427
445
|
StartExpenseAnalysisResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
428
446
|
StartExpenseAnalysisResponse.struct_class = Types::StartExpenseAnalysisResponse
|
429
447
|
|
448
|
+
StringList.member = Shapes::ShapeRef.new(shape: String)
|
449
|
+
|
430
450
|
ThrottlingException.struct_class = Types::ThrottlingException
|
431
451
|
|
432
452
|
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,50 @@ 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. the current supported codes
|
678
|
+
# are:
|
679
|
+
#
|
680
|
+
# * USD
|
681
|
+
#
|
682
|
+
# * EUR
|
683
|
+
#
|
684
|
+
# * GBP
|
685
|
+
#
|
686
|
+
# * CAD
|
687
|
+
#
|
688
|
+
# * INR
|
689
|
+
#
|
690
|
+
# * JPY
|
691
|
+
#
|
692
|
+
# * CHF
|
693
|
+
#
|
694
|
+
# * AUD
|
695
|
+
#
|
696
|
+
# * CNY
|
697
|
+
#
|
698
|
+
# * BZR
|
699
|
+
#
|
700
|
+
# * SEK
|
701
|
+
#
|
702
|
+
# * HKD
|
703
|
+
# @return [String]
|
704
|
+
#
|
705
|
+
# @!attribute [rw] confidence
|
706
|
+
# Percentage confideence in the detected currency.
|
707
|
+
# @return [Float]
|
708
|
+
#
|
709
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseCurrency AWS API Documentation
|
710
|
+
#
|
711
|
+
class ExpenseCurrency < Struct.new(
|
712
|
+
:code,
|
713
|
+
:confidence)
|
714
|
+
SENSITIVE = []
|
715
|
+
include Aws::Structure
|
716
|
+
end
|
717
|
+
|
673
718
|
# An object used to store information about the Value or Label detected
|
674
719
|
# by Amazon Textract.
|
675
720
|
#
|
@@ -713,12 +758,18 @@ module Aws::Textract
|
|
713
758
|
# `LineItems`.
|
714
759
|
# @return [Array<Types::LineItemGroup>]
|
715
760
|
#
|
761
|
+
# @!attribute [rw] blocks
|
762
|
+
# This is a block object, the same as reported when DetectDocumentText
|
763
|
+
# is run on a document. It provides word level recognition of text.
|
764
|
+
# @return [Array<Types::Block>]
|
765
|
+
#
|
716
766
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseDocument AWS API Documentation
|
717
767
|
#
|
718
768
|
class ExpenseDocument < Struct.new(
|
719
769
|
:expense_index,
|
720
770
|
:summary_fields,
|
721
|
-
:line_item_groups
|
771
|
+
:line_item_groups,
|
772
|
+
:blocks)
|
722
773
|
SENSITIVE = []
|
723
774
|
include Aws::Structure
|
724
775
|
end
|
@@ -744,13 +795,48 @@ module Aws::Textract
|
|
744
795
|
# The page number the value was detected on.
|
745
796
|
# @return [Integer]
|
746
797
|
#
|
798
|
+
# @!attribute [rw] currency
|
799
|
+
# Shows the kind of currency, both the code and confidence associated
|
800
|
+
# with any monatary value detected.
|
801
|
+
# @return [Types::ExpenseCurrency]
|
802
|
+
#
|
803
|
+
# @!attribute [rw] group_properties
|
804
|
+
# Shows which group a response object belongs to, such as whether an
|
805
|
+
# address line belongs to the vendor's address or the recipent's
|
806
|
+
# address.
|
807
|
+
# @return [Array<Types::ExpenseGroupProperty>]
|
808
|
+
#
|
747
809
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseField AWS API Documentation
|
748
810
|
#
|
749
811
|
class ExpenseField < Struct.new(
|
750
812
|
:type,
|
751
813
|
:label_detection,
|
752
814
|
:value_detection,
|
753
|
-
:page_number
|
815
|
+
:page_number,
|
816
|
+
:currency,
|
817
|
+
:group_properties)
|
818
|
+
SENSITIVE = []
|
819
|
+
include Aws::Structure
|
820
|
+
end
|
821
|
+
|
822
|
+
# Shows the group that a certain key belongs to. This helps
|
823
|
+
# differentiate between names and addresses for different organizations,
|
824
|
+
# that can be hard to determine via JSON response.
|
825
|
+
#
|
826
|
+
# @!attribute [rw] types
|
827
|
+
# Informs you on whether the expense group is a name or an address.
|
828
|
+
# @return [Array<String>]
|
829
|
+
#
|
830
|
+
# @!attribute [rw] id
|
831
|
+
# Provides a group Id number, which will be the same for each in the
|
832
|
+
# group.
|
833
|
+
# @return [String]
|
834
|
+
#
|
835
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExpenseGroupProperty AWS API Documentation
|
836
|
+
#
|
837
|
+
class ExpenseGroupProperty < Struct.new(
|
838
|
+
:types,
|
839
|
+
:id)
|
754
840
|
SENSITIVE = []
|
755
841
|
include Aws::Structure
|
756
842
|
end
|
@@ -1192,11 +1278,16 @@ module Aws::Textract
|
|
1192
1278
|
# text.
|
1193
1279
|
# @return [Array<Types::IdentityDocumentField>]
|
1194
1280
|
#
|
1281
|
+
# @!attribute [rw] blocks
|
1282
|
+
# Individual word recognition, as returned by document detection.
|
1283
|
+
# @return [Array<Types::Block>]
|
1284
|
+
#
|
1195
1285
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/IdentityDocument AWS API Documentation
|
1196
1286
|
#
|
1197
1287
|
class IdentityDocument < Struct.new(
|
1198
1288
|
:document_index,
|
1199
|
-
:identity_document_fields
|
1289
|
+
:identity_document_fields,
|
1290
|
+
:blocks)
|
1200
1291
|
SENSITIVE = []
|
1201
1292
|
include Aws::Structure
|
1202
1293
|
end
|
@@ -1500,16 +1591,17 @@ module Aws::Textract
|
|
1500
1591
|
# @return [String]
|
1501
1592
|
#
|
1502
1593
|
# @!attribute [rw] pages
|
1503
|
-
#
|
1504
|
-
# rules for using this
|
1594
|
+
# Pages is a parameter that the user inputs to specify which pages to
|
1595
|
+
# apply a query to. The following is a list of rules for using this
|
1596
|
+
# parameter.
|
1505
1597
|
#
|
1506
1598
|
# * If a page is not specified, it is set to `["1"]` by default.
|
1507
1599
|
#
|
1508
1600
|
# * The following characters are allowed in the parameter's string:
|
1509
1601
|
# `0 1 2 3 4 5 6 7 8 9 - *`. No whitespace is allowed.
|
1510
1602
|
#
|
1511
|
-
# * When using
|
1512
|
-
# in the
|
1603
|
+
# * When using * to indicate all pages, it must be the only element
|
1604
|
+
# in the list.
|
1513
1605
|
#
|
1514
1606
|
# * You can use page intervals, such as `[“1-3”, “1-1”, “4-*”]`. Where
|
1515
1607
|
# `*` 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.41.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-
|
11
|
+
date: 2022-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|