LdDl / rust-road-traffic

Vehicle counting/tracking and speed estimation
17 stars 3 forks source link

[FEATURE REQUEST] Export events information to Redis #19

Open LdDl opened 4 months ago

LdDl commented 4 months ago

Is your feature request related to a problem? Please describe. Currently only aggregated statistics could be exported to Redis. I'd like to see a optional export of detection events in such form:

{
"event_id": some unique ID (e.g. UUID v4),
"event_time": UnixTimestamp or RFC3339 o ISO8601
"class_id": ID of class (or may be label? Need to investigate common needs)
"bbox": bounding box corresponding to real image size
"speed": estimated speed
"control_zone": ID of control zone or just rectangle or all zone parameters?
"virtual_line": Parameters of virtual line (#16)?
"track": Set of points corresponding to real image coordinates before image resizing (same as bbox)
"timestamps": UnixTimestamps correspondings to set of points in track
}

Additional context Before implementation need to deeply consider event data. Should we just register only crossing zone events (so filter any random detection) or any object detection (probably overkill)?

LdDl commented 2 months ago

There is Redis drama. No matter what I think it is need to be implemented anyways, but after #16 (since we can met breaking changes)