Is there any way in opencv
to detect moving vehicle/object
when camera is moving/shaking
.
I have read and implemented various Object Detection algorithms in opencv
, but also they detect false areas
of frame because of shaking camera.
If you have any solution please help.
Thanks.
Here you have two issues to be solved,
For detection, you have few methods, but if you have various different shapes to be detected if prefer that you try the cascade classifiers., Here you can detect what you want, but you need to do training phase for your objectives (positive and negative images.). it is so simple to train you obejects. Here you find a detailed project, same as yours. Here opencv explains you how to train your images to get a classifiers.
For stabilization, I suggest you to see the algorithm of tracking.This project implements a basic realtime lane and vehicle tracking using OpenCV. . If I were you i calculate the optical flow for each pair and track them by the similarity between them. Ma be you need to see in Opencv:
Let'us know once you need more explainantion