Object Tracking At Night
Has anyone ever done any object tracking at night when the object to be tracked is just a light?
I'm building an application that looks for trains traveling down a railroad track. The track is on an angle relative to the camera. When trains are coming toward the camera, with the bright light of the lead locomotive, contour detection and subsequent tracking works really well.
However when the train is going in the other direction (quartering away from the camera) the lead locomotive's light is not as bright....and the tracker loses the object after just a few frames.....which is an insufficient amount of data for me to confirm there is a train there.
I've played with increasing the contrast, as well as different Background Subtraction algorithms, but none of those experiments resulted in better results.
Does this type of issue ring true with anyone here?
Thanks!
Jim
Can you show an example image of a train coming towards and one going away from the camera?
(I'm new to this forum platform. It's not obvious how (or if) images can be placed in a comment.
I put a couple of images on a page on my website: http://jimhconsulting.com/trainimages...
Thanks.
Jim
did you try other trackers, like the MEDIANFLOW one ? (kcf is somewhat infamous for losing targets)
Unfortunately, yes, I've already tried other tracking methods. (I'll re-try MEDIANFLOW, though, based on your comment.)
I have an opportunity to reposition the camera such that I can reduce the "quartering away" angle for trains going right-to-left. I think there is a place where I could move the camera to the left, along with angling it more toward the track. Maybe if I can get the light a bit brighter it will help with the tracking.
do you have a short video sample?
I will have some video samples in the next day or two. I've moved the camera to get a more direct (less obtuse) angle of view on the tracks. I'll see if that changes things.