-
-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hello API team!
The firefighters have requested a triangulation feature, so we are currently developing it on the platform side. The principle is quite simple: if two stations detect the same fire, we can estimate the location by calculating the overlap of their detection cones.
As a reminder, on the platform, the detection cones are computed in the following function. Using the camera's field of view, its central azimuth, and the detection bounding box, we can infer the detection center azimuth and its angular opening.
Until now, calculating this on the platform side wasn’t an issue because we only displayed the cone for a single sequence—the one shown on the screen—for which we had already retrieved all the necessary information.
Now, to perform triangulation, we need to find matching sequences, which requires detection cone information for each sequence. If I do this on the platform side, I would have to load the detections for each sequence to extract a bounding box and compute these parameters, which is inefficient.
I propose moving this calculation to the API side. When a new sequence is created, we simply take the first non-null bounding box and compute the detection cone parameters. I suggest adding a new column, detection_cone_parameter, to the sequence table, storing this value as a tuple (detection_azimuth, detection_opening_angle).
Is this okay for you?