All Projects → nadermx → backgroundremover

nadermx / backgroundremover

Licence: MIT License
BackgroundRemover lets you Remove Background from images and video with a simple command line interface

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to backgroundremover

Lfimagepickercontroller
一个支持多选图片和视频的图片选择器,同时有预览、编辑功能
Stars: ✭ 212 (-79.03%)
Mutual labels:  photo-editing, video-editing
Lfmediaeditingcontroller
Media Editor (图片编辑、视频编辑)
Stars: ✭ 401 (-60.34%)
Mutual labels:  photo-editing, video-editing
ailia-models
The collection of pre-trained, state-of-the-art AI models for ailia SDK
Stars: ✭ 1,102 (+9%)
Mutual labels:  background-removal
ffEdit
Minimal visual editor for ffmpeg
Stars: ✭ 17 (-98.32%)
Mutual labels:  video-editing
burnbg-bot
🔥 With this bot you can remove background from any picture. Don't spend hours manually picking pixels. Send your photo now & see the magic.
Stars: ✭ 40 (-96.04%)
Mutual labels:  background-removal
editor
MediaBits.io editor to create videos for audio clips
Stars: ✭ 48 (-95.25%)
Mutual labels:  video-editing
Litrato
Android photo editing app with various filters and tools. Included advanced features like masking, histogram, color picker, EXIF viewer...
Stars: ✭ 54 (-94.66%)
Mutual labels:  photo-editing
vesdk-android-demo
VideoEditor SDK: A fully customizable video editor for your app.
Stars: ✭ 90 (-91.1%)
Mutual labels:  video-editing
video-audio-tools
To process/edit video and audio with Python+FFmpeg. [简单实用] 基于Python+FFmpeg的视频和音频的处理/剪辑。
Stars: ✭ 164 (-83.78%)
Mutual labels:  video-editing
py-msa-kdenlive
Python script to load a Kdenlive (OSS NLE video editor) project file, and conform the edit on video or numpy arrays.
Stars: ✭ 25 (-97.53%)
Mutual labels:  video-editing
Fixture
A no-bullshit, free and open source raster graphics editor.
Stars: ✭ 33 (-96.74%)
Mutual labels:  photo-editing
ai-background-remove
Cut out objects and remove backgrounds from pictures with artificial intelligence
Stars: ✭ 70 (-93.08%)
Mutual labels:  background-removal
cinelerra-cve
NLE Video editor
Stars: ✭ 17 (-98.32%)
Mutual labels:  video-editing
davinci-resolve-linux
Setup Davinci Resolve on Linux an Fix Issues with Importing and Exporting Media
Stars: ✭ 40 (-96.04%)
Mutual labels:  video-editing
nuophoto
📷 Web based image editor
Stars: ✭ 59 (-94.16%)
Mutual labels:  photo-editing
U-2-Net-Demo
Demonstration using Google Colab to show how U-2-NET can be used for Background Removal, Changing Backgrounds, Bounding Box Creation, Salient Feature Highlighting and Salient Object Cropping.
Stars: ✭ 132 (-86.94%)
Mutual labels:  background-removal
CommandPost
Workflow Enhancements for Creatives
Stars: ✭ 267 (-73.59%)
Mutual labels:  video-editing
frag-finder
Takes JSON files exported from CS:GO Demos Manager and spits out readable highlights meant as helpful filenames for fragmovie recording.
Stars: ✭ 22 (-97.82%)
Mutual labels:  video-editing
digital-paper-edit-client
Work in progress - BBC News Labs digital paper edit project - React Client
Stars: ✭ 36 (-96.44%)
Mutual labels:  video-editing
neural-greenscreen
Real time background replacement on a mac os driven webcam using the DeepLabV3 neural network for image segmentation and the native CoreMediaIO DAL framework of Mac OS.
Stars: ✭ 18 (-98.22%)
Mutual labels:  background-removal

BackgroundRemover

Background Remover background remover video
BackgroundRemover is a command line tool to remove background from video and image, made by nadermx to power https://BackgroundRemover.app. If you wonder why it was made read this short blog post.

Requirements

  • python <= 3.6
  • python3.6-dev #or what ever version of python you using
  • torch and torchvision stable version (https://pytorch.org)
  • ffmpeg 4.4+

How to install torch and fmpeg

Go to https://pytorch.org and scroll down to INSTALL PYTORCH section and follow the instructions.

For example:

PyTorch Build: Stable (1.7.1)
Your OS: Windows
Package: Pip
Language: Python
CUDA: None

To install ffmpeg and python-dev

sudo apt install ffmpeg python3.6-dev

Installation

To Install backgroundremover, install it from pypi

pip install --upgrade pip
pip install backgroundremover

Please note that when you first run the program, it will check to see if you have the u2net models, if you do not, it will get them from u2net's google drive, as they say too here, and in this repo the code that pulls it is here

Usage as a cli

Image

Remove the background from a local file image

backgroundremover -i "/path/to/image.jpeg" -o "output.png"

Advance usage for image background removal

Sometimes it is possible to achieve better results by turning on alpha matting. Example:

backgroundremover -i "/path/to/image.jpeg" -a -ae 15 -o "output.png"

change the model for diferent background removal methods between u2netp, u2net, or u2net_human_seg

backgroundremover -i "/path/to/image.jpeg" -m "u2net_human_seg" -o "output.png"

Video

remove background from video and make transparent mov

backgroundremover -i "/path/to/video.mp4" -tv -o "output.mov"

remove background from local video and overlay it over other video

backgroundremover -i "/path/to/video.mp4" -tov -tv "/path/to/videtobeoverlayed.mp4" -o "output.mov"

remove background from video and make transparent gif

backgroundremover -i "/path/to/video.mp4" -tg -o "output.gif"

Make matte key file (green screen overlay)

Make a matte file for premier

backgroundremover -i "/path/to/video.mp4" -mk -o "output.matte.mp4"

Advance usage for video

Change the framerate of the video (default is set to 30)

backgroundremover -i "/path/to/video.mp4" -fr 30 -tv -o "output.mov"

Change the gpu batch size of the video (default is set to 1)

backgroundremover -i "/path/to/video.mp4" -gb 4 -tv -o "output.mov"

Change the number of workers working on video (default is set to 1)

backgroundremover -i "/path/to/video.mp4" -wn 4 -tv -o "output.mov"

change the model for diferent background removal methods between u2netp, u2net, or u2net_human_seg

backgroundremover -i "/path/to/video.mp4" -m "u2net_human_seg"-tv -o "output.mov"

Todo

  • convert logic from video to image to utilize more GPU on image removal
  • clean up documentation a bit more
  • add ability to adjust and give feedback images or videos to datasets
  • add ability to realtime background removal for videos, for streaming
  • finish flask server api
  • add ability to use other models than u2net, ie your own.
  • other

Pull requests

Accepted

If you like this library

Give a link to our project BackgroundRemover.app or this git, telling people that you like it or use it.

bitcoin

bc1q80pshgqgqr7wn3kax59xwvmgq9ftvwla7dew7w

Reason for project

We made it our own package after merging together parts of others, adding in a few features of our own via posting parts as bounty questions on superuser, etc. As well as asked on hackernews earlier to open source the image part, so decided to add in video, and a bit more.

References

License

Licensed under MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].