- This topic has 1 reply, 2 voices, and was last updated Feb 22-1:03 pm by sybok.
-
AuthorPosts
-
February 22, 2023 at 11:54 am #100317Member
PPC
There are lots of web services that remove background’s from pictures. Some are even free, probably most will keep your data and sell it for the highest bidder.
There are off-line options that do not require that you go trough a crash course on GIMP. Here is one, that works great in antiX:
https://github.com/topics/background-removalHow to install it:
NOTE:-You can Download the latest release of the source code here (I opted for the .zip file).-Open a terminal
-Make sure you have pip installed. If you don’t have it, install it with
sudo apt install pip
– Then install the application:
pip install rembg
-After the installation process finishes, you can check if it’s installed by seeing it’s help file (it can take a few moments to appear):
~/.local/bin/rembg --help
-You can use the application to remove backgrounds from a single file (replace what’s in bold letters with the path to the files (you can drag and drop the existing file to the terminal, intead of typing it’s full path):~/.local/bin/rembg i path/to/the/original_picture_filename.extension path/to/where/you/want/the/picture/without/background/to/be/and/its_full_name.extension
Note1: the first time you run the application, it will download a package with more than 120MB
Note2: if not path to the new file is given, it will be created in the current folder, but you have to always provide a name for the output file…When the process finishes, you can see the resulting file- It’s not perfect, but I got some good results (and also some very strange ones, if the picture has a very clear white background).
Requirements: python: >3.7, <3.11 (This means it works great with antiX 22, out of the box, but not on antiX 19 or older versions)
I hope someone finds this info useful.
P.
- This topic was modified 2 months, 2 weeks ago by PPC.
- This topic was modified 2 months, 2 weeks ago by PPC.
- This topic was modified 2 months, 2 weeks ago by PPC.
February 22, 2023 at 1:03 pm #100324Member
sybok
::Hi, it’s ‘python3-pip’, not ‘pip’ to install using ‘apt’.
I wonder why the author restricts to 3.7 < Python < 3.11. -
AuthorPosts
- You must be logged in to reply to this topic.