cordova-plugin-mobile-ocr
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "cordova-plugin-mobile-ocr", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
1052
README.md
|[Introduction](#cordova-plugin-mobile-ocr) | [Supported_Platforms](#supported-platforms) | [Installation_Steps](#installation-steps) | [Plugin_Usage](#plugin-usage) | [Working_Examples](#working-examples) | [More_about_us!](#more-about-us)| | ||
|:---:|:------:|:---:|:---:|:---:|:---:| | ||
> **BREAKING CHANGES** introduced in plugin version 2.0.0. Older version will run as expected! | ||
@@ -43,3 +44,3 @@ # cordova-plugin-mobile-ocr | ||
`textocr.recText(sourceType, returnType, uriOrBase, successCallback, errorCallback)` | ||
`textocr.recText(sourceType, /*returnType,*/ uriOrBase, successCallback, errorCallback) //returnType no longer accepted from plugin version 2.x.x` | ||
- **textocr.recText** | ||
@@ -62,2 +63,4 @@ The **`textocr.recText`** function accepts image data as uri or base64 and uses google mobile vision to recognize text and return the recognized text as string on its successcallback. | ||
- **returnType** | ||
> Note :- This input is no longer accepted from plugin version 2.0.0 and above. <br> | ||
The **`returnType`** parameter can take values 0,1,2 or 3 each of which are explained in detail in the table below. If a wrong value is passed into this parameter it will default to 3 or `ALL`. See the image below the table to get a better understanding of `BLOCKS`, `LINES` and `WORDS`. Each of these (`BLOCKS`, `LINES` or `WORDS`) will contain the entire recognized text but they can be used for better formatting and thus are separated. `ALL` will contain all blocks first, followed by a new line character `\n`, followed by all lines, followed by another new line character `\n`, followed by all words. So using `ALL` will return duplicates. `returnType` is an `Int` within the native code. | ||
@@ -107,3 +110,3 @@ | ||
function onSuccess(imageData) { | ||
textocr.recText(0, 3, imageData, onSuccess, onFail); | ||
textocr.recText(0, /*3,*/ imageData, onSuccess, onFail); // removed returnType (here 3) from version 2.0.0 | ||
// for sourceType Use 0,1,2,3 or 4 | ||
@@ -134,3 +137,3 @@ // for returnType Use 0,1,2 or 3 // 3 returns duplicates[see table] | ||
function onSuccess(imageURI) { | ||
textocr.recText(0, 3, imageURI, onSuccess, onFail); | ||
textocr.recText(0, /*3,*/ imageURI, onSuccess, onFail); // removed returnType (here 3) from version 2.0.0 | ||
// for sourceType Use 0,2 // 1,3,4 won't work | ||
@@ -164,1 +167,1044 @@ // for returnType Use 0,1,2 or 3 // 3 returns duplicates[see table] | ||
# Example Objects | ||
> For the cordova plugin 2.x.x the success callback will return this object | ||
The five properties text, languages, confidence, points and frame are obtained as arrays and are associated with each other using the index of the array. | ||
>For example :- | ||
The text **linetext[0]** contains the languages **linelanguages[0]** and have a confidence of **lineconfidence[0]** with **linepoints[0]** and **lineframe [0]**. | ||
>Refer the examples to see how the points and frame are returned. Points hold four (x,y) point values that can be used to draw a box around each text. The Frame holds the origin x,y value, the height and the width of the rectangle that can be drawn around the text. The x,y value returned from the Frame property usually correspond to x1 and y4 of the Points property. The Points and Frame values can be used to obtain the placement of the text on the image | ||
The basic structure of the object is as follows :- | ||
- **blocks** | ||
- **blocktext** - **Array** that contains each text block | ||
- **blocklanguages** - **Array** of languages (Currently returns unusable values) | ||
- **blockconfidence** - **Array** of confidence values (Currently return nil for on-Device text recognition) | ||
- **blockpoints** - **Array** of objects of four points each that represent a block drawn around the text | ||
- x1 - Key (Example to get x1 of the first text block :- recognizedText.blocks.blockpoints[0].x1) | ||
- y1 - Key | ||
- x2 - Key | ||
- y2 - Key | ||
- x3 - Key | ||
- y3 - Key | ||
- x4 - Key | ||
- y4 - Key | ||
- **blockframe** - **Array** of objects that contain origin point and size of the rectangle that holds text | ||
- x - Key (Example to get x from blockframe of the first text block :- recognizedText.blocks.blockframe[0].x) | ||
- y - Key | ||
- height - Key | ||
- width - Key | ||
- **lines** | ||
- **linetext** - **Array** that contains each text block | ||
- **linelanguages** - **Array** of languages (Currently returns unusable values) | ||
- **lineconfidence** - **Array** of confidence values (Currently return nil for on-Device text recognition) | ||
- **linepoints** - **Array** of objects of four points each that represent a block drawn around the text | ||
- x1 - Key | ||
- y1 - Key | ||
- x2 - Key | ||
- y2 - Key | ||
- x3 - Key | ||
- y3 - Key | ||
- x4 - Key | ||
- y4 - Key | ||
- **lineframe** - **Array** of objects that contain origin point and size of the rectangle that holds text | ||
- x - Key | ||
- y - Key | ||
- height - Key | ||
- width - Key | ||
- **words** | ||
- **wordtext** - **Array** that contains each text block | ||
- **wordlanguages** - **Array** of languages (Currently returns unusable values) | ||
- **wordconfidence** - **Array** of confidence values (Currently return nil for on-Device text recognition) | ||
- **wordpoints** - **Array** of objects of four points each that represent a block drawn around the text | ||
- x1 - Key | ||
- y1 - Key | ||
- x2 - Key | ||
- y2 - Key | ||
- x3 - Key | ||
- y3 - Key | ||
- x4 - Key | ||
- y4 - Key | ||
- **wordframe** - **Array** of objects that contain origin point and size of the rectangle that holds text | ||
- x - Key | ||
- y - Key | ||
- height - Key | ||
- width - Key | ||
# iOS Example Object | ||
```json | ||
{ | ||
"blocks": { | ||
"blocklanguages": [ | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4009800>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a100>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4009b00>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4009fb0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4008d60>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4009fc0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a170>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4008fa0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4008c40>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4007790>\"]" | ||
], | ||
"blockpoints": [ | ||
{ | ||
"x3": "2338.143066", | ||
"y1": "52.000000", | ||
"x1": "2073.000000", | ||
"y4": "656.654541", | ||
"x4": "1972.193848", | ||
"y2": "113.009895", | ||
"x2": "2438.949219", | ||
"y3": "717.664429" | ||
}, | ||
{ | ||
"x3": "1204.772949", | ||
"y1": "255.000000", | ||
"x1": "942.000000", | ||
"y4": "537.928284", | ||
"x4": "865.838440", | ||
"y2": "346.237946", | ||
"x2": "1280.934570", | ||
"y3": "629.166199" | ||
}, | ||
{ | ||
"x3": "628.515869", | ||
"y1": "1192.000000", | ||
"x1": "398.000000", | ||
"y4": "1452.757080", | ||
"x4": "386.741180", | ||
"y2": "1202.439209", | ||
"x2": "639.774719", | ||
"y3": "1463.196289" | ||
}, | ||
{ | ||
"x3": "1787.353516", | ||
"y1": "1257.000000", | ||
"x1": "1495.000000", | ||
"y4": "1482.905884", | ||
"x4": "1488.478027", | ||
"y2": "1265.628662", | ||
"x2": "1793.875488", | ||
"y3": "1491.534546" | ||
}, | ||
{ | ||
"x3": "2804.546387", | ||
"y1": "1267.000000", | ||
"x1": "2495.000000", | ||
"y4": "1547.713013", | ||
"x4": "2468.088867", | ||
"y2": "1299.255127", | ||
"x2": "2831.457520", | ||
"y3": "1579.968140" | ||
}, | ||
{ | ||
"x3": "939.620850", | ||
"y1": "2279.000000", | ||
"x1": "587.000000", | ||
"y4": "2548.592773", | ||
"x4": "572.175903", | ||
"y2": "2299.204590", | ||
"x2": "954.444946", | ||
"y3": "2568.797363" | ||
}, | ||
{ | ||
"x3": "1968.580078", | ||
"y1": "2307.000000", | ||
"x1": "1776.000000", | ||
"y4": "2534.936768", | ||
"x4": "1770.634888", | ||
"y2": "2311.659180", | ||
"x2": "1973.945190", | ||
"y3": "2539.595947" | ||
}, | ||
{ | ||
"x3": "2982.085693", | ||
"y1": "2334.000000", | ||
"x1": "2793.000000", | ||
"y4": "2544.980225", | ||
"x4": "2790.103760", | ||
"y2": "2336.635254", | ||
"x2": "2984.981934", | ||
"y3": "2547.615479" | ||
}, | ||
{ | ||
"x3": "1426.792480", | ||
"y1": "3287.000000", | ||
"x1": "1072.000000", | ||
"y4": "3611.215088", | ||
"x4": "1037.933228", | ||
"y2": "3327.859375", | ||
"x2": "1460.859253", | ||
"y3": "3652.074463" | ||
}, | ||
{ | ||
"x3": "2455.617920", | ||
"y1": "3346.000000", | ||
"x1": "2255.000000", | ||
"y4": "3559.973633", | ||
"x4": "2251.643066", | ||
"y2": "3349.199951", | ||
"x2": "2458.974854", | ||
"y3": "3563.173584" | ||
} | ||
], | ||
"blocktext": [ | ||
"# 3", | ||
"2", | ||
"Q", | ||
"W", | ||
"E", | ||
"A", | ||
"S", | ||
"D", | ||
"Z", | ||
"X" | ||
], | ||
"blockconfidence": [ | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
], | ||
"blockframe": [ | ||
{ | ||
"y": "52.000000", | ||
"x": "1972.000000", | ||
"height": "666.000000", | ||
"width": "467.000000" | ||
}, | ||
{ | ||
"y": "255.000000", | ||
"x": "865.000000", | ||
"height": "375.000000", | ||
"width": "416.000000" | ||
}, | ||
{ | ||
"y": "1192.000000", | ||
"x": "386.000000", | ||
"height": "272.000000", | ||
"width": "254.000000" | ||
}, | ||
{ | ||
"y": "1257.000000", | ||
"x": "1488.000000", | ||
"height": "235.000000", | ||
"width": "306.000000" | ||
}, | ||
{ | ||
"y": "1267.000000", | ||
"x": "2468.000000", | ||
"height": "313.000000", | ||
"width": "364.000000" | ||
}, | ||
{ | ||
"y": "2279.000000", | ||
"x": "572.000000", | ||
"height": "290.000000", | ||
"width": "383.000000" | ||
}, | ||
{ | ||
"y": "2307.000000", | ||
"x": "1770.000000", | ||
"height": "233.000000", | ||
"width": "204.000000" | ||
}, | ||
{ | ||
"y": "2334.000000", | ||
"x": "2790.000000", | ||
"height": "214.000000", | ||
"width": "195.000000" | ||
}, | ||
{ | ||
"y": "3287.000000", | ||
"x": "1037.000000", | ||
"height": "366.000000", | ||
"width": "424.000000" | ||
}, | ||
{ | ||
"y": "3346.000000", | ||
"x": "2251.000000", | ||
"height": "218.000000", | ||
"width": "208.000000" | ||
} | ||
] | ||
}, | ||
"lines": { | ||
"lineframe": [ | ||
{ | ||
"y": "53.000000", | ||
"x": "2048.000000", | ||
"height": "231.000000", | ||
"width": "264.000000" | ||
}, | ||
{ | ||
"y": "342.000000", | ||
"x": "1979.000000", | ||
"height": "369.000000", | ||
"width": "405.000000" | ||
}, | ||
{ | ||
"y": "255.000000", | ||
"x": "865.000000", | ||
"height": "375.000000", | ||
"width": "416.000000" | ||
}, | ||
{ | ||
"y": "1192.000000", | ||
"x": "386.000000", | ||
"height": "272.000000", | ||
"width": "254.000000" | ||
}, | ||
{ | ||
"y": "1257.000000", | ||
"x": "1488.000000", | ||
"height": "235.000000", | ||
"width": "306.000000" | ||
}, | ||
{ | ||
"y": "1267.000000", | ||
"x": "2468.000000", | ||
"height": "313.000000", | ||
"width": "364.000000" | ||
}, | ||
{ | ||
"y": "2279.000000", | ||
"x": "572.000000", | ||
"height": "290.000000", | ||
"width": "383.000000" | ||
}, | ||
{ | ||
"y": "2307.000000", | ||
"x": "1770.000000", | ||
"height": "233.000000", | ||
"width": "204.000000" | ||
}, | ||
{ | ||
"y": "2334.000000", | ||
"x": "2790.000000", | ||
"height": "214.000000", | ||
"width": "195.000000" | ||
}, | ||
{ | ||
"y": "3287.000000", | ||
"x": "1037.000000", | ||
"height": "366.000000", | ||
"width": "424.000000" | ||
}, | ||
{ | ||
"y": "3346.000000", | ||
"x": "2251.000000", | ||
"height": "218.000000", | ||
"width": "208.000000" | ||
} | ||
], | ||
"linelanguages": [ | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c40084f0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4009e70>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a0a0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c40076e0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c40067e0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a150>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4008fb0>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a140>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a000>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c400a210>\"]", | ||
"[ \"<FIRVisionTextRecognizedLanguage: 0x1c4007c80>\"]" | ||
], | ||
"lineconfidence": [ | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
], | ||
"linetext": [ | ||
"#", | ||
"3", | ||
"2", | ||
"Q", | ||
"W", | ||
"E", | ||
"A", | ||
"S", | ||
"D", | ||
"Z", | ||
"X" | ||
], | ||
"linepoints": [ | ||
{ | ||
"x3": "2279.747070", | ||
"y1": "53.000000", | ||
"x1": "2081.000000", | ||
"y4": "245.345245", | ||
"x4": "2048.932861", | ||
"y2": "91.480637", | ||
"x2": "2311.814209", | ||
"y3": "283.825897" | ||
}, | ||
{ | ||
"x3": "2295.458252", | ||
"y1": "342.000000", | ||
"x1": "2067.000000", | ||
"y4": "605.842957", | ||
"x4": "1979.416382", | ||
"y2": "446.911316", | ||
"x2": "2383.041992", | ||
"y3": "710.754272" | ||
}, | ||
{ | ||
"x3": "1204.772949", | ||
"y1": "255.000000", | ||
"x1": "942.000000", | ||
"y4": "537.928284", | ||
"x4": "865.838440", | ||
"y2": "346.237946", | ||
"x2": "1280.934570", | ||
"y3": "629.166199" | ||
}, | ||
{ | ||
"x3": "628.515869", | ||
"y1": "1192.000000", | ||
"x1": "398.000000", | ||
"y4": "1452.757080", | ||
"x4": "386.741180", | ||
"y2": "1202.439209", | ||
"x2": "639.774719", | ||
"y3": "1463.196289" | ||
}, | ||
{ | ||
"x3": "1787.353516", | ||
"y1": "1257.000000", | ||
"x1": "1495.000000", | ||
"y4": "1482.905884", | ||
"x4": "1488.478027", | ||
"y2": "1265.628662", | ||
"x2": "1793.875488", | ||
"y3": "1491.534546" | ||
}, | ||
{ | ||
"x3": "2804.546387", | ||
"y1": "1267.000000", | ||
"x1": "2495.000000", | ||
"y4": "1547.713013", | ||
"x4": "2468.088867", | ||
"y2": "1299.255127", | ||
"x2": "2831.457520", | ||
"y3": "1579.968140" | ||
}, | ||
{ | ||
"x3": "939.620850", | ||
"y1": "2279.000000", | ||
"x1": "587.000000", | ||
"y4": "2548.592773", | ||
"x4": "572.175903", | ||
"y2": "2299.204590", | ||
"x2": "954.444946", | ||
"y3": "2568.797363" | ||
}, | ||
{ | ||
"x3": "1968.580078", | ||
"y1": "2307.000000", | ||
"x1": "1776.000000", | ||
"y4": "2534.936768", | ||
"x4": "1770.634888", | ||
"y2": "2311.659180", | ||
"x2": "1973.945190", | ||
"y3": "2539.595947" | ||
}, | ||
{ | ||
"x3": "2982.085693", | ||
"y1": "2334.000000", | ||
"x1": "2793.000000", | ||
"y4": "2544.980225", | ||
"x4": "2790.103760", | ||
"y2": "2336.635254", | ||
"x2": "2984.981934", | ||
"y3": "2547.615479" | ||
}, | ||
{ | ||
"x3": "1426.792480", | ||
"y1": "3287.000000", | ||
"x1": "1072.000000", | ||
"y4": "3611.215088", | ||
"x4": "1037.933228", | ||
"y2": "3327.859375", | ||
"x2": "1460.859253", | ||
"y3": "3652.074463" | ||
}, | ||
{ | ||
"x3": "2455.617920", | ||
"y1": "3346.000000", | ||
"x1": "2255.000000", | ||
"y4": "3559.973633", | ||
"x4": "2251.643066", | ||
"y2": "3349.199951", | ||
"x2": "2458.974854", | ||
"y3": "3563.173584" | ||
} | ||
] | ||
}, | ||
"words": { | ||
"wordtext": [ | ||
"#", | ||
"3", | ||
"2", | ||
"Q", | ||
"W", | ||
"E", | ||
"A", | ||
"S", | ||
"D", | ||
"Z", | ||
"X" | ||
], | ||
"wordlanguages": [ | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]" | ||
], | ||
"wordpoints": [ | ||
{ | ||
"x3": "2279.747070", | ||
"y1": "53.000000", | ||
"x1": "2081.000000", | ||
"y4": "245.345245", | ||
"x4": "2048.932861", | ||
"y2": "91.480637", | ||
"x2": "2311.814209", | ||
"y3": "283.825897" | ||
}, | ||
{ | ||
"x3": "2295.458252", | ||
"y1": "342.000000", | ||
"x1": "2067.000000", | ||
"y4": "605.842957", | ||
"x4": "1979.416382", | ||
"y2": "446.911316", | ||
"x2": "2383.041992", | ||
"y3": "710.754272" | ||
}, | ||
{ | ||
"x3": "1204.772949", | ||
"y1": "255.000000", | ||
"x1": "942.000000", | ||
"y4": "537.928284", | ||
"x4": "865.838440", | ||
"y2": "346.237946", | ||
"x2": "1280.934570", | ||
"y3": "629.166199" | ||
}, | ||
{ | ||
"x3": "628.515869", | ||
"y1": "1192.000000", | ||
"x1": "398.000000", | ||
"y4": "1452.757080", | ||
"x4": "386.741180", | ||
"y2": "1202.439209", | ||
"x2": "639.774719", | ||
"y3": "1463.196289" | ||
}, | ||
{ | ||
"x3": "1787.353516", | ||
"y1": "1257.000000", | ||
"x1": "1495.000000", | ||
"y4": "1482.905884", | ||
"x4": "1488.478027", | ||
"y2": "1265.628662", | ||
"x2": "1793.875488", | ||
"y3": "1491.534546" | ||
}, | ||
{ | ||
"x3": "2804.546387", | ||
"y1": "1267.000000", | ||
"x1": "2495.000000", | ||
"y4": "1547.713013", | ||
"x4": "2468.088867", | ||
"y2": "1299.255127", | ||
"x2": "2831.457520", | ||
"y3": "1579.968140" | ||
}, | ||
{ | ||
"x3": "939.620850", | ||
"y1": "2279.000000", | ||
"x1": "587.000000", | ||
"y4": "2548.592773", | ||
"x4": "572.175903", | ||
"y2": "2299.204590", | ||
"x2": "954.444946", | ||
"y3": "2568.797363" | ||
}, | ||
{ | ||
"x3": "1968.580078", | ||
"y1": "2307.000000", | ||
"x1": "1776.000000", | ||
"y4": "2534.936768", | ||
"x4": "1770.634888", | ||
"y2": "2311.659180", | ||
"x2": "1973.945190", | ||
"y3": "2539.595947" | ||
}, | ||
{ | ||
"x3": "2982.085693", | ||
"y1": "2334.000000", | ||
"x1": "2793.000000", | ||
"y4": "2544.980225", | ||
"x4": "2790.103760", | ||
"y2": "2336.635254", | ||
"x2": "2984.981934", | ||
"y3": "2547.615479" | ||
}, | ||
{ | ||
"x3": "1426.792480", | ||
"y1": "3287.000000", | ||
"x1": "1072.000000", | ||
"y4": "3611.215088", | ||
"x4": "1037.933228", | ||
"y2": "3327.859375", | ||
"x2": "1460.859253", | ||
"y3": "3652.074463" | ||
}, | ||
{ | ||
"x3": "2455.617920", | ||
"y1": "3346.000000", | ||
"x1": "2255.000000", | ||
"y4": "3559.973633", | ||
"x4": "2251.643066", | ||
"y2": "3349.199951", | ||
"x2": "2458.974854", | ||
"y3": "3563.173584" | ||
} | ||
], | ||
"wordframe": [ | ||
{ | ||
"y": "53.000000", | ||
"x": "2048.000000", | ||
"height": "231.000000", | ||
"width": "264.000000" | ||
}, | ||
{ | ||
"y": "342.000000", | ||
"x": "1979.000000", | ||
"height": "369.000000", | ||
"width": "405.000000" | ||
}, | ||
{ | ||
"y": "255.000000", | ||
"x": "865.000000", | ||
"height": "375.000000", | ||
"width": "416.000000" | ||
}, | ||
{ | ||
"y": "1192.000000", | ||
"x": "386.000000", | ||
"height": "272.000000", | ||
"width": "254.000000" | ||
}, | ||
{ | ||
"y": "1257.000000", | ||
"x": "1488.000000", | ||
"height": "235.000000", | ||
"width": "306.000000" | ||
}, | ||
{ | ||
"y": "1267.000000", | ||
"x": "2468.000000", | ||
"height": "313.000000", | ||
"width": "364.000000" | ||
}, | ||
{ | ||
"y": "2279.000000", | ||
"x": "572.000000", | ||
"height": "290.000000", | ||
"width": "383.000000" | ||
}, | ||
{ | ||
"y": "2307.000000", | ||
"x": "1770.000000", | ||
"height": "233.000000", | ||
"width": "204.000000" | ||
}, | ||
{ | ||
"y": "2334.000000", | ||
"x": "2790.000000", | ||
"height": "214.000000", | ||
"width": "195.000000" | ||
}, | ||
{ | ||
"y": "3287.000000", | ||
"x": "1037.000000", | ||
"height": "366.000000", | ||
"width": "424.000000" | ||
}, | ||
{ | ||
"y": "3346.000000", | ||
"x": "2251.000000", | ||
"height": "218.000000", | ||
"width": "208.000000" | ||
} | ||
], | ||
"wordconfidence": [ | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
] | ||
} | ||
} | ||
``` | ||
# Android Example Object | ||
```json | ||
{ | ||
"blocks": { | ||
"blocktext": [ | ||
"Home", | ||
"Ins", | ||
"PgUp", | ||
"PgDn", | ||
"Del" | ||
], | ||
"blockconfidence": [ | ||
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
], | ||
"blocklanguages": [ | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]" | ||
], | ||
"blockpoints": [ | ||
{ | ||
"x1": 270, | ||
"y1": 346, | ||
"x2": 652, | ||
"y2": 346, | ||
"x3": 652, | ||
"y3": 468, | ||
"x4": 270, | ||
"y4": 468 | ||
}, | ||
{ | ||
"x1": 913, | ||
"y1": 2459, | ||
"x2": 1215, | ||
"y2": 2459, | ||
"x3": 1215, | ||
"y3": 2627, | ||
"x4": 913, | ||
"y4": 2627 | ||
}, | ||
{ | ||
"x1": 1497, | ||
"y1": 292, | ||
"x2": 1907, | ||
"y2": 292, | ||
"x3": 1907, | ||
"y3": 496, | ||
"x4": 1497, | ||
"y4": 496 | ||
}, | ||
{ | ||
"x1": 1543, | ||
"y1": 1722, | ||
"x2": 1953, | ||
"y2": 1722, | ||
"x3": 1953, | ||
"y3": 1878, | ||
"x4": 1543, | ||
"y4": 1878 | ||
}, | ||
{ | ||
"x1": 1659, | ||
"y1": 2451, | ||
"x2": 1900, | ||
"y2": 2451, | ||
"x3": 1900, | ||
"y3": 2585, | ||
"x4": 1659, | ||
"y4": 2585 | ||
} | ||
], | ||
"blockframe": [ | ||
{ | ||
"x": 270, | ||
"y": 468, | ||
"height": 122, | ||
"width": 382 | ||
}, | ||
{ | ||
"x": 913, | ||
"y": 2627, | ||
"height": 168, | ||
"width": 302 | ||
}, | ||
{ | ||
"x": 1497, | ||
"y": 496, | ||
"height": 204, | ||
"width": 410 | ||
}, | ||
{ | ||
"x": 1543, | ||
"y": 1878, | ||
"height": 156, | ||
"width": 410 | ||
}, | ||
{ | ||
"x": 1659, | ||
"y": 2585, | ||
"height": 134, | ||
"width": 241 | ||
} | ||
] | ||
}, | ||
"lines": { | ||
"linetext": [ | ||
"Home", | ||
"Ins", | ||
"PgUp", | ||
"PgDn", | ||
"Del" | ||
], | ||
"lineconfidence": [ | ||
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
], | ||
"linelanguages": [ | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]" | ||
], | ||
"linepoints": [ | ||
{ | ||
"x1": 270, | ||
"y1": 346, | ||
"x2": 652, | ||
"y2": 346, | ||
"x3": 652, | ||
"y3": 468, | ||
"x4": 270, | ||
"y4": 468 | ||
}, | ||
{ | ||
"x1": 913, | ||
"y1": 2459, | ||
"x2": 1215, | ||
"y2": 2459, | ||
"x3": 1215, | ||
"y3": 2627, | ||
"x4": 913, | ||
"y4": 2627 | ||
}, | ||
{ | ||
"x1": 1497, | ||
"y1": 292, | ||
"x2": 1907, | ||
"y2": 292, | ||
"x3": 1907, | ||
"y3": 496, | ||
"x4": 1497, | ||
"y4": 496 | ||
}, | ||
{ | ||
"x1": 1543, | ||
"y1": 1722, | ||
"x2": 1953, | ||
"y2": 1722, | ||
"x3": 1953, | ||
"y3": 1878, | ||
"x4": 1543, | ||
"y4": 1878 | ||
}, | ||
{ | ||
"x1": 1659, | ||
"y1": 2451, | ||
"x2": 1900, | ||
"y2": 2451, | ||
"x3": 1900, | ||
"y3": 2585, | ||
"x4": 1659, | ||
"y4": 2585 | ||
} | ||
], | ||
"lineframe": [ | ||
{ | ||
"x": 270, | ||
"y": 468, | ||
"height": 122, | ||
"width": 382 | ||
}, | ||
{ | ||
"x": 913, | ||
"y": 2627, | ||
"height": 168, | ||
"width": 302 | ||
}, | ||
{ | ||
"x": 1497, | ||
"y": 496, | ||
"height": 204, | ||
"width": 410 | ||
}, | ||
{ | ||
"x": 1543, | ||
"y": 1878, | ||
"height": 156, | ||
"width": 410 | ||
}, | ||
{ | ||
"x": 1659, | ||
"y": 2585, | ||
"height": 134, | ||
"width": 241 | ||
} | ||
] | ||
}, | ||
"words": { | ||
"wordtext": [ | ||
"Home", | ||
"Ins", | ||
"PgUp", | ||
"PgDn", | ||
"Del" | ||
], | ||
"wordconfidence": [ | ||
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
], | ||
"wordlanguages": [ | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]", | ||
"[]" | ||
], | ||
"wordpoints": [ | ||
{ | ||
"x1": 270, | ||
"y1": 346, | ||
"x2": 652, | ||
"y2": 346, | ||
"x3": 652, | ||
"y3": 468, | ||
"x4": 270, | ||
"y4": 468 | ||
}, | ||
{ | ||
"x1": 913, | ||
"y1": 2459, | ||
"x2": 1215, | ||
"y2": 2459, | ||
"x3": 1215, | ||
"y3": 2627, | ||
"x4": 913, | ||
"y4": 2627 | ||
}, | ||
{ | ||
"x1": 1497, | ||
"y1": 292, | ||
"x2": 1907, | ||
"y2": 292, | ||
"x3": 1907, | ||
"y3": 496, | ||
"x4": 1497, | ||
"y4": 496 | ||
}, | ||
{ | ||
"x1": 1543, | ||
"y1": 1722, | ||
"x2": 1953, | ||
"y2": 1722, | ||
"x3": 1953, | ||
"y3": 1878, | ||
"x4": 1543, | ||
"y4": 1878 | ||
}, | ||
{ | ||
"x1": 1659, | ||
"y1": 2451, | ||
"x2": 1900, | ||
"y2": 2451, | ||
"x3": 1900, | ||
"y3": 2585, | ||
"x4": 1659, | ||
"y4": 2585 | ||
} | ||
], | ||
"wordframe": [ | ||
{ | ||
"x": 270, | ||
"y": 468, | ||
"height": 122, | ||
"width": 382 | ||
}, | ||
{ | ||
"x": 913, | ||
"y": 2627, | ||
"height": 168, | ||
"width": 302 | ||
}, | ||
{ | ||
"x": 1497, | ||
"y": 496, | ||
"height": 204, | ||
"width": 410 | ||
}, | ||
{ | ||
"x": 1543, | ||
"y": 1878, | ||
"height": 156, | ||
"width": 410 | ||
}, | ||
{ | ||
"x": 1659, | ||
"y": 2585, | ||
"height": 134, | ||
"width": 241 | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82549
66
1206