{"id":20305926,"url":"https://github.com/wangxinleo/flask-background-remove","last_synced_at":"2025-05-07T21:34:02.083Z","repository":{"id":45041102,"uuid":"199597564","full_name":"wangxinleo/flask-background-remove","owner":"wangxinleo","description":"😶❌【停止维护，已无法使用】基于Flask，运用removebg接口编写的背景删除web服务","archived":false,"fork":false,"pushed_at":"2022-12-08T06:35:34.000Z","size":11674,"stargazers_count":29,"open_issues_count":3,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-06T14:48:06.512Z","etag":null,"topics":["removebg"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangxinleo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-30T07:20:10.000Z","updated_at":"2022-07-01T03:55:29.000Z","dependencies_parsed_at":"2023-01-25T11:45:36.903Z","dependency_job_id":null,"html_url":"https://github.com/wangxinleo/flask-background-remove","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxinleo%2Fflask-background-remove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxinleo%2Fflask-background-remove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxinleo%2Fflask-background-remove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxinleo%2Fflask-background-remove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangxinleo","download_url":"https://codeload.github.com/wangxinleo/flask-background-remove/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224659980,"owners_count":17348501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["removebg"],"created_at":"2024-11-14T17:10:43.869Z","updated_at":"2024-11-14T17:10:44.396Z","avatar_url":"https://github.com/wangxinleo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-background-remove\n\u003cp align = \"center\"\u003e\n\n\u003cimg src=\"https://www.remove.bg/images/samples/combined/s5.jpg\" /\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\u003ch1\u003eUPGOREMOVE，一键去除图片背景。\u003c/h1\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/wangxinleo/UpGoRemove_Flask/issues\"\u003e\u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/wangxinleo/UpGoRemove_Flask\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wangxinleo/UpGoRemove_Flask/network\"\u003e\u003cimg alt=\"GitHub forks\" src=\"https://img.shields.io/github/forks/wangxinleo/UpGoRemove_Flask\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wangxinleo/UpGoRemove_Flask/stargazers\"\u003e\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/wangxinleo/UpGoRemove_Flask\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wangxinleo/UpGoRemove_Flask/blob/master/LICENSE\"\u003e\u003cimg alt=\"GitHub license\" src=\"https://img.shields.io/github/license/wangxinleo/UpGoRemove_Flask\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 💡 简介\n\n[UPGOREMOVE](https://github.com/wangxinleo/UpGoRemove_Flask) 是一款快速、精细去除背景图片的AI web工具！！！\n\n从照片中删除背景是一项繁琐的任务 ，就算是专业的设计师，使用最专业的软件，也需要花费大量时间去处理图片细节问题。\n\n使用[UPGOREMOVE](https://github.com/wangxinleo/UpGoRemove_Flask)，您可以在5秒内自动100％剪切任何图像，不需要进一步输入：没有选择像素，没有标记人，什么都没有。\n\nUPGOREMOVE 基于[REMOVEBG](https://www.remove.bg)，它有偿提供了自动删除背景的API接口，就算不了解人工智能，也能通过它提供的接口实现个人开发需求。\n\n\u003e 具体细节请浏览 [REMOVEBG/API](https://www.remove.bg/api)\n\n### 为什么要花时间去研究这个？\n\n先来一张效果对比图\n\n![showimg.png](https://i.loli.net/2019/08/08/WmQYRlArafdzKcu.png)\n\n对比之后明显发现，REMOVEBG API可以提供更丰满的图片效果。相比于一些抠图难度大的图片，REMOVEBG API可以更加帮助到设计师短时间完成自己的工作。\n\n最重要的。。网上那些智能抠图工具有着致命和繁琐的套路\n\n注册--\u003e填信息--\u003e收邮件--\u003e打开邮箱--\u003e确认邮件--\u003e登录--\u003e下载\n\n对不起，打扰了~我选择死亡~[手动滑稽]\n\n## 🗃 示例地址\n[REMOVEBG_http://removebg.wangxinleo.cn/](http://removebg.wangxinleo.cn/)\n\n## 🗃 演示\n\n![show.gif](http://i.loli.net/2019/08/08/ulsbS64w3AGJNR1.gif)\n\n## 🎨 界面\n\n### 开始使用\n\nPC端\n\n![pc_key.png](https://i.loli.net/2019/08/08/ZEHnwR1yW4aU9Xo.png)\n\n![pc_index.png](https://i.loli.net/2019/08/08/BTDPdEzk5CL1NWw.png)\n\n![pc_index2.png](https://i.loli.net/2019/08/08/5K3OgqVcrthPAxp.png)\n\n移动端\n\n![mobie_index.png](https://i.loli.net/2019/08/08/xdeI5mMHcQXB17K.png)\n\n### 处理完成\n\nPC端\n\n![pc_complete.png](https://i.loli.net/2019/08/08/InPGwcZXBM5NqE2.png)\n\n移动端\n\n![mobie_complete.png](https://i.loli.net/2019/08/08/T6Mrjb3sJg9m1CS.png)\n\n### 错误页面\n\nPC端\n\n![pc_404.png](https://i.loli.net/2019/08/08/okfxKFCLsBnV8zU.png)\n\n![pc_ugerror.png](https://i.loli.net/2019/08/08/eQmn8MjRt5bJ2Cv.png)\n\n移动端\n\n![mobie_404.png](https://i.loli.net/2019/08/08/grb41LC9fFm5SxJ.png)\n\n![mobie_ugerror.png](https://i.loli.net/2019/08/08/rEO9oJxqym2FYkH.png)\n\n## 🛠️ 安装\n\n### 本地试用\n1.下载并正确安装 [python ](https://www.python.org/)、[pip3](https://pypi.org/project/pip/#files)、mysql\n\n2.[下载UpGoRemove_Flask](https://github.com/wangxinleo/UpGoRemove_Flask)，解压，进入解压目录\n\n3.在项目目录中进入命令行模式（Windows进入cmd，linux进入shell），运行命令以下，安装依赖\n```\npip install -r requirements.txt\n```\n\n4.在mysql中运行sql文件夹下的upGoremove.sql文件\n    \n- 4-1创建数据库\n    - 数据库的字符集选择utf8mb4,字符集校对选择utf8mb4_general_cil\n    \n    ![image.png](https://i.loli.net/2019/09/18/yfNL1q6pB4V75vt.png)\n- 4-2运行sql脚本\n    - 注意选择正确的字符集\n    \n    ![image.png](https://i.loli.net/2019/09/18/KWTfupn8jX46Lqg.png)\n    \n5.更改config.py中关于 SQLALCHEMY_DATABASE_URI的值，指向自己的数据库\n\n```\n SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://用户名:密码@数据库地址:3306/upGoremove'\n```\n\n6.运行项目主程序，不要关掉黑色窗口\n```\npython manage.py\n```\n\n5.根据提示，打开  http://127.0.0.1:5000/  即可\n\n### 获取密钥\n要处理图像，您必须访问[Removebg API](https://www.remove.bg/api)\n\n根据网站指引注册登录后即可获得免费密钥\n\n### 处理图像目录\n用户上传图片时，保存的目录：\n```\nuploadFile/\n├── person.jpg\n└── car.png\n```\n\n运行后将得到的图片目录：\n\n```\nuploadFile/\n├── person.jpg\n└── car.png\n\ndownloadFile/\n├── person.png\n├── person_blue.png\n├── person_red.png\n└── person_white.png\n\nzipFile/\n└── person.zip\n```\n\n### 隐私安全\n关闭下载页面时，会触发关闭事件，删除与目标用户有关的图像数据，请试用的小伙伴及时保存好自己的图片数据\n\n### 日志输出\n默认将日志打印到error.log，请在项目目录中查看\n\n## 🏘️ 提问\n\n* [报告问题](https://github.com/wangxinleo/UpGoRemove_Flask/issues/new)\n\n## 🙏 鸣谢\n\n* [remove-bg](https://github.com/remove-bg/go)：一个基于GO语言的removebg API\n\n## 🏘️ 社区\n\n* 欢迎加入B3LOG的小众开源社区，详情请看[这里](https://hacpai.com/article/1463025124998)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangxinleo%2Fflask-background-remove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangxinleo%2Fflask-background-remove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangxinleo%2Fflask-background-remove/lists"}