Closed njovy closed 1 month ago
@fbernaly Thank you for the rapid response. OnDeviceTranslator or some other packages have a method to check if the translation model is downloaded. I don't see that code in TextRecognizer.java, how do I use ModelManager to manage language models? The translation plugin doesn't fail to translate. It starts to download, then translates. However, I don't see that behavior in text recognition.
TextRecognition does not require model managing, because model is already included in the API. On Device Translation does require model managing.
There's no way to check if TextRecognizer has a given TextRecognitionScript. It would be great if we could check before processing an image, rather than relying on exceptions.
Is there a way to remove a downloaded TextRecognitionScript?