Wow, really cool stuff - frigate was up and running in no time and the initial debug results exceeded what I had expected from the hardware.
Three quick questions to the experts:
- Do i need to enable the Coral Edge TPU?
- A tagged object rectangle live stream was available once (multiple fps) - but before and after the empty stream only? Why could that be?
http://serverip:5000/camera?fps=2&h=720
- CPU utilizatin on my (weak) j4105 seems high. Is that expected, or are there ways to reduce load, e.g. Iām not sure about ffmpeg HW acceleration
Debug stats
{
"coral": {
"detection_start": 1595896050.200327,
"fps": 3.7,
"inference_speed": 11.79,
"pid": 23
},
"camera1": {
"camera_fps": 8.3,
"detection_fps": 2.6,
"ffmpeg_pid": 34,
"frame_info": {
"detect": 1595896050.142969,
"process": 1595896050.142969,
"read": 1595896050.142969
},
"pid": 40,
"process_fps": 8.4,
"read_start": 1595896050.15747,
"skipped_fps": 0
},
"plasma_store_rc": null,
"camera2": {
"camera_fps": 12,
"detection_fps": 1.1,
"ffmpeg_pid": 38,
"frame_info": {
"detect": 1595896050.180223,
"process": 1595896050.127551,
"read": 1595896050.180223
},
"pid": 41,
"process_fps": 12,
"read_start": 0,
"skipped_fps": 0
}
}
cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 122
model name : Intel(R) Celeron(R) J4105 CPU @ 1.50GHz
stepping : 1
microcode : 0x32
cpu MHz : 2372.699
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 24
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 pti cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts umip rdpid md_clear arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
bogomips : 2995.20
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
[..]
htop
1 [|||||||||||||||||||||||||||||||||||||||||||||||||||| 53.9%] Tasks: 181, 571 thr; 1 running
2 [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 72.3%] Load average: 2.92 3.33 4.62
3 [||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 58.6%] Uptime: 35 days, 16:10:06
4 [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 60.4%]
Mem[||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 3.33G/15.3G]
Swp[|||| 572M/15.7G]
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
32139 root 20 0 3199M 383M 218M S 98.5 2.4 11:32.33 python3.7 -u detect_objects.py
32413 root 20 0 632M 110M 31504 S 56.4 0.7 6:40.51 ffmpeg -hide_banner -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrup
32416 root 20 0 1740M 163M 96796 S 26.6 1.0 3:03.97 python3.7 -u detect_objects.py
12911 root 20 0 316M 203M 12876 S 22.7 1.3 16:48.43 python3 -m homeassistant --config /config
3988 root 20 0 3199M 383M 218M S 18.8 2.4 1:23.27 python3.7 -u detect_objects.py
3987 root 20 0 3199M 383M 218M S 16.2 2.4 1:14.85 python3.7 -u detect_objects.py
32414 root 20 0 3199M 383M 218M S 15.6 2.4 1:55.48 python3.7 -u detect_objects.py
32247 root 20 0 1071M 101M 27984 S 10.4 0.6 0:27.59 python3.7 -u detect_objects.py
32321 root 20 0 579M 59012 31124 S 9.1 0.4 0:56.45 ffmpeg -hide_banner -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrup
6076 root 20 0 3199M 383M 218M S 8.4 2.4 0:11.24 python3.7 -u detect_objects.py
32427 root 20 0 3199M 383M 218M S 5.8 2.4 0:40.56 python3.7 -u detect_objects.py
32420 root 20 0 1740M 163M 96796 S 5.8 1.0 0:34.79 python3.7 -u detect_objects.py
32444 root 20 0 3199M 383M 218M S 5.8 2.4 0:35.61 python3.7 -u detect_objects.py
32415 root 20 0 1732M 127M 67940 S 5.8 0.8 0:22.12 python3.7 -u detect_objects.py
32419 root 20 0 1740M 163M 96796 S 5.2 1.0 0:38.49 python3.7 -u detect_objects.py
32428 root 20 0 3199M 383M 218M S 5.2 2.4 0:35.31 python3.7 -u detect_objects.py
32442 root 20 0 3199M 383M 218M S 5.2 2.4 0:36.04 python3.7 -u detect_objects.py
32429 root 20 0 3199M 383M 218M S 4.5 2.4 0:30.19 python3.7 -u detect_objects.py
32443 root 20 0 3199M 383M 218M S 4.5 2.4 0:35.64 python3.7 -u detect_objects.py
32445 root 20 0 3199M 383M 218M S 3.9 2.4 0:36.06 python3.7 -u detect_objects.py
32421 root 20 0 1740M 163M 96796 S 3.9 1.0 0:30.54 python3.7 -u detect_objects.py
32322 root 20 0 3199M 383M 218M S 3.9 2.4 0:23.27 python3.7 -u detect_objects.py
Config
web_port: 5000
mqtt:
[..]
objects:
track:
- person
- car
- truck
- cat
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.5
cameras:
camera1:
ffmpeg:
input: rtsp://frigate:password@camera1/videoMain
take_frame: 1
snapshots:
show_timestamp: True
objects:
track:
- person
- cat
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.5
camera2:
ffmpeg:
input: rtsp://frigate:password@camera2:554/h264Preview_01_main
take_frame: 1
snapshots:
show_timestamp: True
objects:
track:
- person
- car
- cat
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.5