You cant export Keras directly to Android but you have to save the model
Then load it with one of the following solutions:
Solution 1: Import model in Tensflow
1- Build Tensorflow model
- Build tensorflow model from keras model use this code (link updated)
2- Build Android app and call tensflow. check this tutorial and this official demo from google to learn how to do it.
Solution 2: Import model in java
1- deeplearning4j a java library allow to import keras model: tutorial link
2- Use deeplearning4j in Android: it is easy since you are in java world. check this tutorial
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…