Hello everyone,
I am testing the google vision api for ocr using postman for a local image. Passing the request body as
{
"requests": [
{
"features": [
{
"type": "TEXT_DETECTION"
}
],
"image": {
"content": "value obtained from online image to base64 converter"
}
}
]
}
After sending request, I am getting 400 Bad request, with message also containing
"description": "Invalid value at 'requests[0].image.content' (TYPE_BYTES), Base64 decoding failed for.....
I think I am not putting base64 string in a correct format, can someone please help me out with the correct way.
Thanks