image unknown | video stringclasses 2
values | frame stringlengths 10 10 | x1 float64 0.48 1.83k | y1 float64 0.34 581 | x2 float64 51 1.9k | y2 float64 44.8 622 | confidence float64 0.25 0.85 |
|---|---|---|---|---|---|---|---|
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0000 | 843.405212 | 168.666733 | 919.498535 | 235.806839 | 0.809542 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0001 | 841.559692 | 168.75444 | 918.949951 | 237.066696 | 0.816293 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0002 | 845.963562 | 170.485977 | 915.482117 | 241.050293 | 0.793037 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0003 | 840.531189 | 171.483307 | 920.73999 | 242.417816 | 0.811988 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0004 | 841.883423 | 174.899323 | 915.105103 | 246.121078 | 0.801141 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0005 | 839.410583 | 179.415497 | 913.568298 | 250.488846 | 0.774664 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0006 | 839.129883 | 179.889359 | 913.633667 | 252.34053 | 0.771912 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0007 | 836.366516 | 181.529297 | 914.829224 | 254.51358 | 0.782512 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0008 | 836.445374 | 185.928192 | 913.985046 | 256.337372 | 0.780777 |
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQo(...TRUNCATED) | drone_video_1 | frame_0009 | 830.637085 | 188.247757 | 909.505737 | 258.889343 | 0.778198 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
I used the dataset "Drone Computer Vision Model" from roboflow https://universe.roboflow.com/project-986i8/drone-uskpc I felt this model had the best attributes to complete the assignment, it was trained on a variety of pictures and all the metrics like Recall Map and percision seemed very accurate.
For my detector i used Yolov8n which after doing some research seemed to be the best fit for tracking smaller object. it also good for faster inference. I fined tuned the model using 20 epochs, imgsz=640, batch=16, GPU T4 (google colab GPU). I wanted to keep the resolution but i chose a lower epochs size because the original dataset was trained on a vast amount of images (also it would have been tough to run larger).
For the Kalman filter design i did my state vector using the center position of the drone / box (cx,cy) and then i did the velocity it is traveling at. This allows the model to help estimate where it would be at a certain osition because I did the sampling every 5 FPS. I used the YOLO model to get the bounding box position as talked about before which the filter then uses to correct estimate. I made it so the model assumes the drone is moving in a constant velocity so the box seems less jittery. In addition i set my noise parameter to 10 pixels between fram to frame to help with the YOLO bounding box jitter. Lastly I started with a high uncertanty before the updates started and made it so after 5 misses the track is dropped.
OUTPUT VIDOES (YOUTUBE) https://www.youtube.com/watch?v=iOmZiaXu5XI https://www.youtube.com/watch?v=LDE9W1MX45A
Green rectangle — YOLO detector bounding box Blue line — full 2D trajectory of Kalman-estimated centres Yellow dot — current Kalman centre (frame had a detection) Orange dot — current Kalman centre (predicted through missed detection)
For the failure cases one of them was fast mostion, I kalman estimates te lag and then catches up to the true position. Even with this there were some parts in video 2 were the drone moved too quick and was so far away from the camera it did not pick it up. The missed detections is handled so that if more than 5 missed frames then the track is dropped completly below then its handled by running without an update. Other failure cases included false negatives and when its out of frame. The false negatives were handled by keeping the predictor running and then it will resume updating on the next possible time. If it was detected to be out of frame it continues to run and pickups up when the next detection is made. I had a very difficult time with video 2 because of the clouds in the backround it was very hard to figure out the right confidence level so it could still detect as a smaller image and not lock on to a dark spot in a cloud. Even with this change I was uncussfull in some areas and the drone was not followed properly due to the backround. In addition I tried to make like a height and width max and min for the tracking but because we want it to work on every video not just the two provided i kept it at .2 which still had problems in video 2.
- Downloads last month
- 2