GithubHelp home page GithubHelp logo

remove_bg's Introduction

remove_bg

解决突然需要证件照的问题

cp .env.sample .env

修改.env文件中的配置

REMOVE_BG_API_KEY=remove.bg api key
ALIYUN_ENDPOINT= oss endpoint
STS_ACCESS_KEY_ID= 
STS_ACCESS_KEY_SECRET=
OSS_ACCESS_KEY_ID=
OSS_ACCESS_KEY_SECRET=
ALIYUN_BUCKET=
ALIYUN_ROLE_ARN=

目前需要配置的是你sts角色的key和id,以及oss的key和id,以及bucket的名字,以及endpoint

安装依赖

pip install -r requirements.txt

运行

python -m src.main

选择图片,然后就会自动上传到oss,然后选择需要替换的背景(默认:透明)自动调用remove.bg的api,图片(默认:no-bg.png)生成在根目录

img.png

remove_bg's People

Contributors

shabaofa avatar

Stargazers

 avatar

Watchers

 avatar

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.