I am sending images through the Google Vision OCR API to obtain a text layer of the document, I have have no issues with this previously and have run it through at least a thousand times in testing. I recently delivered a POC to someone and they were reporting errors with not getting back valid text layers.
I looked and inside my JSON return I am not getting Vertices back from Google.
Here is my Request:
{
"requests": [
{
"inputConfig': {
"content': [tiff byte stream to string goes here],
"mimeType': 'image/tiff"
},
'pages': [
1
],
'features': [
{
'type': 'DOCUMENT_TEXT_DETECTION'
}
]
}
]
}
Here is a very small sample of what I am getting back
{
"property": {
"detectedLanguages": [
{
"languageCode": "en"
}
]
},
"boundingBox": {
"vertices": [
{},
{},
{},
{}
]
},
"text": "1",
"confidence": 0.99
},
{
"property": {
"detectedLanguages": [
{
"languageCode": "en"
}
]
},
"boundingBox": {
"vertices": [
{},
{},
{},
{}
]
},
"text": "4",
"confidence": 0.97
},
Thank you in advance