2

My project requires me to track objects such as cars via a drone.

I have a live video stream in which I would like to detect and track objects, the view doesn't change that much as the drone is nearly stationary moving only about 50 meters left and right at an altitude of 500m. For the proper tracking (and in general better video quality), I would need to stabilise the video using homography. I thought of these steps:

  1. Align the images to the 1st frame with OpenCV ORB preferable so that the roads and building would be at the same exact location as in the previous frames but moving objects would be not accounted for. This approach is also a bit slow but I can just throw more power at it so it's not that crucial.
  2. Track the objects using a tracking algorithm.

Unfortunately, when I tried this approach these are the results I got which where unsatisfactory:

Original stock video for testing (the actual drone won't move that much)

Frame 0 and frame 96 matches: enter image description here

Frame 96 after alignment: enter image description here

As you can see by the black bar on the right the alignment is completely off, I suspect the moving cars to be the problem. I thought of alining the frame x to the one before it but then the alignment error will build up over time.

Any ideas how I could improve my solution? Maybe some algorithm with knowledge of several past frames?

Small update: My take at first was to eliminate the missalignment problem with a image flow detector like Lucas-Kanade. By detecting the major direction points of movement i could filter out the points that moved in a different direction to the rest. Then using the rest of the points (good points) to find a homography matrix to align the images. However that still wasnt good enough to position the cars. Now I think that I can align the image relative to the satelite imagery. That would eliminate the drifting problem but also introduces many others.

Andrey
  • 21
  • 2
  • Welcome to Scicomp. What is your angle on this problem? This is at least "dual-use" technology. – MPIchael May 10 '23 at 08:41
  • 1
    @MPIchael Hello, thanks for the welcome. I got no responces here so I thought I posted on the wrong site, I also tried stackoverflow: question where I was brutaly downvoted (( I added the update to the question here. This is a school project to measure traffic congestion and the period of time each car spends in a geo marked area. – Andrey May 15 '23 at 15:11

0 Answers0