Skip to content

Commit 35746c8

Browse files
author
AWS
committed
Amazon Textract Update: This release adds support for synchronously analyzing identity documents through a new API: AnalyzeID
1 parent 6337681 commit 35746c8

File tree

2 files changed

+127
-3
lines changed

2 files changed

+127
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Textract",
4+
"contributor": "",
5+
"description": "This release adds support for synchronously analyzing identity documents through a new API: AnalyzeID"
6+
}

services/textract/src/main/resources/codegen-resources/service-2.json

Lines changed: 121 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,28 @@
5353
{"shape":"InternalServerError"},
5454
{"shape":"ThrottlingException"}
5555
],
56-
"documentation":"<p>Analyzes an input document for financially related relationships between text.</p> <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p> <ul> <li> <p> <code>LineItemGroups</code>- A data set containing <code>LineItems</code> which store information about the lines of text, such as an item purchased and its price on a receipt.</p> </li> <li> <p> <code>SummaryFields</code>- Contains all other information a receipt, such as header information or the vendors name.</p> </li> </ul>"
56+
"documentation":"<p> <code>AnalyzeExpense</code> synchronously analyzes an input document for financially related relationships between text.</p> <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p> <ul> <li> <p> <code>LineItemGroups</code>- A data set containing <code>LineItems</code> which store information about the lines of text, such as an item purchased and its price on a receipt.</p> </li> <li> <p> <code>SummaryFields</code>- Contains all other information a receipt, such as header information or the vendors name.</p> </li> </ul>"
57+
},
58+
"AnalyzeID":{
59+
"name":"AnalyzeID",
60+
"http":{
61+
"method":"POST",
62+
"requestUri":"/"
63+
},
64+
"input":{"shape":"AnalyzeIDRequest"},
65+
"output":{"shape":"AnalyzeIDResponse"},
66+
"errors":[
67+
{"shape":"InvalidParameterException"},
68+
{"shape":"InvalidS3ObjectException"},
69+
{"shape":"UnsupportedDocumentException"},
70+
{"shape":"DocumentTooLargeException"},
71+
{"shape":"BadDocumentException"},
72+
{"shape":"AccessDeniedException"},
73+
{"shape":"ProvisionedThroughputExceededException"},
74+
{"shape":"InternalServerError"},
75+
{"shape":"ThrottlingException"}
76+
],
77+
"documentation":"<p>Analyzes identity documents for relevant information. This information is extracted and returned as <code>IdentityDocumentFields</code>, which records both the normalized field and value of the extracted text.</p>"
5778
},
5879
"DetectDocumentText":{
5980
"name":"DetectDocumentText",
@@ -276,6 +297,49 @@
276297
}
277298
}
278299
},
300+
"AnalyzeIDDetections":{
301+
"type":"structure",
302+
"required":["Text"],
303+
"members":{
304+
"Text":{
305+
"shape":"String",
306+
"documentation":"<p>Text of either the normalized field or value associated with it.</p>"
307+
},
308+
"NormalizedValue":{
309+
"shape":"NormalizedValue",
310+
"documentation":"<p>Only returned for dates, returns the type of value detected and the date written in a more machine readable way.</p>"
311+
},
312+
"Confidence":{
313+
"shape":"Percent",
314+
"documentation":"<p>The confidence score of the detected text.</p>"
315+
}
316+
},
317+
"documentation":"<p>Used to contain the information detected by an AnalyzeID operation.</p>"
318+
},
319+
"AnalyzeIDRequest":{
320+
"type":"structure",
321+
"required":["DocumentPages"],
322+
"members":{
323+
"DocumentPages":{
324+
"shape":"DocumentPages",
325+
"documentation":"<p>The document being passed to AnalyzeID.</p>"
326+
}
327+
}
328+
},
329+
"AnalyzeIDResponse":{
330+
"type":"structure",
331+
"members":{
332+
"IdentityDocuments":{
333+
"shape":"IdentityDocumentList",
334+
"documentation":"<p>The list of documents processed by AnalyzeID. Includes a number denoting their place in the list and the response structure for the document.</p>"
335+
},
336+
"DocumentMetadata":{"shape":"DocumentMetadata"},
337+
"AnalyzeIDModelVersion":{
338+
"shape":"String",
339+
"documentation":"<p>The version of the AnalyzeIdentity API being used to process documents.</p>"
340+
}
341+
}
342+
},
279343
"BadDocumentException":{
280344
"type":"structure",
281345
"members":{
@@ -462,6 +526,12 @@
462526
},
463527
"documentation":"<p>Information about the input document.</p>"
464528
},
529+
"DocumentPages":{
530+
"type":"list",
531+
"member":{"shape":"Document"},
532+
"max":2,
533+
"min":1
534+
},
465535
"DocumentTooLargeException":{
466536
"type":"structure",
467537
"members":{
@@ -538,7 +608,7 @@
538608
"documentation":"<p>The page number the value was detected on.</p>"
539609
}
540610
},
541-
"documentation":"<p>Breakdown of detected information, seperated into the catagories Type, LableDetection, and ValueDetection</p>"
611+
"documentation":"<p>Breakdown of detected information, seperated into the catagories Type, LabelDetection, and ValueDetection</p>"
542612
},
543613
"ExpenseFieldList":{
544614
"type":"list",
@@ -842,6 +912,36 @@
842912
"documentation":"<p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation. </p>",
843913
"exception":true
844914
},
915+
"IdentityDocument":{
916+
"type":"structure",
917+
"members":{
918+
"DocumentIndex":{
919+
"shape":"UInteger",
920+
"documentation":"<p>Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the second 2 and so on.</p>"
921+
},
922+
"IdentityDocumentFields":{
923+
"shape":"IdentityDocumentFieldList",
924+
"documentation":"<p>The structure used to record information extracted from identity documents. Contains both normalized field and value of the extracted text.</p>"
925+
}
926+
},
927+
"documentation":"<p>The structure that lists each document processed in an AnalyzeID operation.</p>"
928+
},
929+
"IdentityDocumentField":{
930+
"type":"structure",
931+
"members":{
932+
"Type":{"shape":"AnalyzeIDDetections"},
933+
"ValueDetection":{"shape":"AnalyzeIDDetections"}
934+
},
935+
"documentation":"<p>Structure containing both the normalized type of the extracted information and the text associated with it. These are extracted as Type and Value respectively.</p>"
936+
},
937+
"IdentityDocumentFieldList":{
938+
"type":"list",
939+
"member":{"shape":"IdentityDocumentField"}
940+
},
941+
"IdentityDocumentList":{
942+
"type":"list",
943+
"member":{"shape":"IdentityDocument"}
944+
},
845945
"ImageBlob":{
846946
"type":"blob",
847947
"max":10485760,
@@ -957,6 +1057,20 @@
9571057
"type":"string",
9581058
"pattern":".*\\S.*"
9591059
},
1060+
"NormalizedValue":{
1061+
"type":"structure",
1062+
"members":{
1063+
"Value":{
1064+
"shape":"String",
1065+
"documentation":"<p>The value of the date, written as Year-Month-DayTHour:Minute:Second.</p>"
1066+
},
1067+
"ValueType":{
1068+
"shape":"ValueType",
1069+
"documentation":"<p>The normalized type of the value detected. In this case, DATE.</p>"
1070+
}
1071+
},
1072+
"documentation":"<p>Contains information relating to dates in a document, including the type of value, and the value.</p>"
1073+
},
9601074
"NotificationChannel":{
9611075
"type":"structure",
9621076
"required":[
@@ -1260,9 +1374,13 @@
12601374
"type":"structure",
12611375
"members":{
12621376
},
1263-
"documentation":"<p>The format of the input document isn't supported. Documents for synchronous operations can be in PNG or JPEG format. Documents for asynchronous operations can also be in PDF format.</p>",
1377+
"documentation":"<p>The format of the input document isn't supported. Documents for synchronous operations can be in PNG or JPEG format only. Documents for asynchronous operations can be in PDF format.</p>",
12641378
"exception":true
12651379
},
1380+
"ValueType":{
1381+
"type":"string",
1382+
"enum":["DATE"]
1383+
},
12661384
"Warning":{
12671385
"type":"structure",
12681386
"members":{

0 commit comments

Comments
 (0)