I am currently using the client.DetectText method to extract data from some images. The images themselves never change location with specific data and I would like to get data for a specific area of the image.
Should I just reference the location in the text return (the specific line break) and hope that that is always it or is there a way with this code:
Google.Cloud.Vision.V1.Image image = Google.Cloud.Vision.V1.Image.FromFile(imagepath);
ImageAnnotatorClient client = ImageAnnotatorClient.Create();
IReadOnlyList<EntityAnnotation> response = client.DetectText(image);
string test = string.Empty;
foreach (EntityAnnotation annotation in response)
{
if (annotation.Description != null)
{
Console.WriteLine(annotation.Description);
test += Environment.NewLine + annotation.Description;
}
}
That I can add parameters to force a specific image location. Or maybe I guess I could crop the image before hand in code somehow?
Thanks.