Page 1 of 2
Background remover
Posted: Mon Feb 05, 2024 1:23 pm
by xnview
Next release will have a background remover plugin, here is some examples
Re: Background remover
Posted: Sat Feb 10, 2024 4:36 pm
by Kadet
LOL

Re: Background remover
Posted: Sat Feb 10, 2024 7:15 pm
by XnTriq
This is great news! Can't wait to give it a try

Re: Background remover
Posted: Sun Feb 11, 2024 3:34 pm
by m-a-r-k
Brilliant, well done and thank you - if a long time overdue

Re: Background remover
Posted: Thu Feb 22, 2024 6:44 pm
by masterjp
What a great feature! How does it work? There is no instruction or info about it.
I tried the menu entry 'background remover' but nothing happened.
Re: Background remover
Posted: Fri Feb 23, 2024 7:09 am
by xnview
The 'Background remover' is available now. In Tools>Plugins, you can install it.
But there is an issue (i need to search why), the decompressed u2netp.onnx file is not good, please replace with this one
https://download.xnview.com/PlugIns/XnV ... _win64.zip
Re: Background remover
Posted: Fri Feb 23, 2024 4:20 pm
by masterjp
Thank you! Now it works perfect und very fast.
Unbelievable, the results are very good with different portrait photos.
The background remover has only a problem with white objects or clothing in portrait photos,
but this is a difficult task for every AI program.

---
I sometimes use xnviewmp as a portable program on usb stick.
Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?
Re: Background remover
Posted: Fri Feb 23, 2024 7:57 pm
by user0
'Remove Background...'
- this menu item shall be disabled for unsupported formats (audio,video,etc) as app craches
- there shall be no ... in the name, as no dialog is opened
masterjp wrote: Fri Feb 23, 2024 4:20 pm
I sometimes use xnviewmp as a portable program on usb stick.
Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?
guess it depends on 'Folder for other files' setting in Settings>Integration>Paths
if set to 'Program (XnView)' - AddOns suppose to be created in the app folder
Re: Background remover
Posted: Fri Feb 23, 2024 8:00 pm
by XnTriq
The add-on crashes on grayscale images

Re: Background remover
Posted: Sat Feb 24, 2024 10:22 am
by xnview
masterjp wrote: Fri Feb 23, 2024 4:20 pm
Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?
you can move the AddOns folder in the app folder
Re: Background remover
Posted: Sat Feb 24, 2024 12:45 pm
by XnTriq
When you go to
Tools →
PlugIns… →
AddOns and hit the
Install button for
Background Remover, …
- a new sub-directory named AddOns is created,
- 4 files are downloaded into this folder,
Code: Select all
\XnViewMP\AddOns\BackgroundRemover.dll
\XnViewMP\AddOns\onnxruntime.dll
\XnViewMP\AddOns\opencv_world3416.dll
\XnViewMP\AddOns\u2netp.onnx
- and a logfile named install.txt is added:
Code: Select all
BackgroundRemover
1.0
BackgroundRemover.dll
onnxruntime.dll
opencv_world3416.dll
u2netp.onnx
In case you prefer to
download and extract this extension manually:
Please note that the files for Background Remover go into the
AddOns sub-directory of your MP installation.
exiftool.exe and
twain32.exe OTOH belong in the existing
AddOn sub-directory.
Related:
- XnView Forum
- Wikipedia
- OpenCV (Open Source Computer Vision)
- ONNX (Open Neural Network Exchange)
- GitHub
Re: Background remover
Posted: Sat Feb 24, 2024 3:07 pm
by michel038
It seems that background remover does not work with Win7 .
Even when u2netp.onnx (4468 Ko) is replaced by u2netp.onnx (4468 Ko)
Install Background remover at Linux.
Posted: Mon May 06, 2024 5:00 pm
by Sologub
Linux Mint 21 Vanessa.
XnView MP 1.7.1 64-bit(Linux)-Libformat7.176 ; the latest version.
How can one install this set for linux Mint?
Is this set possible for Windows users only? I
have read that some plugins may be converted for linux also.
And I cannot find general installation instruction for XnView plugins. For my version of XnView there is option "Effects" -> Remove background colour.
But when I launch it the window "Background remover" appears with "Please install it by using Tools->Plugins". At Tools menu there isn't Plugins option.
I found at About program-> Plug-in modules, that the directory for plugins is /opt/XnView/Plugins.
I placed the unzipped files from BackRemover_win64.zip at this folder, but it doesn't work for me.
Re: Background remover
Posted: Mon Jun 24, 2024 11:21 am
by seeeonly
Hi,I wanted to express my appreciation for the Background Remover plugin. It processes images very quickly and delivers impressive results. I have a large number of images that need background removal, and I'm wondering if it's possible to execute this plugin via a batch file for batch processing.
Could you please provide guidance or any tips on how to use this functionality to handle multiple images at once?
Thank you for your assistance.
Re: Background remover
Posted: Tue Jun 25, 2024 2:50 pm
by Brigantino
As the user Sologub wrote above, I am also very interested in this AddOn and I also use Linux Mint and, under "Tools>Plugins...", at least in Linux Mint (or for all versions of XnViewMP?), there is no possibility to install Plugins.
I've tried extracting the files to the /opt/XnView/AddOn/BackRemover_win64/ folder, but even so I don't see the new Plugins installed when I restart XnViewMP, either in "Tools>Plugins..." or in Info, and when I go to "Effects>Background Remover" it asks me to install the Plugin from "Tools>Plugins..." (which as I said above, doesn't give the option to install Plugins).
Can anyone tell me how to do this? Has anyone already experienced something like this and solved it? Or can anyone give me any other suggestions? I'm ready to experiment.
Thanks for reading.