Local realtime person detection for RTSP cameras

Really been trying to figure this one out too since the upgrade to frigate 13 changed where the snapshot files are. Docs seem simple enough, but just say <event-id>. I don’t understand the event ID and where I’m supposed to find that.

For now I have settled on grabbing a snapshot of the mjpeg stream.
In the data box of the automation is this:

photo:
  - caption: Car in Drive
  - url: http://192.168.13.40:5000/api/driveway/latest.jpg?bbox=1

So this isn’t a great way to do it, but all I can come up with so far.

Anyone else have success sending snapshots using telegram?

it comes from the mqtt /events topic

I’m now using the image entity instead. It works well:

service: notify.home_telegram
data:
  title: Visitors arrived.
  message: |
    Event Details
  data:
    photo:
      - url: >-
          {{ 'http://192.168.XX.XX:8123' +
          state_attr('image.livingroom_person', 'entity_picture') }}
        caption: |
          Person in the living room.
enabled: true

Thanks for posting. I too played with the image entity, but never got that to work. Mine setup uses https so maybe that’s my hangup. The notifications pulling a frame from the mjpeg work ok for now. I have other things to fix first!

I have a big (or little) problem with the new way the .13 release scans.
It picks out waaaaaaaaaaay more things than .12 did in my cameras. Notifications are up like tenfold.
Things like the timestamp being two different cars:

image
I have one of the bottom of the 5 being 73% car!
Anyone have any advice on the best way to filter this stuff out?
Could I do it by number of pixels? Percentage of confidence? Something else?
Reading the docs to see, but really wondering what others have experienced and what worked best.

Thanks

Mask static objects like time display

For notifications I simply have condition that requires above xx%. Since it is a condition of Automation it can be adjusted based on time of day or other factors.

Zones. Create zone of hot areas when possible and notify or don’t notify for that area

Thanks for the reply.
The time is actually already masked, but for motion…so I guess motion was seen somewhere else and it can still detect there.

Great idea about the condition requiring over a certain percentage. I’ll have to try that.

I played with zones a year or so ago and didn’t see much benefit. I’ll have to revisit and rethink.

Thanks

Hi,

I have a camera with these settings:

image
image

when i look at the stream i see the jsmpeg with lower resolution without any delay, but the mse and the webrtc have 2-3sec jump, any ideas on what I can do to fix that?

this is my config

go2rtc:
streams:
#camera1_main:
camera1:
- rtsp://user:/videoMain
camera1_sub:
- rtsp://user:/videoSub
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/camera1
input_args: preset-rtsp-restream
roles:
- record

- path: rtsp://127.0.0.1:8554/camera1_sub
  input_args: preset-rtsp-restream
  roles:
   - detect
output_args:
  record: preset-record-generic

live:
stream_name: camera1

detect:
enabled: True
width: 1280
height: 720
fps: 5

$179 for the eval kit. 26 TOPS vs the 2 or 4 of a Coral.

I can’t find the context for your message, but am intrigued. Which eval kit are you talking about?

Oh, I hit reply to someone mentioning the Hailo.ai product. They have an m.2 eval kit. Order Hailo-8 Starter Kit | Hailo AI Processing Technology

Anyone using usb google coral on xcp-ng?

I don’t know how to passthrough to my virtual machine?

Can anyone help me?

It might be interesting to check also the Hailo HAT for Raspberry PIs: Raspberry Pi Selects Hailo for Raspberry Pi 5 

Hi,

I’m struggling with reolink 810a camera.
It seems that I can’t get the main stream, the video quality seems the sub stream also for UI and recording.

with VLC I see the right statistics and video quality, but when I look at the frigate UI the resolution of the video is lower

Any suggestions is really appreciated

image

camera:
  - rtsp://user:[email protected]:554/h264Preview_01_main
camera_sub:
  - rtsp://user:[email protected]:554/h264Preview_01_sub

camera:
  enabled: true

  ffmpeg:
    inputs:
      - path: rtsp://127.0.0.1:8554/camera
        input_args: preset-rtsp-restream
        roles:
          - record

      - path: rtsp://127.0.0.1:8554/camera_sub
        input_args: preset-rtsp-restream
        roles:
          - detect
    output_args:
      record: preset-record-generic

  live:
    stream_name: camera

  detect:
    enabled: true
    width: 640
    height: 360
    fps: 5

Anyone on version 0.14 know how to export recordings where there were no detections? Like say I want to grab something from 200 to 205 four days ago.
Is that no longer possible? I know you could do it in 0.13.2

From the main dashboard: Select CameraHistory ButtonChoose day in CalendarExportChoose on timeline or custom time

1 Like

I have the 810WA (Wireless Version). Shouldn’t the main feed be h265?

camera:
  - rtsp://user:[email protected]:554/h265Preview_01_main

Thanks for that. I’ll try it out

on some reolink cameras if you lower the resolution it will use h264

Ah, I completely missed that he wasn’t using 4k on the main feed.