卸载
pip uninstall easy-xedu -y
安装
pip install easy-xedu -i https://pypi.tuna.tsinghua.edu.cn/simple
执行
easytrain
访问:
http://127.0.0.1:5000/mmedu/index
import cv2 import BaseDeploy as bd model_path = r'D:\XEdu\my_checkpoints\mmedu_20231215_143840\best_accuracy_top-1_epoch_3.onnx' cap = cv2.VideoCapture(0) ret, img = cap.read() model = bd(model_path) result = model.inference(img) result = model.print_result(result) print(result) cap.release()
标签:img,训练,cap,pip,result,xedu,model,手势 From: https://www.cnblogs.com/flyingsir/p/17903373.html