Coder Social home page Coder Social logo

wangxinleo / flask-background-remove Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 11.0 11.4 MB

😶❌【停止维护,已无法使用】基于Flask,运用removebg接口编写的背景删除web服务

License: GNU General Public License v3.0

Python 100.00%
removebg

flask-background-remove's Introduction

flask-background-remove



UPGOREMOVE,一键去除图片背景。



GitHub issues GitHub forks GitHub stars GitHub license

💡 简介

UPGOREMOVE 是一款快速、精细去除背景图片的AI web工具!!!

从照片中删除背景是一项繁琐的任务 ,就算是专业的设计师,使用最专业的软件,也需要花费大量时间去处理图片细节问题。

使用UPGOREMOVE,您可以在5秒内自动100%剪切任何图像,不需要进一步输入:没有选择像素,没有标记人,什么都没有。

UPGOREMOVE 基于REMOVEBG,它有偿提供了自动删除背景的API接口,就算不了解人工智能,也能通过它提供的接口实现个人开发需求。

具体细节请浏览 REMOVEBG/API

为什么要花时间去研究这个?

先来一张效果对比图

showimg.png

对比之后明显发现,REMOVEBG API可以提供更丰满的图片效果。相比于一些抠图难度大的图片,REMOVEBG API可以更加帮助到设计师短时间完成自己的工作。

最重要的。。网上那些智能抠图工具有着致命和繁琐的套路

注册-->填信息-->收邮件-->打开邮箱-->确认邮件-->登录-->下载

对不起,打扰了我选择死亡[手动滑稽]

🗃 示例地址

REMOVEBG_http://removebg.wangxinleo.cn/

🗃 演示

show.gif

🎨 界面

开始使用

PC端

pc_key.png

pc_index.png

pc_index2.png

移动端

mobie_index.png

处理完成

PC端

pc_complete.png

移动端

mobie_complete.png

错误页面

PC端

pc_404.png

pc_ugerror.png

移动端

mobie_404.png

mobie_ugerror.png

🛠️ 安装

本地试用

1.下载并正确安装 python pip3、mysql

2.下载UpGoRemove_Flask,解压,进入解压目录

3.在项目目录中进入命令行模式(Windows进入cmd,linux进入shell),运行命令以下,安装依赖

pip install -r requirements.txt

4.在mysql中运行sql文件夹下的upGoremove.sql文件

  • 4-1创建数据库

    • 数据库的字符集选择utf8mb4,字符集校对选择utf8mb4_general_cil

    image.png

  • 4-2运行sql脚本

    • 注意选择正确的字符集

    image.png

5.更改config.py中关于 SQLALCHEMY_DATABASE_URI的值,指向自己的数据库

 SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://用户名:密码@数据库地址:3306/upGoremove'

6.运行项目主程序,不要关掉黑色窗口

python manage.py

5.根据提示,打开 http://127.0.0.1:5000/ 即可

获取密钥

要处理图像,您必须访问Removebg API

根据网站指引注册登录后即可获得免费密钥

处理图像目录

用户上传图片时,保存的目录:

uploadFile/
├── person.jpg
└── car.png

运行后将得到的图片目录:

uploadFile/
├── person.jpg
└── car.png

downloadFile/
├── person.png
├── person_blue.png
├── person_red.png
└── person_white.png

zipFile/
└── person.zip

隐私安全

关闭下载页面时,会触发关闭事件,删除与目标用户有关的图像数据,请试用的小伙伴及时保存好自己的图片数据

日志输出

默认将日志打印到error.log,请在项目目录中查看

🏘️ 提问

🙏 鸣谢

  • remove-bg:一个基于GO语言的removebg API

🏘️ 社区

  • 欢迎加入B3LOG的小众开源社区,详情请看这里

flask-background-remove's People

Contributors

dependabot[bot] avatar wangxinleo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flask-background-remove's Issues

无法转跳

您好 请问一下大佬我安装你的教程搭建好了服务器和数据库后 主页能正常出来 但是为什么填入了密匙后还是主页 没有转跳呢 附上地址http://118.31.1.29:5000/ 万分感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.