Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Implement Text Recognition Service from Huawei ML Kit in Cordova and Reduce Application Size #123

Open
ferri-17 opened this issue Feb 15, 2023 · 0 comments

Comments

@ferri-17
Copy link

ferri-17 commented Feb 15, 2023

I would like to use the Huawei ML kit to implement the text recognition service in my Cordova project (Android). However, I only want to use this service and not all the other services offered by the kit. Currently, I am using the ML Kit plugin for Cordova, but when I generate the application, it takes about 150kb because it includes the whole kit.

cordova plugin add @hmscore/cordova-plugin-hms-ml

Text Recognition:
text-recognition-guide

I would like to reduce the size of the application by removing the services from the kit that I am not using and only include the text recognition service in the final application. Does anyone know how I can achieve this? I would like to know if there is any way to customize the ML Kit plugin for Cordova or if there is any other solution to achieve this goal.

I would appreciate any advice or suggestions on how I can reduce the size of the application and use only the text recognition service of the Huawei ML Kit in my Cordova project.

Environment

  • Platform: [Cordova]
  • Kit: [ML kit]
  • Kit Version [3.5.0-301]
  • OS Version [Android 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant