[Bug]: MQTT stationary messages incorrect in certain scenario #17968
-
Checklist
Describe the problem you are havingI am using MQTT messages for object detection or rather object direction detection and analyze the messages in node-red to trigger certain things in my smart home. Today I noticed the following: Object lifecycle of a car:
The car actually started moving out of the area so I would have expected a "car became active" first. But for whatever reason that did not occur. That might be the first bug. But to me the problem is MQTT end message: That in the "before" part stationary=true makes sense. However if something disappears it should be clear that it cannot possibly be stationary anymore. :-) So I would have expected stationary:false in the after part of the MQTT end message and I believe that this is a bug. The issue is that I filter out all messages with stationary:true in the "after" part since I am not interested in stationary objects. In this case the car was reported to be "incoming" but then never as "leave". I could temporarily work around this by not filtering for stationary=false or by increasing the timer for stationary but it still feels incorrect. Steps to reproduce
Version0.15.0-6cb5cfb In which browser(s) are you experiencing the issue with?all Frigate config fileirrelevantdocker-compose file or Docker CLI commandirrelevantRelevant Frigate log outputirrelevantRelevant go2rtc log outputirrelevantOperating systemUNRAID Install methodDocker CLI Network connectionWired Camera make and modelHikVision Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
This isn't necessarily a bug. An update message requires a number of factors to be sent. How fast and how far did the stationary object move before it left the frame? Additionally, the object lifecycle does not necessarily mirror MQTT messages on the
This isn't necessarily the case. If the object detector loses an object in a frame and subsequently does not detect it in any other frames, this kind of situation could occur. A simple case would be tracking a person sitting in a chair in a room, and then the lights are turned off. A stationary object does not need to become active in order to be ended. |
Beta Was this translation helpful? Give feedback.

An "end" message inherently carries the assumption that Frigate does not see an object anymore, so I think adjusting your logic is the path I would take as well.