It looks like you are using the "TEXT_DETECTION" mode rather than the "DOCUMENT_TEXT_DETECTION" mode of the Google Vision API.
https://cloud.google.com/vision/docs/ocr
This specifies the the differences between the two.
From https://cloud.google.com/vision/docs/detecting-fulltext
This is what your code should look like if you are using the "DOCUMENT_TEXT_DETECTION" API.
var image = Image.FromFile(filePath);
var client = ImageAnnotatorClient.Create();
var response = client.DetectDocumentText(image);
foreach (var page in response.Pages)
{
foreach (var block in page.Blocks)
{
foreach (var paragraph in block.Paragraphs)
{
Console.WriteLine(string.Join("\n", paragraph.Words));
}
}
}
Hope that helps!
Edit
I did a POST https://vision.googleapis.com/v1/images:annotate?key=[API_KEY] with the body
{
"requests": [
{
"image": {
"source": {
"imageUri": "https://i.imgur.com/5t34img.png"
}
},
"features": [
{
"type": "DOCUMENT_TEXT_DETECTION"
}
]
}
]
}
and received this response valid response. https://gist.github.com/kle622/02d4d573c2c8bc08beac25a26b81096e
I can help more if you post your updated code :)