'OCR : Replace recognized text with its translation like google translate
I am working on an OCR project. I using Firebase ML Kit for Optical character recognition. I have to replace the text with its translation in different language over the captured image. For that i need to erase the text from the original image before drawing translated text over it.
(source: google.com)
I have tried to extract the possible background color and text color from the detected co-ordinate of the text. Its almost success. But the problem is, the background will became static color.
https://superuser.com/questions/1359257/how-to-use-ffmpeg-removelogo-filter
I am able to get the exact co-ordinate of the original text in the image. Found delogo filter in FFMPEG for videos. Since the adjacent pixels fill the desired area, would like to try it for Bitmap images in android. Any algorithm/implementation already there for removing logo/watermark/object from a bitmap.
Expecting something like this
Solution 1:[1]
Google Translator using Firebase Ml Kit Example
After get FirebaseVisionDocumentText you can use google Translate API
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ganesh Pokale |