Replies: 7 comments 10 replies
-
source id is the same thing as event id, I would suggest not providing a camera since the camera is included as part of the event anyway. The UI uses this exact api |
Beta Was this translation helpful? Give feedback.
-
I'm getting pretty poor results from codeproject-alpr. Even when the plate is a decent size it often comes back with nothing especially if the plate is at an angle or slightly blurred. As I think @NickM-27 indicated in his script, alpr doesn't seem to do a good job of finding a plate in a large image so I've played with cropping around the box with various borders. Better. I've tried retrieving timeline snapshots from the recording and seeing if they work but I don't know where the plate is on these. It fails on every image. I'm wondering if the alpr is using YOLO to find the plate which is not as good as with the Coral. Am I right in thinking I could let anpr use the Coral too? Is this a simple as giving it access to the device |
Beta Was this translation helpful? Give feedback.
-
I'm trying by moving go2rtc to a separate faster machine and then connecting frigate to those rtsp streams. The latency is far far lower since my go2rtc machine is so quick. I don't have a decent 1280x720 stream from the camera so I'm using this to downscale it from 4k. Box A. go2rtc streams:
front_door_720:
- ffmpeg:rtsp://[email protected]/cam/realmonitor?channel=1&subtype=0#width=1280#video=h264
front_door:
- ffmpeg:rtsp://stream:[email protected]/cam/realmonitor?channel=1&subtype=0#video=h264 Then I'm using this on frigate Box B. Frigate ffmpeg:
inputs:
- path: rtsp://192.168.1.51:8554/front_door_720
input_args: preset-rtsp-restream-low-latency
roles:
- detect
- path: rtsp://192.168.1.51:8554/front_door
input_args: preset-rtsp-restream-low-latency
roles:
- record
hwaccel_args: preset-rpi-64-h264 Since I've specified Both the input streams |
Beta Was this translation helpful? Give feedback.
-
Ok. The go2rtc docs say Raspberry always uses software. But I added
I find the docs on go2rtc very confusing and written for people who understand ffmeg very well! For example, I could not figure out how to write this... front_door_tr:
- ffmpeg:rtsp://[email protected]/cam/realmonitor?channel=1&subtype=0#video=h264#raw=-vf crop=1280:720:2560:0 using a more readable structure to something like this which would build the same ffpmeg command into the restream front_door_tr:
- rtsp://[email protected]/cam/realmonitor?channel=1&subtype=0
- ffmpeg: #video=h264
- ffmpeg: #raw=-vf crop=1280:720:2560:0 |
Beta Was this translation helpful? Give feedback.
-
After posting to the API to register a sub-label, are any message sent by frigate to MQTT? I'm wondering the best way of alerting HA that a plate's been identified. It seems a bit unclean to manage my own new topic. |
Beta Was this translation helpful? Give feedback.
-
2nd question, after the events expire (eg i set recording etc to 7 days), am I right in thinking that the distinct list of sub_labels is not cleaned up? I have a lot of stragglers that clearly don't result in any filtered results. |
Beta Was this translation helpful? Give feedback.
-
But will it be processed internally if that was the ‘end’ event? RegardsPaulOn 7 Apr 2024, at 12:36, Nicolas Mowen ***@***.***> wrote:
Yes, an update is sent the next time that object is processed internally.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to process snapshots and finding I need to get various different frames to get good results with ANPR.
Basically, given an event in mqtt I want to get the event timeline and grab the frames from the recording (I know there is an offset)
I'm using
http://frigatepi.local:5000/api/timeline?camera=front_door&source_id=1710943479.155059-urn6l5
where this is the id of the event.It's giving me back
But the event happened yesterday
1710943479.155059
is 20 March 2024 14:04:39.155But the timestamps in the results are back in January eg
1706716117.73791
is 31 January 2024 15:48:37.737The timeline API asks for source_id not an event_id and I think this is the confusion.
Beta Was this translation helpful? Give feedback.
All reactions