Ask Your Question
1

Background averaging not working

asked 2015-11-13 06:29:37 -0600

jackbrucesimspon gravatar image

updated 2015-11-13 06:33:49 -0600

I'm working on a problem where I'm trying to use background averaging to see what the frame looks like in a beehive behind the bees. I've been trying to use standard averaging (I take an image every 1 or 4 seconds over the course of my 3 hour video) as well as other techniques like mog and mog2. The problem is that there is an extremely high density of bees in the centre that is tightly packed and barely moving, so while I end up with a great view of the background around the middle, the centre turns into a bit of a smear like this:

image description

Does anyone have any advice on what I could do to improve things? I spoke to a researcher who suggested something called "sparse coding" as one possible options and I'm curious if OpenCV has anything like that or if anyone knows of any other techniques I could try.

edit retag flag offensive close merge delete

Comments

can you give a link for a 1minute video ?

LBerger gravatar imageLBerger ( 2015-11-13 06:54:28 -0600 )edit

Sure: https://www.youtube.com/watch?v=VWbX7... That said, this was an example with fewer bees where simple averaging works perfectly. I can look into uploading the trickier videos tho if you were interested.

jackbrucesimspon gravatar imagejackbrucesimspon ( 2015-11-13 08:18:52 -0600 )edit
LBerger gravatar imageLBerger ( 2015-11-13 08:29:20 -0600 )edit

Thanks! I'll give it a read :)

jackbrucesimspon gravatar imagejackbrucesimspon ( 2015-11-13 11:18:06 -0600 )edit

Have you solved your problem?

LBerger gravatar imageLBerger ( 2015-11-17 10:03:35 -0600 )edit

Unfortunately not, I ended up going to see some researchers in the engineering department at my uni and they pretty much agreed that you're going to have to train a ML algorithm to distinguish bee from background in order to extract the background, assuming parts of the background are visible at all at some point.

jackbrucesimspon gravatar imagejackbrucesimspon ( 2016-01-10 17:53:08 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-13 19:31:03 -0600

If bees are always moving and there are no forever-static bees, you may slightly modify your approach and use MOG only for creating binary mask of static image parts. Then just overlap this static parts from your frames and you will have "street without moving people".

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-13 06:29:37 -0600

Seen: 261 times

Last updated: Nov 13 '15