- Home /
Background Subtraction using OpenCV
I'm using this package which works quite well for face detection, tracking. https://github.com/EnoxSoftware/OpenCVForUnity
However, the OpenCV feature I am MOST interested in is background subtraction. ie achieving green screen like effects without green screen. So that someone walking in front of a static background would be masked out from the background.
I emailed the developer and he replied saying it is supported http://enoxsoftware.github.io/OpenCVForUnity/doc/html/class_open_c_v_for_unity_1_1_background_subtractor.html
but there are no actual demos to get it working.:(
Can any C# gurus help?
I've used OpenCV before, but I'm not familiar with that wrapper. Since it seems to be a commercial product (and not a cheap one!), I recommend you ask the developer for more assistance.
I found this example on github, since the C# package is based on OpenCV for Java, it should be mostly converting the logic in this Java class to C# https://github.com/Franciscodesign/$$anonymous$$oving-Target-Tracking-with-OpenCV/blob/master/src/gui/test.java
Hello eco_bach, did you find a solution to your question meanwhile ? Best, Andre
Answer by zohaibzaidi · Jul 03, 2019 at 06:34 AM
Came across this. Not sure but the Opencv package that I have for unity3d it has an example scene by the name of GreenScreenExample.
Answer by wuy420 · Apr 07, 2021 at 08:22 PM
Hey I am also looking for background subtraction solutions. I tried the BackgroundSubtraction demo in OpenCV but the result is awful. It removes my face after a while if I don't move. I asked their technical support and they suggest me to look at the greenscreen example. But again, it is still awful. Is there any way to improve greenscreen example or any other solution about background subtraction?
Your answer
