# AutoCutout **Repository Path**: chengxianggit/AutoCutout ## Basic Information - **Project Name**: AutoCutout - **Description**: 使用飞桨(PaddlePaddle)的PaddleHub,提供自动抠图服务 使用者只需要打开网页上传图片即可使用 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 55 - **Created**: 2023-12-17 - **Last Updated**: 2023-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PaddleHub web抠图服务 ## step1. 启动flask服务 ```python python app.py ``` ## step2. 启动PaddleHub 一键部署deeplabv3p_xception65_humanseg服务 ```python set CUDA_VISIBLE_DEVICES=0 hub serving start -m deeplabv3p_xception65_humanseg hub serving start --config config.json ``` ## step3. 打开浏览器体验web 抠图服务 ```python http://localhost ``` ## step4. 添加证件照更换背景服务 ```python 2020.5.5 20:00 http://localhost/zhegnjianzhao 添加证件照功能 ``` ## step5. 修复菜单自适应 ```python 2020.5.5 20:00 ``` ## step6. 依赖 ```python 1.PaddlePaddle(飞桨) 2.PaddleHub 3.Flask ``` ## step7. 增加颜值计算 ## step8. 增加OCR ### flask bootstrap支持 ```.bash pip install flask_bootstrap ``` ### flask blueprint ```.env pip install flask-blueprint ``` ### cpu 模式下run ```.bash hub serving start --config cpuconfig.json python app.py ``` ### gpu 模式下run ```.bash set CUDA_VISIBLE_DEVICES=0 hub serving start --config config.json python app.py ``` ![Image text](微信图片_20200503142919.png) ![Image text](微信截图_20200505205858.png) ![Image text](微信截图_20200505205912.png) ![Image text](微信截图_20200507173758.png)7173758.png)