diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/FormRecognizerReceipt.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/FormRecognizerReceipt.json new file mode 100644 index 000000000000..2c4ecaf82db7 --- /dev/null +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/FormRecognizerReceipt.json @@ -0,0 +1,258 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0-preview", + "title": "Form Recognizer Client", + "description": "Extracts information from forms and images into structured data based on a model created by a set of representative training forms." + }, + "securityDefinitions": { + "apim_key": { + "type": "apiKey", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" + } + }, + "security": [ + { + "apim_key": [] + } + ], + "x-ms-parameterized-host": { + "hostTemplate": "{Endpoint}/formrecognizer/v1.0-preview", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "FormRecognizerReceiptOcr.json#/parameters/Endpoint" + } + ] + }, + "schemes": [ + "https" + ], + "paths": { + "/prebuilt/receipt/asyncBatchAnalyze": { + "post": { + "description": "Batch Read Receipt operation. The response contains a field called 'Operation-Location', which contains the URL that you must use for your 'Get Read Receipt Result' operation.", + "operationId": "BatchReadReceipt", + "parameters": [ + { + "$ref": "FormRecognizerReceiptOcr.json#/parameters/ImageUrl" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "202": { + "description": "The service has accepted the request and will start processing later. It will return 'Accepted' immediately and include an 'Operation-Location' header. Client side should further query the operation status using the URL specified in this header. The 'Operation-Location' URL will expire in 48 hours.", + "headers": { + "Operation-Location": { + "description": "URL to query for status of the operation. The URL will expire in 48 hours. ", + "type": "string" + } + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "FormRecognizerReceiptOcr.json#/definitions/ComputerVisionError" + } + } + }, + "x-ms-examples": { + "Successful 'Batch Read Receipt' request": { + "$ref": "./examples/SuccessfulBatchReadReceiptWithUrl.json" + } + } + } + }, + "/prebuilt/receipt/operations/{operationId}": { + "get": { + "description": "This interface is used for getting the analysis results of a 'Batch Read Receipt' operation. The URL to this interface should be retrieved from the 'Operation-Location' field returned from the 'Batch Read Receipt' operation.", + "operationId": "GetReadReceiptResult", + "parameters": [ + { + "name": "operationId", + "in": "path", + "description": "Id of read operation returned in the response of a 'Batch Read Receipt' operation.", + "required": true, + "type": "string" + } + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "Returns the read operation status.", + "schema": { + "$ref": "#/definitions/readReceiptResult" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "FormRecognizerReceiptOcr.json#/definitions/ComputerVisionError" + } + } + }, + "x-ms-examples": { + "Successful 'Get Read Receipt Result' request": { + "$ref": "./examples/SuccessfulReadReceiptResult.json" + } + } + } + } + }, + "x-ms-paths": { + "/prebuilt/receipt/asyncBatchAnalyze?overload=stream": { + "post": { + "description": "Read Receipt operation. When you use the 'Batch Read Receipt' interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your 'Get Read Receipt Result' operation.", + "operationId": "BatchReadReceiptInStream", + "parameters": [ + { + "$ref": "FormRecognizerReceiptOcr.json#/parameters/ImageStream" + } + ], + "consumes": [ + "application/octet-stream" + ], + "produces": [ + "application/json" + ], + "responses": { + "202": { + "description": "The service has accepted the request and will start processing later. It will return 'Accepted' immediately and include an 'Operation-Location' header. Client side should further query the operation status using the URL specified in this header. The 'Operation-Location' URL will expire in 48 hours.", + "headers": { + "Operation-Location": { + "description": "URL to query for status of the operation. The URL will expire in 48 hours. ", + "type": "string" + } + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "FormRecognizerReceiptOcr.json#/definitions/ComputerVisionError" + } + } + }, + "x-ms-examples": { + "Successful 'Batch Read Receipt' request": { + "$ref": "./examples/SuccessfulBatchReadReceiptWithStream.json" + } + } + } + } + }, + "definitions": { + "readReceiptResult": { + "type": "object", + "description": "Analysis result of the 'Batch Read Receipt' operation.", + "properties": { + "status": { + "description": "Status of the read operation.", + "$ref": "FormRecognizerReceiptOcr.json#/definitions/OperationStatus" + }, + "recognitionResults": { + "description": "Text recognition result of the 'Batch Read Receipt' operation.", + "type": "array", + "items": { + "$ref": "FormRecognizerReceiptOcr.json#/definitions/TextRecognitionResult" + } + }, + "understandingResults": { + "description": "Semantic understanding result of the 'Batch Read Receipt' operation.", + "type": "array", + "items": { + "$ref": "#/definitions/understandingResult" + } + } + } + }, + "understandingResult": { + "description" : "A set of extracted fields corresponding to a semantic object, such as a receipt, in the input document.", + "properties": { + "pages": { + "description": "List of pages where the document is found.", + "type": "array", + "items": { + "type": "integer", + "x-nullable": false + } + }, + "fields": { + "description": "Dictionary of recognized field values.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/fieldValue" + } + } + } + }, + "elementReference": { + "description": "Reference to an OCR word.", + "properties": { + "$ref": { + "type": "string" + } + } + }, + "fieldValue": { + "description": "Base class representing a recognized field value.", + "type": "object", + "discriminator": "valueType", + "required": [ + "valueType" + ], + "properties": { + "valueType": { + "description": "Discriminator for derived types.", + "type": "string" + }, + "text": { + "description": "OCR text content of the recognized field.", + "type": "string" + }, + "elements": { + "description": "List of references to OCR words comprising the recognized field value.", + "type": "array", + "items": { + "$ref": "#/definitions/elementReference" + } + } + } + }, + "stringValue": { + "description": "Recognized string field value.", + "allOf": [ + { + "$ref": "#/definitions/fieldValue" + } + ], + "properties": { + "value": { + "description": "String value of the recognized field.", + "type": "string" + } + } + }, + "numberValue": { + "description": "Recognized numeric field value.", + "allOf": [ + { + "$ref": "#/definitions/fieldValue" + } + ], + "properties": { + "value": { + "description": "Numeric value of the recognized field.", + "type": "number" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/FormRecognizerReceiptOcr.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/FormRecognizerReceiptOcr.json new file mode 100644 index 000000000000..4d0e1010ae01 --- /dev/null +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/FormRecognizerReceiptOcr.json @@ -0,0 +1,223 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0-preview", + "title": "Form Recognizer Client", + "description": "The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively." + }, + "definitions": { + "OperationStatus": { + "type": "string", + "description": "Status code of the text operation.", + "enum": [ + "Not Started", + "Running", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "TextOperationStatusCodes", + "modelAsString": false + }, + "x-nullable": false + }, + "TextRecognitionResult": { + "description": "An object representing a recognized text region", + "type": "object", + "required": [ + "lines" + ], + "properties": { + "page": { + "description": "The 1-based page number of the recognition result.", + "type": "integer" + }, + "clockwiseOrientation": { + "description": "The orientation of the image in degrees in the clockwise direction. Range between [0, 360).", + "type": "number" + }, + "width": { + "description": "The width of the image in pixels or the PDF in inches.", + "type": "number" + }, + "height": { + "description": "The height of the image in pixels or the PDF in inches.", + "type": "number" + }, + "unit": { + "description": "The unit used in the Width, Height and BoundingBox. For images, the unit is 'pixel'. For PDF, the unit is 'inch'.", + "type": "string", + "enum": [ + "pixel", + "inch" + ], + "x-ms-enum": { + "name": "TextRecognitionResultDimensionUnit", + "modelAsString": false + }, + "x-nullable": true + }, + "lines": { + "description": "A list of recognized text lines.", + "type": "array", + "items": { + "$ref": "#/definitions/Line" + } + } + } + }, + "Line": { + "description": "An object representing a recognized text line.", + "type": "object", + "properties": { + "boundingBox": { + "description": "Bounding box of a recognized line.", + "$ref": "#/definitions/BoundingBox" + }, + "text": { + "description": "The text content of the line.", + "type": "string" + }, + "words": { + "description": "List of words in the text line.", + "type": "array", + "items": { + "$ref": "#/definitions/Word" + } + } + } + }, + "Word": { + "description": "An object representing a recognized word.", + "type": "object", + "required": [ + "boundingBox", + "text" + ], + "properties": { + "boundingBox": { + "description": "Bounding box of a recognized word.", + "$ref": "#/definitions/BoundingBox" + }, + "text": { + "description": "The text content of the word.", + "type": "string" + }, + "confidence": { + "description": "Qualitative confidence measure.", + "type": "string", + "enum": [ + "High", + "Low" + ], + "x-ms-enum": { + "name": "TextRecognitionResultConfidenceClass", + "modelAsString": false + }, + "x-nullable": true + } + } + }, + "BoundingBox": { + "description": "Quadrangle bounding box, with coordinates in original image. The eight numbers represent the four points (x-coordinate, y-coordinate from the left-top corner of the image) of the detected rectangle from the left-top corner in the clockwise direction. For images, coordinates are in pixels. For PDF, coordinates are in inches.", + "type": "array", + "items": { + "type": "integer", + "x-nullable": false + } + }, + "ComputerVisionError": { + "description": "Details about the API request error.", + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "enum": [ + "InvalidImageFormat", + "UnsupportedMediaType", + "InvalidImageUrl", + "NotSupportedFeature", + "NotSupportedImage", + "Timeout", + "InternalServerError", + "InvalidImageSize", + "BadArgument", + "DetectFaceError", + "NotSupportedLanguage", + "InvalidThumbnailSize", + "InvalidDetails", + "InvalidModel", + "CancelledRequest", + "NotSupportedVisualFeature", + "FailedToProcess", + "Unspecified", + "StorageException" + ], + "x-ms-enum": { + "name": "ComputerVisionErrorCodes", + "modelAsString": true + } + }, + "message": { + "description": "A message explaining the error reported by the service.", + "type": "string" + }, + "requestId": { + "description": "A unique request identifier.", + "type": "string" + } + } + }, + "ImageUrl": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "description": "Publicly reachable URL of an image.", + "type": "string" + } + } + } + }, + "parameters": { + "ImageUrl": { + "name": "ImageUrl", + "in": "body", + "required": true, + "x-ms-parameter-location": "method", + "x-ms-client-flatten": true, + "description": "A JSON document with a URL pointing to the image that is to be analyzed.", + "schema": { + "$ref": "#/definitions/ImageUrl" + } + }, + "ImageStream": { + "name": "Image", + "in": "body", + "required": true, + "x-ms-parameter-location": "method", + "description": "An image stream.", + "schema": { + "type": "object", + "format": "file" + } + }, + "Endpoint": { + "name": "Endpoint", + "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).", + "x-ms-parameter-location": "client", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true + } + }, + "paths": { + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulBatchReadReceiptWithStream.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulBatchReadReceiptWithStream.json new file mode 100644 index 000000000000..b4d0bd13f769 --- /dev/null +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulBatchReadReceiptWithStream.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "{API key}", + "Image": "{binary}" + }, + "responses": { + "202": { + "header": { + "Operation-Location": "https://{domain}/vision/v2.0/read/receipt/operations/e56ffa6e-1ee4-4042-bc07-993db706c95f" + } + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulBatchReadReceiptWithUrl.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulBatchReadReceiptWithUrl.json new file mode 100644 index 000000000000..168d816944f3 --- /dev/null +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulBatchReadReceiptWithUrl.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "{API key}", + "ImageUrl": "{url}" + }, + "responses": { + "202": { + "header": { + "Operation-Location": "https://{domain}/vision/v2.0/read/receipt/operations/e56ffa6e-1ee4-4042-bc07-993db706c95f" + } + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulReadReceiptResult.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulReadReceiptResult.json new file mode 100644 index 000000000000..73fb2a085147 --- /dev/null +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/examples/SuccessfulReadReceiptResult.json @@ -0,0 +1,2945 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "{API key}", + "operationId": "e56ffa6e-1ee4-4042-bc07-993db706c95f" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "status": "Succeeded", + "recognitionResults": [ + { + "page": 1, + "clockwiseOrientation": 359.44376, + "width": 1440.0, + "height": 2560.0, + "unit": "pixel", + "lines": [ + { + "boundingBox": [ + 476, + 1930, + 1050, + 1931, + 1049, + 1974, + 475, + 1973 + ], + "text": "Serafina includes a 3% surcharge", + "words": [ + { + "boundingBox": [ + 476, + 1933, + 623, + 1932, + 624, + 1975, + 477, + 1974 + ], + "text": "Serafina" + }, + { + "boundingBox": [ + 634, + 1932, + 784, + 1932, + 785, + 1975, + 635, + 1975 + ], + "text": "includes" + }, + { + "boundingBox": [ + 789, + 1932, + 816, + 1932, + 818, + 1975, + 790, + 1975 + ], + "text": "a" + }, + { + "boundingBox": [ + 827, + 1932, + 876, + 1932, + 878, + 1975, + 829, + 1975 + ], + "text": "3%" + }, + { + "boundingBox": [ + 879, + 1932, + 1048, + 1933, + 1050, + 1975, + 880, + 1975 + ], + "text": "surcharge" + } + ] + }, + { + "boundingBox": [ + 419, + 1016, + 596, + 1017, + 595, + 1047, + 418, + 1046 + ], + "text": "Italian Soda", + "words": [ + { + "boundingBox": [ + 420, + 1018, + 521, + 1018, + 521, + 1047, + 421, + 1046 + ], + "text": "Italian" + }, + { + "boundingBox": [ + 537, + 1018, + 596, + 1018, + 595, + 1048, + 537, + 1047 + ], + "text": "Soda" + } + ] + }, + { + "boundingBox": [ + 1035, + 1840, + 1162, + 1839, + 1163, + 1879, + 1036, + 1881 + ], + "text": "$463.61", + "words": [ + { + "boundingBox": [ + 1034, + 1841, + 1171, + 1841, + 1172, + 1880, + 1036, + 1882 + ], + "text": "$463.61" + } + ] + }, + { + "boundingBox": [ + 1038, + 1628, + 1145, + 1627, + 1146, + 1662, + 1039, + 1664 + ], + "text": "$10 . 44", + "words": [ + { + "boundingBox": [ + 1037, + 1629, + 1096, + 1628, + 1097, + 1664, + 1039, + 1665 + ], + "text": "$10" + }, + { + "boundingBox": [ + 1092, + 1628, + 1115, + 1628, + 1115, + 1664, + 1092, + 1664 + ], + "text": "." + }, + { + "boundingBox": [ + 1108, + 1628, + 1148, + 1628, + 1148, + 1663, + 1109, + 1664 + ], + "text": "44" + } + ] + }, + { + "boundingBox": [ + 369, + 1711, + 508, + 1710, + 509, + 1747, + 370, + 1747 + ], + "text": "Subtotal", + "words": [ + { + "boundingBox": [ + 371, + 1712, + 512, + 1712, + 513, + 1748, + 371, + 1748 + ], + "text": "Subtotal" + } + ] + }, + { + "boundingBox": [ + 1016, + 983, + 1095, + 980, + 1097, + 1007, + 1018, + 1011 + ], + "text": "$4 .50", + "words": [ + { + "boundingBox": [ + 1014, + 986, + 1047, + 983, + 1049, + 1010, + 1016, + 1013 + ], + "text": "$4" + }, + { + "boundingBox": [ + 1045, + 984, + 1091, + 981, + 1093, + 1009, + 1047, + 1011 + ], + "text": ".50" + } + ] + }, + { + "boundingBox": [ + 375, + 1627, + 658, + 1628, + 657, + 1667, + 374, + 1666 + ], + "text": "Surcharge (3.00% )", + "words": [ + { + "boundingBox": [ + 376, + 1630, + 529, + 1629, + 529, + 1668, + 375, + 1665 + ], + "text": "Surcharge" + }, + { + "boundingBox": [ + 541, + 1629, + 652, + 1629, + 652, + 1667, + 540, + 1668 + ], + "text": "(3.00%" + }, + { + "boundingBox": [ + 641, + 1629, + 664, + 1629, + 664, + 1667, + 640, + 1667 + ], + "text": ")" + } + ] + }, + { + "boundingBox": [ + 1004, + 1113, + 1101, + 1112, + 1101, + 1139, + 1005, + 1141 + ], + "text": "$28 . 00", + "words": [ + { + "boundingBox": [ + 1007, + 1114, + 1055, + 1114, + 1056, + 1141, + 1009, + 1142 + ], + "text": "$28" + }, + { + "boundingBox": [ + 1055, + 1114, + 1073, + 1113, + 1074, + 1140, + 1056, + 1141 + ], + "text": "." + }, + { + "boundingBox": [ + 1068, + 1113, + 1102, + 1113, + 1103, + 1140, + 1069, + 1140 + ], + "text": "00" + } + ] + }, + { + "boundingBox": [ + 408, + 1182, + 564, + 1183, + 563, + 1213, + 407, + 1212 + ], + "text": "Polpettine", + "words": [ + { + "boundingBox": [ + 406, + 1183, + 563, + 1184, + 563, + 1213, + 407, + 1214 + ], + "text": "Polpettine" + } + ] + }, + { + "boundingBox": [ + 363, + 1751, + 723, + 1753, + 722, + 1794, + 362, + 1793 + ], + "text": "Gratuity 18% ( 18.00% )", + "words": [ + { + "boundingBox": [ + 364, + 1754, + 509, + 1756, + 509, + 1795, + 364, + 1793 + ], + "text": "Gratuity" + }, + { + "boundingBox": [ + 519, + 1756, + 583, + 1756, + 583, + 1795, + 519, + 1795 + ], + "text": "18%" + }, + { + "boundingBox": [ + 585, + 1756, + 611, + 1756, + 611, + 1795, + 585, + 1795 + ], + "text": "(" + }, + { + "boundingBox": [ + 606, + 1756, + 718, + 1754, + 718, + 1795, + 606, + 1795 + ], + "text": "18.00%" + }, + { + "boundingBox": [ + 705, + 1754, + 733, + 1754, + 733, + 1795, + 705, + 1795 + ], + "text": ")" + } + ] + }, + { + "boundingBox": [ + 1029, + 1469, + 1133, + 1465, + 1135, + 1499, + 1031, + 1502 + ], + "text": "$60 .00", + "words": [ + { + "boundingBox": [ + 1028, + 1470, + 1082, + 1468, + 1083, + 1502, + 1029, + 1503 + ], + "text": "$60" + }, + { + "boundingBox": [ + 1080, + 1468, + 1132, + 1466, + 1133, + 1501, + 1081, + 1502 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 481, + 2024, + 1024, + 2028, + 1023, + 2072, + 480, + 2067 + ], + "text": "to the kitchen staff so we may", + "words": [ + { + "boundingBox": [ + 479, + 2025, + 525, + 2025, + 525, + 2069, + 479, + 2069 + ], + "text": "to" + }, + { + "boundingBox": [ + 533, + 2025, + 596, + 2026, + 596, + 2070, + 533, + 2069 + ], + "text": "the" + }, + { + "boundingBox": [ + 602, + 2026, + 736, + 2027, + 736, + 2071, + 602, + 2070 + ], + "text": "kitchen" + }, + { + "boundingBox": [ + 747, + 2027, + 847, + 2028, + 847, + 2071, + 747, + 2071 + ], + "text": "staff" + }, + { + "boundingBox": [ + 856, + 2028, + 902, + 2028, + 901, + 2072, + 856, + 2071 + ], + "text": "so" + }, + { + "boundingBox": [ + 907, + 2029, + 956, + 2029, + 955, + 2072, + 907, + 2072 + ], + "text": "we" + }, + { + "boundingBox": [ + 959, + 2029, + 1027, + 2030, + 1027, + 2072, + 958, + 2072 + ], + "text": "may" + } + ] + }, + { + "boundingBox": [ + 1013, + 1215, + 1110, + 1210, + 1112, + 1240, + 1015, + 1245 + ], + "text": "$12.00", + "words": [ + { + "boundingBox": [ + 1013, + 1217, + 1110, + 1212, + 1111, + 1242, + 1015, + 1246 + ], + "text": "$12.00" + } + ] + }, + { + "boundingBox": [ + 424, + 887, + 630, + 885, + 631, + 917, + 425, + 919 + ], + "text": "Server: Beth G", + "words": [ + { + "boundingBox": [ + 425, + 888, + 531, + 888, + 531, + 919, + 425, + 919 + ], + "text": "Server:" + }, + { + "boundingBox": [ + 539, + 888, + 598, + 887, + 599, + 918, + 539, + 919 + ], + "text": "Beth" + }, + { + "boundingBox": [ + 610, + 887, + 630, + 887, + 631, + 917, + 611, + 918 + ], + "text": "G" + } + ] + }, + { + "boundingBox": [ + 389, + 1468, + 650, + 1471, + 649, + 1505, + 388, + 1502 + ], + "text": "3 (PF) Bolognese", + "words": [ + { + "boundingBox": [ + 390, + 1470, + 412, + 1470, + 412, + 1504, + 390, + 1503 + ], + "text": "3" + }, + { + "boundingBox": [ + 418, + 1470, + 491, + 1470, + 491, + 1504, + 419, + 1504 + ], + "text": "(PF)" + }, + { + "boundingBox": [ + 499, + 1470, + 648, + 1474, + 649, + 1503, + 500, + 1504 + ], + "text": "Bolognese" + } + ] + }, + { + "boundingBox": [ + 1017, + 1015, + 1096, + 1013, + 1097, + 1041, + 1019, + 1042 + ], + "text": "$3 .50", + "words": [ + { + "boundingBox": [ + 1016, + 1014, + 1050, + 1014, + 1050, + 1042, + 1017, + 1042 + ], + "text": "$3" + }, + { + "boundingBox": [ + 1048, + 1014, + 1095, + 1013, + 1095, + 1041, + 1048, + 1042 + ], + "text": ".50" + } + ] + }, + { + "boundingBox": [ + 1018, + 1286, + 1118, + 1281, + 1120, + 1313, + 1020, + 1318 + ], + "text": "$ 16.00", + "words": [ + { + "boundingBox": [ + 1015, + 1288, + 1040, + 1286, + 1042, + 1318, + 1018, + 1319 + ], + "text": "$" + }, + { + "boundingBox": [ + 1034, + 1287, + 1116, + 1284, + 1117, + 1314, + 1036, + 1318 + ], + "text": "16.00" + } + ] + }, + { + "boundingBox": [ + 356, + 1977, + 1166, + 1975, + 1167, + 2021, + 357, + 2023 + ], + "text": "on each guest check, 100% will be distributed", + "words": [ + { + "boundingBox": [ + 357, + 1981, + 396, + 1981, + 398, + 2022, + 359, + 2021 + ], + "text": "on" + }, + { + "boundingBox": [ + 409, + 1981, + 485, + 1980, + 486, + 2022, + 411, + 2022 + ], + "text": "each" + }, + { + "boundingBox": [ + 498, + 1980, + 594, + 1979, + 595, + 2023, + 499, + 2022 + ], + "text": "guest" + }, + { + "boundingBox": [ + 607, + 1979, + 722, + 1978, + 723, + 2023, + 608, + 2023 + ], + "text": "check," + }, + { + "boundingBox": [ + 733, + 1978, + 808, + 1977, + 809, + 2023, + 733, + 2023 + ], + "text": "100%" + }, + { + "boundingBox": [ + 816, + 1977, + 899, + 1977, + 900, + 2023, + 817, + 2023 + ], + "text": "will" + }, + { + "boundingBox": [ + 907, + 1977, + 952, + 1977, + 952, + 2022, + 908, + 2023 + ], + "text": "be" + }, + { + "boundingBox": [ + 962, + 1977, + 1171, + 1977, + 1170, + 2021, + 962, + 2022 + ], + "text": "distributed" + } + ] + }, + { + "boundingBox": [ + 401, + 1358, + 557, + 1360, + 556, + 1393, + 400, + 1391 + ], + "text": "(PF) Cozze", + "words": [ + { + "boundingBox": [ + 395, + 1359, + 466, + 1360, + 467, + 1393, + 396, + 1393 + ], + "text": "(PF)" + }, + { + "boundingBox": [ + 473, + 1360, + 557, + 1362, + 558, + 1393, + 474, + 1393 + ], + "text": "Cozze" + } + ] + }, + { + "boundingBox": [ + 404, + 1252, + 589, + 1251, + 590, + 1285, + 405, + 1286 + ], + "text": "3 (PF) Cozze", + "words": [ + { + "boundingBox": [ + 404, + 1253, + 426, + 1253, + 426, + 1287, + 404, + 1287 + ], + "text": "3" + }, + { + "boundingBox": [ + 433, + 1253, + 503, + 1253, + 502, + 1286, + 433, + 1287 + ], + "text": "(PF)" + }, + { + "boundingBox": [ + 509, + 1253, + 593, + 1254, + 592, + 1284, + 509, + 1286 + ], + "text": "Cozze" + } + ] + }, + { + "boundingBox": [ + 381, + 1547, + 552, + 1548, + 551, + 1584, + 381, + 1584 + ], + "text": "2 Menabrea", + "words": [ + { + "boundingBox": [ + 381, + 1548, + 405, + 1548, + 404, + 1585, + 379, + 1585 + ], + "text": "2" + }, + { + "boundingBox": [ + 412, + 1548, + 549, + 1550, + 550, + 1584, + 411, + 1585 + ], + "text": "Menabrea" + } + ] + }, + { + "boundingBox": [ + 422, + 920, + 557, + 919, + 557, + 947, + 423, + 949 + ], + "text": "Check #19", + "words": [ + { + "boundingBox": [ + 423, + 922, + 496, + 920, + 497, + 949, + 424, + 950 + ], + "text": "Check" + }, + { + "boundingBox": [ + 509, + 920, + 556, + 920, + 556, + 949, + 510, + 949 + ], + "text": "#19" + } + ] + }, + { + "boundingBox": [ + 414, + 1116, + 596, + 1115, + 597, + 1146, + 415, + 1147 + ], + "text": "2 Bruschetta", + "words": [ + { + "boundingBox": [ + 412, + 1117, + 432, + 1117, + 431, + 1147, + 411, + 1148 + ], + "text": "2" + }, + { + "boundingBox": [ + 442, + 1117, + 595, + 1117, + 595, + 1147, + 442, + 1147 + ], + "text": "Bruschetta" + } + ] + }, + { + "boundingBox": [ + 413, + 1083, + 521, + 1082, + 522, + 1111, + 413, + 1112 + ], + "text": "2 Bread", + "words": [ + { + "boundingBox": [ + 414, + 1083, + 435, + 1083, + 436, + 1112, + 414, + 1113 + ], + "text": "2" + }, + { + "boundingBox": [ + 443, + 1083, + 523, + 1083, + 524, + 1111, + 444, + 1112 + ], + "text": "Bread" + } + ] + }, + { + "boundingBox": [ + 413, + 1148, + 551, + 1149, + 550, + 1179, + 413, + 1179 + ], + "text": "2 Octopus", + "words": [ + { + "boundingBox": [ + 410, + 1149, + 430, + 1150, + 430, + 1180, + 410, + 1180 + ], + "text": "2" + }, + { + "boundingBox": [ + 441, + 1150, + 550, + 1151, + 551, + 1180, + 440, + 1180 + ], + "text": "Octopus" + } + ] + }, + { + "boundingBox": [ + 631, + 792, + 878, + 790, + 879, + 820, + 632, + 822 + ], + "text": "Seattle, WA 98102", + "words": [ + { + "boundingBox": [ + 635, + 793, + 752, + 794, + 752, + 822, + 635, + 823 + ], + "text": "Seattle," + }, + { + "boundingBox": [ + 757, + 793, + 792, + 793, + 792, + 822, + 758, + 822 + ], + "text": "WA" + }, + { + "boundingBox": [ + 801, + 793, + 876, + 791, + 877, + 821, + 802, + 822 + ], + "text": "98102" + } + ] + }, + { + "boundingBox": [ + 852, + 884, + 1088, + 882, + 1089, + 914, + 852, + 916 + ], + "text": "06/06/18 1:11 PM", + "words": [ + { + "boundingBox": [ + 851, + 884, + 972, + 885, + 973, + 915, + 851, + 917 + ], + "text": "06/06/18" + }, + { + "boundingBox": [ + 981, + 885, + 1045, + 885, + 1046, + 914, + 982, + 915 + ], + "text": "1:11" + }, + { + "boundingBox": [ + 1049, + 885, + 1085, + 884, + 1086, + 914, + 1050, + 914 + ], + "text": "PM" + } + ] + }, + { + "boundingBox": [ + 400, + 1326, + 542, + 1325, + 543, + 1356, + 400, + 1357 + ], + "text": "Spaghetti", + "words": [ + { + "boundingBox": [ + 401, + 1326, + 544, + 1327, + 544, + 1357, + 401, + 1358 + ], + "text": "Spaghetti" + } + ] + }, + { + "boundingBox": [ + 1027, + 1712, + 1151, + 1709, + 1152, + 1746, + 1028, + 1749 + ], + "text": "$358 . 44", + "words": [ + { + "boundingBox": [ + 1026, + 1713, + 1102, + 1711, + 1103, + 1748, + 1029, + 1750 + ], + "text": "$358" + }, + { + "boundingBox": [ + 1097, + 1711, + 1121, + 1711, + 1122, + 1748, + 1099, + 1748 + ], + "text": "." + }, + { + "boundingBox": [ + 1114, + 1711, + 1155, + 1711, + 1156, + 1747, + 1115, + 1748 + ], + "text": "44" + } + ] + }, + { + "boundingBox": [ + 984, + 919, + 1087, + 916, + 1088, + 943, + 984, + 946 + ], + "text": "Table 1", + "words": [ + { + "boundingBox": [ + 983, + 919, + 1057, + 918, + 1057, + 946, + 984, + 947 + ], + "text": "Table" + }, + { + "boundingBox": [ + 1071, + 918, + 1089, + 917, + 1089, + 944, + 1071, + 945 + ], + "text": "1" + } + ] + }, + { + "boundingBox": [ + 1042, + 1394, + 1126, + 1391, + 1126, + 1423, + 1044, + 1425 + ], + "text": "$2 .00", + "words": [ + { + "boundingBox": [ + 1039, + 1393, + 1075, + 1392, + 1076, + 1424, + 1040, + 1425 + ], + "text": "$2" + }, + { + "boundingBox": [ + 1073, + 1392, + 1124, + 1390, + 1125, + 1422, + 1074, + 1424 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 1012, + 1182, + 1104, + 1177, + 1106, + 1206, + 1013, + 1211 + ], + "text": "$ 15 .00", + "words": [ + { + "boundingBox": [ + 1010, + 1182, + 1032, + 1181, + 1034, + 1211, + 1012, + 1212 + ], + "text": "$" + }, + { + "boundingBox": [ + 1028, + 1181, + 1059, + 1180, + 1061, + 1209, + 1030, + 1211 + ], + "text": "15" + }, + { + "boundingBox": [ + 1059, + 1180, + 1107, + 1178, + 1109, + 1207, + 1061, + 1209 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 1036, + 1546, + 1135, + 1545, + 1137, + 1579, + 1038, + 1582 + ], + "text": "$ 12 .00", + "words": [ + { + "boundingBox": [ + 1033, + 1546, + 1059, + 1545, + 1060, + 1581, + 1033, + 1582 + ], + "text": "$" + }, + { + "boundingBox": [ + 1050, + 1545, + 1090, + 1544, + 1091, + 1580, + 1050, + 1581 + ], + "text": "12" + }, + { + "boundingBox": [ + 1083, + 1545, + 1138, + 1543, + 1139, + 1579, + 1084, + 1581 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 570, + 732, + 936, + 731, + 937, + 762, + 570, + 762 + ], + "text": "Serafina Osteria & Enoteca", + "words": [ + { + "boundingBox": [ + 570, + 732, + 687, + 734, + 688, + 763, + 571, + 763 + ], + "text": "Serafina" + }, + { + "boundingBox": [ + 695, + 734, + 797, + 734, + 798, + 762, + 696, + 763 + ], + "text": "Osteria" + }, + { + "boundingBox": [ + 803, + 734, + 826, + 734, + 826, + 762, + 804, + 762 + ], + "text": "&" + }, + { + "boundingBox": [ + 834, + 733, + 938, + 732, + 938, + 763, + 834, + 762 + ], + "text": "Enoteca" + } + ] + }, + { + "boundingBox": [ + 799, + 671, + 867, + 669, + 868, + 687, + 800, + 689 + ], + "text": "Bet. 1091", + "words": [ + { + "boundingBox": [ + 804, + 672, + 833, + 671, + 833, + 689, + 804, + 690 + ], + "text": "Bet." + }, + { + "boundingBox": [ + 833, + 671, + 866, + 671, + 866, + 689, + 833, + 689 + ], + "text": "1091" + } + ] + }, + { + "boundingBox": [ + 666, + 824, + 838, + 821, + 839, + 851, + 667, + 854 + ], + "text": "206 . 323 . 0807", + "words": [ + { + "boundingBox": [ + 667, + 825, + 714, + 824, + 715, + 853, + 669, + 855 + ], + "text": "206" + }, + { + "boundingBox": [ + 710, + 824, + 730, + 824, + 731, + 853, + 711, + 853 + ], + "text": "." + }, + { + "boundingBox": [ + 724, + 824, + 770, + 823, + 772, + 852, + 725, + 853 + ], + "text": "323" + }, + { + "boundingBox": [ + 767, + 823, + 786, + 823, + 787, + 852, + 768, + 853 + ], + "text": "." + }, + { + "boundingBox": [ + 780, + 823, + 842, + 822, + 843, + 852, + 781, + 852 + ], + "text": "0807" + } + ] + }, + { + "boundingBox": [ + 1027, + 1430, + 1131, + 1428, + 1132, + 1460, + 1028, + 1461 + ], + "text": "$ 16.00", + "words": [ + { + "boundingBox": [ + 1027, + 1433, + 1048, + 1432, + 1050, + 1462, + 1029, + 1462 + ], + "text": "$" + }, + { + "boundingBox": [ + 1044, + 1432, + 1128, + 1429, + 1129, + 1462, + 1046, + 1462 + ], + "text": "16.00" + } + ] + }, + { + "boundingBox": [ + 1018, + 1081, + 1100, + 1079, + 1101, + 1106, + 1019, + 1108 + ], + "text": "$7.00", + "words": [ + { + "boundingBox": [ + 1021, + 1083, + 1098, + 1080, + 1099, + 1107, + 1022, + 1109 + ], + "text": "$7.00" + } + ] + }, + { + "boundingBox": [ + 1052, + 1796, + 1160, + 1795, + 1161, + 1833, + 1054, + 1837 + ], + "text": "$42.53", + "words": [ + { + "boundingBox": [ + 1049, + 1796, + 1164, + 1793, + 1165, + 1834, + 1050, + 1837 + ], + "text": "$42.53" + } + ] + }, + { + "boundingBox": [ + 379, + 1587, + 646, + 1585, + 647, + 1623, + 380, + 1625 + ], + "text": "2 Side Bru Bread", + "words": [ + { + "boundingBox": [ + 376, + 1587, + 401, + 1588, + 401, + 1625, + 375, + 1626 + ], + "text": "2" + }, + { + "boundingBox": [ + 412, + 1588, + 485, + 1589, + 485, + 1625, + 411, + 1625 + ], + "text": "Side" + }, + { + "boundingBox": [ + 493, + 1589, + 549, + 1589, + 549, + 1624, + 493, + 1624 + ], + "text": "Bru" + }, + { + "boundingBox": [ + 556, + 1589, + 647, + 1588, + 648, + 1624, + 556, + 1624 + ], + "text": "Bread" + } + ] + }, + { + "boundingBox": [ + 411, + 1218, + 498, + 1218, + 497, + 1248, + 409, + 1249 + ], + "text": "Suppli", + "words": [ + { + "boundingBox": [ + 406, + 1218, + 503, + 1217, + 504, + 1248, + 407, + 1249 + ], + "text": "Suppli" + } + ] + }, + { + "boundingBox": [ + 390, + 1433, + 537, + 1432, + 538, + 1465, + 391, + 1466 + ], + "text": "Bolognese", + "words": [ + { + "boundingBox": [ + 389, + 1434, + 538, + 1436, + 538, + 1465, + 389, + 1467 + ], + "text": "Bolognese" + } + ] + }, + { + "boundingBox": [ + 597, + 762, + 910, + 761, + 911, + 790, + 597, + 791 + ], + "text": "2043 Eastlake Ave East", + "words": [ + { + "boundingBox": [ + 598, + 763, + 659, + 763, + 660, + 792, + 598, + 792 + ], + "text": "2043" + }, + { + "boundingBox": [ + 667, + 763, + 782, + 764, + 783, + 792, + 668, + 792 + ], + "text": "Eastlake" + }, + { + "boundingBox": [ + 792, + 764, + 840, + 764, + 841, + 792, + 793, + 792 + ], + "text": "Ave" + }, + { + "boundingBox": [ + 847, + 763, + 909, + 763, + 911, + 791, + 849, + 792 + ], + "text": "East" + } + ] + }, + { + "boundingBox": [ + 415, + 1051, + 537, + 1050, + 538, + 1079, + 416, + 1081 + ], + "text": "Lemonade", + "words": [ + { + "boundingBox": [ + 416, + 1052, + 538, + 1053, + 538, + 1080, + 415, + 1082 + ], + "text": "Lemonade" + } + ] + }, + { + "boundingBox": [ + 430, + 2073, + 1094, + 2075, + 1094, + 2121, + 429, + 2119 + ], + "text": "provide equitable wages. Thank you .", + "words": [ + { + "boundingBox": [ + 427, + 2074, + 567, + 2074, + 568, + 2120, + 428, + 2121 + ], + "text": "provide" + }, + { + "boundingBox": [ + 574, + 2074, + 747, + 2075, + 748, + 2120, + 574, + 2120 + ], + "text": "equitable" + }, + { + "boundingBox": [ + 753, + 2075, + 878, + 2075, + 878, + 2121, + 754, + 2120 + ], + "text": "wages." + }, + { + "boundingBox": [ + 900, + 2075, + 1000, + 2076, + 1000, + 2121, + 900, + 2121 + ], + "text": "Thank" + }, + { + "boundingBox": [ + 1010, + 2076, + 1077, + 2076, + 1076, + 2122, + 1009, + 2121 + ], + "text": "you" + }, + { + "boundingBox": [ + 1067, + 2076, + 1098, + 2076, + 1097, + 2122, + 1067, + 2122 + ], + "text": "." + } + ] + }, + { + "boundingBox": [ + 409, + 1394, + 700, + 1392, + 701, + 1427, + 410, + 1429 + ], + "text": "Side Grilled Bread", + "words": [ + { + "boundingBox": [ + 411, + 1397, + 476, + 1395, + 476, + 1430, + 411, + 1430 + ], + "text": "Side" + }, + { + "boundingBox": [ + 487, + 1395, + 602, + 1394, + 603, + 1429, + 487, + 1430 + ], + "text": "Grilled" + }, + { + "boundingBox": [ + 613, + 1394, + 697, + 1395, + 699, + 1428, + 614, + 1429 + ], + "text": "Bread" + } + ] + }, + { + "boundingBox": [ + 1030, + 1507, + 1135, + 1506, + 1136, + 1540, + 1031, + 1542 + ], + "text": "$40 .00", + "words": [ + { + "boundingBox": [ + 1029, + 1508, + 1086, + 1507, + 1087, + 1541, + 1031, + 1543 + ], + "text": "$40" + }, + { + "boundingBox": [ + 1081, + 1507, + 1135, + 1507, + 1137, + 1540, + 1083, + 1541 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 401, + 1289, + 572, + 1286, + 573, + 1318, + 402, + 1321 + ], + "text": "Cappelletti", + "words": [ + { + "boundingBox": [ + 402, + 1291, + 576, + 1288, + 575, + 1320, + 403, + 1321 + ], + "text": "Cappelletti" + } + ] + }, + { + "boundingBox": [ + 1047, + 1754, + 1156, + 1754, + 1157, + 1789, + 1048, + 1792 + ], + "text": "$62.64", + "words": [ + { + "boundingBox": [ + 1046, + 1753, + 1158, + 1752, + 1158, + 1790, + 1047, + 1791 + ], + "text": "$62.64" + } + ] + }, + { + "boundingBox": [ + 384, + 1506, + 633, + 1508, + 632, + 1546, + 383, + 1544 + ], + "text": "2 (PF) Bucatini", + "words": [ + { + "boundingBox": [ + 382, + 1507, + 408, + 1507, + 409, + 1546, + 383, + 1547 + ], + "text": "2" + }, + { + "boundingBox": [ + 415, + 1507, + 490, + 1508, + 490, + 1544, + 416, + 1546 + ], + "text": "(PF)" + }, + { + "boundingBox": [ + 495, + 1508, + 637, + 1510, + 635, + 1546, + 495, + 1544 + ], + "text": "Bucatini" + } + ] + }, + { + "boundingBox": [ + 420, + 982, + 584, + 985, + 583, + 1015, + 419, + 1012 + ], + "text": "Caffe Latte", + "words": [ + { + "boundingBox": [ + 421, + 984, + 496, + 984, + 497, + 1014, + 422, + 1014 + ], + "text": "Caffe" + }, + { + "boundingBox": [ + 506, + 984, + 583, + 987, + 584, + 1015, + 507, + 1014 + ], + "text": "Latte" + } + ] + }, + { + "boundingBox": [ + 1053, + 1588, + 1142, + 1585, + 1142, + 1620, + 1055, + 1624 + ], + "text": "$4.00", + "words": [ + { + "boundingBox": [ + 1050, + 1587, + 1144, + 1584, + 1145, + 1620, + 1052, + 1623 + ], + "text": "$4.00" + } + ] + }, + { + "boundingBox": [ + 1014, + 1250, + 1113, + 1248, + 1114, + 1277, + 1015, + 1279 + ], + "text": "$60 .00", + "words": [ + { + "boundingBox": [ + 1015, + 1252, + 1066, + 1250, + 1067, + 1279, + 1017, + 1280 + ], + "text": "$60" + }, + { + "boundingBox": [ + 1064, + 1250, + 1113, + 1249, + 1113, + 1278, + 1065, + 1279 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 363, + 1796, + 429, + 1798, + 429, + 1834, + 364, + 1833 + ], + "text": "Tax", + "words": [ + { + "boundingBox": [ + 363, + 1796, + 420, + 1797, + 419, + 1834, + 362, + 1833 + ], + "text": "Tax" + } + ] + }, + { + "boundingBox": [ + 1017, + 1323, + 1119, + 1318, + 1121, + 1349, + 1019, + 1354 + ], + "text": "$ 15 .00", + "words": [ + { + "boundingBox": [ + 1019, + 1324, + 1041, + 1323, + 1043, + 1353, + 1021, + 1355 + ], + "text": "$" + }, + { + "boundingBox": [ + 1037, + 1323, + 1071, + 1321, + 1072, + 1351, + 1039, + 1353 + ], + "text": "15" + }, + { + "boundingBox": [ + 1069, + 1321, + 1119, + 1321, + 1120, + 1350, + 1070, + 1351 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 1017, + 1048, + 1098, + 1047, + 1099, + 1073, + 1018, + 1074 + ], + "text": "$3 .00", + "words": [ + { + "boundingBox": [ + 1019, + 1050, + 1051, + 1049, + 1053, + 1074, + 1021, + 1075 + ], + "text": "$3" + }, + { + "boundingBox": [ + 1051, + 1049, + 1095, + 1048, + 1097, + 1074, + 1053, + 1074 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 1068, + 1172, + 1009, + 1175, + 1007, + 1148, + 1066, + 1145 + ], + "text": "OE$", + "words": [ + { + "boundingBox": [ + 1058, + 1172, + 1009, + 1174, + 1008, + 1147, + 1056, + 1145 + ], + "text": "OE$" + } + ] + }, + { + "boundingBox": [ + 1016, + 1358, + 1123, + 1355, + 1124, + 1386, + 1017, + 1389 + ], + "text": "$20 .00", + "words": [ + { + "boundingBox": [ + 1020, + 1359, + 1073, + 1358, + 1076, + 1388, + 1023, + 1390 + ], + "text": "$20" + }, + { + "boundingBox": [ + 1069, + 1358, + 1121, + 1357, + 1123, + 1386, + 1072, + 1388 + ], + "text": ".00" + } + ] + }, + { + "boundingBox": [ + 359, + 1840, + 454, + 1841, + 453, + 1879, + 360, + 1880 + ], + "text": "Total", + "words": [ + { + "boundingBox": [ + 358, + 1840, + 454, + 1839, + 455, + 1879, + 359, + 1880 + ], + "text": "Total" + } + ] + } + ] + } + ], + "understandingResults": [ + { + "pages": [ + 1 + ], + "fields": { + "Subtotal": { + "valueType": "numberValue", + "value": 358.44, + "text": "$358.44", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/28/words/0" + }, + { + "$ref": "#/recognitionResults/0/lines/28/words/1" + }, + { + "$ref": "#/recognitionResults/0/lines/28/words/2" + } + ] + }, + "Total": { + "valueType": "numberValue", + "value": 463.61, + "text": "$463.61", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/2/words/0" + } + ] + }, + "Tax": { + "valueType": "numberValue", + "value": 42.53, + "text": "$42.53", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/38/words/0" + } + ] + }, + "MerchantAddress": { + "valueType": "stringValue", + "value": "2043 Eastlake Ave East Seattle, WA 98102", + "text": "2043 Eastlake Ave East Seattle, WA 98102", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/42/words/0" + }, + { + "$ref": "#/recognitionResults/0/lines/42/words/1" + }, + { + "$ref": "#/recognitionResults/0/lines/42/words/2" + }, + { + "$ref": "#/recognitionResults/0/lines/42/words/3" + }, + { + "$ref": "#/recognitionResults/0/lines/25/words/0" + }, + { + "$ref": "#/recognitionResults/0/lines/25/words/1" + }, + { + "$ref": "#/recognitionResults/0/lines/25/words/2" + } + ] + }, + "MerchantName": { + "valueType": "stringValue", + "value": "Serafina Osteria & Enoteca", + "text": "Serafina Osteria & Enoteca", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/33/words/0" + }, + { + "$ref": "#/recognitionResults/0/lines/33/words/1" + }, + { + "$ref": "#/recognitionResults/0/lines/33/words/2" + }, + { + "$ref": "#/recognitionResults/0/lines/33/words/3" + } + ] + }, + "MerchantPhoneNumber": { + "valueType": "stringValue", + "text": "206 . 323 . 0807", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/35/words/0" + }, + { + "$ref": "#/recognitionResults/0/lines/35/words/1" + }, + { + "$ref": "#/recognitionResults/0/lines/35/words/2" + }, + { + "$ref": "#/recognitionResults/0/lines/35/words/3" + }, + { + "$ref": "#/recognitionResults/0/lines/35/words/4" + } + ] + }, + "TransactionDate": { + "valueType": "stringValue", + "value": "2018-06-06", + "text": "06/06/18", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/26/words/0" + } + ] + }, + "TransactionTime": { + "valueType": "stringValue", + "value": "13:11:00", + "text": "1:11 PM", + "elements": [ + { + "$ref": "#/recognitionResults/0/lines/26/words/1" + }, + { + "$ref": "#/recognitionResults/0/lines/26/words/2" + } + ] + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md new file mode 100644 index 000000000000..6edd7618a0e9 --- /dev/null +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md @@ -0,0 +1,13 @@ +Form Recognizer Receipt: API Review Feedback + +PR Link: https://github.com/Azure/azure-rest-api-specs/pull/6042 + +Feedback: +--------- +1. [dsgouda] Mark user non-editable properties as Readonly + + related discussion: https://github.com/Azure/azure-rest-api-specs/pull/6042#discussion_r289147638 + reference: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/LocalSearch/stable/v1.0/LocalSearch.json#L241 + + + diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/readme.md b/specification/cognitiveservices/data-plane/FormRecognizer/readme.md index fa024212ad8c..edafeecb8a2d 100644 --- a/specification/cognitiveservices/data-plane/FormRecognizer/readme.md +++ b/specification/cognitiveservices/data-plane/FormRecognizer/readme.md @@ -18,7 +18,10 @@ openapi-type: data-plane These settings apply only when `--tag=release_1_0` is specified on the command line. ``` yaml $(tag) == 'release_1_0' -input-file: preview/v1.0/FormRecognizer.json +input-file: + - preview/v1.0/FormRecognizer.json + - preview/v1.0/FormRecognizerReceipt.json + - preview/v1.0/FormRecognizerReceiptOcr.json ``` ## Swagger to SDK