Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
Output Video 1:
|
| 5 |
+
https://youtu.be/cWDXapOfiyk
|
| 6 |
+
|
| 7 |
+
Output Video 2:
|
| 8 |
+
https://youtu.be/7rsJmHuLuKk
|
| 9 |
+
|
| 10 |
+
I used one of RoboFlow's given drone datasets with YOLOv8 detector. The dataset I chose had 7000 images with drones and its bounding box as well as other
|
| 11 |
+
objects so the detector can differentiate them from drones. Training was done with 20 epochs, 640 imgs, 16 batches, and 64 workers.
|
| 12 |
+
|
| 13 |
+
Kalfar Filter was designed using the filterpy library with state vector
|
| 14 |
+
x = [ cx, cy, vx, vy] and measurement vector
|
| 15 |
+
z = [cx, cy]
|
| 16 |
+
|
| 17 |
+
Noise Parameters:
|
| 18 |
+
kf.P = The uncertainty of the drone's starting position = high = 100
|
| 19 |
+
kf.Q = How unpredicatble is the drone's movement = low = 0.1
|
| 20 |
+
kf.R = Detector Accuracy(Noise measurement) = high = 10
|
| 21 |
+
|
| 22 |
+
Overall, my detector has smooth tracking of the drone, but it is slow to react to sudden movements or dealing with small-sized drone frames.
|
| 23 |
+
|
| 24 |
+
Every frame we collect goes through the Kilman Filter. We deal with missing detections by using a initalized boolean variable, and missing_fram count
|
| 25 |
+
and a max missing frame limit. The initialized boolean is used to determine if the drone was detected for the first time and set the inital position
|
| 26 |
+
to that spot. When a frame doesn't have a drone, it increments the missing_frame, but we still keep that frame in the final output video. It is only
|
| 27 |
+
when missing_frame count exceed max_missing do we ignore the frame. This count resets every time we detect the drone, so it has to be atleast 5
|
| 28 |
+
consecutive frames with no drone detection. I did this so we can account for misreads the dector might make and produce a smoother output video
|
| 29 |
+
|