Questions tagged [shadow-removal]

Shadow removal is a computer-vision task that consists in detect and remove moving shadows from the foreground as they are not part of it.

Shadow removal is usually applied after background-subtraction step or in combination with it. Many background subtraction algorithms detect moving shadows as part of foreground. Shadow removal detects these shadow areas in the foreground based on statistical and intensity properties.

12 questions
28
votes
1 answer

How to remove the shadow in image by using openCV?

As title said, any solutions on how to remove the shadow in image via openCV? Thanks and appreciate any helps!
MiaoWin
  • 475
  • 2
  • 6
  • 14
13
votes
4 answers

How to use cv::BackgroundSubtractorMOG in OpenCV?

I'm using OpenCV2.2 to implement moving objects detection with the method of Background Subtraction. And I use the Gaussian Mixture Model(GMM) method to model the background reference image. I directly get the foreground pixels(or foreground mask)…
6
votes
3 answers

Background subtraction marks shadows as foreground

I've got background subtraction to work quite well. But the problem is, it marks shadows as foreground as well. Has anyone found some technique to get rid of shadows from the background? Links to techniques, papers, articles, etc you've used and got…
3
votes
1 answer

How to remove shadow from image captured using mobile camera using OpenCV?

I need to find largest rectangle in a image, but when I find contours shadow becomes part of the contour. Any suggestions how to remove/minimize shadow. Original image Image with contours
d32
  • 53
  • 1
  • 6
2
votes
0 answers

How to remove shadow of moving object from image using opencv (python)?

I am trying to do background subtraction using MOG2, It was working fine, but when there is deep shadow of a moving object then the shadow is considered as foreground object and I don't want that shadow as foreground object (I'm running MOG2 for 13…
2
votes
2 answers

Remove Shadow from Extracted Foreground

I'm newbie with OpenCV + C++ + Visual Studio 2012. And now I need to learn them. Here's the code for background substraction/foreground extraction, and I need to remove the shadow from the foreground, and include them into background model. …
1
vote
0 answers

Shadow Removal in Traffic Lane Lines

I am working on lane lines detection. My current working strategy is: defining a region of interest where lane lines could be Warping the image to get a bird eye view Converting the image to YUV color space Normalizing the Y channel Fitting the…
1
vote
1 answer

Background Subtraction with Shadow Removal with EmguCV

I am looking for a way to extract foreground (without shadow) from a video sequence using C# (EmguCV). I have tried several method such as KNN, MOG, and MOG2. At the end, MOG2 is the best which is very close to my desired result. However, it is…
0
votes
1 answer

How to implement the code for shadow removal from mask in opencv?

I am using MoG method in opencv to detect the moving object in a static background frame,but it also detects shadows too. I want to remove the shadows from the mask. I tried using using threshold for grey color(as shaodws are marked in grey in mask)…
0
votes
1 answer

How to remove shadows from a video that has static background?

I am trying to detect moving object and remove shadow from a video that has a static background. I am using Mixture of Gaussians(MOG) method to detect moving objects. I am using opencv3 and python 3.5. How can I remove shadows from the video and…
0
votes
0 answers

How do you set the V value of HSV mat in Opencv Java?

I want to remove the shadows from the input image. Based from what I found, I need to set the V value of HSV to 200. But this code is not working for me in opencv android studio. Please help me understand what I'm doing wrong here. public Mat…
0
votes
1 answer

python implementation for shadow removal

I am wondering if there are any python implementation of shadow removal of an image. I have searched online, and there are no existing resources related to python. Or can anyone give me any suggestions. If you are voting down this question, please…