AI Background remover not recognizing subject

Corel Paint Shop Pro

Moderator: Kathy_9

bifrostfarms
Posts: 4
Joined: Sun May 21, 2023 9:51 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP 2022

AI Background remover not recognizing subject

Post by bifrostfarms »

I realize the AI background remover or background replacement is primarily designed to recognize human subjects, but is there any way to make it recognize an animal or something non-human as the subject. Everytime I try to use the tool, the entire picture winds up going red. If it's not possible, I'll stop beating my head on the keyboard. :)

Thanks,
Meg
PSP 2022
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: AI Background remover not recognizing subject

Post by LeviFiction »

It's only designed for humans. Stop beating your head. Use the selection tools for animals.
bashment
Posts: 24
Joined: Sun May 15, 2022 12:35 am
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
processor: 10th Gen
ram: 64GB
Video Card: 3060 Ghost
Corel programs: PSP Ult 2022

Re: AI Background remover not recognizing subject

Post by bashment »

Oh so... well, yeah. ok then.

That's why I.. right. Dear Ministry of Defence, Can you advocate for fighter jet designs to be more humanoid shaped. Thanks
Jean-Luc
Advisor
Posts: 2138
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)

Re: AI Background remover not recognizing subject

Post by Jean-Luc »

bifrostfarms wrote: Thu Jun 15, 2023 5:55 pm is there any way to make it recognize an animal or something non-human as the subject.
Try
https://www.remove.bg/
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: AI Background remover not recognizing subject

Post by LeviFiction »

I've found an open-source solution on Github that I've compiled and created a script for. It works on humans, animals, statues, and architecture. Not perfectly, but it does work. And it creates a mask rather than a new edited layer. So you can refine the result after it's done.

Not quite ready to release it forum wide but if anyone wants to try it let me know and I'll send you the links to the script, program, and video demo.
bifrostfarms
Posts: 4
Joined: Sun May 21, 2023 9:51 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP 2022

Re: AI Background remover not recognizing subject

Post by bifrostfarms »

Thanks for the info. I'll stop beating my head against the wall and try the background remover suggested. I'd offer to try Github solution but I'm afraid I'm not knowledgeable enough to really understand that yet. I've never done scripts. But good luck!!
Meg
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: AI Background remover not recognizing subject

Post by LeviFiction »

Actually not being familiar with scripts would make you a perfect test user as this isn't for advanced people. It's for anyone who doesn't want to buy a solution, or doesn't want to use a website. But up to you. As I said I do have an introductory video showing the whole process.
CANMK
Posts: 16
Joined: Sun Jun 25, 2023 3:31 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 235GB
Corel programs: Paintshop Pro 2023

Re: AI Background remover not recognizing subject

Post by CANMK »

Does it work on products, as in product photos? If so, I would like to try it out.

My technical knowledge is basically zero, so I would be a good test subject. If I can use it, then anyone else should be able to use it to.
CANMK
Posts: 16
Joined: Sun Jun 25, 2023 3:31 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 235GB
Corel programs: Paintshop Pro 2023

Re: AI Background remover not recognizing subject

Post by CANMK »

I am now trying to use the Pen Tool to remove the background in a photo. I have watched a couple tutorials on YT, but keep getting stuck. Here is the process I follow:

1) Select Pen Tool
2) Outline the Object I want to keep in my photo
3) Select the Pick Tool
4) Click on Selections and Choose From Vector Object
5) Click on my original photo, aka background image and then choose Edit, then Copy

And this is where I get stuck.

Anyone know how to properly finish so I can paste my selection onto a new layer and therefore have the background removed.

Thanks
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: AI Background remover not recognizing subject

Post by LeviFiction »

Ctrl + V - Paste as New Layer or Edit -> Paste As New Layer

You can now hide the original layer. I prefer to hide it over deleting it so that I can get it back at any time.

A different option, if you don't want to copy and paste, is to add a mask showing the selection. You'll end up with a layer group and inside the group is the mask layer and the original layer. The mask able to be edited and refined if you find it doesn't look quite right.
CANMK
Posts: 16
Joined: Sun Jun 25, 2023 3:31 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 235GB
Corel programs: Paintshop Pro 2023

Re: AI Background remover not recognizing subject

Post by CANMK »

Which layer do I paste (Ctrl + V) into?

I think this is where I am getting stuck.

Do I create a new Raster layer, click on it and paste into it?

I keep trying to do that, but it isn't working for me.
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: AI Background remover not recognizing subject

Post by LeviFiction »

Paste As New layer creates a new layer for you from the clipboard data. There is literally nothing else you need to do.

If you want to paste into an existing layer you need to use the command "Paste as Selection". This creates a floating selection that when you de-float it (CTRL + SHIFT + F), will auto-merge into the layer beneath. But it's rare that people want to do this. So best to stick to the command "Paste As New Layer" which will just create a new layer with your image on it.
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: AI Background remover not recognizing subject

Post by LeviFiction »

Oh, I just thought of a third way. Promote Selection to layer.

This takes a selection and copies the data to a new layer without the need for copy and paste. Once you have your selection, you can either use the shortcut SHIFT + CTRL + P. Or the menu Selections -> Promote Selection to Layer, or you can right-click in the layers palette and select "Promote selection to layer" The end result is a new layer with only your selected image data on it.
CANMK
Posts: 16
Joined: Sun Jun 25, 2023 3:31 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 235GB
Corel programs: Paintshop Pro 2023

Re: AI Background remover not recognizing subject

Post by CANMK »

Thank you very much - I followed your instructions and finally did it correctly.
CANMK
Posts: 16
Joined: Sun Jun 25, 2023 3:31 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Hard_Drive_Capacity: 235GB
Corel programs: Paintshop Pro 2023

Re: AI Background remover not recognizing subject

Post by CANMK »

I was playing around with background remover this morning and watching more tutorials on YT. I learned another method and wanted to share it with everyone.

1) Open your image
2) Select Magic Wand
3) Click once on your image's background area - don't click on the part of the image you want to keep, just click on the background area you want to remove
4) The background is automatically selected
5) Press the Delete Key on your keyboard

Voila, you will be left with just the image you wanted and the background imagery in your original photo is gone, replaced wiht transparent squares. You can then add whatever background color you want or do something else.

I have to say that PaintShop's Magic Wand is very, very good at selecting only the background and leaving your foreground object by itself.

You might have to play with the Inside/Outside Modify Selection function or Feathering Adjustment function if you want to make sure that none of the original background shows up on your final, completed image, but that's true for almost all edits in any software, so not a big issue to adjust things that way.