ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Difficulty with background subtractor
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

babursaylan

Turkey
15 Posts

Posted - Apr 06 2023 :  02:39:50  Show Profile  Reply
Hello, the module is working perfect with your demo image, but, as you can see with the attached screenshot, the result is really not good with our test files, where the camera position is fixed.

Is there any solution you offer?

Txs


attach/babursaylan/20234623930_test0.jpg
attach/babursaylan/20234623939_test1.jpg


xequte

38222 Posts

Posted - Apr 06 2023 :  18:18:38  Show Profile  Reply
Hi

Unfortunately the background and foreground images need to be very close for it to work well. You can see in your images that the contrast has changed which is tripping it up. You might try adjusting the input images.

For instance, here is a quick test I did where I auto-adjusted the color and cropping of your images before subtraction:



But you should test the various color adjustment methods to see what gives you the best result:

https://www.imageen.com/help/Testing_of_Color_Adjustment_Methods.html

Nigel
Xequte Software
www.imageen.com

Go to Top of Page

babursaylan

Turkey
15 Posts

Posted - Apr 07 2023 :  01:39:18  Show Profile  Reply
Hi Nigel, thanks for your response. It seems that we need to make manual adjustments, because you know in real life background doesnt remain %100 same :)) We put a denim over the surface and want to crop the denim but we can not keep the background lightning completely constant of course. Even the denim is changing the light...

Txs.
Go to Top of Page

xequte

38222 Posts

Posted - Apr 08 2023 :  00:58:38  Show Profile  Reply
Yes, unfortunately we are limited by the functionality of the OpenCV library that this feature is based on. You might find that some adjustments can be automated, e.g. cropping based on the know bounds of the denim, and some sort of equalization of the image color range or brightness.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: