From a038f687b525f1b91bcd1e297dcf76cd2ecba2c0 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 16 Jul 2019 14:58:26 -0700 Subject: [PATCH 01/14] update to switch ink point format from a string to an object with properties --- .../preview/v1.0/InkRecognizer.json | 109 ++++- .../v1.0/examples/InkWordRecognition.json | 418 +++++++++++++++++- 2 files changed, 518 insertions(+), 9 deletions(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index d391c3680892..03fc4f9aff87 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -292,6 +292,86 @@ "type": "object" } }, + "inkPointValueAttribute" : { + "type" : "object", + "description" : "A container for the attributes of a value contained in the inkpoint object.", + "name" : "string", + "logicalMin" : "number", + "logicalMax" : "number" + }, + "inkPoint" : { + "type": "array", + "description" : "An array ink points with data about each point. It is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", + "items" : { + "properties" : { + "type" : "object", + "x" : { + "type" : "number", + "description" : "The x coordinate of the pen location on the writing surface." + }, + "y" : { + "type" : "number", + "description" : "The y coordinate of the pen location on the writing surface." + }, + "z" : { + "type" : "number", + "description" : "The z coordinate of the pen location on the writing surface. This may not be used for recognition." + }, + "tipPressure" : { + "type" : "number", + "description" : "The force excerted against the tablet surface by the transducer, typically a stylus. This may not be used for recognition." + }, + "barrelPressure" : { + "type" : "number", + "description" : "The force excerted directly by the user on a transducer sensor, such as a pressure-sensitive button on the barrel of a stylus. This may not be used for recognition." + }, + "timestamp" : { + "type" : "number", + "description" : "The time relative to the absolute time the transducer last became active. This may not be used for recognition." + }, + "xTilt" : { + "type" : "number", + "description" : "The plane angle between the Y-Z plane and the plane containing the transducer axis and the Y axis. This may not be used for recognition." + }, + "yTilt" : { + "type" : "number", + "description" : "The angle between the X-Z and transducer-X planes. A positive Y Tilt is toward the user. This may not be used for recognition." + }, + "width" : { + "type" : "number", + "description" : "The width of the tip of the writing intrument. This is used by touch screen devices to report the width of the finger contact on the writing surface." + }, + "height" : { + "type" : "number", + "description" : "The height of the tip of the writing instrument. This is used by touch screen devices to report the height of the finger contact on the writing surface." + }, + "tipSwitch" : { + "type" : "boolean", + "description" : "A switch located on the tip of a stylus indicating contact of the stylus with a surface. This may not be used for recognition." + }, + "inverted" : { + "type" : "boolean", + "description" : "A value that indicates that the currently sensed position originates from the end of a stylus opposite the tip. This may not be used for recognition." + }, + "barrelSwitch" : { + "type" : "boolean", + "description" : "A non-tip button located on the barrel of a stylus. Its function is typically mapped to a system secondary button. This may not be used for recognition." + }, + "eraser" : { + "type" : "boolean", + "description" : "The control is used for erasing objects. It is typically located opposite the writing end of a stylus. This may not be used for recognition." + }, + "secondaryTip" : { + "type" : "boolean", + "description" : "A secondary switch used in conjuction with the tip switch to indicate pressure above a certain threshold applied with the stylus. This may not be used for recognition." + } + }, + "required" : [ + "x", + "y" + ] + } + }, "recognitionUnit": { "items": { "properties": { @@ -407,8 +487,7 @@ "description": "The IETF BCP 47 language code (for ex. en-US, en-GB, hi-IN etc.) of the expected language for the handwritten content in this stroke. The response will include results from this language." }, "points": { - "type": "string", - "description": "A string of comma separated floating point values that represent the x and y coordinates of points that are part of the stroke. (X1,Y1, X2,Y2…). It is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas" + "$ref": "#/definitions/inkPoint" }, "drawingAttributes": { "$ref": "#/definitions/drawingAttributesPattern" @@ -526,6 +605,26 @@ "modelAsString": true } }, + "inputDevice" : { + "type" : "string", + "description" : "This identifies the kind of device used as the writing instrument", + "enum" : [ + "digitizer", + "pen", + "lightPen", + "touchScreen", + "touchPad", + "whiteBoard", + "3dDigitizer", + "stereoPlotter", + "articulatedArm", + "armature" + ], + "x-ms-enum" : { + "name" : "inputDevice", + "modelAsString": true + } + }, "unit": { "type": "string", "description": "This represents the physical units of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", @@ -544,6 +643,12 @@ "example": "en-US", "description": "The IETF BCP 47 language code (for ex. en-US, en-GB, hi-IN etc.) of the expected language for the handwritten content in the ink strokes. The response will include results from this language." }, + "inkPointValueAttributes" : { + "type" : "array", + "items" : { + "$ref":"#definitions/inkPointValueAttribute" + } + }, "strokes": { "type": "array", "items": { diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json index d3a41e0403d2..810c8a9ad7b0 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json @@ -7,16 +7,420 @@ "language": "en-US", "strokes": [ { - "id": 1, - "kind": "inkWriting", - "points": "19.34498,28.21327,19.34498,27.93462,19.34498,27.65597,19.0157,27.65597,18.76874,27.44698,18.27483,27.44698,18.02787,27.44698,17.45164,27.44698,16.62845,27.65597,15.88758,27.93462,15.06439,28.49191,14.32351,28.97955,13.25337,29.53685,11.36003,31.41773,10.61916,32.46267,9.795967,33.50761,8.972776,34.83119,8.231905,35.87613,7.655672,37.19971,7.161757,38.24465,6.9148,39.35925,6.9148,40.12554,6.9148,40.89182,6.9148,41.72777,7.408715,42.2154,7.902629,42.49405,8.478863,42.77271,8.972776,43.05135,9.795967,43.05135,10.28988,43.05135,11.11307,42.77271,11.93626,42.2154,12.43018,41.72777,13.25337,41.17047,13.74728,40.12554,14.57047,39.0806,15.31134,37.75701,15.88758,36.15478,16.62845,34.27389,17.20468,32.46267,17.6986,30.30314,18.27483,28.21327,18.76874,26.12339,19.34498,23.96386,19.59193,21.87399,19.83889,19.9931,20.08585,18.46053,20.08585,17.13695,20.08585,16.02235,20.08585,14.97741,20.08585,14.48978,20.08585,13.93248,19.83889,13.65383,19.83889,13.65383,19.83889,13.65383,19.59193,13.65383,19.59193,13. 65383,19.34498,14.21113,19.34498,14.69876,19.0157,15.25606,19.0157,16.02235,18.76874,17.13695,18.76874,18.46053,18.52179,19.78412,18.27483,21.31669,18.02787,22.91892,18.02787,24.52116,17.6986,26.33238,17.45164,28.21327,17.20468,30.09415,16.95773,31.90537,16.62845,33.50761,16.62845,35.10984,16.62845,36.71207,16.62845,38.03566,16.95773,39.0806,17.20468,39.84688,17.45164,40.68283,18.02787,41.17047,18.52179,41.72777,19.34498,42.00642,19.83889,42.00642,20.90904,41.72777,21.73223,41.44912,22.4731,40.89182,23.54325,40.12554,24.36644,39.35925,25.10731,38.5233,25.9305,37.47836,26.75369,36.71207,27.24761,35.59748,27.49457,34.55254,27.74152,33.50761,28.0708,32.46267,28.0708,31.62672,28.0708,30.86044,28.0708,30.09415,27.74152,29.53685,27.49457,28.97955,27.24761,28.77056,26.75369,28.49191,26.42442,28.49191,25.9305,28.49191,25.43659,28.97955,25.10731,29.53685,24.6134,30.09415,24.03716,30.86044,23.79021,31.90537,23.29629,33.22896,23.04934,34.27389,22.72006,35.59748,22.72006,36.71207,22.4731,38.03566,22.72006,39.0806,22.72006,40.12554,23.04934,40.89182,23.29629,41.72777,23.79021,42.2154,24.36644,42.77271,24.86036,43.05135,25.68354,43.05135,26.42442,43.05135,27.24761,42.77271,28.31775,42.2154,29.3879,41.72777,30.45805,40.89182,31.44588,39.84688,32.8453,38.80195,33.83313,37.47836,35.15023,35.87613,36.22039,34.27389,37.29053,32.46267,39.43083,27.93462,40.50097,25.5661,41.24184,23.19757,41.81808,20.82905,42.55895,18.46053,42.88823,16.301,43.38214,14.48978,43.6291,11.84261,43.6291,10.72801,43.6291,10.24037,43.38214,9.96172,43.38214,9.96172,43.13519,9.96172,42.88823,10.72801,42.31199,12.60889,41.81808,14.21113,41.24184,16.02235,40.74793,18.18188,40.25402,20.5504,39.67778,23.19757,39.43083,25.84475,38.60764,31.13909,38.36068,33.78626,38.36068,36.43343,38.11372,38.80195,38.11372,40.89182,38.11372,43.05135,37.86677,45.14123,37.53749,48.62434,37.53749,49.94793,37.29053,51.27151,37.04358,52.31645,36.79662,53.08273,36.54966,53.64004,35.97342,53.84902,34.65633,53.64004,33.83313,53.08273,33.09226,52.5951,32.26907,51.75915,31.19892,50.71421,30.45805,49.66928,29.88182,48.83333,28.56471,47.02211,28.31775,46.18616,28.0708,45.69852,28.0708,45.14123,28.31775,44.37494,28.56471,43.53899,29.88182,42.2154,30.70501,41.44912,31.77516,40.68283,32.8453,39.56823,35.47952,37.75701,36.79662,36.92107,39.67778,35.38849,42.31199,34.0649,43.6291,33.50761,46.26331,32.74132,47.33346,32.46267,49.22679,32.18402,49.72071,31.90537,50.29694,31.90537,50.79086,31.90537,51.03782,31.90537,51.03782,31.90537,50.29694,31.90537,49.96766,32.18402,49.47375,32.46267,48.65057,32.74132,47.90969,33.22896,47.0865,33.78626,46.26331,34.27389,44.69925,35.87613,44.20533,36.71207,43.95837,37.75701,43.6291,38.5233,43.38214,39.84688,43.6291,40.12554,43.95837,40.40418,44.20533,40.68283,45.27548,40.40418,46.01635,40.12554,46.59258,39.56823,47.0865,38.80195,47.90969,38.03566,48.97984,36.15478,49.47375,35.10984,49.72071,34.27389,49.96766,33.50761,50.29694,32.46267,50.5439,31.90537,50.5439,31.90537,50.29694,32.18402,50.29694,32.74132,49.96766,33.22896,49.72071,34.83119,49.47375,35.87613,49.47375,37.75701,49.47375,38.5233,49.72071,39.0806,49.72071,39.35925,50.29694,39.56823,50.79086,39.56823,51.03782,39.35925,51.61405,38.80195,52.6842,37.47836,53.1781,36.71207,53.67202,35.87613,54.24826,35.10984,54.74217,34.55254,55.3184,33.50761,55.56536,33.22896,55.56536,32.95031,55.56536,32.95031,55.56536,33.78626,55.3184,34.27389,55.07145,35.38849,55.07145,36.15478,55.07145,36.92107,55.07145,37.47836,55.3184,38.03566,55.3184,38.24465,55.56536,38.5233,56.05928,38.5233,56.38855,38.24465,56.63551,38.03566,57.12943,37.75701,57.70565,36.71207,58.19957,36.15478,58.44653,35.10984,58.77581,34.55254,58.77581,34.27389,59.02276,34.0649,59.02276,33.78626,59.02276,33.78626,58.77581,34.27389,58.77581,34.55254,58.77581,35.10984,58.77581,35.38849,58.44653,36.71207,58.77581,37.47836,58.77581,38.03566,59.02276,38.80195,59.51667,39.56823,60.09291,39.84688,60.58682,39.84688,61.08074,39.56823,61.90393,39.35925,63.46799,38.24465,64.53814,37.19971,65.60828,36.15478,66.67844,34.55254,68.48946,31.41773,69.31265,29.53685,70.62975,25.5661,71.20598,23.47622,71.45294,21.87399,71.6999,20.5504,71.6999,18.18188,71.45294,17.34593,70.8767,16.57965,70.62975,16.301,70.3828,16.57965,69.88888,16.8583,68.81873,18.18188,68.24249,19.22682,67.17235,21.59534,66.43147,22.91892,65.85524,24.52116,65.60828,26.12339,64.7851,29.2582,64.53814,30.58179,64.29118,33.22896,64.53814,34.55254,64.53814,35.59748,64.7851,36.71207,65.85524,38.24465,66.43147,38.80195,67.99554,39.35925,68.81873,39.56823,69.5596,39.35925,70.62975,39.0806,73.01699,37.75701,74.33411,36.71207,76.72135,34.0649,78.03847,32.18402,79.35557,30.30314,80.67267,28.21327,82.81297,23.75487,83.88311,21.31669,85.20022,17.34593,85.69414,15.53471,86.02341,14.21113,86.27037,13.16619,86.27037,11.56396,86.27037,11.28531,86.27037,11.00666,86.02341,11.28531,86.02341,11.28531,86.02341,11.84261,85.44718,12.88754,85.44718,13.65383,84.95326,15.81336,84.70631,16.8583,84.37703,17.90323,83.88311,19.22682,83.30688,22.15264,82.81297,23.75487,81.98978,26.88968,81.49586,28.49191,81.00195,30.09415,80.67267,31.62672,80.17876,34.27389,79.9318,35.38849,79.60252,37.47836,79.60252,38.24465,79.60252,38.80195,79.9318,39.35925,80.42571,40.40418,81.00195,40.68283,82.31906,40.89182,83.05993,40.89182,83.88311,40.89182,84.95326,40.68283,86.76428,39.56823,87.58747,39.0806,89.15154,38.03566,89.72777,37.19971,90.22169,36.43343" + "id": 1, + "kind": "inkWriting", + "points":[{ "x" : 19.34498, "y" : 28.21327}, + { "x" : 19.34498, "y" : 27.93462}, + { "x" : 19.34498, "y" : 27.65597}, + { "x" :19.0157, "y" : 27.65597}, + { "x" : 18.76874, "y" : 27.44698}, + { "x" : 18.27483, "y" : 27.44698}, + { "x" : 18.02787, "y" : 27.44698}, + { "x" : 17.45164, "y" : 27.44698}, + { "x" : 16.62845, "y" : 27.65597}, + { "x" : 15.88758, "y" : 27.93462}, + { "x" : 15.06439, "y" : 28.49191}, + { "x" : 14.32351, "y" : 28.97955}, + { "x" : 13.25337, "y" : 29.53685}, + { "x" : 11.36003, "y" : 31.41773}, + { "x" : 10.61916, "y" : 32.46267}, + { "x" : 9.795967, "y" : 33.50761}, + { "x" : 8.972776, "y" : 34.83119}, + { "x" : 8.231905, "y" : 35.87613}, + { "x" : 7.655672, "y" : 37.19971}, + { "x" : 7.161757, "y" : 38.24465}, + { "x" : 6.9148, "y" : 39.35925}, + { "x" : 6.9148, "y" : 40.12554}, + { "x" : 6.9148, "y" : 40.89182}, + { "x" : 6.9148, "y" : 41.72777}, + { "x" : 7.408715, "y" : 42.2154}, + { "x" : 7.902629, "y" : 42.49405}, + { "x" : 8.478863, "y" : 42.77271}, + { "x" : 8.972776, "y" : 43.05135}, + { "x" : 9.795967, "y" : 43.05135}, + { "x" : 10.28988, "y" : 43.05135}, + { "x" : 11.11307, "y" : 42.77271}, + { "x" : 11.93626, "y" : 42.2154}, + { "x" : 12.43018, "y" : 41.72777}, + { "x" : 13.25337, "y" : 41.17047}, + { "x" : 13.74728, "y" : 40.12554}, + { "x" : 14.57047, "y" : 39.0806}, + { "x" : 15.31134, "y" : 37.75701}, + { "x" : 15.88758, "y" : 36.15478}, + { "x" : 16.62845, "y" : 34.27389}, + { "x" : 17.20468, "y" : 32.46267}, + { "x" : 17.6986, "y" : 30.30314}, + { "x" : 18.27483, "y" : 28.21327}, + { "x" : 18.76874, "y" : 26.12339}, + { "x" : 19.34498, "y" : 23.96386}, + { "x" : 19.59193, "y" : 21.87399}, + { "x" : 19.83889, "y" : 19.9931}, + { "x" : 20.08585, "y" : 18.46053}, + { "x" : 20.08585, "y" : 17.13695}, + { "x" : 20.08585, "y" : 16.02235}, + { "x" : 20.08585, "y" : 14.97741}, + { "x" : 20.08585, "y" : 14.48978}, + { "x" : 20.08585, "y" : 13.93248}, + { "x" : 19.83889, "y" : 13.65383}, + { "x" : 19.83889, "y" : 13.65383}, + { "x" : 19.83889, "y" : 13.65383}, + { "x" : 19.59193, "y" : 13.65383}, + { "x" : 19.59193, "y" : 13.65383}, + { "x" : 19.34498, "y" : 14.21113}, + { "x" : 19.34498, "y" : 14.69876}, + { "x" : 19.0157, "y" : 15.25606}, + { "x" : 19.0157, "y" : 16.02235}, + { "x" : 18.76874, "y" : 17.13695}, + { "x" : 18.76874, "y" : 18.46053}, + { "x" : 18.52179, "y" : 19.78412}, + { "x" : 18.27483, "y" : 21.31669}, + { "x" : 18.02787, "y" : 22.91892}, + { "x" : 18.02787, "y" : 24.52116}, + { "x" : 17.6986, "y" : 26.33238}, + { "x" : 17.45164, "y" : 28.21327}, + { "x" : 17.20468, "y" : 30.09415}, + { "x" : 16.95773, "y" : 31.90537}, + { "x" : 16.62845, "y" : 33.50761}, + { "x" : 16.62845, "y" : 35.10984}, + { "x" : 16.62845, "y" : 36.71207}, + { "x" : 16.62845, "y" : 38.03566}, + { "x" : 16.95773, "y" : 39.0806}, + { "x" : 17.20468, "y" : 39.84688}, + { "x" : 17.45164, "y" : 40.68283}, + { "x" : 18.02787, "y" : 41.17047}, + { "x" : 18.52179, "y" : 41.72777}, + { "x" : 19.34498, "y" :42.00642}, + { "x" : 19.83889, "y" :42.00642}, + { "x" : 20.90904, "y" :41.72777}, + { "x" : 21.73223, "y" :41.44912}, + { "x" : 22.4731, "y" :40.89182}, + { "x" : 23.54325, "y" :40.12554}, + { "x" : 24.36644, "y" :39.35925}, + { "x" : 25.10731, "y" :38.5233}, + { "x" : 25.9305, "y" :37.47836}, + { "x" : 26.75369, "y" :36.71207}, + { "x" : 27.24761, "y" :35.59748}, + { "x" : 27.49457, "y" :34.55254}, + { "x" : 27.74152, "y" :33.50761}, + { "x" : 28.0708, "y" :32.46267}, + { "x" : 28.0708, "y" :31.62672}, + { "x" : 28.0708, "y" :30.86044}, + { "x" : 28.0708, "y" :30.09415}, + { "x" : 27.74152, "y" :29.53685}, + { "x" : 27.49457, "y" :28.97955}, + { "x" : 27.24761, "y" :28.77056}, + { "x" : 26.75369, "y" :28.49191}, + { "x" : 26.42442, "y" :28.49191}, + { "x" : 25.9305, "y" :28.49191}, + { "x" : 25.43659, "y" :28.97955}, + { "x" : 25.10731, "y" :29.53685}, + { "x" : 24.6134, "y" :30.09415}, + { "x" : 24.03716, "y" :30.86044}, + { "x" : 23.79021, "y" :31.90537}, + { "x" : 23.29629, "y" :33.22896}, + { "x" : 23.04934, "y" :34.27389}, + { "x" : 22.72006, "y" :35.59748}, + { "x" : 22.72006, "y" :36.71207}, + { "x" : 22.4731, "y" :38.03566}, + { "x" : 22.72006, "y" :39.0806}, + { "x" : 22.72006, "y" :40.12554}, + { "x" : 23.04934, "y" :40.89182}, + { "x" : 23.29629, "y" :41.72777}, + { "x" : 23.79021, "y" :42.2154}, + { "x" : 24.36644, "y" :42.77271}, + { "x" : 24.86036, "y" :43.05135}, + { "x" : 25.68354, "y" : 43.05135}, + { "x" : 26.42442, "y" : 43.05135}, + { "x" : 27.24761, "y" : 42.77271}, + { "x" : 28.31775, "y" : 42.2154}, + { "x" : 29.3879, "y" : 41.72777}, + { "x" : 30.45805, "y" : 40.89182}, + { "x" : 31.44588, "y" : 39.84688}, + { "x" : 32.8453, "y" : 38.80195}, + { "x" : 33.83313, "y" : 37.47836}, + { "x" : 35.15023, "y" : 35.87613}, + { "x" : 36.22039, "y" : 34.27389}, + { "x" : 37.29053, "y" : 32.46267}, + { "x" : 39.43083, "y" : 27.93462}, + { "x" : 40.50097, "y" : 25.5661}, + { "x" : 41.24184, "y" : 23.19757}, + { "x" : 41.81808, "y" : 20.82905}, + { "x" : 42.55895, "y" : 18.46053}, + { "x" : 42.88823, "y" : 16.301}, + { "x" : 43.38214, "y" : 14.48978}, + { "x" : 43.6291, "y" : 11.84261}, + { "x" : 43.6291, "y" : 10.72801}, + { "x" : 43.6291, "y" : 10.24037}, + { "x" : 43.38214, "y" : 9.96172}, + { "x" : 43.38214, "y" : 9.96172}, + { "x" : 43.13519, "y" : 9.96172}, + { "x" : 42.88823, "y" : 10.72801}, + { "x" : 42.31199, "y" : 12.60889}, + { "x" : 41.81808, "y" : 14.21113}, + { "x" : 41.24184, "y" : 16.02235}, + { "x" : 40.74793, "y" : 18.18188}, + { "x" : 40.25402, "y" : 20.5504}, + { "x" : 39.67778, "y" : 23.19757}, + { "x" : 39.43083, "y" : 25.84475}, + { "x" : 38.60764, "y" : 31.13909}, + { "x" : 38.36068, "y" : 33.78626}, + { "x" : 38.36068, "y" : 36.43343}, + { "x" : 38.11372, "y" : 38.80195}, + { "x" : 38.11372, "y" : 40.89182}, + { "x" : 38.11372, "y" : 43.05135}, + { "x" : 37.86677, "y" : 45.14123}, + { "x" : 37.53749, "y" : 48.62434}, + { "x" : 37.53749, "y" : 49.94793}, + { "x" : 37.29053, "y" : 51.27151}, + { "x" : 37.04358, "y" : 52.31645}, + { "x" : 36.79662, "y" : 53.08273}, + { "x" : 36.54966, "y" : 53.64004}, + { "x" : 35.97342, "y" : 53.84902}, + { "x" : 34.65633, "y" : 53.64004}, + { "x" : 33.83313, "y" : 53.08273}, + { "x" : 33.09226, "y" : 52.5951}, + { "x" : 32.26907, "y" : 51.75915}, + { "x" : 31.19892, "y" : 50.71421}, + { "x" : 30.45805, "y" : 49.66928}, + { "x" : 29.88182, "y" : 48.83333}, + { "x" : 28.56471, "y" : 47.02211}, + { "x" : 28.31775, "y" : 46.18616}, + { "x" : 28.0708, "y" : 45.69852}, + { "x" : 28.0708, "y" : 45.14123}, + { "x" : 28.31775, "y" : 44.37494}, + { "x" : 28.56471, "y" : 43.53899}, + { "x" : 29.88182, "y" : 42.2154}, + { "x" : 30.70501, "y" : 41.44912}, + { "x" : 31.77516, "y" : 40.68283}, + { "x" : 32.8453, "y" : 39.56823}, + { "x" : 35.47952, "y" : 37.75701}, + { "x" : 36.79662, "y" : 36.92107}, + { "x" : 39.67778, "y" : 35.38849}, + { "x" : 42.31199, "y" : 34.0649}, + { "x" : 43.6291, "y" : 33.50761}, + { "x" : 46.26331, "y" : 32.74132}, + { "x" : 47.33346, "y" : 32.46267}, + { "x" : 49.22679, "y" : 32.18402}, + { "x" : 49.72071, "y" : 31.90537}, + { "x" : 50.29694, "y" : 31.90537}, + { "x" : 50.79086, "y" : 31.90537}, + { "x" : 51.03782, "y" : 31.90537}, + { "x" : 51.03782, "y" : 31.90537}, + { "x" : 50.29694, "y" : 31.90537}, + { "x" : 49.96766, "y" : 32.18402}, + { "x" : 49.47375, "y" : 32.46267}, + { "x" : 48.65057, "y" : 32.74132}, + { "x" : 47.90969, "y" : 33.22896}, + { "x" : 47.0865, "y" : 33.78626}, + { "x" : 46.26331, "y" : 34.27389}, + { "x" : 44.69925, "y" : 35.87613}, + { "x" : 44.20533, "y" : 36.71207}, + { "x" : 43.95837, "y" : 37.75701}, + { "x" : 43.6291, "y" : 38.5233}, + { "x" : 43.38214, "y" : 39.84688}, + { "x" : 43.6291, "y" : 40.12554}, + { "x" : 43.95837, "y" : 40.40418}, + { "x" : 44.20533, "y" : 40.68283}, + { "x" : 45.27548, "y" : 40.40418}, + { "x" : 46.01635, "y" : 40.12554}, + { "x" : 46.59258, "y" : 39.56823}, + { "x" : 47.0865, "y" : 38.80195}, + { "x" : 47.90969, "y" : 38.03566}, + { "x" : 48.97984, "y" : 36.15478}, + { "x" : 49.47375, "y" : 35.10984}, + { "x" : 49.72071, "y" : 34.27389}, + { "x" : 49.96766, "y" : 33.50761}, + { "x" : 50.29694, "y" : 32.46267}, + { "x" : 50.5439, "y" : 31.90537}, + { "x" : 50.5439, "y" : 31.90537}, + { "x" : 50.29694, "y" : 32.18402}, + { "x" : 50.29694, "y" : 32.74132}, + { "x" : 49.96766, "y" : 33.22896}, + { "x" : 49.72071, "y" : 34.83119}, + { "x" : 49.47375, "y" : 35.87613}, + { "x" : 49.47375, "y" : 37.75701}, + { "x" : 49.47375, "y" : 38.5233}, + { "x" : 49.72071, "y" : 39.0806}, + { "x" : 49.72071, "y" : 39.35925}, + { "x" : 50.29694, "y" : 39.56823}, + { "x" : 50.79086, "y" : 39.56823}, + { "x" : 51.03782, "y" : 39.35925}, + { "x" : 51.61405, "y" : 38.80195}, + { "x" : 52.6842, "y" : 37.47836}, + { "x" : 53.1781, "y" : 36.71207}, + { "x" : 53.67202, "y" : 35.87613}, + { "x" : 54.24826, "y" : 35.10984}, + { "x" : 54.74217, "y" : 34.55254}, + { "x" : 55.3184, "y" : 33.50761}, + { "x" : 55.56536, "y" : 33.22896}, + { "x" : 55.56536, "y" : 32.95031}, + { "x" : 55.56536, "y" : 32.95031}, + { "x" : 55.56536, "y" : 33.78626}, + { "x" : 55.3184, "y" : 34.27389}, + { "x" : 55.07145, "y" : 35.38849}, + { "x" : 55.07145, "y" : 36.15478}, + { "x" : 55.07145, "y" : 36.92107}, + { "x" : 55.07145, "y" : 37.47836}, + { "x" : 55.3184, "y" : 38.03566}, + { "x" : 55.3184, "y" : 38.24465}, + { "x" : 55.56536, "y" : 38.5233}, + { "x" : 56.05928, "y" : 38.5233}, + { "x" : 56.38855, "y" : 38.24465}, + { "x" : 56.63551, "y" : 38.03566}, + { "x" : 57.12943, "y" : 37.75701}, + { "x" : 57.70565, "y" : 36.71207}, + { "x" : 58.19957, "y" : 36.15478}, + { "x" : 58.44653, "y" : 35.10984}, + { "x" : 58.77581, "y" : 34.55254}, + { "x" : 58.77581, "y" : 34.27389}, + { "x" : 59.02276, "y" : 34.0649}, + { "x" : 59.02276, "y" : 33.78626}, + { "x" : 59.02276, "y" : 33.78626}, + { "x" : 58.77581, "y" : 34.27389}, + { "x" : 58.77581, "y" : 34.55254}, + { "x" : 58.77581, "y" : 35.10984}, + { "x" : 58.77581, "y" : 35.38849}, + { "x" : 58.44653, "y" : 36.71207}, + { "x" : 58.77581, "y" : 37.47836}, + { "x" : 58.77581, "y" : 38.03566}, + { "x" : 59.02276, "y" : 38.80195}, + { "x" : 59.51667, "y" : 39.56823}, + { "x" : 60.09291, "y" : 39.84688}, + { "x" : 60.58682, "y" : 39.84688}, + { "x" : 61.08074, "y" : 39.56823}, + { "x" : 61.90393, "y" : 39.35925}, + { "x" : 63.46799, "y" : 38.24465}, + { "x" : 64.53814, "y" : 37.19971}, + { "x" : 65.60828, "y" : 36.15478}, + { "x" : 66.67844, "y" : 34.55254}, + { "x" : 68.48946, "y" : 31.41773}, + { "x" : 69.31265, "y" : 29.53685}, + { "x" : 70.62975, "y" : 25.5661}, + { "x" : 71.20598, "y" : 23.47622}, + { "x" : 71.45294, "y" : 21.87399}, + { "x" : 71.6999, "y" : 20.5504}, + { "x" : 71.6999, "y" : 18.18188}, + { "x" : 71.45294, "y" : 17.34593}, + { "x" : 70.8767, "y" : 16.57965}, + { "x" : 70.62975, "y" : 16.301}, + { "x" : 70.3828, "y" : 16.57965}, + { "x" : 69.88888, "y" : 16.8583}, + { "x" : 68.81873, "y" : 18.18188}, + { "x" : 68.24249, "y" : 19.22682}, + { "x" : 67.17235, "y" : 21.59534}, + { "x" : 66.43147, "y" : 22.91892}, + { "x" : 65.85524, "y" : 24.52116}, + { "x" : 65.60828, "y" : 26.12339}, + { "x" : 64.7851, "y" : 29.2582}, + { "x" : 64.53814, "y" : 30.58179}, + { "x" : 64.29118, "y" : 33.22896}, + { "x" : 64.53814, "y" : 34.55254}, + { "x" : 64.53814, "y" : 5.59748}, + { "x" : 64.7851, "y" : 36.71207}, + { "x" : 65.85524, "y" : 38.24465}, + { "x" : 66.43147, "y" : 38.80195}, + { "x" : 67.99554, "y" : 39.35925}, + { "x" : 68.81873, "y" : 39.56823}, + { "x" : 69.5596, "y" : 39.35925}, + { "x" : 70.62975, "y" : 39.0806}, + { "x" : 73.01699, "y" : 37.75701}, + { "x" : 74.33411, "y" : 36.71207}, + { "x" : 76.72135, "y" : 34.0649}, + { "x" : 78.03847, "y" : 32.18402}, + { "x" : 79.35557, "y" : 30.30314}, + { "x" : 80.67267, "y" : 28.21327}, + { "x" : 82.81297, "y" : 23.75487}, + { "x" : 83.88311, "y" : 21.31669}, + { "x" : 85.20022, "y" : 17.34593}, + { "x" : 85.69414, "y" : 15.53471}, + { "x" : 86.02341, "y" : 14.21113}, + { "x" : 86.27037, "y" : 13.16619}, + { "x" : 86.27037, "y" : 11.56396}, + { "x" : 86.27037, "y" : 11.28531}, + { "x" : 86.27037, "y" : 11.00666}, + { "x" : 86.02341, "y" : 11.28531}, + { "x" : 86.02341, "y" : 11.28531}, + { "x" : 86.02341, "y" : 11.84261}, + { "x" : 85.44718, "y" : 12.88754}, + { "x" : 85.44718, "y" : 13.65383}, + { "x" : 84.95326, "y" : 15.81336}, + { "x" : 84.70631, "y" : 16.8583}, + { "x" : 84.37703, "y" : 17.90323}, + { "x" : 83.88311, "y" : 19.22682}, + { "x" : 83.30688, "y" : 22.15264}, + { "x" : 82.81297, "y" : 23.75487}, + { "x" : 81.98978, "y" : 26.88968}, + { "x" : 81.49586, "y" : 28.49191}, + { "x" : 81.00195, "y" : 30.09415}, + { "x" : 80.67267, "y" : 31.62672}, + { "x" : 80.17876, "y" : 34.27389}, + { "x" : 79.9318, "y" : 35.38849}, + { "x" : 79.60252, "y" : 37.47836}, + { "x" : 79.60252, "y" : 38.24465}, + { "x" : 79.60252, "y" : 38.80195}, + { "x" : 79.9318, "y" : 39.35925}, + { "x" : 80.42571, "y" : 40.40418}, + { "x" : 81.00195, "y" : 40.68283}, + { "x" : 82.31906, "y" : 40.89182}, + { "x" : 83.05993, "y" : 40.89182}, + { "x" : 83.88311, "y" : 40.89182}, + { "x" : 84.95326, "y" : 40.68283}, + { "x" : 86.76428, "y" : 39.56823}, + { "x" : 87.58747, "y" : 39.0806}, + { "x" : 89.15154, "y" : 38.03566}, + { "x" : 89.72777, "y" : 37.19971}, + { "x" : 90.22169, "y" : 36.43343}] }, { - "id": 2, - "kind": "inkWriting", - "points": "80.17876,20.27175,80.17876,20.27175,80.17876,20.27175,80.17876,20.27175,80.17876,20.5504,80.17876,20.5504,80.17876,20.5504,80.17876,20.5504,80.42571,20.5504,80.42571,20.5504,80.67267,20.5504,81.00195,20.5504,81.49586,20.5504,81.98978,20.5504,82.56602,20.5504,83.30688,20.5504,84.13007,20.5504,84.95326,20.27175,86.02341,20.27175,86.76428,20.27175,87.58747,20.27175,88.41067,19.9931,89.15154,19.9931,89.72777,19.9931,90.22169,19.78412,90.46864,19.78412,90.7156,19.78412,91.04487,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.53879,19.78412,91.53879,19.78412,91.78574,19.78412" + "id": 2, + "kind": "inkWriting", + "points": [{ "x": 80.17876, "y" : 20.27175}, + { "x": 80.17876, "y" : 20.27175}, + { "x": 80.17876, "y" : 20.27175}, + { "x": 80.17876, "y" : 20.27175}, + { "x": 80.17876, "y" : 20.5504}, + { "x": 80.17876, "y" : 20.5504}, + { "x": 80.17876, "y" : 20.5504}, + { "x": 80.17876, "y" : 20.5504}, + { "x": 80.42571, "y" : 20.5504}, + { "x": 80.42571, "y" : 20.5504}, + { "x": 80.67267, "y" : 20.5504}, + { "x": 81.00195, "y" : 20.5504}, + { "x": 81.49586, "y" : 20.5504}, + { "x": 81.98978, "y" : 20.5504}, + { "x": 82.56602, "y" : 20.5504}, + { "x": 83.30688, "y" : 20.5504}, + { "x": 84.13007, "y" : 20.5504}, + { "x": 84.95326, "y" : 20.27175}, + { "x": 86.02341, "y" : 20.27175}, + { "x": 86.76428, "y" : 20.27175}, + { "x": 87.58747, "y" : 20.27175}, + { "x": 88.41067, "y" : 19.9931}, + { "x": 89.15154, "y" : 19.9931}, + { "x": 89.72777, "y" : 19.9931}, + { "x": 90.22169, "y" : 19.78412}, + { "x": 90.46864, "y" : 19.78412}, + { "x": 90.7156, "y" : 19.78412}, + { "x": 91.04487, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.29183, "y" : 19.78412}, + { "x": 91.53879, "y" : 19.78412}, + { "x": 91.53879, "y" : 19.78412}, + { "x": 91.78574, "y" : 19.78412}] } - ] + ] } }, "responses": { From dac66bfde6b7ee074608bd60cd032bba4d654e6f Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 16 Jul 2019 15:10:26 -0700 Subject: [PATCH 02/14] Adding xms for unit in request section --- .../InkRecognizer/preview/v1.0/InkRecognizer.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 03fc4f9aff87..d347b0dcd81d 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -632,7 +632,11 @@ "mm", "cm", "in" - ] + ], + "x-ms-enum": { + "name": "unit", + "modelAsString": true + } }, "unitMultiple": { "description": " This is a scaling factor to be applied to the point coordinates when interpreting them in the physical units specified.", From 0f066ed1012b9af49521e14b781c70cd9a99e26d Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 16 Jul 2019 15:24:27 -0700 Subject: [PATCH 03/14] fix for new inkpoint object format --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index d347b0dcd81d..7874b7c4cafd 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -300,7 +300,6 @@ "logicalMax" : "number" }, "inkPoint" : { - "type": "array", "description" : "An array ink points with data about each point. It is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", "items" : { "properties" : { From e7fbf59571186e52daa8f40c7f3a58e8b3ef0368 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 16 Jul 2019 16:37:29 -0700 Subject: [PATCH 04/14] fix for new inkpoint object format --- .../preview/v1.0/InkRecognizer.json | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 7874b7c4cafd..4c672f755218 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -295,15 +295,25 @@ "inkPointValueAttribute" : { "type" : "object", "description" : "A container for the attributes of a value contained in the inkpoint object.", - "name" : "string", - "logicalMin" : "number", - "logicalMax" : "number" + "properties" : { + "name" : { + "type" : "string", + "description" : "The name of the point attribute." + }, + "logicalMinimum" : { + "type" : "number", + "description" : "The the minimum value for the attribute" + }, + "logicalMaximum" : { + "type" : "number", + "description" : "The the maximum value for the attribute" + } + } }, "inkPoint" : { + "type" : "object", "description" : "An array ink points with data about each point. It is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", - "items" : { - "properties" : { - "type" : "object", + "properties" : { "x" : { "type" : "number", "description" : "The x coordinate of the pen location on the writing surface." @@ -369,7 +379,6 @@ "x", "y" ] - } }, "recognitionUnit": { "items": { @@ -486,7 +495,10 @@ "description": "The IETF BCP 47 language code (for ex. en-US, en-GB, hi-IN etc.) of the expected language for the handwritten content in this stroke. The response will include results from this language." }, "points": { + "type": "array", + "items": { "$ref": "#/definitions/inkPoint" + } }, "drawingAttributes": { "$ref": "#/definitions/drawingAttributesPattern" From ba6b5d22747ef4bcb501bbd563244ed92ead414c Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 16 Jul 2019 16:42:32 -0700 Subject: [PATCH 05/14] fix for new inkpoint object format --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 4c672f755218..157f51400fec 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -661,7 +661,7 @@ "inkPointValueAttributes" : { "type" : "array", "items" : { - "$ref":"#definitions/inkPointValueAttribute" + "$ref":"#/definitions/inkPointValueAttribute" } }, "strokes": { From 16bbbbd518d4c56431e97bc76875477c3be90de6 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 23 Jul 2019 11:03:06 -0700 Subject: [PATCH 06/14] Adding the root inkrecognition unit --- .../preview/v1.0/InkRecognizer.json | 6 +-- .../v1.0/examples/InkWordRecognition.json | 37 +++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 157f51400fec..4efc85d8b472 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -215,9 +215,9 @@ "type": "string", "description": "The category of a recognition unit represents the type of content for that unit.", "enum": [ + "root", "writingRegion", "paragraph", - "listItem", "line", "inkBullet", "inkDrawing", @@ -233,9 +233,9 @@ "type": "string", "description": "The category of recognition units that represent types that have children recognition units.", "enum": [ + "root", "writingRegion", "paragraph", - "listItem", "line" ], "x-ms-enum": { @@ -312,7 +312,7 @@ }, "inkPoint" : { "type" : "object", - "description" : "An array ink points with data about each point. It is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", + "description" : "An object containing the attributes of an point in the path of an ink stroke. The main attributes are the x and y values. Other include tip pressure, x tilt etc. For the coordinate values, it is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", "properties" : { "x" : { "type" : "number", diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json index 810c8a9ad7b0..54579b8e7e79 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json @@ -650,6 +650,43 @@ 1, 2 ] + }, + { + "boundingRectangle": { + "height": 43.889999389648438, + "topX": 6.9099998474121094, + "topY": 9.9600000381469727, + "width": 84.879997253417969 + }, + "category": "root", + "childIds": [ + 1 + ], + "class": "container", + "id": 0, + "parentId": -1, + "rotatedBoundingRectangle": [ + { + "x": 6.9099998474121094, + "y": 9.9600000381469727 + }, + { + "x": 91.7899957275305, + "y": 9.9600000381469727 + }, + { + "x": 6.9099998474121094, + "y": 53.84999393463135 + }, + { + "x": 91.78999572753905, + "y": 53.84999393463135 + } + ], + "strokeIds": [ + 1, + 2 + ] } ] } From c930f8565d6644cd3ea750939fbd63cdf408e281 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 23 Jul 2019 11:38:44 -0700 Subject: [PATCH 07/14] Ink Point description update --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 4efc85d8b472..eeced382dbff 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -312,7 +312,7 @@ }, "inkPoint" : { "type" : "object", - "description" : "An object containing the attributes of an point in the path of an ink stroke. The main attributes are the x and y values. Other include tip pressure, x tilt etc. For the coordinate values, it is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", + "description" : "An object containing the properties of an point in the path of an ink stroke. The main attributes are the x and y values. Other include tip pressure, x tilt etc. For the coordinate values, it is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", "properties" : { "x" : { "type" : "number", From 81113bd70c6fee74795bf5b458da8fdc000efbf9 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Tue, 23 Jul 2019 12:43:50 -0700 Subject: [PATCH 08/14] Ink Point description update --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index eeced382dbff..22607d5a1693 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -312,7 +312,7 @@ }, "inkPoint" : { "type" : "object", - "description" : "An object containing the properties of an point in the path of an ink stroke. The main attributes are the x and y values. Other include tip pressure, x tilt etc. For the coordinate values, it is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", + "description" : "An object containing the properties of an point in the path of an ink stroke. The main properties are the x and y values. Other include tip pressure, x tilt etc. For the coordinate values, it is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", "properties" : { "x" : { "type" : "number", From 1969f86ef51d6396ea91a49c3f88ce0b84c19480 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Wed, 24 Jul 2019 11:55:21 -0700 Subject: [PATCH 09/14] description updates --- .../preview/v1.0/InkRecognizer.json | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 22607d5a1693..ceb611a9e24c 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -419,36 +419,36 @@ "description": "The id of the parent node in the tree structure of the recognition results. parent = 0 indicates that there is no dedicated parent node for this unit." }, "boundingRectangle": { - "description": "The bounding rectangle of the recognized unit represented by the coordinates of the top left corner (x,y) along with width (w) and height (h) of the rectangle. Note that this rectangle is not rotated. So for rotated objects such as slanted handwriting, it will cover the entire object. The unit will be matched to the one specified in the original request (mm by default.) ", + "description": "The bounding rectangle of the recognition unit represented by the coordinates of the top left corner (topX,topY) along with width and height of the rectangle. Note that this rectangle is not rotated. So for rotated objects such as slanted handwriting, it will cover the entire object. The unit will be matched to the one specified in the original request (mm by default.) ", "type": "object", "properties": { "topX": { "type": "number", - "description": "This represents the top left x coordinate" + "description": "This is the top left x coordinate" }, "topY": { "type": "number", - "description": "This represents the top left y coordinate" + "description": "This isthe top left y coordinate" }, "width": { "type": "number", - "description": "This represents width of the bounding rectangle" + "description": "This is width of the bounding rectangle" }, "height": { "type": "number", - "description": "The represents the height of the bounding rectangle" + "description": "The is the height of the bounding rectangle" } } }, "rotatedBoundingRectangle": { - "description": "This property provides the rotated bounding rectangle that covers the entire recognized object along the angle of rotation of the object. Note that this is NOT the same as rotating the boundingRectangle by the rotation angle.", + "description": "This is the rotated bounding rectangle that covers the entire recognized object along the angle of rotation of the object. Note that this is NOT the same as rotating the boundingRectangle by the rotation angle.", "type": "array", "items": { "$ref": "#/definitions/pointDetailsPattern" } }, "strokeIds": { - "description": "This is an array of integers representing the list of stroke Identifier integers from the input request body that belong to this recognition unit.", + "description": "This is an array of integers representing the list of stroke Identifiers from the input request body that belong to this recognition unit.", "type": "array", "items": { "type": "integer" @@ -456,15 +456,15 @@ }, "recognizedText": { "type": "string", - "description": "The string represents the text that was recognized. It can be an empty string if the recognizer cannot determine the text." + "description": "The string contains the text that was recognized. It can be an empty string if the recognizer cannot determine the text." }, "confidence": { "type": "number", - "description": "The class represents the type of the recognition unit. A recognition unit can be a leaf node or a container node. Container nodes typically have leaf nodes as children." + "description": "A number between 0 and 1 which indicates the confidence level in the result." }, "rotationAngle": { "type": "number", - "description": "This represents the angle at which the unit is rotated in degrees with respect to the positive X axis." + "description": "This is the angle at which the unit is rotated in degrees with respect to the positive X axis." }, "recognizedObject": { "$ref": "#/definitions/shapePattern" @@ -478,7 +478,7 @@ "id" ], "type": "object", - "description": "This represents the recognized entity" + "description": "This identifies the recognized entity" }, "type": "array", "description": "The list of recognition units based on the analysis of the ink strokes." @@ -527,7 +527,7 @@ "properties": { "unit": { "type": "string", - "description": "This represents the physical units of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", + "description": "This is the physical unit of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", "enum": [ "mm", "cm", @@ -544,7 +544,7 @@ }, "language": { "type": "string", - "description": "This is the language used for recognizing handwriting from the ink strokes in the request. Set this to the user’s preferred language." + "description": "This is the language used for recognizing handwriting from the ink strokes in the request." }, "recognitionUnits": { "$ref": "#/definitions/recognitionUnit" @@ -638,7 +638,7 @@ }, "unit": { "type": "string", - "description": "This represents the physical units of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", + "description": "This is the physical unit of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", "enum": [ "mm", "cm", From 15bf98da561ba630ab75f2ab23514637e75b5f5d Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Wed, 24 Jul 2019 14:19:59 -0700 Subject: [PATCH 10/14] Ink Point description update --- .../preview/v1.0/InkRecognizer.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index ceb611a9e24c..8190870597eb 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -302,11 +302,11 @@ }, "logicalMinimum" : { "type" : "number", - "description" : "The the minimum value for the attribute" + "description" : "The minimum value for the attribute" }, "logicalMaximum" : { "type" : "number", - "description" : "The the maximum value for the attribute" + "description" : "The maximum value for the attribute" } } }, @@ -324,15 +324,15 @@ }, "z" : { "type" : "number", - "description" : "The z coordinate of the pen location on the writing surface. This may not be used for recognition." + "description" : "The z coordinate of the pen location on the writing space. This may not be used for recognition." }, "tipPressure" : { "type" : "number", - "description" : "The force excerted against the tablet surface by the transducer, typically a stylus. This may not be used for recognition." + "description" : "The force exerted against the tablet surface by the transducer, typically a stylus. This may not be used for recognition." }, "barrelPressure" : { "type" : "number", - "description" : "The force excerted directly by the user on a transducer sensor, such as a pressure-sensitive button on the barrel of a stylus. This may not be used for recognition." + "description" : "The force exerted directly by the user on a transducer sensor, such as a pressure-sensitive button on the barrel of a stylus. This may not be used for recognition." }, "timestamp" : { "type" : "number", @@ -348,11 +348,11 @@ }, "width" : { "type" : "number", - "description" : "The width of the tip of the writing intrument. This is used by touch screen devices to report the width of the finger contact on the writing surface." + "description" : "The width of the tip of the writing instrument. This is used by touch screen devices to report the width of the finger contact on the writing surface. This may not be used for recognition." }, "height" : { "type" : "number", - "description" : "The height of the tip of the writing instrument. This is used by touch screen devices to report the height of the finger contact on the writing surface." + "description" : "The height of the tip of the writing instrument. This is used by touch screen devices to report the height of the finger contact on the writing surface. This may not be used for recognition." }, "tipSwitch" : { "type" : "boolean", @@ -360,7 +360,7 @@ }, "inverted" : { "type" : "boolean", - "description" : "A value that indicates that the currently sensed position originates from the end of a stylus opposite the tip. This may not be used for recognition." + "description" : "A value that indicates that the currently sensed position originates from the end of a stylus opposite the tip switch. This may not be used for recognition." }, "barrelSwitch" : { "type" : "boolean", @@ -372,7 +372,7 @@ }, "secondaryTip" : { "type" : "boolean", - "description" : "A secondary switch used in conjuction with the tip switch to indicate pressure above a certain threshold applied with the stylus. This may not be used for recognition." + "description" : "A secondary switch used in conjunction with the tip switch to indicate pressure above a certain threshold applied with the stylus. This may not be used for recognition." } }, "required" : [ From 34c67e4beeb3721701921ded0f374c834723b2f7 Mon Sep 17 00:00:00 2001 From: Elijah Durojaiye Date: Mon, 29 Jul 2019 13:08:12 -0700 Subject: [PATCH 11/14] re-naming inputDevice to inputDeviceKind --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 8190870597eb..da66e6269060 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -616,7 +616,7 @@ "modelAsString": true } }, - "inputDevice" : { + "inputDevicekind" : { "type" : "string", "description" : "This identifies the kind of device used as the writing instrument", "enum" : [ From 6174df0940028c0162cb35520b424cbcfc3bf0ed Mon Sep 17 00:00:00 2001 From: olduroja <44652212+olduroja@users.noreply.github.com> Date: Tue, 30 Jul 2019 13:02:07 -0700 Subject: [PATCH 12/14] Update specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json Co-Authored-By: Nick Schonning --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index da66e6269060..7164d7592687 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -428,7 +428,7 @@ }, "topY": { "type": "number", - "description": "This isthe top left y coordinate" + "description": "This is the top left y coordinate" }, "width": { "type": "number", From fab06a8db1727f88676b4fee55dc0bdcb6738547 Mon Sep 17 00:00:00 2001 From: olduroja <44652212+olduroja@users.noreply.github.com> Date: Tue, 30 Jul 2019 13:02:23 -0700 Subject: [PATCH 13/14] Update specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json Co-Authored-By: Nick Schonning --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index 7164d7592687..cc833a5bdac4 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -616,7 +616,7 @@ "modelAsString": true } }, - "inputDevicekind" : { + "inputDeviceKind" : { "type" : "string", "description" : "This identifies the kind of device used as the writing instrument", "enum" : [ From ae13f3bcaab268fc0365a1e0452535827d2bda64 Mon Sep 17 00:00:00 2001 From: olduroja <44652212+olduroja@users.noreply.github.com> Date: Tue, 30 Jul 2019 13:03:04 -0700 Subject: [PATCH 14/14] Update specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json Co-Authored-By: Nick Schonning --- .../data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index cc833a5bdac4..2c1f6c05942e 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -294,7 +294,7 @@ }, "inkPointValueAttribute" : { "type" : "object", - "description" : "A container for the attributes of a value contained in the inkpoint object.", + "description" : "A container for the attributes of a value contained in the ink point object.", "properties" : { "name" : { "type" : "string",