Skip to content

My simple python script for removing the background of an image using python. (ps. this scripts is still running in a Command Line Interface (CLI) , still no Graphical User Interface (GUI) for now).

License

Notifications You must be signed in to change notification settings

lightdarkmaster/Transparentify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Transparentify 🌟

My simple Python script for removing the background of an image using Python.

🐍 Python Packages Used

  1. rembg
  2. PIL

This Project came now with a two options to run

  1. Using CLI
  2. Using the UI

🚀 How to Use the Script using CLI

  1. 📁 Create an image folder where you can store the image you want to remove the background.
  2. 📝 In the same directory, create a Python file removebg.py and copy the code.
  3. 📦 Install the above core packages.
  4. 📂 Create an outputImage folder.
  5. ▶️ Run the code. (Ensure that the name of the image and directory is accurate.)
  6. ⏳ Wait for the execution; sometimes it will take a few seconds or more depending on the device used.
  7. 🎉 Enjoy...

Using UI

  1. Run the code
  2. Very simple UI and easy to understand.
  3. have a descriptive buttons functionalities so easy to use.

🖼️ Example

Here is an example of how to use the script:

from rembg import remove
from PIL import Image

input_path = 'image/input.jpg'
output_path = 'outputImage/output.png'

input_image = Image.open(input_path)
output_image = remove(input_image)
output_image.save(output_path)

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

If you have suggestions for improving this script, please open an issue or submit a pull request.

📧 Contact

For any inquiries, please contact christian.barbosa05222001@gmail.com.

About

My simple python script for removing the background of an image using python. (ps. this scripts is still running in a Command Line Interface (CLI) , still no Graphical User Interface (GUI) for now).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages