Hi,
I am newbie in Cloud Vision Api and using it for my android app development to translate urdu text from image but everytime I hit my firebase function i get exception as "com.google.firebase.functions.FirebaseFunctionsException: No image present." However I've decoded my base64 encoded image and found correct image.
I am going crazy finding solution of what went wrong as i followed firebase documentation.
Anyone can please provide a solution of it.
Here is my firebase cloud function code in index.js:
And my android end request format :
{
"image": {
"content": "/9j/4AAQ........(base64image)=="
},
"features": [
{
"type": "TEXT_DETECTION"
}
],
"imageContext": {
"languageHints": [
"ur"
]
}
}
Thank you in advance for providing the solution. Have a great day!!!.