前端:Bootstrap,Jquery 后端:Django 模型:VGG16 微信小程序:ColorUI+wepy
后端python程序中包含bird_predict.py文件
#载入tensorflow,keras环境依赖
import numpy as np
#Keras
from keras.applications.imagenet_utils import preprocess_input, decode_predictions
from keras.models import load_model
from keras.preprocessing import image
#载入权重文件
MODEL_PATH = 'birds.h5'
model = load_model(MODEL_PATH,compile=False)
model_predict(img_path, model)
#返回传入图片所属的分类