/slider

slider crack

Primary LanguagePython

使用opencv和fastapi写的简单滑块识别接口

代码来源于SliderCrack,感谢作者的开源精神

使用fastapi编写HTTP接口,uvicorn启动Web服务

接口说明

使用方法:

  1. 安装依赖
pip install -r requirements.txt
  1. 启动服务
uvicorn main:app # 需要绑定外网可以添加--host 0.0.0.0
  1. 访问接口
http://127.0.0.1:8000/
  1. 接口返回
{
    "code": 0,
    "msg": "识别成功",
    "data": {
        x轴距离长度
    }
}