mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-10-01 13:53:00 +08:00
Compare commits
1890 Commits
v0.5.0-rc6
...
release_wo
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1d58e419f4 | ||
![]() |
16dc9f4bf7 | ||
![]() |
52b47a3414 | ||
![]() |
139664e598 | ||
![]() |
441c605312 | ||
![]() |
def889e3a8 | ||
![]() |
613f1f6bd6 | ||
![]() |
e173377859 | ||
![]() |
86c59c1722 | ||
![]() |
a399cb09fa | ||
![]() |
5a46c36380 | ||
![]() |
36c1e00a6b | ||
![]() |
859ab0e7fa | ||
![]() |
cf2b56613f | ||
![]() |
1a9e00ee49 | ||
![]() |
b9649de327 | ||
![]() |
823550eed3 | ||
![]() |
c141362614 | ||
![]() |
e0e8a6fcc9 | ||
![]() |
0b858419d1 | ||
![]() |
2fb7200fb7 | ||
![]() |
e9376ca285 | ||
![]() |
cff4b9651f | ||
![]() |
9df5927ac5 | ||
![]() |
29f82add72 | ||
![]() |
d102ebf855 | ||
![]() |
cb3990a0ac | ||
![]() |
9fc93c72a0 | ||
![]() |
e13a176820 | ||
![]() |
1e71e36056 | ||
![]() |
18545718c1 | ||
![]() |
c8b38bdd47 | ||
![]() |
e80b6d9e5b | ||
![]() |
ee1e1b748c | ||
![]() |
0c2f3a9702 | ||
![]() |
a3c0e30502 | ||
![]() |
b4d5a3ef14 | ||
![]() |
facd557f8c | ||
![]() |
12487b3b60 | ||
![]() |
8f349a6365 | ||
![]() |
91f7d67c5e | ||
![]() |
98200b7dda | ||
![]() |
282cbf8f40 | ||
![]() |
cd35481e92 | ||
![]() |
126aed2798 | ||
![]() |
efbc094bbc | ||
![]() |
c7b2c6b95d | ||
![]() |
1bdfc380c3 | ||
![]() |
cac37e484d | ||
![]() |
4469507e5b | ||
![]() |
8626160df2 | ||
![]() |
d4d2bb2521 | ||
![]() |
e545dfc47b | ||
![]() |
9ea10f8541 | ||
![]() |
fa6c6c50d0 | ||
![]() |
4c7ea01137 | ||
![]() |
34b315cc8c | ||
![]() |
9b687d77ce | ||
![]() |
e32bd4ab15 | ||
![]() |
e19c0668e7 | ||
![]() |
869bb2b177 | ||
![]() |
3869b274e2 | ||
![]() |
2379e6fd1b | ||
![]() |
dcafcc1320 | ||
![]() |
d508088bd0 | ||
![]() |
97e5a98b95 | ||
![]() |
68ebd55425 | ||
![]() |
a82334ca1c | ||
![]() |
d7ddcea951 | ||
![]() |
cc6e049966 | ||
![]() |
dbd21eb6fa | ||
![]() |
e1a6398219 | ||
![]() |
7f5fba08b7 | ||
![]() |
c35e8371be | ||
![]() |
49e7723405 | ||
![]() |
52cc707eb8 | ||
![]() |
c47b02d2fe | ||
![]() |
3a460133d4 | ||
![]() |
67a5a7d21a | ||
![]() |
5d2b87e077 | ||
![]() |
8298806028 | ||
![]() |
8cc7acd591 | ||
![]() |
8bde914939 | ||
![]() |
fe9fcf3eaa | ||
![]() |
20c2ab39bc | ||
![]() |
08ef69bac4 | ||
![]() |
79fabbb6b0 | ||
![]() |
8941aa5311 | ||
![]() |
14d2b79c72 | ||
![]() |
9a4f970337 | ||
![]() |
22b9507797 | ||
![]() |
37379e6fba | ||
![]() |
232588636f | ||
![]() |
e77fedc445 | ||
![]() |
ead03c381b | ||
![]() |
0048cd5edc | ||
![]() |
56dfcd7a32 | ||
![]() |
9f3ac19e05 | ||
![]() |
50f13b7196 | ||
![]() |
50b17031c4 | ||
![]() |
d11c1a2066 | ||
![]() |
27144eb0b9 | ||
![]() |
64705c065f | ||
![]() |
08eefd8385 | ||
![]() |
705ee54315 | ||
![]() |
e26bb94007 | ||
![]() |
1aba8c1ef5 | ||
![]() |
f92237c9c1 | ||
![]() |
0858859939 | ||
![]() |
1c27ee2d2b | ||
![]() |
08586f8f65 | ||
![]() |
cfd04d164e | ||
![]() |
fa2e4993d9 | ||
![]() |
080d7a2d88 | ||
![]() |
7d0216b8fb | ||
![]() |
c743dfd657 | ||
![]() |
4a6579527b | ||
![]() |
fd9196ae3e | ||
![]() |
a3eccce8f3 | ||
![]() |
111933d3b4 | ||
![]() |
76d4f16db3 | ||
![]() |
0d6bb6714a | ||
![]() |
5d30944d6e | ||
![]() |
3797340efa | ||
![]() |
8728139ae3 | ||
![]() |
730851cda9 | ||
![]() |
46412e99d9 | ||
![]() |
e5664826b1 | ||
![]() |
9a1c8b2cc4 | ||
![]() |
6aedc39a9a | ||
![]() |
b9e6afa659 | ||
![]() |
9185753322 | ||
![]() |
a1b50d2cf4 | ||
![]() |
a2206bb177 | ||
![]() |
5658e5a4cc | ||
![]() |
2a0b8a78fe | ||
![]() |
b80ff1aa3a | ||
![]() |
f682203f9d | ||
![]() |
a63af1a891 | ||
![]() |
64fd5f8be3 | ||
![]() |
6e35c97376 | ||
![]() |
db6ee41f3c | ||
![]() |
36434bb26d | ||
![]() |
3c25c578f0 | ||
![]() |
2e4f5bc0e0 | ||
![]() |
bd0d16a75b | ||
![]() |
7069ef93bb | ||
![]() |
737681aa4f | ||
![]() |
77cb469430 | ||
![]() |
3e18d58921 | ||
![]() |
de6a916939 | ||
![]() |
45f7db5cf1 | ||
![]() |
bbdf5e1bee | ||
![]() |
b538572afb | ||
![]() |
14048cb83e | ||
![]() |
602041beb1 | ||
![]() |
ef6b464d0e | ||
![]() |
731743c7e5 | ||
![]() |
f25bee7672 | ||
![]() |
7c629c1874 | ||
![]() |
6146afe8f7 | ||
![]() |
c815f3c331 | ||
![]() |
767abed7f0 | ||
![]() |
28ea2afa51 | ||
![]() |
3921a7faa2 | ||
![]() |
4c63ad767a | ||
![]() |
afe3b5dd3d | ||
![]() |
fbed3fbb8b | ||
![]() |
318ae28004 | ||
![]() |
24365fb865 | ||
![]() |
36ccaa4cff | ||
![]() |
98576418a8 | ||
![]() |
c2e2656407 | ||
![]() |
e941012d48 | ||
![]() |
7d3e5c9c4c | ||
![]() |
b7ff6735f6 | ||
![]() |
f57d21039e | ||
![]() |
d0b38f0a47 | ||
![]() |
b79b1d9443 | ||
![]() |
947ccbc654 | ||
![]() |
eaf7078d98 | ||
![]() |
b42e995f0f | ||
![]() |
f8c0f74ab8 | ||
![]() |
f9d422b5b5 | ||
![]() |
f0dda499f8 | ||
![]() |
a96602f3f5 | ||
![]() |
961ce03835 | ||
![]() |
761daf46ea | ||
![]() |
9016a48dc7 | ||
![]() |
a96a951e23 | ||
![]() |
680198148b | ||
![]() |
dc44a6c3b4 | ||
![]() |
157b160b9d | ||
![]() |
d0413e3ea8 | ||
![]() |
6a4f317403 | ||
![]() |
8481ab3745 | ||
![]() |
a8cef179e7 | ||
![]() |
0fd1eaff43 | ||
![]() |
d30a738960 | ||
![]() |
bfa7a5cc60 | ||
![]() |
b655eca152 | ||
![]() |
f2ff55dba2 | ||
![]() |
91aadb6044 | ||
![]() |
c5b8d13beb | ||
![]() |
dacf45cd88 | ||
![]() |
c6d0e93157 | ||
![]() |
662025a961 | ||
![]() |
07155b1fa9 | ||
![]() |
8e584cf844 | ||
![]() |
d0873631cc | ||
![]() |
dfd3fcdff6 | ||
![]() |
00016b7499 | ||
![]() |
5bb5e2dc5a | ||
![]() |
dc2e786a6f | ||
![]() |
598ae98bfe | ||
![]() |
ce3a544ecd | ||
![]() |
6ac36e8436 | ||
![]() |
5c12762cb5 | ||
![]() |
3a0c36e8db | ||
![]() |
6adc810145 | ||
![]() |
6d34f2229b | ||
![]() |
b909ff4ecb | ||
![]() |
2d52fbd8e8 | ||
![]() |
c9254b256a | ||
![]() |
7a2d09dc35 | ||
![]() |
a94346e17e | ||
![]() |
20415bb5e0 | ||
![]() |
7c0d25f9da | ||
![]() |
5e772c3625 | ||
![]() |
691e9d26d2 | ||
![]() |
f37f034b6a | ||
![]() |
88fc0fac8f | ||
![]() |
1fd23f86aa | ||
![]() |
d6f82f9edc | ||
![]() |
00b9a490bb | ||
![]() |
5259d51c04 | ||
![]() |
04aada8720 | ||
![]() |
69630e7385 | ||
![]() |
dd02958f7c | ||
![]() |
30dfdf47d4 | ||
![]() |
f48dd8c1ab | ||
![]() |
22cc2712a6 | ||
![]() |
cbb77e5794 | ||
![]() |
baf671b764 | ||
![]() |
606f00867e | ||
![]() |
2fae9dcb93 | ||
![]() |
3f509b6ff9 | ||
![]() |
c38c981cd0 | ||
![]() |
d0891e5183 | ||
![]() |
325205740b | ||
![]() |
f30ba25444 | ||
![]() |
339b6944f1 | ||
![]() |
0f68fbc8db | ||
![]() |
998bffe706 | ||
![]() |
12d4a47e3d | ||
![]() |
1171f01683 | ||
![]() |
f905704479 | ||
![]() |
58c6ef1e12 | ||
![]() |
83edf9574e | ||
![]() |
c25367221e | ||
![]() |
7ee17c7af8 | ||
![]() |
c3b313a70d | ||
![]() |
f1dc3a639c | ||
![]() |
2f401bd8da | ||
![]() |
8cb8a030be | ||
![]() |
f3f9b36e07 | ||
![]() |
0a8249d6fb | ||
![]() |
b6fce8f0bb | ||
![]() |
d51197eaa2 | ||
![]() |
d2a2643cd6 | ||
![]() |
bd17e7d824 | ||
![]() |
ed0d2be321 | ||
![]() |
9137f1594b | ||
![]() |
ef14a43930 | ||
![]() |
ee4a133655 | ||
![]() |
ece070fee1 | ||
![]() |
3d40ed5d47 | ||
![]() |
e640981cc4 | ||
![]() |
9e531b0b5b | ||
![]() |
7c1568fcb9 | ||
![]() |
09cc4251f0 | ||
![]() |
793fe251b9 | ||
![]() |
2be2050d57 | ||
![]() |
0996883a98 | ||
![]() |
b66810247e | ||
![]() |
0592cedcde | ||
![]() |
ca7853c087 | ||
![]() |
3efa77f302 | ||
![]() |
ff1b5c87aa | ||
![]() |
a8f282515f | ||
![]() |
730416418d | ||
![]() |
7e5abe7a65 | ||
![]() |
ec4d79eafc | ||
![]() |
ff90db30e6 | ||
![]() |
bd9942b426 | ||
![]() |
dfd574beeb | ||
![]() |
b359ff1b8e | ||
![]() |
0f1cf67b91 | ||
![]() |
d81dd60fef | ||
![]() |
32569842d3 | ||
![]() |
5c27cb7e9b | ||
![]() |
7459a1cdde | ||
![]() |
b160abac0d | ||
![]() |
fd6eb78f41 | ||
![]() |
8d941e5e26 | ||
![]() |
8bc76d19db | ||
![]() |
20b52a96bc | ||
![]() |
367d7244d3 | ||
![]() |
435d152423 | ||
![]() |
d3949eebfa | ||
![]() |
d1701e127e | ||
![]() |
f0c1b66b0f | ||
![]() |
699248d769 | ||
![]() |
deec5b8bfd | ||
![]() |
62f36b221e | ||
![]() |
ae0aba44dc | ||
![]() |
bd1d13d78c | ||
![]() |
ab50d0b006 | ||
![]() |
1e17dbaa91 | ||
![]() |
f66ccb04f6 | ||
![]() |
39bf6c44bc | ||
![]() |
846a180a7b | ||
![]() |
11738110dc | ||
![]() |
53d63e0f75 | ||
![]() |
deccc4fd46 | ||
![]() |
4940826011 | ||
![]() |
fec1dd3f46 | ||
![]() |
42f3ee3de5 | ||
![]() |
e357715a8c | ||
![]() |
6d0c2ec5c8 | ||
![]() |
17e8a46c7d | ||
![]() |
76dbab6a8b | ||
![]() |
b568a29fa8 | ||
![]() |
b4038821cc | ||
![]() |
6634be1f79 | ||
![]() |
5fb96c777a | ||
![]() |
181b53a55d | ||
![]() |
5951a740d2 | ||
![]() |
e3b9998879 | ||
![]() |
f52b1212cd | ||
![]() |
aded314f3c | ||
![]() |
ede1dedbbd | ||
![]() |
0751358e5b | ||
![]() |
17b92aa657 | ||
![]() |
0fcfcb85ab | ||
![]() |
ef50af03f2 | ||
![]() |
02f577347d | ||
![]() |
03b45c153b | ||
![]() |
2add675d42 | ||
![]() |
305323c9e9 | ||
![]() |
85015d9409 | ||
![]() |
b38c9e82e2 | ||
![]() |
82aa238eca | ||
![]() |
19890310fe | ||
![]() |
9bf98f908d | ||
![]() |
ad52e238ce | ||
![]() |
ca7790ff65 | ||
![]() |
cbd07696b5 | ||
![]() |
37360edbc1 | ||
![]() |
df016ddd0d | ||
![]() |
b48f6d750f | ||
![]() |
83006eeb65 | ||
![]() |
e451f44ced | ||
![]() |
6dc82b6cef | ||
![]() |
43ade86796 | ||
![]() |
6bcf44aee8 | ||
![]() |
0d16bd0144 | ||
![]() |
9dca1e1d9f | ||
![]() |
7f96d89ec4 | ||
![]() |
04a22f8283 | ||
![]() |
ece7dc29e7 | ||
![]() |
cdd8e6fd4e | ||
![]() |
fbaab71d78 | ||
![]() |
83aad5262a | ||
![]() |
3c72b96042 | ||
![]() |
35ddc896fa | ||
![]() |
ba6794fb99 | ||
![]() |
7960090409 | ||
![]() |
366c31259f | ||
![]() |
9b109a7d14 | ||
![]() |
03d37fe830 | ||
![]() |
433bf690e3 | ||
![]() |
c820badb40 | ||
![]() |
98384789d4 | ||
![]() |
75e0ed38eb | ||
![]() |
8535213ad9 | ||
![]() |
416ce66b51 | ||
![]() |
cb73d0cd39 | ||
![]() |
f8f76fcb94 | ||
![]() |
149d6694d6 | ||
![]() |
15415bab10 | ||
![]() |
3b62ff093a | ||
![]() |
a218d2f6ff | ||
![]() |
6e0faa930a | ||
![]() |
d6c9538859 | ||
![]() |
dee471e9e9 | ||
![]() |
e3eae53cb9 | ||
![]() |
6986949d84 | ||
![]() |
19a65eaaac | ||
![]() |
cefbed614f | ||
![]() |
37db4070ce | ||
![]() |
da3e197534 | ||
![]() |
0e61ea7723 | ||
![]() |
f855b1a2b3 | ||
![]() |
bc16ad1f13 | ||
![]() |
1b8cd10142 | ||
![]() |
83c80c570c | ||
![]() |
4c5cd02ab7 | ||
![]() |
7d589bd6e1 | ||
![]() |
1bf3b83ef3 | ||
![]() |
b61b6f46cd | ||
![]() |
ac339d411c | ||
![]() |
3f17f871fa | ||
![]() |
e454daf727 | ||
![]() |
732e527401 | ||
![]() |
b44e6cd5dc | ||
![]() |
2d9556f5f3 | ||
![]() |
e82f72a9d3 | ||
![]() |
ce2d589a28 | ||
![]() |
750bf0e79a | ||
![]() |
4dc6c93cdb | ||
![]() |
f7e9507bee | ||
![]() |
e8d8cc4f55 | ||
![]() |
c20c982ad0 | ||
![]() |
962bdc7fa5 | ||
![]() |
a5e561c81d | ||
![]() |
c4ebafe777 | ||
![]() |
7ed715b371 | ||
![]() |
161e7b3fd7 | ||
![]() |
42eaa13402 | ||
![]() |
17c26c9fa9 | ||
![]() |
318240c14c | ||
![]() |
34bdf2fc10 | ||
![]() |
d97fa99ec5 | ||
![]() |
a554b22968 | ||
![]() |
9621b4b9a1 | ||
![]() |
3611e874ca | ||
![]() |
fbf29667d4 | ||
![]() |
c13dd132ee | ||
![]() |
3524d1a055 | ||
![]() |
a8c567d877 | ||
![]() |
80135342c2 | ||
![]() |
c2b13fdbdf | ||
![]() |
2797a60d4f | ||
![]() |
0592c8b0e2 | ||
![]() |
2b685ac343 | ||
![]() |
13122fc2b1 | ||
![]() |
c901707670 | ||
![]() |
27d3676ba5 | ||
![]() |
52459bf348 | ||
![]() |
6cfa73a284 | ||
![]() |
7b26935462 | ||
![]() |
c9cd810c9f | ||
![]() |
1715e2e09d | ||
![]() |
b69c0daadb | ||
![]() |
56d2978bc8 | ||
![]() |
1ef109e171 | ||
![]() |
08ab9dedf7 | ||
![]() |
3d90366af2 | ||
![]() |
c74c9ff161 | ||
![]() |
27a31e731f | ||
![]() |
562e2627c2 | ||
![]() |
babd976533 | ||
![]() |
748815b6ce | ||
![]() |
88252e0ae6 | ||
![]() |
c0bf69b4bf | ||
![]() |
b6b10e753f | ||
![]() |
4a45089b95 | ||
![]() |
3b9bcb356b | ||
![]() |
e10ddb343c | ||
![]() |
e8cd25ddf2 | ||
![]() |
624c314335 | ||
![]() |
b33094207c | ||
![]() |
7083a5c9b6 | ||
![]() |
db131d4971 | ||
![]() |
74d6ab0555 | ||
![]() |
66881eb89f | ||
![]() |
ad60f4894b | ||
![]() |
8d21c950a3 | ||
![]() |
ea8ec23cbe | ||
![]() |
f06e8b47be | ||
![]() |
7edeaa3407 | ||
![]() |
7a7e30e1ff | ||
![]() |
78dc75a4f1 | ||
![]() |
a5078b8517 | ||
![]() |
77876bd663 | ||
![]() |
a0697b81a1 | ||
![]() |
88b903ba39 | ||
![]() |
116edce3dc | ||
![]() |
7130d93616 | ||
![]() |
11054daebe | ||
![]() |
7926ddd008 | ||
![]() |
93f2316711 | ||
![]() |
fd3688a9c7 | ||
![]() |
a63dd9bccd | ||
![]() |
f54b223adf | ||
![]() |
9ddcf7b1fe | ||
![]() |
07c635d822 | ||
![]() |
6ed8977548 | ||
![]() |
e50cccc78a | ||
![]() |
feeb7107d5 | ||
![]() |
f52de322d3 | ||
![]() |
2f3e046130 | ||
![]() |
edbdbb7f07 | ||
![]() |
4bb5785d89 | ||
![]() |
36c6ee73fe | ||
![]() |
924f946e46 | ||
![]() |
d22e25064b | ||
![]() |
12d51d3c73 | ||
![]() |
5fa1fbafed | ||
![]() |
d36ab05bf1 | ||
![]() |
fb85c8ca54 | ||
![]() |
b2a2a9d6c7 | ||
![]() |
e2239d36c9 | ||
![]() |
6620236bc3 | ||
![]() |
02df2a8bbd | ||
![]() |
89513e469a | ||
![]() |
f5466426df | ||
![]() |
2631a4c35b | ||
![]() |
ef9338f5af | ||
![]() |
19afb035ff | ||
![]() |
a7751f210b | ||
![]() |
3bec28ffef | ||
![]() |
81b3fdb423 | ||
![]() |
30f520f6f0 | ||
![]() |
0de1da5943 | ||
![]() |
e39fb51dec | ||
![]() |
621aa0cf61 | ||
![]() |
367ac28a94 | ||
![]() |
99577a57e6 | ||
![]() |
65bc644d03 | ||
![]() |
01b9d4d848 | ||
![]() |
daadd206dd | ||
![]() |
60b2315028 | ||
![]() |
19d17c8c81 | ||
![]() |
24410849b7 | ||
![]() |
e0b3b27b8a | ||
![]() |
170899bd71 | ||
![]() |
2031c3146f | ||
![]() |
dafc7edb59 | ||
![]() |
7fbfdb3cb8 | ||
![]() |
e0a0d129df | ||
![]() |
2d76363da5 | ||
![]() |
54bfa4679c | ||
![]() |
3c708d7672 | ||
![]() |
b4fb6086b3 | ||
![]() |
ab44a65fe3 | ||
![]() |
95596b39fd | ||
![]() |
cf2466c8c1 | ||
![]() |
6b123675c4 | ||
![]() |
ddcae2d4aa | ||
![]() |
731db8fb8f | ||
![]() |
cb0c5c2587 | ||
![]() |
1643b4d108 | ||
![]() |
acd1fb9e3e | ||
![]() |
ddde477770 | ||
![]() |
3edbb8dc41 | ||
![]() |
581c2591ae | ||
![]() |
d49359e26a | ||
![]() |
e79eab711a | ||
![]() |
5b7cd9ce64 | ||
![]() |
3cb96091ec | ||
![]() |
fdd2cc972e | ||
![]() |
61243ad34b | ||
![]() |
5f4c439f57 | ||
![]() |
1f963ec5aa | ||
![]() |
bcbf0061ff | ||
![]() |
57dce4ec38 | ||
![]() |
0dbf909ca6 | ||
![]() |
47ac5ed522 | ||
![]() |
ec7aaa18ab | ||
![]() |
bee965df06 | ||
![]() |
543cad5497 | ||
![]() |
d9c45a76fe | ||
![]() |
417a42b0b3 | ||
![]() |
8ac3114f9a | ||
![]() |
740d932848 | ||
![]() |
e645c8e007 | ||
![]() |
9ee367d9e9 | ||
![]() |
8410788e99 | ||
![]() |
12235acd75 | ||
![]() |
ba5cffac55 | ||
![]() |
64ab6580dc | ||
![]() |
0a3295aa5c | ||
![]() |
ffa98a138b | ||
![]() |
5e71d95cb1 | ||
![]() |
9fd13aad11 | ||
![]() |
ebef38e408 | ||
![]() |
b6592c67d1 | ||
![]() |
d547680116 | ||
![]() |
bc5aa1141a | ||
![]() |
ea7d1aabba | ||
![]() |
760d65b214 | ||
![]() |
ceab294840 | ||
![]() |
abc40f2581 | ||
![]() |
dc738e9be7 | ||
![]() |
53d39a1373 | ||
![]() |
cee52e9cfd | ||
![]() |
9c6193b9b5 | ||
![]() |
e4a79b12eb | ||
![]() |
5eac767758 | ||
![]() |
b6ad287ef2 | ||
![]() |
f4991b46f8 | ||
![]() |
ecc7b93dc0 | ||
![]() |
ff56262c6e | ||
![]() |
da1b7c2e28 | ||
![]() |
76bbd838f7 | ||
![]() |
a8e81a255d | ||
![]() |
fee48e555e | ||
![]() |
59b52f3879 | ||
![]() |
d6731b17a4 | ||
![]() |
3f05f74ecb | ||
![]() |
e3ec292528 | ||
![]() |
63260119fb | ||
![]() |
ffd637cc0c | ||
![]() |
be2408b366 | ||
![]() |
6e519e0071 | ||
![]() |
f3e0ced1cd | ||
![]() |
368c07cc34 | ||
![]() |
d999575832 | ||
![]() |
06bc9bb4dc | ||
![]() |
161991df1f | ||
![]() |
e3e03ec12f | ||
![]() |
c85df9c691 | ||
![]() |
7953d131ae | ||
![]() |
c6f0abf732 | ||
![]() |
49f70b9563 | ||
![]() |
369299315f | ||
![]() |
9b99ba81e5 | ||
![]() |
499866bf94 | ||
![]() |
420bcd7aa0 | ||
![]() |
43c2761308 | ||
![]() |
b1ec56de29 | ||
![]() |
45c43d7cf5 | ||
![]() |
037f3761e7 | ||
![]() |
739a267462 | ||
![]() |
ba3fbc99ba | ||
![]() |
cd9f6b074e | ||
![]() |
964bcc0733 | ||
![]() |
4f79ca1bf0 | ||
![]() |
bc52fc1e79 | ||
![]() |
fee3418e60 | ||
![]() |
2a5ab77637 | ||
![]() |
6abc0ce921 | ||
![]() |
7888059c9f | ||
![]() |
97161310a5 | ||
![]() |
2651bc18cd | ||
![]() |
87e2810725 | ||
![]() |
007fa75294 | ||
![]() |
94a2b6bb88 | ||
![]() |
e5fe323aca | ||
![]() |
4523c9b06d | ||
![]() |
5ad391977e | ||
![]() |
25a7c4ee81 | ||
![]() |
87144cd572 | ||
![]() |
69560c8bde | ||
![]() |
aaedd24f37 | ||
![]() |
3cb6d43fac | ||
![]() |
68248cc274 | ||
![]() |
047c2408d2 | ||
![]() |
91982c4f7e | ||
![]() |
4e5512e35d | ||
![]() |
1f4ce6ff1e | ||
![]() |
c497e83a54 | ||
![]() |
93f94a7afb | ||
![]() |
6c0978498d | ||
![]() |
370276a7b6 | ||
![]() |
f4187d6b83 | ||
![]() |
c4d442450b | ||
![]() |
82432a78b7 | ||
![]() |
ebdf36e0b9 | ||
![]() |
65825040a3 | ||
![]() |
253061ee5f | ||
![]() |
a46c37018f | ||
![]() |
2e81c94d8e | ||
![]() |
a04fa105ef | ||
![]() |
ad3f6fc551 | ||
![]() |
53045de1c2 | ||
![]() |
410cea71f1 | ||
![]() |
cc27c94e03 | ||
![]() |
a9d95b89e1 | ||
![]() |
4eb3e98076 | ||
![]() |
664e04836d | ||
![]() |
a1b21a87a1 | ||
![]() |
e718d09c79 | ||
![]() |
c97aac6c94 | ||
![]() |
9c9220979e | ||
![]() |
42bc372d6e | ||
![]() |
47c1985c26 | ||
![]() |
9e31873520 | ||
![]() |
8665a24560 | ||
![]() |
2b842468ad | ||
![]() |
8cddf87f9e | ||
![]() |
573fdae37f | ||
![]() |
9b5c6bea56 | ||
![]() |
40cb5102b0 | ||
![]() |
95343b6094 | ||
![]() |
e15b2627fc | ||
![]() |
02caeb9f87 | ||
![]() |
4383b883c0 | ||
![]() |
bcc26dd86a | ||
![]() |
1bc9efd529 | ||
![]() |
11624d4759 | ||
![]() |
94e2a500c7 | ||
![]() |
552638d000 | ||
![]() |
8163afce79 | ||
![]() |
2a36a1b980 | ||
![]() |
d8123d2497 | ||
![]() |
86268b99fb | ||
![]() |
b4d4adb75b | ||
![]() |
3c01dbed7d | ||
![]() |
2eada219cd | ||
![]() |
8dd367efa9 | ||
![]() |
66dc8c772b | ||
![]() |
68cdd9b94c | ||
![]() |
65c211bb6d | ||
![]() |
60ad38261b | ||
![]() |
c02100ee6f | ||
![]() |
8669c29e3d | ||
![]() |
10783fec49 | ||
![]() |
3bed4611f1 | ||
![]() |
f0e836e5b6 | ||
![]() |
a1ae5b67d8 | ||
![]() |
53f7190d42 | ||
![]() |
3846a13805 | ||
![]() |
7c60753ab0 | ||
![]() |
df40b96b44 | ||
![]() |
faf583451f | ||
![]() |
be7b858cbd | ||
![]() |
a6a0e4d1de | ||
![]() |
14faf0b2f6 | ||
![]() |
bdfe4a961a | ||
![]() |
1bc8d94312 | ||
![]() |
7e9f913ff6 | ||
![]() |
0882e4a454 | ||
![]() |
699bd3748a | ||
![]() |
2ca59f0abe | ||
![]() |
64b1b8e15c | ||
![]() |
b6f799e641 | ||
![]() |
c461c9e700 | ||
![]() |
9df415b3f2 | ||
![]() |
f7c5e02a35 | ||
![]() |
656e6a2a89 | ||
![]() |
afefa3ec02 | ||
![]() |
8c45dab9b8 | ||
![]() |
0d6dd1ed0f | ||
![]() |
911d6fdfa7 | ||
![]() |
0cf759acad | ||
![]() |
7c57c8c2da | ||
![]() |
89c04acdff | ||
![]() |
05d5f13f0e | ||
![]() |
4682af81fb | ||
![]() |
e649a1eb98 | ||
![]() |
01482d791b | ||
![]() |
6e2e297aeb | ||
![]() |
5577ef081f | ||
![]() |
2d5d3bdaf4 | ||
![]() |
3376e85be6 | ||
![]() |
7a1215d581 | ||
![]() |
a94297ac93 | ||
![]() |
37325c70ba | ||
![]() |
3c46a33992 | ||
![]() |
ed1897db71 | ||
![]() |
dfbebb63ff | ||
![]() |
e68f80b44a | ||
![]() |
a67a768e89 | ||
![]() |
43f05c18d6 | ||
![]() |
3b076c28c2 | ||
![]() |
cbf12e3f90 | ||
![]() |
17b745434c | ||
![]() |
37011c2fda | ||
![]() |
fa95a041dd | ||
![]() |
0879d7a2d1 | ||
![]() |
653c2274e1 | ||
![]() |
061fb15a80 | ||
![]() |
3246fcce22 | ||
![]() |
f2a3797b46 | ||
![]() |
b80080ac52 | ||
![]() |
b36b63599b | ||
![]() |
5d8c0e43c2 | ||
![]() |
7845995dfd | ||
![]() |
afe88d6e3a | ||
![]() |
560ee0104d | ||
![]() |
dc8b625d55 | ||
![]() |
162c0147d2 | ||
![]() |
ef54cd6fb3 | ||
![]() |
c2465a46a8 | ||
![]() |
24d3a9cdd5 | ||
![]() |
5e82eaed88 | ||
![]() |
1d45b0b351 | ||
![]() |
ba119e4f96 | ||
![]() |
75c2feb387 | ||
![]() |
da637d3c8f | ||
![]() |
bc078fcc88 | ||
![]() |
93cd973e59 | ||
![]() |
5f9d477863 | ||
![]() |
ca693240b1 | ||
![]() |
468febc434 | ||
![]() |
4b81c88794 | ||
![]() |
2ac28b93f3 | ||
![]() |
3e7ed982d4 | ||
![]() |
d8d410802f | ||
![]() |
ca7bad8909 | ||
![]() |
7b2b5bfa71 | ||
![]() |
d2c3cdcf04 | ||
![]() |
7c8142174e | ||
![]() |
efe3f96223 | ||
![]() |
de244d6873 | ||
![]() |
53bf3cd2e6 | ||
![]() |
f59871a189 | ||
![]() |
2dda7608bb | ||
![]() |
10db9faff9 | ||
![]() |
90bff605fa | ||
![]() |
f512df44c1 | ||
![]() |
4e8ce28948 | ||
![]() |
16057cdef7 | ||
![]() |
da36f25fd0 | ||
![]() |
0e9c8a4ddd | ||
![]() |
ccc9b90625 | ||
![]() |
d992a959f2 | ||
![]() |
358d0521a1 | ||
![]() |
691ed6a4c7 | ||
![]() |
78e1782084 | ||
![]() |
0d5ae9a399 | ||
![]() |
d343a658ec | ||
![]() |
0bd3cff13b | ||
![]() |
5b71271b3c | ||
![]() |
0a4d658c7f | ||
![]() |
b75929a846 | ||
![]() |
e33cd442cd | ||
![]() |
91539de3ff | ||
![]() |
bc0206de9d | ||
![]() |
f536494a38 | ||
![]() |
f2030d301f | ||
![]() |
d890217447 | ||
![]() |
cafe0917c7 | ||
![]() |
ebf4e43ced | ||
![]() |
a1afade9ba | ||
![]() |
b86b2d6602 | ||
![]() |
12abbc59d6 | ||
![]() |
ec91466fe4 | ||
![]() |
0044f73d7a | ||
![]() |
65e0ec7826 | ||
![]() |
a5016afdd4 | ||
![]() |
6808ba1b3b | ||
![]() |
41f58c7692 | ||
![]() |
c6234bf548 | ||
![]() |
d995761419 | ||
![]() |
d749cf2e6b | ||
![]() |
164e9b7eb8 | ||
![]() |
d43f9189a6 | ||
![]() |
a292f272e9 | ||
![]() |
58c32857d3 | ||
![]() |
35bd1de5ba | ||
![]() |
51fd18f56d | ||
![]() |
162e275ef3 | ||
![]() |
44a2b54773 | ||
![]() |
d17828931b | ||
![]() |
cef77fba01 | ||
![]() |
e724fe3da6 | ||
![]() |
045aac8933 | ||
![]() |
2e5d082ef3 | ||
![]() |
923d07b1a4 | ||
![]() |
c424c4b7ef | ||
![]() |
b1cc64d4fa | ||
![]() |
0abd0627df | ||
![]() |
dccfc3b84f | ||
![]() |
deb3536cb2 | ||
![]() |
1d8f1b24a9 | ||
![]() |
7cabf8e5f5 | ||
![]() |
ffee9c8065 | ||
![]() |
00112eb7bc | ||
![]() |
9bbe75d64e | ||
![]() |
95fe62e141 | ||
![]() |
1c9ba11e07 | ||
![]() |
4bae3993da | ||
![]() |
d03865d1a5 | ||
![]() |
83481afee1 | ||
![]() |
b1a2b0cda2 | ||
![]() |
0dfba6e8d9 | ||
![]() |
e4afe50509 | ||
![]() |
006569391f | ||
![]() |
f4c3bb0617 | ||
![]() |
3e07d4eddb | ||
![]() |
4004048add | ||
![]() |
cbf26e09a4 | ||
![]() |
20b4b503f0 | ||
![]() |
08f573aaa5 | ||
![]() |
3dd3786055 | ||
![]() |
bfecee9650 | ||
![]() |
395c16300d | ||
![]() |
ff19cdb773 | ||
![]() |
5627b66a6e | ||
![]() |
ebdfbfe96c | ||
![]() |
1a009c7fd1 | ||
![]() |
c14f986fae | ||
![]() |
ee5b9986ad | ||
![]() |
190f217b13 | ||
![]() |
e78662b924 | ||
![]() |
5a2e395352 | ||
![]() |
8de15af7b4 | ||
![]() |
21178613de | ||
![]() |
340be7f86d | ||
![]() |
0ff4acd59c | ||
![]() |
28dd43f8ae | ||
![]() |
56d24cbf6d | ||
![]() |
e433bec17f | ||
![]() |
3189467a36 | ||
![]() |
63536d249f | ||
![]() |
3e90f3032c | ||
![]() |
5cff849e59 | ||
![]() |
06cc7527a9 | ||
![]() |
d78dc2388c | ||
![]() |
583912db9c | ||
![]() |
5792cf042e | ||
![]() |
4524dca3ed | ||
![]() |
304a569c7e | ||
![]() |
10c200dc24 | ||
![]() |
0b8617d09f | ||
![]() |
e7026dfd6e | ||
![]() |
b82d75b79e | ||
![]() |
ac30091258 | ||
![]() |
de58bdcc9f | ||
![]() |
329e5f8f91 | ||
![]() |
4a16171f96 | ||
![]() |
f0212c2aa4 | ||
![]() |
7401cf2399 | ||
![]() |
493d16519a | ||
![]() |
a87675d3cc | ||
![]() |
0bef16bb17 | ||
![]() |
e0078f388e | ||
![]() |
cf6e66c453 | ||
![]() |
34fa53afcc | ||
![]() |
663bf05fd7 | ||
![]() |
f512af2563 | ||
![]() |
7e7d70aa5b | ||
![]() |
dd1cf4d2ce | ||
![]() |
e627f4e935 | ||
![]() |
c6445898ce | ||
![]() |
f1ddd0e6f7 | ||
![]() |
db369a5b7f | ||
![]() |
87cd618998 | ||
![]() |
338e4004d4 | ||
![]() |
675f21e23a | ||
![]() |
4d2d11193f | ||
![]() |
69aaf1f8e6 | ||
![]() |
a10970d7c9 | ||
![]() |
6eecb6780e | ||
![]() |
80627e4989 | ||
![]() |
9e987fdebc | ||
![]() |
e6292c719d | ||
![]() |
7c74bf2566 | ||
![]() |
2c91e7853c | ||
![]() |
1e7f196e5c | ||
![]() |
f91f4f0053 | ||
![]() |
8b2622a234 | ||
![]() |
a2ddb12eb3 | ||
![]() |
985bd6d9bd | ||
![]() |
ec3c15e4a7 | ||
![]() |
188b202836 | ||
![]() |
01e607a14e | ||
![]() |
5b164b72dc | ||
![]() |
dcf65febba | ||
![]() |
56a2d4e64d | ||
![]() |
ef214fb80a | ||
![]() |
93f418ac0b | ||
![]() |
689af4ff87 | ||
![]() |
4ab0927de8 | ||
![]() |
014e6fc909 | ||
![]() |
6832575643 | ||
![]() |
07ad2d97b1 | ||
![]() |
039f1a522e | ||
![]() |
24e2f84231 | ||
![]() |
e0c0033852 | ||
![]() |
c50e9d48bf | ||
![]() |
173eaabddf | ||
![]() |
a748b70da1 | ||
![]() |
8eabe5dd41 | ||
![]() |
114415b5e1 | ||
![]() |
ba55b5a6db | ||
![]() |
7533f2a8ab | ||
![]() |
543a8a1712 | ||
![]() |
9b23ff597c | ||
![]() |
b2ce1edd5a | ||
![]() |
a0235b7da4 | ||
![]() |
87e2300855 | ||
![]() |
34bc6a6457 | ||
![]() |
273076e7f4 | ||
![]() |
b29b311e92 | ||
![]() |
5a9e82c4b0 | ||
![]() |
6218791708 | ||
![]() |
0e43f452d2 | ||
![]() |
0695bb097d | ||
![]() |
294c79a271 | ||
![]() |
e351e132f5 | ||
![]() |
258215a3ae | ||
![]() |
08ddfc100f | ||
![]() |
8ab6cba521 | ||
![]() |
eb16de7395 | ||
![]() |
dde0498ed3 | ||
![]() |
75c8570913 | ||
![]() |
e36099a342 | ||
![]() |
2f2329ba44 | ||
![]() |
6c8b184d2c | ||
![]() |
32878bd016 | ||
![]() |
12d13988c4 | ||
![]() |
9e4d921488 | ||
![]() |
edc1884c4e | ||
![]() |
a2d1bd2c67 | ||
![]() |
bb68a2405b | ||
![]() |
42ac4172ff | ||
![]() |
998921ae63 | ||
![]() |
26ae6084ea | ||
![]() |
76142e9699 | ||
![]() |
5e692acfbb | ||
![]() |
a67b8ab84d | ||
![]() |
4cf55ad8e2 | ||
![]() |
c1132e6897 | ||
![]() |
d6104f2eb2 | ||
![]() |
b0e0abe385 | ||
![]() |
4916e1cd1d | ||
![]() |
cd87f3e6f4 | ||
![]() |
18f4ab2644 | ||
![]() |
0bd3be94ec | ||
![]() |
25bb515afc | ||
![]() |
7ab6961ee1 | ||
![]() |
ae24cf3bb2 | ||
![]() |
2e494477a6 | ||
![]() |
80b72c75d9 | ||
![]() |
9494bb7f5f | ||
![]() |
86a741b6e6 | ||
![]() |
f738275d21 | ||
![]() |
e297e02800 | ||
![]() |
b2e05afff2 | ||
![]() |
05fc35fc3d | ||
![]() |
c809494c98 | ||
![]() |
ef82c5c691 | ||
![]() |
c0e2a75715 | ||
![]() |
01ddd00bc5 | ||
![]() |
d150f01a2c | ||
![]() |
f9e159deaf | ||
![]() |
381b00157e | ||
![]() |
800f33e7be | ||
![]() |
b8218876be | ||
![]() |
5669f4c161 | ||
![]() |
c492b30adb | ||
![]() |
eb48722126 | ||
![]() |
8e881b60f0 | ||
![]() |
0260d824a6 | ||
![]() |
0877a7dec7 | ||
![]() |
4c7919ad69 | ||
![]() |
4e997124b3 | ||
![]() |
8b040f5c95 | ||
![]() |
96156805ed | ||
![]() |
b8d48d7e62 | ||
![]() |
8ca12806ca | ||
![]() |
de811b7018 | ||
![]() |
7bf7365f6c | ||
![]() |
1daffd92fd | ||
![]() |
74986982a0 | ||
![]() |
aa807d25ed | ||
![]() |
cd28869649 | ||
![]() |
ae97692883 | ||
![]() |
e8e778c6d4 | ||
![]() |
5c552a0d71 | ||
![]() |
0f5dfea9de | ||
![]() |
e6cdb6a7a2 | ||
![]() |
1d25936f31 | ||
![]() |
1049673413 | ||
![]() |
c3109f808c | ||
![]() |
a943ac1308 | ||
![]() |
96319e795c | ||
![]() |
5a8016de87 | ||
![]() |
bc350644bd | ||
![]() |
c793500ad2 | ||
![]() |
1b2134c49e | ||
![]() |
86a5b46c68 | ||
![]() |
f83d4a58dd | ||
![]() |
a5f241d5bd | ||
![]() |
661f7baa21 | ||
![]() |
7b063a19dc | ||
![]() |
0320d94ea6 | ||
![]() |
a7b7a45b23 | ||
![]() |
89e317a6bb | ||
![]() |
5a209caed3 | ||
![]() |
288b1a0562 | ||
![]() |
d35b09b18f | ||
![]() |
e8eb3125a5 | ||
![]() |
8109445fdd | ||
![]() |
f63a7cb6c0 | ||
![]() |
7fc5297f60 | ||
![]() |
00ff76a0b9 | ||
![]() |
b8df419bad | ||
![]() |
faf103152a | ||
![]() |
65855e23d9 | ||
![]() |
6c28613def | ||
![]() |
56480dc1ef | ||
![]() |
8e1c15291d | ||
![]() |
a1e52c51b1 | ||
![]() |
8cc834633e | ||
![]() |
7d65c05994 | ||
![]() |
d74021af47 | ||
![]() |
46fe06e779 | ||
![]() |
fbea51372f | ||
![]() |
fa5ec8d019 | ||
![]() |
11c425a7eb | ||
![]() |
0d352f3d8a | ||
![]() |
6ccff71408 | ||
![]() |
41fea2a531 | ||
![]() |
3d6dad7e7e | ||
![]() |
4efc584816 | ||
![]() |
10ab70080a | ||
![]() |
bddde74c06 | ||
![]() |
29de723267 | ||
![]() |
354a9240f0 | ||
![]() |
5ae4f47e96 | ||
![]() |
26424488a5 | ||
![]() |
334095252c | ||
![]() |
1c85f774eb | ||
![]() |
bbf0fc8324 | ||
![]() |
b143e11e0e | ||
![]() |
927f56ab9f | ||
![]() |
2181379475 | ||
![]() |
45798d6d14 | ||
![]() |
f6d5e96dbf | ||
![]() |
e18aa56427 | ||
![]() |
f3a1c1de0a | ||
![]() |
0ccf543ec1 | ||
![]() |
1f1a708388 | ||
![]() |
58c0d97b5f | ||
![]() |
abef002af8 | ||
![]() |
adf2bc078c | ||
![]() |
b33f4e2dc6 | ||
![]() |
9cab5da74c | ||
![]() |
189b9c6648 | ||
![]() |
1823bd0305 | ||
![]() |
8fd12f001b | ||
![]() |
fc40567794 | ||
![]() |
de121008c1 | ||
![]() |
2fbfbf614b | ||
![]() |
1181620f33 | ||
![]() |
c527b1ca5d | ||
![]() |
181a504a14 | ||
![]() |
5d940bcb86 | ||
![]() |
dcfe26c9c0 | ||
![]() |
5d94c68d66 | ||
![]() |
a476bc9885 | ||
![]() |
dc759a3e56 | ||
![]() |
4818c08fe2 | ||
![]() |
3bc75ae931 | ||
![]() |
a94b61ef91 | ||
![]() |
e51021c573 | ||
![]() |
19115fb828 | ||
![]() |
16ef432228 | ||
![]() |
4449bc5292 | ||
![]() |
50f0c05e69 | ||
![]() |
6b26fc753e | ||
![]() |
ebee204ca0 | ||
![]() |
1a3567c5d0 | ||
![]() |
4fa6fa2001 | ||
![]() |
92aa16c556 | ||
![]() |
a3853af47a | ||
![]() |
f26f7b8d3f | ||
![]() |
f4aa02cc19 | ||
![]() |
da2492413f | ||
![]() |
3876b00088 | ||
![]() |
b1dfee2cf5 | ||
![]() |
13c2c582ad | ||
![]() |
f892a821f5 | ||
![]() |
bb3ba2d572 | ||
![]() |
9ee2e776fa | ||
![]() |
fd61ca20b0 | ||
![]() |
f9add57ed4 | ||
![]() |
e1b341788d | ||
![]() |
04c8b089a5 | ||
![]() |
9971482506 | ||
![]() |
955d9e6ec2 | ||
![]() |
fe2e32c84f | ||
![]() |
c6e53d0ea8 | ||
![]() |
436b10a87b | ||
![]() |
a2d5754e4b | ||
![]() |
3d28d8cee2 | ||
![]() |
11d8095cdd | ||
![]() |
a4052a9fe5 | ||
![]() |
6e6ee93282 | ||
![]() |
85de881181 | ||
![]() |
3712a8ab80 | ||
![]() |
4ee7240ef3 | ||
![]() |
df8126de73 | ||
![]() |
2eddbe3d03 | ||
![]() |
46dad7b58d | ||
![]() |
eb5e6d19fa | ||
![]() |
5afeb6e081 | ||
![]() |
17944882f4 | ||
![]() |
b24bb3eb18 | ||
![]() |
98d8118fb2 | ||
![]() |
3e1b680e4c | ||
![]() |
b4e7e51e63 | ||
![]() |
2a41a9d3ff | ||
![]() |
09b0068d16 | ||
![]() |
f9457be109 | ||
![]() |
e9291fe9d1 | ||
![]() |
20912c12e7 | ||
![]() |
7ddba4fc59 | ||
![]() |
7ad8b8298d | ||
![]() |
3fb24b4bf5 | ||
![]() |
ab93cae4c0 | ||
![]() |
8d01cc4807 | ||
![]() |
1e21a62851 | ||
![]() |
c664bd63f6 | ||
![]() |
dada764d2c | ||
![]() |
762afb8f43 | ||
![]() |
f009897eca | ||
![]() |
fa61e9da29 | ||
![]() |
0ff037997f | ||
![]() |
e8c2cfa5b5 | ||
![]() |
fb214b64ca | ||
![]() |
222dc2f7c9 | ||
![]() |
f94a946418 | ||
![]() |
b3ee2de079 | ||
![]() |
515d8c04ad | ||
![]() |
49c65cf9c6 | ||
![]() |
211fcd64c7 | ||
![]() |
5075e4eee1 | ||
![]() |
7bfe8e4f5b | ||
![]() |
8e0c2b256e | ||
![]() |
d66f5f6bad | ||
![]() |
fd9c8c1f0d | ||
![]() |
3a3b788c65 | ||
![]() |
b134db48b3 | ||
![]() |
f110a261b9 | ||
![]() |
b72b66781a | ||
![]() |
9b3a649f17 | ||
![]() |
d83ffd8984 | ||
![]() |
175c85d69a | ||
![]() |
3aa7f753b3 | ||
![]() |
861ee0485d | ||
![]() |
03e756dd27 | ||
![]() |
5d0984998d | ||
![]() |
3b695040d1 | ||
![]() |
40bf7a0f41 | ||
![]() |
cbdf2c2c71 | ||
![]() |
bbe3f07ec6 | ||
![]() |
35281c037c | ||
![]() |
e0eb247028 | ||
![]() |
a7ecc2af4b | ||
![]() |
f2d1f7b00f | ||
![]() |
89c2ae2208 | ||
![]() |
0df35379ef | ||
![]() |
138fa45820 | ||
![]() |
58cfb8bba4 | ||
![]() |
ed761d1767 | ||
![]() |
babe1dd1eb | ||
![]() |
cbd418b8de | ||
![]() |
9c5b0d4138 | ||
![]() |
94c21a6363 | ||
![]() |
d1a5e2e8e0 | ||
![]() |
17179abf5a | ||
![]() |
61f717daa3 | ||
![]() |
c70419bd0b | ||
![]() |
4eed27e178 | ||
![]() |
8e2ba4a8ea | ||
![]() |
700f25abc3 | ||
![]() |
4596ada801 | ||
![]() |
a8df97dc1a | ||
![]() |
4e0203ca68 | ||
![]() |
8413e10091 | ||
![]() |
7aaf5bd29f | ||
![]() |
5afda72b84 | ||
![]() |
7a6ffb1032 | ||
![]() |
fd51c7a955 | ||
![]() |
b91b0d39dd | ||
![]() |
7fc9026ca6 | ||
![]() |
f4a0ec43a6 | ||
![]() |
46e5a042ae | ||
![]() |
7309c06be8 | ||
![]() |
c71b717a54 | ||
![]() |
da8e54ed51 | ||
![]() |
b70c11e7a7 | ||
![]() |
e8c342e162 | ||
![]() |
f7975cbbc4 | ||
![]() |
098e293c82 | ||
![]() |
eb3f50c9f0 | ||
![]() |
78a0b5e6c9 | ||
![]() |
055bd22138 | ||
![]() |
8dfff83447 | ||
![]() |
de3a19c4f0 | ||
![]() |
2a33c05378 | ||
![]() |
bbb4d10718 | ||
![]() |
68dfaaf767 | ||
![]() |
0bb998c465 | ||
![]() |
ec9b525a3c | ||
![]() |
88ed7501a7 | ||
![]() |
c73aebadcb | ||
![]() |
40c4ca305e | ||
![]() |
7b3abe330e | ||
![]() |
0d96c3529d | ||
![]() |
62452b1d21 | ||
![]() |
c5f005afef | ||
![]() |
4a45b6e76d | ||
![]() |
a3cfbb6722 | ||
![]() |
dc8ba5239d | ||
![]() |
b53a50cd54 | ||
![]() |
9822d614e2 | ||
![]() |
ca20c735f7 | ||
![]() |
d3dc018260 | ||
![]() |
28a2a3816a | ||
![]() |
5461308d30 | ||
![]() |
b2f469ad76 | ||
![]() |
8ea75e6748 | ||
![]() |
09a4d6d030 | ||
![]() |
abbc608ee4 | ||
![]() |
9634ec8e31 | ||
![]() |
84a0827aee | ||
![]() |
1fbcf4d9b9 | ||
![]() |
80f8256422 | ||
![]() |
57864f2be6 | ||
![]() |
f4bc68d396 | ||
![]() |
926eec3c65 | ||
![]() |
abc6bbe7e0 | ||
![]() |
acdfd1ccc4 | ||
![]() |
315a13e1ce | ||
![]() |
aab6a00e4c | ||
![]() |
a4e6d9ed9a | ||
![]() |
e16dbcb671 | ||
![]() |
e89697fab0 | ||
![]() |
c52782aa3f | ||
![]() |
7060f22024 | ||
![]() |
d1931f249c | ||
![]() |
bf1a542afb | ||
![]() |
ebb6d348a3 | ||
![]() |
f667bd9066 | ||
![]() |
ff2eba5b9f | ||
![]() |
3eb0021207 | ||
![]() |
6379f5cd5e | ||
![]() |
e3a8448a23 | ||
![]() |
00d6036788 | ||
![]() |
53bb69621c | ||
![]() |
ad85beea91 | ||
![]() |
d7a237677a | ||
![]() |
16effa3938 | ||
![]() |
33a04c425b | ||
![]() |
20a52bc4e6 | ||
![]() |
482399d82f | ||
![]() |
3a171d19e3 | ||
![]() |
480970c799 | ||
![]() |
ceb3329f9e | ||
![]() |
1c0162c181 | ||
![]() |
cf62dccef7 | ||
![]() |
42410a260c | ||
![]() |
00c6a8f577 | ||
![]() |
9d2469549f | ||
![]() |
d2bc2c20c1 | ||
![]() |
10c37a3036 | ||
![]() |
00d14fa49f | ||
![]() |
0f1bc40f00 | ||
![]() |
4252857e19 | ||
![]() |
6d12a34c40 | ||
![]() |
9e126a4b91 | ||
![]() |
040ffda687 | ||
![]() |
39ff49e054 | ||
![]() |
b8f72a5bcb | ||
![]() |
43db704b74 | ||
![]() |
5043040530 | ||
![]() |
3c60aeeef9 | ||
![]() |
0344d61b26 | ||
![]() |
0e8467782b | ||
![]() |
423ea26266 | ||
![]() |
2f3339ba85 | ||
![]() |
9433b50785 | ||
![]() |
1e7b53dc0e | ||
![]() |
bc94748f2a | ||
![]() |
2395f93ed1 | ||
![]() |
d771726c2a | ||
![]() |
b2a2fe898c | ||
![]() |
31d408a746 | ||
![]() |
4a74f295e7 | ||
![]() |
b6ba6459fb | ||
![]() |
e399790442 | ||
![]() |
20c65b9a31 | ||
![]() |
1a7853a47e | ||
![]() |
683c3a4c90 | ||
![]() |
4a8d998afe | ||
![]() |
fe59d90c51 | ||
![]() |
f87813805a | ||
![]() |
a7e5b9978f | ||
![]() |
0a3959af86 | ||
![]() |
9ba6054140 | ||
![]() |
3348f04889 | ||
![]() |
c12aec7c8f | ||
![]() |
05f66b8f24 | ||
![]() |
d8b80f0fe9 | ||
![]() |
7314572d97 | ||
![]() |
52a29ed00a | ||
![]() |
5eaf8a5448 | ||
![]() |
f70fb12c3d | ||
![]() |
ece6c1203c | ||
![]() |
9c7e3177a2 | ||
![]() |
058c0affaf | ||
![]() |
5ee7146884 | ||
![]() |
1aa9a7a093 | ||
![]() |
a202c44a0f | ||
![]() |
85776cc7d0 | ||
![]() |
6d133ef724 | ||
![]() |
53288d361c | ||
![]() |
e729bd52aa | ||
![]() |
ddb6127519 | ||
![]() |
50b42eb6fe | ||
![]() |
b6572b7272 | ||
![]() |
57ced2c284 | ||
![]() |
26a3491466 | ||
![]() |
eed8463832 | ||
![]() |
718b4f3fd7 | ||
![]() |
22461d1728 | ||
![]() |
69cab1e6bb | ||
![]() |
a661fddaf3 | ||
![]() |
1b85e561b9 | ||
![]() |
a803ab8577 | ||
![]() |
daa759cc55 | ||
![]() |
513a099c24 | ||
![]() |
e299e73a68 | ||
![]() |
9550ac7422 | ||
![]() |
07bd376649 | ||
![]() |
ec6a1ed9d1 | ||
![]() |
7aee28d080 | ||
![]() |
24ec13e36d | ||
![]() |
d2e7c360b9 | ||
![]() |
f00628f4e5 | ||
![]() |
19bd5ace7d | ||
![]() |
3e2506136c | ||
![]() |
4e03acc944 | ||
![]() |
188eb6b9ea | ||
![]() |
c89e1a5735 | ||
![]() |
e50cc59f0d | ||
![]() |
96f87caff0 | ||
![]() |
b422a83b57 | ||
![]() |
15ae3bee55 | ||
![]() |
0cac2fec2a | ||
![]() |
5965da88c3 | ||
![]() |
ba0338e9d5 | ||
![]() |
ff62338359 | ||
![]() |
9867f4eeee | ||
![]() |
ba278dfc3d | ||
![]() |
063030bcf3 | ||
![]() |
276ce8710c | ||
![]() |
5ed7a17f46 | ||
![]() |
01c3b4fa6e | ||
![]() |
165ca8fbc7 | ||
![]() |
ce90ae343c | ||
![]() |
a99f360a64 | ||
![]() |
d51e9446ff | ||
![]() |
d3524ee46f | ||
![]() |
121ea37825 | ||
![]() |
9592d95599 | ||
![]() |
d6faa18adb | ||
![]() |
1cbe6f77ee | ||
![]() |
4f5d4e36b7 | ||
![]() |
163025c1f2 | ||
![]() |
880178d62e | ||
![]() |
d285ff7e54 | ||
![]() |
54671fc522 | ||
![]() |
53e3e6545d | ||
![]() |
91cb49c4a3 | ||
![]() |
c065cb48f2 | ||
![]() |
d376f6b1d2 | ||
![]() |
45526a7652 | ||
![]() |
cc7929932b | ||
![]() |
e6516235fa | ||
![]() |
40d5a9f890 | ||
![]() |
ee3e744cc6 | ||
![]() |
b55bd1e027 | ||
![]() |
9a96df0319 | ||
![]() |
e9b1618364 | ||
![]() |
6dc6ed1e94 | ||
![]() |
1943a49274 | ||
![]() |
a8c00edc94 | ||
![]() |
faa8abb2b9 | ||
![]() |
f6cd2fc68e | ||
![]() |
6482000d6b | ||
![]() |
dcf7209706 | ||
![]() |
2ec921593e | ||
![]() |
75a01f657e | ||
![]() |
d4e512c1fc | ||
![]() |
26e7d34f18 | ||
![]() |
15b5ffddd4 | ||
![]() |
f0f3764992 | ||
![]() |
2beb44b591 | ||
![]() |
27b659dde1 | ||
![]() |
630c2ee6f6 | ||
![]() |
600477c487 | ||
![]() |
d31c295598 | ||
![]() |
a7bb0931c4 | ||
![]() |
ff99a01423 | ||
![]() |
ea6e311318 | ||
![]() |
6790467bbc | ||
![]() |
d315dbea22 | ||
![]() |
8db7ab6724 | ||
![]() |
9a2c034ae8 | ||
![]() |
2885b80a13 | ||
![]() |
4a85156e87 | ||
![]() |
1785c69e1b | ||
![]() |
a862ba8348 | ||
![]() |
633d45d02f | ||
![]() |
7f4e042dfa | ||
![]() |
507ec13848 | ||
![]() |
2132352639 | ||
![]() |
11016b8486 | ||
![]() |
8615f14407 | ||
![]() |
1e84f08018 | ||
![]() |
7f663328dc | ||
![]() |
ea53068432 | ||
![]() |
144aff9b4e | ||
![]() |
18db6daf0a | ||
![]() |
26ba29b538 | ||
![]() |
70167a34b6 | ||
![]() |
ccb668a1b6 | ||
![]() |
0989c64eab | ||
![]() |
c082fc5cb2 | ||
![]() |
d39111a294 | ||
![]() |
3c072f94b0 | ||
![]() |
7f8ae2ce5c | ||
![]() |
d84b75168c | ||
![]() |
eb0a5e1c55 | ||
![]() |
47ac77dbb0 | ||
![]() |
ec84847be7 | ||
![]() |
e7839bfd40 | ||
![]() |
8762da627b | ||
![]() |
3fab321045 | ||
![]() |
9451048574 | ||
![]() |
46c002038b | ||
![]() |
d1d833ea9a | ||
![]() |
c1f0750526 | ||
![]() |
89e02b6956 | ||
![]() |
97e8258288 | ||
![]() |
39040c1874 | ||
![]() |
c709851888 | ||
![]() |
b022bec1fa | ||
![]() |
bca0531963 | ||
![]() |
b2c7fc8f5b | ||
![]() |
96ac2c29d6 | ||
![]() |
14a5118b4d | ||
![]() |
232fa1ffe8 | ||
![]() |
d2e91754e9 | ||
![]() |
4d9066a58d | ||
![]() |
c618867941 | ||
![]() |
5ad4017510 | ||
![]() |
63e14a98f9 | ||
![]() |
25e3fe8eab | ||
![]() |
840f046572 | ||
![]() |
89e3c2e4b1 | ||
![]() |
c770470b58 | ||
![]() |
4619836122 | ||
![]() |
76403bba8e | ||
![]() |
a9afa303a2 | ||
![]() |
e5399ae07a | ||
![]() |
80a5a7b129 | ||
![]() |
9dc97d4b6b | ||
![]() |
d8c9169af2 | ||
![]() |
ec256f7130 | ||
![]() |
19bbfce4ed | ||
![]() |
b0b2d9d972 | ||
![]() |
6f5f5c9461 | ||
![]() |
fc04bc6046 | ||
![]() |
9f504253fb | ||
![]() |
961997e078 | ||
![]() |
363594a9a2 | ||
![]() |
247e2677f3 | ||
![]() |
5b5159f4dd | ||
![]() |
bc8b85860c | ||
![]() |
44d45c5880 | ||
![]() |
a6d8e4fc3f | ||
![]() |
2cc9a15f6a | ||
![]() |
151f9fb2ee | ||
![]() |
32fb76b3d1 | ||
![]() |
8d52e2635a | ||
![]() |
f20e1f20a6 | ||
![]() |
af8594c5c6 | ||
![]() |
899d41f361 | ||
![]() |
7dc6382c90 | ||
![]() |
e8009c2d26 | ||
![]() |
3bc7cdaab6 | ||
![]() |
724d8187c6 | ||
![]() |
8f68df60c7 | ||
![]() |
6af3cb6134 | ||
![]() |
2ff0c3907f | ||
![]() |
dd102ff01d | ||
![]() |
f20b1d75e6 | ||
![]() |
a4b88ac4a7 | ||
![]() |
93b9d586d2 | ||
![]() |
41dd4447cc | ||
![]() |
8b9c8a2e80 | ||
![]() |
a63ff1bb99 | ||
![]() |
d5e3b59245 | ||
![]() |
d0470fffcc | ||
![]() |
5053305e17 | ||
![]() |
9c79392060 | ||
![]() |
708c3278bf | ||
![]() |
c0249f6e59 | ||
![]() |
afd8aefac2 | ||
![]() |
3c07767138 | ||
![]() |
953c442f13 | ||
![]() |
e147852878 | ||
![]() |
db7ee6cfb3 | ||
![]() |
3b41b6cc33 | ||
![]() |
5e79888370 | ||
![]() |
a6aa9bdd59 | ||
![]() |
d78b7cc110 | ||
![]() |
e7cdace0ab | ||
![]() |
f60eb4e977 | ||
![]() |
7aecf6c6de | ||
![]() |
75d62096a6 | ||
![]() |
7c44994070 | ||
![]() |
f49f3fd9c3 | ||
![]() |
5ea86d636c | ||
![]() |
4c6e90717a | ||
![]() |
d60ca9d783 | ||
![]() |
d304718ea0 | ||
![]() |
c787c8948e | ||
![]() |
62728ef7fb | ||
![]() |
47e256f03d | ||
![]() |
527db52d5e | ||
![]() |
f78b2c48a7 | ||
![]() |
90c965a32a | ||
![]() |
d4afcde6c9 | ||
![]() |
257de89ce4 | ||
![]() |
735cc3962b | ||
![]() |
feb42181de | ||
![]() |
f5c4bfa7b4 | ||
![]() |
65ddd91855 | ||
![]() |
6d7d838613 | ||
![]() |
5edf7b7f00 | ||
![]() |
117569830d | ||
![]() |
d62aec7287 | ||
![]() |
4e0cf3681e | ||
![]() |
d98751102a | ||
![]() |
1acbeb813e | ||
![]() |
b87ec752cf | ||
![]() |
753df31fa6 | ||
![]() |
bd77b74689 | ||
![]() |
810c23d8ee | ||
![]() |
34d9b2983e | ||
![]() |
63c5c8412a | ||
![]() |
60207723d1 | ||
![]() |
f4117ad096 | ||
![]() |
8bed4e9970 | ||
![]() |
f72eaf781c | ||
![]() |
e9ecc20a36 | ||
![]() |
addfa2a32d | ||
![]() |
0dad9bc393 | ||
![]() |
5155875a72 | ||
![]() |
4ed1217366 | ||
![]() |
50e898a684 | ||
![]() |
251c7fa982 | ||
![]() |
00c75e9f98 | ||
![]() |
1b5b02d286 | ||
![]() |
946d655cee | ||
![]() |
d56710b0b5 | ||
![]() |
0cf78277b5 | ||
![]() |
ce2a583ff9 | ||
![]() |
84bddad30e | ||
![]() |
0ff682504a | ||
![]() |
5d5984166f | ||
![]() |
b825eb44fe | ||
![]() |
7015eb66f2 | ||
![]() |
494eeb16a5 | ||
![]() |
692fdc8d5d | ||
![]() |
ec1a8ebd4a | ||
![]() |
59daa6597b | ||
![]() |
3941ce4ad1 | ||
![]() |
aff87d4372 | ||
![]() |
373ca87887 | ||
![]() |
03c855ecbe | ||
![]() |
3a3cb24631 | ||
![]() |
4c3fea25a5 | ||
![]() |
af303cbf2a | ||
![]() |
b7c09a9b38 | ||
![]() |
eced06eea8 | ||
![]() |
15d989255c | ||
![]() |
095566b9c2 | ||
![]() |
b77a65d446 | ||
![]() |
9778a748fc | ||
![]() |
a89dddcafa | ||
![]() |
75973fd4c0 | ||
![]() |
514036f9d1 | ||
![]() |
36fbedab20 | ||
![]() |
180baeba50 | ||
![]() |
cce82fe2a5 | ||
![]() |
5512bb2e06 | ||
![]() |
be1fcbbdf8 | ||
![]() |
422cd52049 | ||
![]() |
d67a56d37e | ||
![]() |
070c9721b6 | ||
![]() |
0219834dd1 | ||
![]() |
a1cc9ad1f0 | ||
![]() |
29e8aa4020 | ||
![]() |
777aff403f | ||
![]() |
4b3b702459 | ||
![]() |
893e6b40a7 | ||
![]() |
a85d780020 | ||
![]() |
34439699ae | ||
![]() |
64b63142b1 | ||
![]() |
cee1ab000b | ||
![]() |
3ff98770c1 | ||
![]() |
244203463d | ||
![]() |
b6f7940b10 | ||
![]() |
75312602aa | ||
![]() |
75977128f0 | ||
![]() |
eafde6c677 | ||
![]() |
da0598baef | ||
![]() |
35ba5e2f7c | ||
![]() |
49258d6dbe | ||
![]() |
5a081e4f00 | ||
![]() |
4feae472e9 | ||
![]() |
4e83239258 | ||
![]() |
c4cccf44a5 | ||
![]() |
64e7cbcc62 | ||
![]() |
dd86e4f317 | ||
![]() |
4db285a875 | ||
![]() |
939d1ba091 | ||
![]() |
0fe8d486d9 | ||
![]() |
a3cb02af5c | ||
![]() |
45a6b8452c | ||
![]() |
9d594cc640 | ||
![]() |
59e41ae1ac | ||
![]() |
c6ed16465b | ||
![]() |
8f14b36f5a | ||
![]() |
b6c2491e3b | ||
![]() |
8e31d04d90 | ||
![]() |
bf93fbb357 | ||
![]() |
c064b244db | ||
![]() |
0280610e96 | ||
![]() |
4363623c45 | ||
![]() |
c960914ec3 | ||
![]() |
9ecc80b443 | ||
![]() |
3e146de0a2 | ||
![]() |
bee54c39dc | ||
![]() |
623d138d60 | ||
![]() |
76befc1249 | ||
![]() |
51251b9fb0 | ||
![]() |
8c45076bb6 | ||
![]() |
7d683ef399 | ||
![]() |
e4da3822b1 | ||
![]() |
12c4cd77c5 | ||
![]() |
a611cbb942 | ||
![]() |
f946813ccb | ||
![]() |
49fca1b839 | ||
![]() |
54cb4a2180 | ||
![]() |
9954e3b11e | ||
![]() |
82692b0ddc | ||
![]() |
9d4fdec12f | ||
![]() |
ed72c995ef | ||
![]() |
66c77d1157 | ||
![]() |
40c322ad47 | ||
![]() |
83f1e0d713 | ||
![]() |
2d89044bd3 | ||
![]() |
dc4d24c2b9 | ||
![]() |
d5fb20c524 | ||
![]() |
7e92e8bfe8 | ||
![]() |
efdcfcef97 | ||
![]() |
574ee2a46f | ||
![]() |
ec4d048905 | ||
![]() |
b063099b2a | ||
![]() |
2937dac4c3 | ||
![]() |
7c283a1805 | ||
![]() |
309c0dcda3 | ||
![]() |
b35cc01035 | ||
![]() |
6e79a5402e | ||
![]() |
a989f8daaf | ||
![]() |
7880d24b29 | ||
![]() |
fdc8bbf72d | ||
![]() |
005e188d38 | ||
![]() |
adcc3e9b98 | ||
![]() |
5fe201da25 | ||
![]() |
974f7bd0df | ||
![]() |
780ae7cd4f | ||
![]() |
50e568b84c | ||
![]() |
1ce993051e | ||
![]() |
69406343ee | ||
![]() |
1c33b8acb2 | ||
![]() |
5e77436d39 | ||
![]() |
e26308a05b | ||
![]() |
c16ee3186f | ||
![]() |
fedeeab561 | ||
![]() |
bfcaabecfa | ||
![]() |
606fa6f6d5 | ||
![]() |
6a8d8bf53d | ||
![]() |
1f81cba706 | ||
![]() |
5db7b242aa | ||
![]() |
0b7f65e227 | ||
![]() |
2f758af097 | ||
![]() |
f64320a464 | ||
![]() |
3e87ef6426 | ||
![]() |
acb75fa02d | ||
![]() |
ea4ecae27c | ||
![]() |
a8556a729b | ||
![]() |
068df3ef2d | ||
![]() |
b304139db2 | ||
![]() |
df2aae5169 | ||
![]() |
351ac4ec7d | ||
![]() |
12e40291c0 | ||
![]() |
8af7d51159 | ||
![]() |
84ada716ac | ||
![]() |
cbcc89be9c | ||
![]() |
73a5e11b9b | ||
![]() |
194baaeb56 | ||
![]() |
469259d663 | ||
![]() |
f3db69d975 | ||
![]() |
0914cb71ad | ||
![]() |
0ae2806eb4 | ||
![]() |
adcfe699c2 | ||
![]() |
e5048f98b6 | ||
![]() |
e6c6338266 | ||
![]() |
1f03c8cb8c | ||
![]() |
69f5249788 | ||
![]() |
3a1f1c946b | ||
![]() |
d88745af6e | ||
![]() |
709d917f0c | ||
![]() |
918386bdc1 | ||
![]() |
a8c0fadf95 | ||
![]() |
6dc7b8f246 | ||
![]() |
71f6f0bee4 | ||
![]() |
a00afb61c0 | ||
![]() |
5dbe6c5f36 | ||
![]() |
16732aa5b3 | ||
![]() |
3d2f1437e4 | ||
![]() |
fbe721c860 | ||
![]() |
7383db60b0 | ||
![]() |
53ccc903da | ||
![]() |
9d1f9f35e5 | ||
![]() |
c1f522ff54 | ||
![]() |
b345571a63 | ||
![]() |
f29ee6165f | ||
![]() |
ec6432cc5f | ||
![]() |
8c917667b6 | ||
![]() |
941434b8d8 | ||
![]() |
2d0632adf8 | ||
![]() |
f1afaf641a | ||
![]() |
743116a733 | ||
![]() |
8e77cf25d9 | ||
![]() |
7d33e03943 | ||
![]() |
0c44666c89 | ||
![]() |
ddaa746807 | ||
![]() |
760e1ffe1d | ||
![]() |
15b4024715 | ||
![]() |
918112a793 | ||
![]() |
4ee200a81c | ||
![]() |
e37eba49ff | ||
![]() |
6de8e3bd1f | ||
![]() |
3a9781c4f8 | ||
![]() |
a60b9211d2 | ||
![]() |
777fb1d5d1 | ||
![]() |
8e9110f42e | ||
![]() |
c80137e059 | ||
![]() |
2768e1dadb | ||
![]() |
2fbba01577 | ||
![]() |
e7c536ea31 | ||
![]() |
1734c0569a | ||
![]() |
a5bef89123 | ||
![]() |
d8aa73d26e | ||
![]() |
791409d5e5 | ||
![]() |
01bf89907d | ||
![]() |
8e73c7e95e | ||
![]() |
088bd18adb | ||
![]() |
2e8c7ec225 | ||
![]() |
9340a74371 | ||
![]() |
5998de610b | ||
![]() |
dfabff3846 | ||
![]() |
76a7a3bad5 | ||
![]() |
a3fa97dd52 | ||
![]() |
1d2a41129c | ||
![]() |
956298128d | ||
![]() |
e6892d66b8 | ||
![]() |
6ef22cf578 | ||
![]() |
3e6f6edf7e | ||
![]() |
81c5b96ed7 | ||
![]() |
6f6d202c99 | ||
![]() |
2fc389c3ad | ||
![]() |
05951aa7da | ||
![]() |
bb8e4621f5 | ||
![]() |
04e9ab5ce4 | ||
![]() |
1089a40943 | ||
![]() |
68c3a069ba | ||
![]() |
80b9652f7a | ||
![]() |
569e07949f | ||
![]() |
ffa9534549 | ||
![]() |
c539993387 | ||
![]() |
8a572f96d5 | ||
![]() |
24cb3508e8 | ||
![]() |
3f34c57e31 | ||
![]() |
4c618daa90 |
97
.devcontainer/devcontainer.json
Normal file
97
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
{
|
||||||
|
"name": "Frigate Devcontainer",
|
||||||
|
"dockerComposeFile": "../docker-compose.yml",
|
||||||
|
"service": "devcontainer",
|
||||||
|
"workspaceFolder": "/workspace/frigate",
|
||||||
|
"initializeCommand": ".devcontainer/initialize.sh",
|
||||||
|
"postCreateCommand": ".devcontainer/post_create.sh",
|
||||||
|
"overrideCommand": false,
|
||||||
|
"remoteUser": "vscode",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/common-utils:1": {}
|
||||||
|
},
|
||||||
|
"forwardPorts": [5000, 5001, 5173, 1935, 8554, 8555],
|
||||||
|
"portsAttributes": {
|
||||||
|
"5000": {
|
||||||
|
"label": "NGINX",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"5001": {
|
||||||
|
"label": "Frigate API",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"5173": {
|
||||||
|
"label": "Vite Server",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"1935": {
|
||||||
|
"label": "RTMP",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"8554": {
|
||||||
|
"label": "gortc RTSP",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"8555": {
|
||||||
|
"label": "go2rtc WebRTC",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.vscode-pylance",
|
||||||
|
"ms-python.black-formatter",
|
||||||
|
"visualstudioexptteam.vscodeintellicode",
|
||||||
|
"mhutchie.git-graph",
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"streetsidesoftware.code-spell-checker",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"mikestead.dotenv",
|
||||||
|
"csstools.postcss",
|
||||||
|
"blanu.vscode-styled-jsx",
|
||||||
|
"bradlc.vscode-tailwindcss",
|
||||||
|
"ms-python.isort",
|
||||||
|
"charliermarsh.ruff"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"remote.autoForwardPorts": false,
|
||||||
|
"python.linting.pylintEnabled": true,
|
||||||
|
"python.linting.enabled": true,
|
||||||
|
"python.formatting.provider": "none",
|
||||||
|
"python.languageServer": "Pylance",
|
||||||
|
"editor.formatOnPaste": false,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true,
|
||||||
|
"python.testing.pytestEnabled": false,
|
||||||
|
"python.testing.unittestEnabled": true,
|
||||||
|
"python.testing.unittestArgs": ["-v", "-s", "./frigate/test"],
|
||||||
|
"files.trimTrailingWhitespace": true,
|
||||||
|
"eslint.workingDirectories": ["./web"],
|
||||||
|
"isort.args": ["--settings-path=./pyproject.toml"],
|
||||||
|
"[python]": {
|
||||||
|
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll": true,
|
||||||
|
"source.organizeImports": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"[json][jsonc]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[jsx][js][tsx][ts]": {
|
||||||
|
"editor.codeActionsOnSave": [
|
||||||
|
"source.addMissingImports",
|
||||||
|
"source.fixAll"
|
||||||
|
],
|
||||||
|
"editor.tabSize": 2
|
||||||
|
},
|
||||||
|
"cSpell.ignoreWords": ["rtmp"],
|
||||||
|
"cSpell.words": ["preact", "astype", "hwaccel", "mqtt"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
13
.devcontainer/initialize.sh
Executable file
13
.devcontainer/initialize.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# These folders needs to be created and owned by the host user
|
||||||
|
mkdir -p debug web/dist
|
||||||
|
|
||||||
|
if [[ -f "config/config.yml" ]]; then
|
||||||
|
echo "config/config.yml already exists, skipping initialization" >&2
|
||||||
|
else
|
||||||
|
echo "initializing config/config.yml" >&2
|
||||||
|
cp -fv config/config.yml.example config/config.yml
|
||||||
|
fi
|
28
.devcontainer/post_create.sh
Executable file
28
.devcontainer/post_create.sh
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
# Cleanup the old github host key
|
||||||
|
sed -i -e '/AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31\/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi\/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==/d' ~/.ssh/known_hosts
|
||||||
|
# Add new github host key
|
||||||
|
curl -L https://api.github.com/meta | jq -r '.ssh_keys | .[]' | \
|
||||||
|
sed -e 's/^/github.com /' >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
# Frigate normal container runs as root, so it have permission to create
|
||||||
|
# the folders. But the devcontainer runs as the host user, so we need to
|
||||||
|
# create the folders and give the host user permission to write to them.
|
||||||
|
sudo mkdir -p /media/frigate
|
||||||
|
sudo chown -R "$(id -u):$(id -g)" /media/frigate
|
||||||
|
|
||||||
|
# When started as a service, LIBAVFORMAT_VERSION_MAJOR is defined in the
|
||||||
|
# s6 service file. For dev, where frigate is started from an interactive
|
||||||
|
# shell, we define it in .bashrc instead.
|
||||||
|
echo 'export LIBAVFORMAT_VERSION_MAJOR=$(ffmpeg -version | grep -Po "libavformat\W+\K\d+")' >> $HOME/.bashrc
|
||||||
|
|
||||||
|
make version
|
||||||
|
|
||||||
|
cd web
|
||||||
|
|
||||||
|
npm install
|
||||||
|
|
||||||
|
npm run build
|
@@ -1,6 +1,16 @@
|
|||||||
README.md
|
README.md
|
||||||
diagram.png
|
docs/
|
||||||
.gitignore
|
.gitignore
|
||||||
debug
|
debug
|
||||||
config/
|
config/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
.git
|
||||||
|
core
|
||||||
|
*.mp4
|
||||||
|
*.jpg
|
||||||
|
*.db
|
||||||
|
*.ts
|
||||||
|
|
||||||
|
web/dist/
|
||||||
|
web/node_modules/
|
||||||
|
web/.npm
|
||||||
|
4
.github/FUNDING.yml
vendored
4
.github/FUNDING.yml
vendored
@@ -1 +1,3 @@
|
|||||||
github: blakeblackshear
|
github:
|
||||||
|
- blakeblackshear
|
||||||
|
- NickM-27
|
||||||
|
107
.github/ISSUE_TEMPLATE/camera_support_request.yml
vendored
Normal file
107
.github/ISSUE_TEMPLATE/camera_support_request.yml
vendored
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
name: Camera Support Request
|
||||||
|
description: Support for setting up cameras in Frigate
|
||||||
|
title: "[Camera Support]: "
|
||||||
|
labels: ["support", "triage"]
|
||||||
|
assignees: []
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem you are having
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Visible on the Debug page in the Web UI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: config
|
||||||
|
attributes:
|
||||||
|
label: Frigate config file
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant log output
|
||||||
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: ffprobe
|
||||||
|
attributes:
|
||||||
|
label: FFprobe output from your camera
|
||||||
|
description: Run `ffprobe <camera_url>` and provide output below
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: stats
|
||||||
|
attributes:
|
||||||
|
label: Frigate stats
|
||||||
|
description: Output from frigate's /api/stats endpoint
|
||||||
|
render: json
|
||||||
|
- type: dropdown
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
options:
|
||||||
|
- HassOS
|
||||||
|
- Debian
|
||||||
|
- Other Linux
|
||||||
|
- Proxmox
|
||||||
|
- UNRAID
|
||||||
|
- Windows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Install method
|
||||||
|
options:
|
||||||
|
- HassOS Addon
|
||||||
|
- Docker Compose
|
||||||
|
- Docker CLI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: coral
|
||||||
|
attributes:
|
||||||
|
label: Coral version
|
||||||
|
options:
|
||||||
|
- USB
|
||||||
|
- PCIe
|
||||||
|
- M.2
|
||||||
|
- Dev Board
|
||||||
|
- Other
|
||||||
|
- CPU (no coral)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: network
|
||||||
|
attributes:
|
||||||
|
label: Network connection
|
||||||
|
options:
|
||||||
|
- Wired
|
||||||
|
- Wireless
|
||||||
|
- Mixed
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: camera
|
||||||
|
attributes:
|
||||||
|
label: Camera make and model
|
||||||
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other
|
||||||
|
attributes:
|
||||||
|
label: Any other information that may be helpful
|
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
blank_issues_enabled: false
|
82
.github/ISSUE_TEMPLATE/config_support_request.yml
vendored
Normal file
82
.github/ISSUE_TEMPLATE/config_support_request.yml
vendored
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
name: Config Support Request
|
||||||
|
description: Support for Frigate configuration
|
||||||
|
title: "[Config Support]: "
|
||||||
|
labels: ["support", "triage"]
|
||||||
|
assignees: []
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem you are having
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Visible on the Debug page in the Web UI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: config
|
||||||
|
attributes:
|
||||||
|
label: Frigate config file
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant log output
|
||||||
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: stats
|
||||||
|
attributes:
|
||||||
|
label: Frigate stats
|
||||||
|
description: Output from frigate's /api/stats endpoint
|
||||||
|
render: json
|
||||||
|
- type: dropdown
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
options:
|
||||||
|
- HassOS
|
||||||
|
- Debian
|
||||||
|
- Other Linux
|
||||||
|
- Proxmox
|
||||||
|
- UNRAID
|
||||||
|
- Windows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Install method
|
||||||
|
options:
|
||||||
|
- HassOS Addon
|
||||||
|
- Docker Compose
|
||||||
|
- Docker CLI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: coral
|
||||||
|
attributes:
|
||||||
|
label: Coral version
|
||||||
|
options:
|
||||||
|
- USB
|
||||||
|
- PCIe
|
||||||
|
- M.2
|
||||||
|
- Dev Board
|
||||||
|
- Other
|
||||||
|
- CPU (no coral)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other
|
||||||
|
attributes:
|
||||||
|
label: Any other information that may be helpful
|
84
.github/ISSUE_TEMPLATE/detector_support_request.yml
vendored
Normal file
84
.github/ISSUE_TEMPLATE/detector_support_request.yml
vendored
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
name: Detector Support Request
|
||||||
|
description: Support for setting up object detector in Frigate (Coral, OpenVINO, TensorRT, etc.)
|
||||||
|
title: "[Detector Support]: "
|
||||||
|
labels: ["support", "triage"]
|
||||||
|
assignees: []
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem you are having
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Visible on the Debug page in the Web UI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: config
|
||||||
|
attributes:
|
||||||
|
label: Frigate config file
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: docker
|
||||||
|
attributes:
|
||||||
|
label: docker-compose file or Docker CLI command
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant log output
|
||||||
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
options:
|
||||||
|
- HassOS
|
||||||
|
- Debian
|
||||||
|
- Other Linux
|
||||||
|
- Proxmox
|
||||||
|
- UNRAID
|
||||||
|
- Windows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Install method
|
||||||
|
options:
|
||||||
|
- HassOS Addon
|
||||||
|
- Docker Compose
|
||||||
|
- Docker CLI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: coral
|
||||||
|
attributes:
|
||||||
|
label: Coral version
|
||||||
|
options:
|
||||||
|
- USB
|
||||||
|
- PCIe
|
||||||
|
- M.2
|
||||||
|
- Dev Board
|
||||||
|
- Other
|
||||||
|
- CPU (no coral)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other
|
||||||
|
attributes:
|
||||||
|
label: Any other information that may be helpful
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: enhancement
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe what you are trying to accomplish and why in non technical terms**
|
||||||
|
I want to be able to ... so that I can ...
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
107
.github/ISSUE_TEMPLATE/general_support_request.yml
vendored
Normal file
107
.github/ISSUE_TEMPLATE/general_support_request.yml
vendored
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
name: General Support Request
|
||||||
|
description: General support request for Frigate
|
||||||
|
title: "[Support]: "
|
||||||
|
labels: ["support", "triage"]
|
||||||
|
assignees: []
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem you are having
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Visible on the Debug page in the Web UI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: config
|
||||||
|
attributes:
|
||||||
|
label: Frigate config file
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant log output
|
||||||
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: ffprobe
|
||||||
|
attributes:
|
||||||
|
label: FFprobe output from your camera
|
||||||
|
description: Run `ffprobe <camera_url>` and provide output below
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: stats
|
||||||
|
attributes:
|
||||||
|
label: Frigate stats
|
||||||
|
description: Output from frigate's /api/stats endpoint
|
||||||
|
render: json
|
||||||
|
- type: dropdown
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
options:
|
||||||
|
- HassOS
|
||||||
|
- Debian
|
||||||
|
- Other Linux
|
||||||
|
- Proxmox
|
||||||
|
- UNRAID
|
||||||
|
- Windows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Install method
|
||||||
|
options:
|
||||||
|
- HassOS Addon
|
||||||
|
- Docker Compose
|
||||||
|
- Docker CLI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: coral
|
||||||
|
attributes:
|
||||||
|
label: Coral version
|
||||||
|
options:
|
||||||
|
- USB
|
||||||
|
- PCIe
|
||||||
|
- M.2
|
||||||
|
- Dev Board
|
||||||
|
- Other
|
||||||
|
- CPU (no coral)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: network
|
||||||
|
attributes:
|
||||||
|
label: Network connection
|
||||||
|
options:
|
||||||
|
- Wired
|
||||||
|
- Wireless
|
||||||
|
- Mixed
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: camera
|
||||||
|
attributes:
|
||||||
|
label: Camera make and model
|
||||||
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other
|
||||||
|
attributes:
|
||||||
|
label: Any other information that may be helpful
|
96
.github/ISSUE_TEMPLATE/hwaccel_support_request.yml
vendored
Normal file
96
.github/ISSUE_TEMPLATE/hwaccel_support_request.yml
vendored
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
name: Hardware Acceleration Support Request
|
||||||
|
description: Support for setting up GPU hardware acceleration in Frigate
|
||||||
|
title: "[HW Accel Support]: "
|
||||||
|
labels: ["support", "triage"]
|
||||||
|
assignees: []
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem you are having
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Visible on the Debug page in the Web UI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: config
|
||||||
|
attributes:
|
||||||
|
label: Frigate config file
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: docker
|
||||||
|
attributes:
|
||||||
|
label: docker-compose file or Docker CLI command
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant log output
|
||||||
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: ffprobe
|
||||||
|
attributes:
|
||||||
|
label: FFprobe output from your camera
|
||||||
|
description: Run `ffprobe <camera_url>` and provide output below
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
options:
|
||||||
|
- HassOS
|
||||||
|
- Debian
|
||||||
|
- Other Linux
|
||||||
|
- Proxmox
|
||||||
|
- UNRAID
|
||||||
|
- Windows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Install method
|
||||||
|
options:
|
||||||
|
- HassOS Addon
|
||||||
|
- Docker Compose
|
||||||
|
- Docker CLI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: network
|
||||||
|
attributes:
|
||||||
|
label: Network connection
|
||||||
|
options:
|
||||||
|
- Wired
|
||||||
|
- Wireless
|
||||||
|
- Mixed
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: camera
|
||||||
|
attributes:
|
||||||
|
label: Camera make and model
|
||||||
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other
|
||||||
|
attributes:
|
||||||
|
label: Any other information that may be helpful
|
39
.github/actions/setup/action.yml
vendored
Normal file
39
.github/actions/setup/action.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: 'Setup'
|
||||||
|
description: 'Set up QEMU and Buildx'
|
||||||
|
inputs:
|
||||||
|
GITHUB_TOKEN:
|
||||||
|
required: true
|
||||||
|
outputs:
|
||||||
|
image-name:
|
||||||
|
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ steps.create-short-sha.outputs.SHORT_SHA }}
|
||||||
|
cache-name:
|
||||||
|
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:cache
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Remove unnecessary files
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
shell: bash
|
||||||
|
- id: lowercaseRepo
|
||||||
|
uses: ASzc/change-string-case-action@v5
|
||||||
|
with:
|
||||||
|
string: ${{ github.repository }}
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ inputs.GITHUB_TOKEN }}
|
||||||
|
- name: Create version file
|
||||||
|
run: make version
|
||||||
|
shell: bash
|
||||||
|
- id: create-short-sha
|
||||||
|
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
32
.github/dependabot.yml
vendored
Normal file
32
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: dev
|
||||||
|
- package-ecosystem: "docker"
|
||||||
|
directory: "/docker"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: dev
|
||||||
|
- package-ecosystem: "pip"
|
||||||
|
directory: "/docker/main"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: dev
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/web"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: dev
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/docs"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: dev
|
160
.github/workflows/ci.yml
vendored
Normal file
160
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,160 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
- master
|
||||||
|
|
||||||
|
# only run the latest commit to avoid cache overwrites
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHON_VERSION: 3.9
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
amd64_build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: AMD64 Build
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up QEMU and Buildx
|
||||||
|
id: setup
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push amd64 standard build
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: docker/main/Dockerfile
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64
|
||||||
|
target: frigate
|
||||||
|
tags: ${{ steps.setup.outputs.image-name }}-amd64
|
||||||
|
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
||||||
|
- name: Build and push TensorRT (x86 GPU)
|
||||||
|
uses: docker/bake-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
targets: tensorrt
|
||||||
|
files: docker/tensorrt/trt.hcl
|
||||||
|
set: |
|
||||||
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt
|
||||||
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
||||||
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max
|
||||||
|
arm64_build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: ARM Build
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up QEMU and Buildx
|
||||||
|
id: setup
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push arm64 standard build
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: docker/main/Dockerfile
|
||||||
|
push: true
|
||||||
|
platforms: linux/arm64
|
||||||
|
target: frigate
|
||||||
|
tags: |
|
||||||
|
${{ steps.setup.outputs.image-name }}-standard-arm64
|
||||||
|
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
||||||
|
- name: Build and push RPi build
|
||||||
|
uses: docker/bake-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
targets: rpi
|
||||||
|
files: docker/rpi/rpi.hcl
|
||||||
|
set: |
|
||||||
|
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
||||||
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
||||||
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max
|
||||||
|
jetson_jp4_build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Jetson Jetpack 4
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up QEMU and Buildx
|
||||||
|
id: setup
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push TensorRT (Jetson, Jetpack 4)
|
||||||
|
env:
|
||||||
|
ARCH: arm64
|
||||||
|
BASE_IMAGE: timongentzsch/l4t-ubuntu20-opencv:latest
|
||||||
|
SLIM_BASE: timongentzsch/l4t-ubuntu20-opencv:latest
|
||||||
|
TRT_BASE: timongentzsch/l4t-ubuntu20-opencv:latest
|
||||||
|
uses: docker/bake-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
targets: tensorrt
|
||||||
|
files: docker/tensorrt/trt.hcl
|
||||||
|
set: |
|
||||||
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp4
|
||||||
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp4
|
||||||
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp4,mode=max
|
||||||
|
jetson_jp5_build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Jetson Jetpack 5
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up QEMU and Buildx
|
||||||
|
id: setup
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push TensorRT (Jetson, Jetpack 5)
|
||||||
|
env:
|
||||||
|
ARCH: arm64
|
||||||
|
BASE_IMAGE: nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime
|
||||||
|
SLIM_BASE: nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime
|
||||||
|
TRT_BASE: nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime
|
||||||
|
uses: docker/bake-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
targets: tensorrt
|
||||||
|
files: docker/tensorrt/trt.hcl
|
||||||
|
set: |
|
||||||
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp5
|
||||||
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5
|
||||||
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5,mode=max
|
||||||
|
# The majority of users running arm64 are rpi users, so the rpi
|
||||||
|
# build should be the primary arm64 image
|
||||||
|
assemble_default_build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Assemble and push default build
|
||||||
|
needs:
|
||||||
|
- amd64_build
|
||||||
|
- arm64_build
|
||||||
|
steps:
|
||||||
|
- id: lowercaseRepo
|
||||||
|
uses: ASzc/change-string-case-action@v5
|
||||||
|
with:
|
||||||
|
string: ${{ github.repository }}
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Create short sha
|
||||||
|
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||||
|
- uses: int128/docker-manifest-create-action@v1
|
||||||
|
with:
|
||||||
|
tags: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}
|
||||||
|
suffixes: |
|
||||||
|
-amd64
|
||||||
|
-rpi
|
24
.github/workflows/dependabot-auto-merge.yaml
vendored
Normal file
24
.github/workflows/dependabot-auto-merge.yaml
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: dependabot-auto-merge
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependabot-auto-merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
steps:
|
||||||
|
- name: Get Dependabot metadata
|
||||||
|
id: metadata
|
||||||
|
uses: dependabot/fetch-metadata@v1
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
|
if: steps.metadata.outputs.dependency-type == 'direct:development' && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch')
|
||||||
|
run: |
|
||||||
|
gh pr review --approve "$PR_URL"
|
||||||
|
gh pr merge --auto --squash "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
108
.github/workflows/pull_request.yml
vendored
Normal file
108
.github/workflows/pull_request.yml
vendored
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
name: On pull request
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
env:
|
||||||
|
DEFAULT_PYTHON: 3.9
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_devcontainer:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build Devcontainer
|
||||||
|
# The Dockerfile contains features that requires buildkit, and since the
|
||||||
|
# devcontainer cli uses docker-compose to build the image, the only way to
|
||||||
|
# ensure docker-compose uses buildkit is to explicitly enable it.
|
||||||
|
env:
|
||||||
|
DOCKER_BUILDKIT: "1"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@master
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
- name: Install devcontainer cli
|
||||||
|
run: npm install --global @devcontainers/cli
|
||||||
|
- name: Build devcontainer
|
||||||
|
run: devcontainer build --workspace-folder .
|
||||||
|
# It would be nice to also test the following commands, but for some
|
||||||
|
# reason they don't work even though in VS Code devcontainer works.
|
||||||
|
# - name: Start devcontainer
|
||||||
|
# run: devcontainer up --workspace-folder .
|
||||||
|
# - name: Run devcontainer scripts
|
||||||
|
# run: devcontainer run-user-commands --workspace-folder .
|
||||||
|
|
||||||
|
web_lint:
|
||||||
|
name: Web - Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@master
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
- run: npm install
|
||||||
|
working-directory: ./web
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
working-directory: ./web
|
||||||
|
|
||||||
|
web_test:
|
||||||
|
name: Web - Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@master
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
- run: npm install
|
||||||
|
working-directory: ./web
|
||||||
|
- name: Test
|
||||||
|
run: npm run test
|
||||||
|
working-directory: ./web
|
||||||
|
|
||||||
|
python_checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Python Checks
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
|
||||||
|
uses: actions/setup-python@v4.7.1
|
||||||
|
with:
|
||||||
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
||||||
|
- name: Install requirements
|
||||||
|
run: |
|
||||||
|
python3 -m pip install -U pip
|
||||||
|
python3 -m pip install -r docker/main/requirements-dev.txt
|
||||||
|
- name: Check black
|
||||||
|
run: |
|
||||||
|
black --check --diff frigate migrations docker *.py
|
||||||
|
- name: Check isort
|
||||||
|
run: |
|
||||||
|
isort --check --diff frigate migrations docker *.py
|
||||||
|
- name: Check ruff
|
||||||
|
run: |
|
||||||
|
ruff check frigate migrations docker *.py
|
||||||
|
|
||||||
|
python_tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Python Tests
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@master
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
- run: npm install
|
||||||
|
working-directory: ./web
|
||||||
|
- name: Build web
|
||||||
|
run: npm run build
|
||||||
|
working-directory: ./web
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Build
|
||||||
|
run: make
|
||||||
|
- name: Run mypy
|
||||||
|
run: docker run --rm --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate
|
||||||
|
- name: Run tests
|
||||||
|
run: docker run --rm --entrypoint=python3 frigate:latest -u -m unittest
|
62
.github/workflows/release.yml
vendored
Normal file
62
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
name: On release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- id: lowercaseRepo
|
||||||
|
uses: ASzc/change-string-case-action@v5
|
||||||
|
with:
|
||||||
|
string: ${{ github.repository }}
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Create tag variables
|
||||||
|
run: |
|
||||||
|
echo "BASE=ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}" >> $GITHUB_ENV
|
||||||
|
echo "BUILD_TAG=${{ github.ref_name }}-${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||||
|
echo "CLEAN_VERSION=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/^[v]//')" >> $GITHUB_ENV
|
||||||
|
- name: Tag and push the main image
|
||||||
|
run: |
|
||||||
|
VERSION_TAG=${BASE}:${CLEAN_VERSION}
|
||||||
|
PULL_TAG=${BASE}:${BUILD_TAG}
|
||||||
|
docker pull ${PULL_TAG}
|
||||||
|
docker tag ${PULL_TAG} ${VERSION_TAG}
|
||||||
|
docker push ${VERSION_TAG}
|
||||||
|
- name: Tag and push standard arm64
|
||||||
|
run: |
|
||||||
|
VERSION_TAG=${BASE}:${CLEAN_VERSION}-standard-arm64
|
||||||
|
PULL_TAG=${BASE}:${BUILD_TAG}-standard-arm64
|
||||||
|
docker pull ${PULL_TAG}
|
||||||
|
docker tag ${PULL_TAG} ${VERSION_TAG}
|
||||||
|
docker push ${VERSION_TAG}
|
||||||
|
- name: Tag and push tensorrt
|
||||||
|
run: |
|
||||||
|
VERSION_TAG=${BASE}:${CLEAN_VERSION}-tensorrt
|
||||||
|
PULL_TAG=${BASE}:${BUILD_TAG}-tensorrt
|
||||||
|
docker pull ${PULL_TAG}
|
||||||
|
docker tag ${PULL_TAG} ${VERSION_TAG}
|
||||||
|
docker push ${VERSION_TAG}
|
||||||
|
- name: Tag and push tensorrt-jp4
|
||||||
|
run: |
|
||||||
|
VERSION_TAG=${BASE}:${CLEAN_VERSION}-tensorrt-jp4
|
||||||
|
PULL_TAG=${BASE}:${BUILD_TAG}-tensorrt-jp4
|
||||||
|
docker pull ${PULL_TAG}
|
||||||
|
docker tag ${PULL_TAG} ${VERSION_TAG}
|
||||||
|
docker push ${VERSION_TAG}
|
||||||
|
- name: Tag and push tensorrt-jp5
|
||||||
|
run: |
|
||||||
|
VERSION_TAG=${BASE}:${CLEAN_VERSION}-tensorrt-jp5
|
||||||
|
PULL_TAG=${BASE}:${BUILD_TAG}-tensorrt-jp5
|
||||||
|
docker pull ${PULL_TAG}
|
||||||
|
docker tag ${PULL_TAG} ${VERSION_TAG}
|
||||||
|
docker push ${VERSION_TAG}
|
26
.github/workflows/stale.yml
vendored
Normal file
26
.github/workflows/stale.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Close Stale Issues
|
||||||
|
# Warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
||||||
|
# https://github.com/actions/stale
|
||||||
|
|
||||||
|
name: "Stalebot"
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *" # run stalebot once a day
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@main
|
||||||
|
id: stale
|
||||||
|
with:
|
||||||
|
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
|
||||||
|
close-issue-message: ""
|
||||||
|
days-before-stale: 30
|
||||||
|
days-before-close: 3
|
||||||
|
exempt-draft-pr: true
|
||||||
|
exempt-issue-labels: "pinned,security"
|
||||||
|
exempt-pr-labels: "pinned,security,dependencies"
|
||||||
|
operations-per-run: 120
|
||||||
|
- name: Print outputs
|
||||||
|
run: echo ${{ join(steps.stale.outputs.*, ',') }}
|
22
.gitignore
vendored
22
.gitignore
vendored
@@ -1,4 +1,20 @@
|
|||||||
*.pyc
|
.DS_Store
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
debug
|
debug
|
||||||
.vscode
|
.vscode/*
|
||||||
config/config.yml
|
!.vscode/launch.json
|
||||||
|
config/*
|
||||||
|
!config/*.example
|
||||||
|
models
|
||||||
|
*.mp4
|
||||||
|
*.ts
|
||||||
|
*.db
|
||||||
|
*.csv
|
||||||
|
frigate/version.py
|
||||||
|
web/build
|
||||||
|
web/node_modules
|
||||||
|
web/coverage
|
||||||
|
core
|
||||||
|
!/web/**/*.ts
|
||||||
|
.idea/*
|
588
.pylintrc
Normal file
588
.pylintrc
Normal file
@@ -0,0 +1,588 @@
|
|||||||
|
[MASTER]
|
||||||
|
|
||||||
|
# A comma-separated list of package or module names from where C extensions may
|
||||||
|
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||||
|
# run arbitrary code.
|
||||||
|
extension-pkg-whitelist=
|
||||||
|
|
||||||
|
# Specify a score threshold to be exceeded before program exits with error.
|
||||||
|
fail-under=10.0
|
||||||
|
|
||||||
|
# Add files or directories to the blacklist. They should be base names, not
|
||||||
|
# paths.
|
||||||
|
ignore=CVS
|
||||||
|
|
||||||
|
# Add files or directories matching the regex patterns to the blacklist. The
|
||||||
|
# regex matches against base names, not paths.
|
||||||
|
ignore-patterns=
|
||||||
|
|
||||||
|
# Python code to execute, usually for sys.path manipulation such as
|
||||||
|
# pygtk.require().
|
||||||
|
#init-hook=
|
||||||
|
|
||||||
|
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
|
||||||
|
# number of processors available to use.
|
||||||
|
jobs=1
|
||||||
|
|
||||||
|
# Control the amount of potential inferred values when inferring a single
|
||||||
|
# object. This can help the performance when dealing with large functions or
|
||||||
|
# complex, nested conditions.
|
||||||
|
limit-inference-results=100
|
||||||
|
|
||||||
|
# List of plugins (as comma separated values of python module names) to load,
|
||||||
|
# usually to register additional checkers.
|
||||||
|
load-plugins=
|
||||||
|
|
||||||
|
# Pickle collected data for later comparisons.
|
||||||
|
persistent=yes
|
||||||
|
|
||||||
|
# When enabled, pylint would attempt to guess common misconfiguration and emit
|
||||||
|
# user-friendly hints instead of false-positive error messages.
|
||||||
|
suggestion-mode=yes
|
||||||
|
|
||||||
|
# Allow loading of arbitrary C extensions. Extensions are imported into the
|
||||||
|
# active Python interpreter and may run arbitrary code.
|
||||||
|
unsafe-load-any-extension=no
|
||||||
|
|
||||||
|
|
||||||
|
[MESSAGES CONTROL]
|
||||||
|
|
||||||
|
# Only show warnings with the listed confidence levels. Leave empty to show
|
||||||
|
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
|
||||||
|
confidence=
|
||||||
|
|
||||||
|
# Disable the message, report, category or checker with the given id(s). You
|
||||||
|
# can either give multiple identifiers separated by comma (,) or put this
|
||||||
|
# option multiple times (only on the command line, not in the configuration
|
||||||
|
# file where it should appear only once). You can also use "--disable=all" to
|
||||||
|
# disable everything first and then reenable specific checks. For example, if
|
||||||
|
# you want to run only the similarities checker, you can use "--disable=all
|
||||||
|
# --enable=similarities". If you want to run only the classes checker, but have
|
||||||
|
# no Warning level messages displayed, use "--disable=all --enable=classes
|
||||||
|
# --disable=W".
|
||||||
|
disable=print-statement,
|
||||||
|
parameter-unpacking,
|
||||||
|
unpacking-in-except,
|
||||||
|
old-raise-syntax,
|
||||||
|
backtick,
|
||||||
|
long-suffix,
|
||||||
|
old-ne-operator,
|
||||||
|
old-octal-literal,
|
||||||
|
import-star-module-level,
|
||||||
|
non-ascii-bytes-literal,
|
||||||
|
raw-checker-failed,
|
||||||
|
bad-inline-option,
|
||||||
|
locally-disabled,
|
||||||
|
file-ignored,
|
||||||
|
suppressed-message,
|
||||||
|
useless-suppression,
|
||||||
|
deprecated-pragma,
|
||||||
|
use-symbolic-message-instead,
|
||||||
|
apply-builtin,
|
||||||
|
basestring-builtin,
|
||||||
|
buffer-builtin,
|
||||||
|
cmp-builtin,
|
||||||
|
coerce-builtin,
|
||||||
|
execfile-builtin,
|
||||||
|
file-builtin,
|
||||||
|
long-builtin,
|
||||||
|
raw_input-builtin,
|
||||||
|
reduce-builtin,
|
||||||
|
standarderror-builtin,
|
||||||
|
unicode-builtin,
|
||||||
|
xrange-builtin,
|
||||||
|
coerce-method,
|
||||||
|
delslice-method,
|
||||||
|
getslice-method,
|
||||||
|
setslice-method,
|
||||||
|
no-absolute-import,
|
||||||
|
old-division,
|
||||||
|
dict-iter-method,
|
||||||
|
dict-view-method,
|
||||||
|
next-method-called,
|
||||||
|
metaclass-assignment,
|
||||||
|
indexing-exception,
|
||||||
|
raising-string,
|
||||||
|
reload-builtin,
|
||||||
|
oct-method,
|
||||||
|
hex-method,
|
||||||
|
nonzero-method,
|
||||||
|
cmp-method,
|
||||||
|
input-builtin,
|
||||||
|
round-builtin,
|
||||||
|
intern-builtin,
|
||||||
|
unichr-builtin,
|
||||||
|
map-builtin-not-iterating,
|
||||||
|
zip-builtin-not-iterating,
|
||||||
|
range-builtin-not-iterating,
|
||||||
|
filter-builtin-not-iterating,
|
||||||
|
using-cmp-argument,
|
||||||
|
eq-without-hash,
|
||||||
|
div-method,
|
||||||
|
idiv-method,
|
||||||
|
rdiv-method,
|
||||||
|
exception-message-attribute,
|
||||||
|
invalid-str-codec,
|
||||||
|
sys-max-int,
|
||||||
|
bad-python3-import,
|
||||||
|
deprecated-string-function,
|
||||||
|
deprecated-str-translate-call,
|
||||||
|
deprecated-itertools-function,
|
||||||
|
deprecated-types-field,
|
||||||
|
next-method-defined,
|
||||||
|
dict-items-not-iterating,
|
||||||
|
dict-keys-not-iterating,
|
||||||
|
dict-values-not-iterating,
|
||||||
|
deprecated-operator-function,
|
||||||
|
deprecated-urllib-function,
|
||||||
|
xreadlines-attribute,
|
||||||
|
deprecated-sys-function,
|
||||||
|
exception-escape,
|
||||||
|
comprehension-escape
|
||||||
|
|
||||||
|
# Enable the message, report, category or checker with the given id(s). You can
|
||||||
|
# either give multiple identifier separated by comma (,) or put this option
|
||||||
|
# multiple time (only on the command line, not in the configuration file where
|
||||||
|
# it should appear only once). See also the "--disable" option for examples.
|
||||||
|
enable=c-extension-no-member
|
||||||
|
|
||||||
|
|
||||||
|
[REPORTS]
|
||||||
|
|
||||||
|
# Python expression which should return a score less than or equal to 10. You
|
||||||
|
# have access to the variables 'error', 'warning', 'refactor', and 'convention'
|
||||||
|
# which contain the number of messages in each category, as well as 'statement'
|
||||||
|
# which is the total number of statements analyzed. This score is used by the
|
||||||
|
# global evaluation report (RP0004).
|
||||||
|
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
||||||
|
|
||||||
|
# Template used to display messages. This is a python new-style format string
|
||||||
|
# used to format the message information. See doc for all details.
|
||||||
|
#msg-template=
|
||||||
|
|
||||||
|
# Set the output format. Available formats are text, parseable, colorized, json
|
||||||
|
# and msvs (visual studio). You can also give a reporter class, e.g.
|
||||||
|
# mypackage.mymodule.MyReporterClass.
|
||||||
|
output-format=text
|
||||||
|
|
||||||
|
# Tells whether to display a full report or only the messages.
|
||||||
|
reports=no
|
||||||
|
|
||||||
|
# Activate the evaluation score.
|
||||||
|
score=yes
|
||||||
|
|
||||||
|
|
||||||
|
[REFACTORING]
|
||||||
|
|
||||||
|
# Maximum number of nested blocks for function / method body
|
||||||
|
max-nested-blocks=5
|
||||||
|
|
||||||
|
# Complete name of functions that never returns. When checking for
|
||||||
|
# inconsistent-return-statements if a never returning function is called then
|
||||||
|
# it will be considered as an explicit return statement and no message will be
|
||||||
|
# printed.
|
||||||
|
never-returning-functions=sys.exit
|
||||||
|
|
||||||
|
|
||||||
|
[SPELLING]
|
||||||
|
|
||||||
|
# Limits count of emitted suggestions for spelling mistakes.
|
||||||
|
max-spelling-suggestions=4
|
||||||
|
|
||||||
|
# Spelling dictionary name. Available dictionaries: none. To make it work,
|
||||||
|
# install the python-enchant package.
|
||||||
|
spelling-dict=
|
||||||
|
|
||||||
|
# List of comma separated words that should not be checked.
|
||||||
|
spelling-ignore-words=
|
||||||
|
|
||||||
|
# A path to a file that contains the private dictionary; one word per line.
|
||||||
|
spelling-private-dict-file=
|
||||||
|
|
||||||
|
# Tells whether to store unknown words to the private dictionary (see the
|
||||||
|
# --spelling-private-dict-file option) instead of raising a message.
|
||||||
|
spelling-store-unknown-words=no
|
||||||
|
|
||||||
|
|
||||||
|
[TYPECHECK]
|
||||||
|
|
||||||
|
# List of decorators that produce context managers, such as
|
||||||
|
# contextlib.contextmanager. Add to this list to register other decorators that
|
||||||
|
# produce valid context managers.
|
||||||
|
contextmanager-decorators=contextlib.contextmanager
|
||||||
|
|
||||||
|
# List of members which are set dynamically and missed by pylint inference
|
||||||
|
# system, and so shouldn't trigger E1101 when accessed. Python regular
|
||||||
|
# expressions are accepted.
|
||||||
|
generated-members=
|
||||||
|
|
||||||
|
# Tells whether missing members accessed in mixin class should be ignored. A
|
||||||
|
# mixin class is detected if its name ends with "mixin" (case insensitive).
|
||||||
|
ignore-mixin-members=yes
|
||||||
|
|
||||||
|
# Tells whether to warn about missing members when the owner of the attribute
|
||||||
|
# is inferred to be None.
|
||||||
|
ignore-none=yes
|
||||||
|
|
||||||
|
# This flag controls whether pylint should warn about no-member and similar
|
||||||
|
# checks whenever an opaque object is returned when inferring. The inference
|
||||||
|
# can return multiple potential results while evaluating a Python object, but
|
||||||
|
# some branches might not be evaluated, which results in partial inference. In
|
||||||
|
# that case, it might be useful to still emit no-member and other checks for
|
||||||
|
# the rest of the inferred objects.
|
||||||
|
ignore-on-opaque-inference=yes
|
||||||
|
|
||||||
|
# List of class names for which member attributes should not be checked (useful
|
||||||
|
# for classes with dynamically set attributes). This supports the use of
|
||||||
|
# qualified names.
|
||||||
|
ignored-classes=optparse.Values,thread._local,_thread._local
|
||||||
|
|
||||||
|
# List of module names for which member attributes should not be checked
|
||||||
|
# (useful for modules/projects where namespaces are manipulated during runtime
|
||||||
|
# and thus existing member attributes cannot be deduced by static analysis). It
|
||||||
|
# supports qualified module names, as well as Unix pattern matching.
|
||||||
|
ignored-modules=
|
||||||
|
|
||||||
|
# Show a hint with possible names when a member name was not found. The aspect
|
||||||
|
# of finding the hint is based on edit distance.
|
||||||
|
missing-member-hint=yes
|
||||||
|
|
||||||
|
# The minimum edit distance a name should have in order to be considered a
|
||||||
|
# similar match for a missing member name.
|
||||||
|
missing-member-hint-distance=1
|
||||||
|
|
||||||
|
# The total number of similar names that should be taken in consideration when
|
||||||
|
# showing a hint for a missing member.
|
||||||
|
missing-member-max-choices=1
|
||||||
|
|
||||||
|
# List of decorators that change the signature of a decorated function.
|
||||||
|
signature-mutators=
|
||||||
|
|
||||||
|
|
||||||
|
[STRING]
|
||||||
|
|
||||||
|
# This flag controls whether inconsistent-quotes generates a warning when the
|
||||||
|
# character used as a quote delimiter is used inconsistently within a module.
|
||||||
|
check-quote-consistency=no
|
||||||
|
|
||||||
|
# This flag controls whether the implicit-str-concat should generate a warning
|
||||||
|
# on implicit string concatenation in sequences defined over several lines.
|
||||||
|
check-str-concat-over-line-jumps=no
|
||||||
|
|
||||||
|
|
||||||
|
[FORMAT]
|
||||||
|
|
||||||
|
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
|
||||||
|
expected-line-ending-format=
|
||||||
|
|
||||||
|
# Regexp for a line that is allowed to be longer than the limit.
|
||||||
|
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
||||||
|
|
||||||
|
# Number of spaces of indent required inside a hanging or continued line.
|
||||||
|
indent-after-paren=4
|
||||||
|
|
||||||
|
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
|
||||||
|
# tab).
|
||||||
|
indent-string=' '
|
||||||
|
|
||||||
|
# Maximum number of characters on a single line.
|
||||||
|
max-line-length=100
|
||||||
|
|
||||||
|
# Maximum number of lines in a module.
|
||||||
|
max-module-lines=1000
|
||||||
|
|
||||||
|
# Allow the body of a class to be on the same line as the declaration if body
|
||||||
|
# contains single statement.
|
||||||
|
single-line-class-stmt=no
|
||||||
|
|
||||||
|
# Allow the body of an if to be on the same line as the test if there is no
|
||||||
|
# else.
|
||||||
|
single-line-if-stmt=no
|
||||||
|
|
||||||
|
|
||||||
|
[SIMILARITIES]
|
||||||
|
|
||||||
|
# Ignore comments when computing similarities.
|
||||||
|
ignore-comments=yes
|
||||||
|
|
||||||
|
# Ignore docstrings when computing similarities.
|
||||||
|
ignore-docstrings=yes
|
||||||
|
|
||||||
|
# Ignore imports when computing similarities.
|
||||||
|
ignore-imports=no
|
||||||
|
|
||||||
|
# Minimum lines number of a similarity.
|
||||||
|
min-similarity-lines=4
|
||||||
|
|
||||||
|
|
||||||
|
[MISCELLANEOUS]
|
||||||
|
|
||||||
|
# List of note tags to take in consideration, separated by a comma.
|
||||||
|
notes=FIXME,
|
||||||
|
XXX,
|
||||||
|
TODO
|
||||||
|
|
||||||
|
# Regular expression of note tags to take in consideration.
|
||||||
|
#notes-rgx=
|
||||||
|
|
||||||
|
|
||||||
|
[BASIC]
|
||||||
|
|
||||||
|
# Naming style matching correct argument names.
|
||||||
|
argument-naming-style=snake_case
|
||||||
|
|
||||||
|
# Regular expression matching correct argument names. Overrides argument-
|
||||||
|
# naming-style.
|
||||||
|
#argument-rgx=
|
||||||
|
|
||||||
|
# Naming style matching correct attribute names.
|
||||||
|
attr-naming-style=snake_case
|
||||||
|
|
||||||
|
# Regular expression matching correct attribute names. Overrides attr-naming-
|
||||||
|
# style.
|
||||||
|
#attr-rgx=
|
||||||
|
|
||||||
|
# Bad variable names which should always be refused, separated by a comma.
|
||||||
|
bad-names=foo,
|
||||||
|
bar,
|
||||||
|
baz,
|
||||||
|
toto,
|
||||||
|
tutu,
|
||||||
|
tata
|
||||||
|
|
||||||
|
# Bad variable names regexes, separated by a comma. If names match any regex,
|
||||||
|
# they will always be refused
|
||||||
|
bad-names-rgxs=
|
||||||
|
|
||||||
|
# Naming style matching correct class attribute names.
|
||||||
|
class-attribute-naming-style=any
|
||||||
|
|
||||||
|
# Regular expression matching correct class attribute names. Overrides class-
|
||||||
|
# attribute-naming-style.
|
||||||
|
#class-attribute-rgx=
|
||||||
|
|
||||||
|
# Naming style matching correct class names.
|
||||||
|
class-naming-style=PascalCase
|
||||||
|
|
||||||
|
# Regular expression matching correct class names. Overrides class-naming-
|
||||||
|
# style.
|
||||||
|
#class-rgx=
|
||||||
|
|
||||||
|
# Naming style matching correct constant names.
|
||||||
|
const-naming-style=UPPER_CASE
|
||||||
|
|
||||||
|
# Regular expression matching correct constant names. Overrides const-naming-
|
||||||
|
# style.
|
||||||
|
#const-rgx=
|
||||||
|
|
||||||
|
# Minimum line length for functions/classes that require docstrings, shorter
|
||||||
|
# ones are exempt.
|
||||||
|
docstring-min-length=-1
|
||||||
|
|
||||||
|
# Naming style matching correct function names.
|
||||||
|
function-naming-style=snake_case
|
||||||
|
|
||||||
|
# Regular expression matching correct function names. Overrides function-
|
||||||
|
# naming-style.
|
||||||
|
#function-rgx=
|
||||||
|
|
||||||
|
# Good variable names which should always be accepted, separated by a comma.
|
||||||
|
good-names=i,
|
||||||
|
j,
|
||||||
|
k,
|
||||||
|
ex,
|
||||||
|
Run,
|
||||||
|
_
|
||||||
|
|
||||||
|
# Good variable names regexes, separated by a comma. If names match any regex,
|
||||||
|
# they will always be accepted
|
||||||
|
good-names-rgxs=
|
||||||
|
|
||||||
|
# Include a hint for the correct naming format with invalid-name.
|
||||||
|
include-naming-hint=no
|
||||||
|
|
||||||
|
# Naming style matching correct inline iteration names.
|
||||||
|
inlinevar-naming-style=any
|
||||||
|
|
||||||
|
# Regular expression matching correct inline iteration names. Overrides
|
||||||
|
# inlinevar-naming-style.
|
||||||
|
#inlinevar-rgx=
|
||||||
|
|
||||||
|
# Naming style matching correct method names.
|
||||||
|
method-naming-style=snake_case
|
||||||
|
|
||||||
|
# Regular expression matching correct method names. Overrides method-naming-
|
||||||
|
# style.
|
||||||
|
#method-rgx=
|
||||||
|
|
||||||
|
# Naming style matching correct module names.
|
||||||
|
module-naming-style=snake_case
|
||||||
|
|
||||||
|
# Regular expression matching correct module names. Overrides module-naming-
|
||||||
|
# style.
|
||||||
|
#module-rgx=
|
||||||
|
|
||||||
|
# Colon-delimited sets of names that determine each other's naming style when
|
||||||
|
# the name regexes allow several styles.
|
||||||
|
name-group=
|
||||||
|
|
||||||
|
# Regular expression which should only match function or class names that do
|
||||||
|
# not require a docstring.
|
||||||
|
no-docstring-rgx=^_
|
||||||
|
|
||||||
|
# List of decorators that produce properties, such as abc.abstractproperty. Add
|
||||||
|
# to this list to register other decorators that produce valid properties.
|
||||||
|
# These decorators are taken in consideration only for invalid-name.
|
||||||
|
property-classes=abc.abstractproperty
|
||||||
|
|
||||||
|
# Naming style matching correct variable names.
|
||||||
|
variable-naming-style=snake_case
|
||||||
|
|
||||||
|
# Regular expression matching correct variable names. Overrides variable-
|
||||||
|
# naming-style.
|
||||||
|
#variable-rgx=
|
||||||
|
|
||||||
|
|
||||||
|
[VARIABLES]
|
||||||
|
|
||||||
|
# List of additional names supposed to be defined in builtins. Remember that
|
||||||
|
# you should avoid defining new builtins when possible.
|
||||||
|
additional-builtins=
|
||||||
|
|
||||||
|
# Tells whether unused global variables should be treated as a violation.
|
||||||
|
allow-global-unused-variables=yes
|
||||||
|
|
||||||
|
# List of strings which can identify a callback function by name. A callback
|
||||||
|
# name must start or end with one of those strings.
|
||||||
|
callbacks=cb_,
|
||||||
|
_cb
|
||||||
|
|
||||||
|
# A regular expression matching the name of dummy variables (i.e. expected to
|
||||||
|
# not be used).
|
||||||
|
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
|
||||||
|
|
||||||
|
# Argument names that match this expression will be ignored. Default to name
|
||||||
|
# with leading underscore.
|
||||||
|
ignored-argument-names=_.*|^ignored_|^unused_
|
||||||
|
|
||||||
|
# Tells whether we should check for unused import in __init__ files.
|
||||||
|
init-import=no
|
||||||
|
|
||||||
|
# List of qualified module names which can have objects that can redefine
|
||||||
|
# builtins.
|
||||||
|
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
|
||||||
|
|
||||||
|
|
||||||
|
[LOGGING]
|
||||||
|
|
||||||
|
# The type of string formatting that logging methods do. `old` means using %
|
||||||
|
# formatting, `new` is for `{}` formatting.
|
||||||
|
logging-format-style=fstr
|
||||||
|
|
||||||
|
# Logging modules to check that the string format arguments are in logging
|
||||||
|
# function parameter format.
|
||||||
|
logging-modules=logging
|
||||||
|
|
||||||
|
|
||||||
|
[DESIGN]
|
||||||
|
|
||||||
|
# Maximum number of arguments for function / method.
|
||||||
|
max-args=5
|
||||||
|
|
||||||
|
# Maximum number of attributes for a class (see R0902).
|
||||||
|
max-attributes=7
|
||||||
|
|
||||||
|
# Maximum number of boolean expressions in an if statement (see R0916).
|
||||||
|
max-bool-expr=5
|
||||||
|
|
||||||
|
# Maximum number of branch for function / method body.
|
||||||
|
max-branches=12
|
||||||
|
|
||||||
|
# Maximum number of locals for function / method body.
|
||||||
|
max-locals=15
|
||||||
|
|
||||||
|
# Maximum number of parents for a class (see R0901).
|
||||||
|
max-parents=7
|
||||||
|
|
||||||
|
# Maximum number of public methods for a class (see R0904).
|
||||||
|
max-public-methods=20
|
||||||
|
|
||||||
|
# Maximum number of return / yield for function / method body.
|
||||||
|
max-returns=6
|
||||||
|
|
||||||
|
# Maximum number of statements in function / method body.
|
||||||
|
max-statements=50
|
||||||
|
|
||||||
|
# Minimum number of public methods for a class (see R0903).
|
||||||
|
min-public-methods=2
|
||||||
|
|
||||||
|
|
||||||
|
[CLASSES]
|
||||||
|
|
||||||
|
# List of method names used to declare (i.e. assign) instance attributes.
|
||||||
|
defining-attr-methods=__init__,
|
||||||
|
__new__,
|
||||||
|
setUp,
|
||||||
|
__post_init__
|
||||||
|
|
||||||
|
# List of member names, which should be excluded from the protected access
|
||||||
|
# warning.
|
||||||
|
exclude-protected=_asdict,
|
||||||
|
_fields,
|
||||||
|
_replace,
|
||||||
|
_source,
|
||||||
|
_make
|
||||||
|
|
||||||
|
# List of valid names for the first argument in a class method.
|
||||||
|
valid-classmethod-first-arg=cls
|
||||||
|
|
||||||
|
# List of valid names for the first argument in a metaclass class method.
|
||||||
|
valid-metaclass-classmethod-first-arg=cls
|
||||||
|
|
||||||
|
|
||||||
|
[IMPORTS]
|
||||||
|
|
||||||
|
# List of modules that can be imported at any level, not just the top level
|
||||||
|
# one.
|
||||||
|
allow-any-import-level=
|
||||||
|
|
||||||
|
# Allow wildcard imports from modules that define __all__.
|
||||||
|
allow-wildcard-with-all=no
|
||||||
|
|
||||||
|
# Analyse import fallback blocks. This can be used to support both Python 2 and
|
||||||
|
# 3 compatible code, which means that the block might have code that exists
|
||||||
|
# only in one or another interpreter, leading to false positives when analysed.
|
||||||
|
analyse-fallback-blocks=no
|
||||||
|
|
||||||
|
# Deprecated modules which should not be used, separated by a comma.
|
||||||
|
deprecated-modules=optparse,tkinter.tix
|
||||||
|
|
||||||
|
# Create a graph of external dependencies in the given file (report RP0402 must
|
||||||
|
# not be disabled).
|
||||||
|
ext-import-graph=
|
||||||
|
|
||||||
|
# Create a graph of every (i.e. internal and external) dependencies in the
|
||||||
|
# given file (report RP0402 must not be disabled).
|
||||||
|
import-graph=
|
||||||
|
|
||||||
|
# Create a graph of internal dependencies in the given file (report RP0402 must
|
||||||
|
# not be disabled).
|
||||||
|
int-import-graph=
|
||||||
|
|
||||||
|
# Force import order to recognize a module as part of the standard
|
||||||
|
# compatibility libraries.
|
||||||
|
known-standard-library=
|
||||||
|
|
||||||
|
# Force import order to recognize a module as part of a third party library.
|
||||||
|
known-third-party=enchant
|
||||||
|
|
||||||
|
# Couples of modules and preferred modules, separated by a comma.
|
||||||
|
preferred-modules=
|
||||||
|
|
||||||
|
|
||||||
|
[EXCEPTIONS]
|
||||||
|
|
||||||
|
# Exceptions that will emit a warning when being caught. Defaults to
|
||||||
|
# "BaseException, Exception".
|
||||||
|
overgeneral-exceptions=BaseException,
|
||||||
|
Exception
|
12
.vscode/launch.json
vendored
Normal file
12
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Python: Launch Frigate",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "frigate",
|
||||||
|
"justMyCode": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
4
CODEOWNERS
Normal file
4
CODEOWNERS
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Community-supported boards
|
||||||
|
/docker/tensorrt/ @madsciencetist @NateMeyer
|
||||||
|
/docker/tensorrt/*arm64* @madsciencetist
|
||||||
|
/docker/tensorrt/*jetson* @madsciencetist
|
60
Dockerfile
60
Dockerfile
@@ -1,60 +0,0 @@
|
|||||||
FROM ubuntu:18.04
|
|
||||||
LABEL maintainer "blakeb@blakeshome.com"
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
# Install packages for apt repo
|
|
||||||
RUN apt -qq update && apt -qq install --no-install-recommends -y \
|
|
||||||
software-properties-common \
|
|
||||||
# apt-transport-https ca-certificates \
|
|
||||||
build-essential \
|
|
||||||
gnupg wget unzip \
|
|
||||||
# libcap-dev \
|
|
||||||
&& add-apt-repository ppa:deadsnakes/ppa -y \
|
|
||||||
&& apt -qq install --no-install-recommends -y \
|
|
||||||
python3.7 \
|
|
||||||
python3.7-dev \
|
|
||||||
python3-pip \
|
|
||||||
ffmpeg \
|
|
||||||
# VAAPI drivers for Intel hardware accel
|
|
||||||
libva-drm2 libva2 i965-va-driver vainfo \
|
|
||||||
&& python3.7 -m pip install -U wheel setuptools \
|
|
||||||
&& python3.7 -m pip install -U \
|
|
||||||
opencv-python-headless \
|
|
||||||
# python-prctl \
|
|
||||||
numpy \
|
|
||||||
imutils \
|
|
||||||
scipy \
|
|
||||||
&& python3.7 -m pip install -U \
|
|
||||||
SharedArray \
|
|
||||||
Flask \
|
|
||||||
paho-mqtt \
|
|
||||||
PyYAML \
|
|
||||||
matplotlib \
|
|
||||||
pyarrow \
|
|
||||||
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \
|
|
||||||
&& wget -q -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
|
|
||||||
&& apt -qq update \
|
|
||||||
&& echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections \
|
|
||||||
&& apt -qq install --no-install-recommends -y \
|
|
||||||
libedgetpu1-max \
|
|
||||||
## Tensorflow lite (python 3.7 only)
|
|
||||||
&& wget -q https://dl.google.com/coral/python/tflite_runtime-2.1.0-cp37-cp37m-linux_x86_64.whl \
|
|
||||||
&& python3.7 -m pip install tflite_runtime-2.1.0-cp37-cp37m-linux_x86_64.whl \
|
|
||||||
&& rm tflite_runtime-2.1.0-cp37-cp37m-linux_x86_64.whl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
|
||||||
&& (apt-get autoremove -y; apt-get autoclean -y)
|
|
||||||
|
|
||||||
# get model and labels
|
|
||||||
RUN wget -q https://github.com/google-coral/edgetpu/raw/master/test_data/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite -O /edgetpu_model.tflite --trust-server-names
|
|
||||||
RUN wget -q https://dl.google.com/coral/canned_models/coco_labels.txt -O /labelmap.txt --trust-server-names
|
|
||||||
RUN wget -q https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip -O /cpu_model.zip && \
|
|
||||||
unzip /cpu_model.zip detect.tflite -d / && \
|
|
||||||
mv /detect.tflite /cpu_model.tflite && \
|
|
||||||
rm /cpu_model.zip
|
|
||||||
|
|
||||||
WORKDIR /opt/frigate/
|
|
||||||
ADD frigate frigate/
|
|
||||||
COPY detect_objects.py .
|
|
||||||
COPY benchmark.py .
|
|
||||||
|
|
||||||
CMD ["python3.7", "-u", "detect_objects.py"]
|
|
682
LICENSE
682
LICENSE
@@ -1,661 +1,21 @@
|
|||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
The MIT License
|
||||||
Version 3, 19 November 2007
|
|
||||||
|
Copyright (c) 2020 Blake Blackshear
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this license document, but changing it is not allowed.
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
Preamble
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
furnished to do so, subject to the following conditions:
|
||||||
software and other kinds of works, specifically designed to ensure
|
|
||||||
cooperation with the community in the case of network server software.
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
share and change all versions of a program--to make sure it remains free
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
software for all its users.
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
When we speak of free software, we are referring to freedom, not
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
SOFTWARE.
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
Developers that use our General Public Licenses protect your rights
|
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
|
||||||
you this License which gives you legal permission to copy, distribute
|
|
||||||
and/or modify the software.
|
|
||||||
|
|
||||||
A secondary benefit of defending all users' freedom is that
|
|
||||||
improvements made in alternate versions of the program, if they
|
|
||||||
receive widespread use, become available for other developers to
|
|
||||||
incorporate. Many developers of free software are heartened and
|
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
|
||||||
software used on network servers, this result may fail to come about.
|
|
||||||
The GNU General Public License permits making a modified version and
|
|
||||||
letting the public access it on a server without ever releasing its
|
|
||||||
source code to the public.
|
|
||||||
|
|
||||||
The GNU Affero General Public License is designed specifically to
|
|
||||||
ensure that, in such cases, the modified source code becomes available
|
|
||||||
to the community. It requires the operator of a network server to
|
|
||||||
provide the source code of the modified version running there to the
|
|
||||||
users of that server. Therefore, public use of a modified version, on
|
|
||||||
a publicly accessible server, gives the public access to the source
|
|
||||||
code of the modified version.
|
|
||||||
|
|
||||||
An older license, called the Affero General Public License and
|
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
|
||||||
this license.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, if you modify the
|
|
||||||
Program, your modified version must prominently offer all users
|
|
||||||
interacting with it remotely through a computer network (if your version
|
|
||||||
supports such interaction) an opportunity to receive the Corresponding
|
|
||||||
Source of your version by providing access to the Corresponding Source
|
|
||||||
from a network server at no charge, through some standard or customary
|
|
||||||
means of facilitating copying of software. This Corresponding Source
|
|
||||||
shall include the Corresponding Source for any work covered by version 3
|
|
||||||
of the GNU General Public License that is incorporated pursuant to the
|
|
||||||
following paragraph.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the work with which it is combined will remain governed by version
|
|
||||||
3 of the GNU General Public License.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU Affero General Public License from time to time. Such new versions
|
|
||||||
will be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU Affero General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU Affero General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU Affero General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as published
|
|
||||||
by the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If your software can interact with users remotely through a computer
|
|
||||||
network, you should also make sure that it provides a way for users to
|
|
||||||
get its source. For example, if your program is a web application, its
|
|
||||||
interface could display a "Source" link that leads users to an archive
|
|
||||||
of the code. There are many ways you could offer source, and different
|
|
||||||
solutions will be better for different programs; see section 13 for the
|
|
||||||
specific requirements.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
||||||
<https://www.gnu.org/licenses/>.
|
|
42
Makefile
Normal file
42
Makefile
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
default_target: local
|
||||||
|
|
||||||
|
COMMIT_HASH := $(shell git log -1 --pretty=format:"%h"|tail -1)
|
||||||
|
VERSION = 0.13.0
|
||||||
|
IMAGE_REPO ?= ghcr.io/blakeblackshear/frigate
|
||||||
|
GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
|
CURRENT_UID := $(shell id -u)
|
||||||
|
CURRENT_GID := $(shell id -g)
|
||||||
|
BOARDS= #Initialized empty
|
||||||
|
|
||||||
|
include docker/*/*.mk
|
||||||
|
|
||||||
|
build-boards: $(BOARDS:%=build-%)
|
||||||
|
|
||||||
|
push-boards: $(BOARDS:%=push-%)
|
||||||
|
|
||||||
|
version:
|
||||||
|
echo 'VERSION = "$(VERSION)-$(COMMIT_HASH)"' > frigate/version.py
|
||||||
|
|
||||||
|
local: version
|
||||||
|
docker buildx build --target=frigate --tag frigate:latest --load --file docker/main/Dockerfile .
|
||||||
|
|
||||||
|
amd64:
|
||||||
|
docker buildx build --platform linux/amd64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
||||||
|
|
||||||
|
arm64:
|
||||||
|
docker buildx build --platform linux/arm64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
||||||
|
|
||||||
|
build: version amd64 arm64
|
||||||
|
docker buildx build --platform linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
||||||
|
|
||||||
|
push: push-boards
|
||||||
|
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
||||||
|
|
||||||
|
run: local
|
||||||
|
docker run --rm --publish=5000:5000 --volume=${PWD}/config:/config frigate:latest
|
||||||
|
|
||||||
|
run_tests: local
|
||||||
|
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m unittest
|
||||||
|
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m mypy --config-file frigate/mypy.ini frigate
|
||||||
|
|
||||||
|
.PHONY: run_tests
|
145
README.md
145
README.md
@@ -1,127 +1,46 @@
|
|||||||
# Frigate - Realtime Object Detection for IP Cameras
|
<p align="center">
|
||||||
Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras. Designed for integration with HomeAssistant or others via MQTT.
|
<img align="center" alt="logo" src="docs/static/img/frigate.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
Use of a [Google Coral USB Accelerator](https://coral.withgoogle.com/products/accelerator/) is optional, but highly recommended. On my Intel i7 processor, I can process 2-3 FPS with the CPU. The Coral can process 100+ FPS with very low CPU load.
|
# Frigate - NVR With Realtime Object Detection for IP Cameras
|
||||||
|
|
||||||
|
A complete and local NVR designed for [Home Assistant](https://www.home-assistant.io) with AI object detection. Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras.
|
||||||
|
|
||||||
|
Use of a [Google Coral Accelerator](https://coral.ai/products/) is optional, but highly recommended. The Coral will outperform even the best CPUs and can process 100+ FPS with very little overhead.
|
||||||
|
|
||||||
|
- Tight integration with Home Assistant via a [custom component](https://github.com/blakeblackshear/frigate-hass-integration)
|
||||||
|
- Designed to minimize resource use and maximize performance by only looking for objects when and where it is necessary
|
||||||
- Leverages multiprocessing heavily with an emphasis on realtime over processing every frame
|
- Leverages multiprocessing heavily with an emphasis on realtime over processing every frame
|
||||||
- Uses a very low overhead motion detection to determine where to run object detection
|
- Uses a very low overhead motion detection to determine where to run object detection
|
||||||
- Object detection with Tensorflow runs in a separate process
|
- Object detection with TensorFlow runs in separate processes for maximum FPS
|
||||||
- Object info is published over MQTT for integration into HomeAssistant as a binary sensor
|
- Communicates over MQTT for easy integration into other systems
|
||||||
- An endpoint is available to view an MJPEG stream for debugging, but should not be used continuously
|
- Records video with retention settings based on detected objects
|
||||||
|
- 24/7 recording
|
||||||
|
- Re-streaming via RTSP to reduce the number of connections to your camera
|
||||||
|
- WebRTC & MSE support for low-latency live view
|
||||||
|
|
||||||

|
## Documentation
|
||||||
|
|
||||||
## Example video (from older version)
|
View the documentation at https://docs.frigate.video
|
||||||
You see multiple bounding boxes because it draws bounding boxes from all frames in the past 1 second where a person was detected. Not all of the bounding boxes were from the current frame.
|
|
||||||
[](http://www.youtube.com/watch?v=nqHbCtyo4dY "Frigate")
|
|
||||||
|
|
||||||
## Getting Started
|
## Donations
|
||||||
Run the container with
|
|
||||||
```bash
|
|
||||||
docker run --rm \
|
|
||||||
--privileged \
|
|
||||||
--shm-size=512m \ # should work for a 2-3 cameras
|
|
||||||
-v /dev/bus/usb:/dev/bus/usb \
|
|
||||||
-v <path_to_config_dir>:/config:ro \
|
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
|
||||||
-p 5000:5000 \
|
|
||||||
-e FRIGATE_RTSP_PASSWORD='password' \
|
|
||||||
blakeblackshear/frigate:stable
|
|
||||||
```
|
|
||||||
|
|
||||||
Example docker-compose:
|
If you would like to make a donation to support development, please use [Github Sponsors](https://github.com/sponsors/blakeblackshear).
|
||||||
```yaml
|
|
||||||
frigate:
|
|
||||||
container_name: frigate
|
|
||||||
restart: unless-stopped
|
|
||||||
privileged: true
|
|
||||||
shm_size: '1g' # should work for 5-7 cameras
|
|
||||||
image: blakeblackshear/frigate:stable
|
|
||||||
volumes:
|
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
- <path_to_config>:/config
|
|
||||||
ports:
|
|
||||||
- "5000:5000"
|
|
||||||
environment:
|
|
||||||
FRIGATE_RTSP_PASSWORD: "password"
|
|
||||||
```
|
|
||||||
|
|
||||||
A `config.yml` file must exist in the `config` directory. See example [here](config/config.example.yml) and device specific info can be found [here](docs/DEVICES.md).
|
## Screenshots
|
||||||
|
|
||||||
Access the mjpeg stream at `http://localhost:5000/<camera_name>` and the best snapshot for any object type with at `http://localhost:5000/<camera_name>/<object_name>/best.jpg`
|
Integration into Home Assistant
|
||||||
|
|
||||||
Debug info is available at `http://localhost:5000/debug/stats`
|
<div>
|
||||||
|
<a href="docs/static/img/media_browser.png"><img src="docs/static/img/media_browser.png" height=400></a>
|
||||||
|
<a href="docs/static/img/notification.png"><img src="docs/static/img/notification.png" height=400></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
## Integration with HomeAssistant
|
Also comes with a builtin UI:
|
||||||
```
|
|
||||||
camera:
|
|
||||||
- name: Camera Last Person
|
|
||||||
platform: mqtt
|
|
||||||
topic: frigate/<camera_name>/person/snapshot
|
|
||||||
- name: Camera Last Car
|
|
||||||
platform: mqtt
|
|
||||||
topic: frigate/<camera_name>/car/snapshot
|
|
||||||
|
|
||||||
binary_sensor:
|
<div>
|
||||||
- name: Camera Person
|
<a href="docs/static/img/home-ui.png"><img src="docs/static/img/home-ui.png" height=400></a>
|
||||||
platform: mqtt
|
<a href="docs/static/img/camera-ui.png"><img src="docs/static/img/camera-ui.png" height=400></a>
|
||||||
state_topic: "frigate/<camera_name>/person"
|
</div>
|
||||||
device_class: motion
|
|
||||||
availability_topic: "frigate/available"
|
|
||||||
|
|
||||||
automation:
|

|
||||||
- alias: Alert me if a person is detected while armed away
|
|
||||||
trigger:
|
|
||||||
platform: state
|
|
||||||
entity_id: binary_sensor.camera_person
|
|
||||||
from: 'off'
|
|
||||||
to: 'on'
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: alarm_control_panel.home_alarm
|
|
||||||
state: armed_away
|
|
||||||
action:
|
|
||||||
- service: notify.user_telegram
|
|
||||||
data:
|
|
||||||
message: "A person was detected."
|
|
||||||
data:
|
|
||||||
photo:
|
|
||||||
- url: http://<ip>:5000/<camera_name>/person/best.jpg
|
|
||||||
caption: A person was detected.
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: rest
|
|
||||||
name: Frigate Debug
|
|
||||||
resource: http://localhost:5000/debug/stats
|
|
||||||
scan_interval: 5
|
|
||||||
json_attributes:
|
|
||||||
- back
|
|
||||||
- coral
|
|
||||||
value_template: 'OK'
|
|
||||||
- platform: template
|
|
||||||
sensors:
|
|
||||||
back_fps:
|
|
||||||
value_template: '{{ states.sensor.frigate_debug.attributes["back"]["fps"] }}'
|
|
||||||
unit_of_measurement: 'FPS'
|
|
||||||
back_skipped_fps:
|
|
||||||
value_template: '{{ states.sensor.frigate_debug.attributes["back"]["skipped_fps"] }}'
|
|
||||||
unit_of_measurement: 'FPS'
|
|
||||||
back_detection_fps:
|
|
||||||
value_template: '{{ states.sensor.frigate_debug.attributes["back"]["detection_fps"] }}'
|
|
||||||
unit_of_measurement: 'FPS'
|
|
||||||
frigate_coral_fps:
|
|
||||||
value_template: '{{ states.sensor.frigate_debug.attributes["coral"]["fps"] }}'
|
|
||||||
unit_of_measurement: 'FPS'
|
|
||||||
frigate_coral_inference:
|
|
||||||
value_template: '{{ states.sensor.frigate_debug.attributes["coral"]["inference_speed"] }}'
|
|
||||||
unit_of_measurement: 'ms'
|
|
||||||
```
|
|
||||||
## Using a custom model
|
|
||||||
Models for both CPU and EdgeTPU (Coral) are bundled in the image. You can use your own models with volume mounts:
|
|
||||||
- CPU Model: `/cpu_model.tflite`
|
|
||||||
- EdgeTPU Model: `/edgetpu_model.tflite`
|
|
||||||
- Labels: `/labelmap.txt`
|
|
||||||
|
|
||||||
## Tips
|
|
||||||
- Lower the framerate of the video feed on the camera to reduce the CPU usage for capturing the feed
|
|
||||||
|
521
audio-labelmap.txt
Normal file
521
audio-labelmap.txt
Normal file
@@ -0,0 +1,521 @@
|
|||||||
|
speech
|
||||||
|
speech
|
||||||
|
speech
|
||||||
|
speech
|
||||||
|
babbling
|
||||||
|
speech
|
||||||
|
yell
|
||||||
|
bellow
|
||||||
|
whoop
|
||||||
|
yell
|
||||||
|
yell
|
||||||
|
yell
|
||||||
|
whispering
|
||||||
|
laughter
|
||||||
|
laughter
|
||||||
|
laughter
|
||||||
|
snicker
|
||||||
|
laughter
|
||||||
|
laughter
|
||||||
|
crying
|
||||||
|
crying
|
||||||
|
crying
|
||||||
|
yell
|
||||||
|
sigh
|
||||||
|
singing
|
||||||
|
choir
|
||||||
|
sodeling
|
||||||
|
chant
|
||||||
|
mantra
|
||||||
|
child_singing
|
||||||
|
synthetic_singing
|
||||||
|
rapping
|
||||||
|
humming
|
||||||
|
groan
|
||||||
|
grunt
|
||||||
|
whistling
|
||||||
|
breathing
|
||||||
|
wheeze
|
||||||
|
snoring
|
||||||
|
gasp
|
||||||
|
pant
|
||||||
|
snort
|
||||||
|
cough
|
||||||
|
throat_clearing
|
||||||
|
sneeze
|
||||||
|
sniff
|
||||||
|
run
|
||||||
|
shuffle
|
||||||
|
footsteps
|
||||||
|
chewing
|
||||||
|
biting
|
||||||
|
gargling
|
||||||
|
stomach_rumble
|
||||||
|
burping
|
||||||
|
hiccup
|
||||||
|
fart
|
||||||
|
hands
|
||||||
|
finger_snapping
|
||||||
|
clapping
|
||||||
|
heartbeat
|
||||||
|
heart_murmur
|
||||||
|
cheering
|
||||||
|
applause
|
||||||
|
chatter
|
||||||
|
crowd
|
||||||
|
speech
|
||||||
|
children_playing
|
||||||
|
animal
|
||||||
|
pets
|
||||||
|
dog
|
||||||
|
bark
|
||||||
|
yip
|
||||||
|
howl
|
||||||
|
bow-wow
|
||||||
|
growling
|
||||||
|
whimper_dog
|
||||||
|
cat
|
||||||
|
purr
|
||||||
|
meow
|
||||||
|
hiss
|
||||||
|
caterwaul
|
||||||
|
livestock
|
||||||
|
horse
|
||||||
|
clip-clop
|
||||||
|
neigh
|
||||||
|
cattle
|
||||||
|
moo
|
||||||
|
cowbell
|
||||||
|
pig
|
||||||
|
oink
|
||||||
|
goat
|
||||||
|
bleat
|
||||||
|
sheep
|
||||||
|
fowl
|
||||||
|
chicken
|
||||||
|
cluck
|
||||||
|
cock-a-doodle-doo
|
||||||
|
turkey
|
||||||
|
gobble
|
||||||
|
duck
|
||||||
|
quack
|
||||||
|
goose
|
||||||
|
honk
|
||||||
|
wild_animals
|
||||||
|
roaring_cats
|
||||||
|
roar
|
||||||
|
bird
|
||||||
|
chird
|
||||||
|
chirp
|
||||||
|
squawk
|
||||||
|
pigeon
|
||||||
|
coo
|
||||||
|
crow
|
||||||
|
caw
|
||||||
|
owl
|
||||||
|
hoot
|
||||||
|
flapping_wings
|
||||||
|
dogs
|
||||||
|
rats
|
||||||
|
mouse
|
||||||
|
patter
|
||||||
|
insect
|
||||||
|
cricket
|
||||||
|
mosquito
|
||||||
|
fly
|
||||||
|
buzz
|
||||||
|
buzz
|
||||||
|
frog
|
||||||
|
croak
|
||||||
|
snake
|
||||||
|
rattle
|
||||||
|
whale_vocalization
|
||||||
|
music
|
||||||
|
musical_instrument
|
||||||
|
plucked_string_instrument
|
||||||
|
guitar
|
||||||
|
electric_guitar
|
||||||
|
bass_guitar
|
||||||
|
acoustic_guitar
|
||||||
|
steel_guitar
|
||||||
|
tapping
|
||||||
|
strum
|
||||||
|
banjo
|
||||||
|
sitar
|
||||||
|
mandolin
|
||||||
|
zither
|
||||||
|
ukulele
|
||||||
|
keyboard
|
||||||
|
piano
|
||||||
|
electric_piano
|
||||||
|
organ
|
||||||
|
electronic_organ
|
||||||
|
hammond_organ
|
||||||
|
synthesizer
|
||||||
|
sampler
|
||||||
|
harpsichord
|
||||||
|
percussion
|
||||||
|
drum_kit
|
||||||
|
drum_machine
|
||||||
|
drum
|
||||||
|
snare_drum
|
||||||
|
rimshot
|
||||||
|
drum_roll
|
||||||
|
bass_drum
|
||||||
|
timpani
|
||||||
|
tabla
|
||||||
|
cymbal
|
||||||
|
hi-hat
|
||||||
|
wood_block
|
||||||
|
tambourine
|
||||||
|
rattle
|
||||||
|
maraca
|
||||||
|
gong
|
||||||
|
tubular_bells
|
||||||
|
mallet_percussion
|
||||||
|
marimba
|
||||||
|
glockenspiel
|
||||||
|
vibraphone
|
||||||
|
steelpan
|
||||||
|
orchestra
|
||||||
|
brass_instrument
|
||||||
|
french_horn
|
||||||
|
trumpet
|
||||||
|
trombone
|
||||||
|
bowed_string_instrument
|
||||||
|
string_section
|
||||||
|
violin
|
||||||
|
pizzicato
|
||||||
|
cello
|
||||||
|
double_bass
|
||||||
|
wind_instrument
|
||||||
|
flute
|
||||||
|
saxophone
|
||||||
|
clarinet
|
||||||
|
harp
|
||||||
|
bell
|
||||||
|
church_bell
|
||||||
|
jingle_bell
|
||||||
|
bicycle_bell
|
||||||
|
tuning_fork
|
||||||
|
chime
|
||||||
|
wind_chime
|
||||||
|
change_ringing
|
||||||
|
harmonica
|
||||||
|
accordion
|
||||||
|
bagpipes
|
||||||
|
didgeridoo
|
||||||
|
shofar
|
||||||
|
theremin
|
||||||
|
singing_bowl
|
||||||
|
scratching
|
||||||
|
pop_music
|
||||||
|
hip_hop_music
|
||||||
|
beatboxing
|
||||||
|
rock_music
|
||||||
|
heavy_metal
|
||||||
|
punk_rock
|
||||||
|
grunge
|
||||||
|
progressive_rock
|
||||||
|
rock_and_roll
|
||||||
|
psychedelic_rock
|
||||||
|
rhythm_and_blues
|
||||||
|
soul_music
|
||||||
|
reggae
|
||||||
|
country
|
||||||
|
swing_music
|
||||||
|
bluegrass
|
||||||
|
funk
|
||||||
|
folk_music
|
||||||
|
middle_eastern_music
|
||||||
|
jazz
|
||||||
|
disco
|
||||||
|
classical_music
|
||||||
|
opera
|
||||||
|
electronic_music
|
||||||
|
house_music
|
||||||
|
techno
|
||||||
|
dubstep
|
||||||
|
drum_and_bass
|
||||||
|
electronica
|
||||||
|
electronic_dance_music
|
||||||
|
ambient_music
|
||||||
|
trance_music
|
||||||
|
music_of_latin_america
|
||||||
|
salsa_music
|
||||||
|
flamenco
|
||||||
|
blues
|
||||||
|
music_for_children
|
||||||
|
new-age_music
|
||||||
|
vocal_music
|
||||||
|
a_capella
|
||||||
|
music_of_africa
|
||||||
|
afrobeat
|
||||||
|
christian_music
|
||||||
|
gospel_music
|
||||||
|
music_of_asia
|
||||||
|
carnatic_music
|
||||||
|
music_of_bollywood
|
||||||
|
ska
|
||||||
|
traditional_music
|
||||||
|
independent_music
|
||||||
|
song
|
||||||
|
background_music
|
||||||
|
theme_music
|
||||||
|
jingle
|
||||||
|
soundtrack_music
|
||||||
|
lullaby
|
||||||
|
video_game_music
|
||||||
|
christmas_music
|
||||||
|
dance_music
|
||||||
|
wedding_music
|
||||||
|
happy_music
|
||||||
|
sad_music
|
||||||
|
tender_music
|
||||||
|
exciting_music
|
||||||
|
angry_music
|
||||||
|
scary_music
|
||||||
|
wind
|
||||||
|
rustling_leaves
|
||||||
|
wind_noise
|
||||||
|
thunderstorm
|
||||||
|
thunder
|
||||||
|
water
|
||||||
|
rain
|
||||||
|
raindrop
|
||||||
|
rain_on_surface
|
||||||
|
stream
|
||||||
|
waterfall
|
||||||
|
ocean
|
||||||
|
waves
|
||||||
|
steam
|
||||||
|
gurgling
|
||||||
|
fire
|
||||||
|
crackle
|
||||||
|
vehicle
|
||||||
|
boat
|
||||||
|
sailboat
|
||||||
|
rowboat
|
||||||
|
motorboat
|
||||||
|
ship
|
||||||
|
motor_vehicle
|
||||||
|
car
|
||||||
|
honk
|
||||||
|
toot
|
||||||
|
car_alarm
|
||||||
|
power_windows
|
||||||
|
skidding
|
||||||
|
tire_squeal
|
||||||
|
car_passing_by
|
||||||
|
race_car
|
||||||
|
truck
|
||||||
|
air_brake
|
||||||
|
air_horn
|
||||||
|
reversing_beeps
|
||||||
|
ice_cream_truck
|
||||||
|
bus
|
||||||
|
emergency_vehicle
|
||||||
|
police_car
|
||||||
|
ambulance
|
||||||
|
fire_engine
|
||||||
|
motorcycle
|
||||||
|
traffic_noise
|
||||||
|
rail_transport
|
||||||
|
train
|
||||||
|
train_whistle
|
||||||
|
train_horn
|
||||||
|
railroad_car
|
||||||
|
train_wheels_squealing
|
||||||
|
subway
|
||||||
|
aircraft
|
||||||
|
aircraft_engine
|
||||||
|
jet_engine
|
||||||
|
propeller
|
||||||
|
helicopter
|
||||||
|
fixed-wing_aircraft
|
||||||
|
bicycle
|
||||||
|
skateboard
|
||||||
|
engine
|
||||||
|
light_engine
|
||||||
|
dental_drill's_drill
|
||||||
|
lawn_mower
|
||||||
|
chainsaw
|
||||||
|
medium_engine
|
||||||
|
heavy_engine
|
||||||
|
engine_knocking
|
||||||
|
engine_starting
|
||||||
|
idling
|
||||||
|
accelerating
|
||||||
|
door
|
||||||
|
doorbell
|
||||||
|
ding-dong
|
||||||
|
sliding_door
|
||||||
|
slam
|
||||||
|
knock
|
||||||
|
tap
|
||||||
|
squeak
|
||||||
|
cupboard_open_or_close
|
||||||
|
drawer_open_or_close
|
||||||
|
dishes
|
||||||
|
cutlery
|
||||||
|
chopping
|
||||||
|
frying
|
||||||
|
microwave_oven
|
||||||
|
blender
|
||||||
|
water_tap
|
||||||
|
sink
|
||||||
|
bathtub
|
||||||
|
hair_dryer
|
||||||
|
toilet_flush
|
||||||
|
toothbrush
|
||||||
|
electric_toothbrush
|
||||||
|
vacuum_cleaner
|
||||||
|
zipper
|
||||||
|
keys_jangling
|
||||||
|
coin
|
||||||
|
scissors
|
||||||
|
electric_shaver
|
||||||
|
shuffling_cards
|
||||||
|
typing
|
||||||
|
typewriter
|
||||||
|
computer_keyboard
|
||||||
|
writing
|
||||||
|
alarm
|
||||||
|
telephone
|
||||||
|
telephone_bell_ringing
|
||||||
|
ringtone
|
||||||
|
telephone_dialing
|
||||||
|
dial_tone
|
||||||
|
busy_signal
|
||||||
|
alarm_clock
|
||||||
|
siren
|
||||||
|
civil_defense_siren
|
||||||
|
buzzer
|
||||||
|
smoke_detector
|
||||||
|
fire_alarm
|
||||||
|
foghorn
|
||||||
|
whistle
|
||||||
|
steam_whistle
|
||||||
|
mechanisms
|
||||||
|
ratchet
|
||||||
|
clock
|
||||||
|
tick
|
||||||
|
tick-tock
|
||||||
|
gears
|
||||||
|
pulleys
|
||||||
|
sewing_machine
|
||||||
|
mechanical_fan
|
||||||
|
air_conditioning
|
||||||
|
cash_register
|
||||||
|
printer
|
||||||
|
camera
|
||||||
|
single-lens_reflex_camera
|
||||||
|
tools
|
||||||
|
hammer
|
||||||
|
jackhammer
|
||||||
|
sawing
|
||||||
|
filing
|
||||||
|
sanding
|
||||||
|
power_tool
|
||||||
|
drill
|
||||||
|
explosion
|
||||||
|
gunshot
|
||||||
|
machine_gun
|
||||||
|
fusillade
|
||||||
|
artillery_fire
|
||||||
|
cap_gun
|
||||||
|
fireworks
|
||||||
|
firecracker
|
||||||
|
burst
|
||||||
|
eruption
|
||||||
|
boom
|
||||||
|
wood
|
||||||
|
chop
|
||||||
|
splinter
|
||||||
|
crack
|
||||||
|
glass
|
||||||
|
chink
|
||||||
|
shatter
|
||||||
|
liquid
|
||||||
|
splash
|
||||||
|
slosh
|
||||||
|
squish
|
||||||
|
drip
|
||||||
|
pour
|
||||||
|
trickle
|
||||||
|
gush
|
||||||
|
fill
|
||||||
|
spray
|
||||||
|
pump
|
||||||
|
stir
|
||||||
|
boiling
|
||||||
|
sonar
|
||||||
|
arrow
|
||||||
|
whoosh
|
||||||
|
thump
|
||||||
|
thunk
|
||||||
|
electronic_tuner
|
||||||
|
effects_unit
|
||||||
|
chorus_effect
|
||||||
|
basketball_bounce
|
||||||
|
bang
|
||||||
|
slap
|
||||||
|
whack
|
||||||
|
smash
|
||||||
|
breaking
|
||||||
|
bouncing
|
||||||
|
whip
|
||||||
|
flap
|
||||||
|
scratch
|
||||||
|
scrape
|
||||||
|
rub
|
||||||
|
roll
|
||||||
|
crushing
|
||||||
|
crumpling
|
||||||
|
tearing
|
||||||
|
beep
|
||||||
|
ping
|
||||||
|
ding
|
||||||
|
clang
|
||||||
|
squeal
|
||||||
|
creak
|
||||||
|
rustle
|
||||||
|
whir
|
||||||
|
clatter
|
||||||
|
sizzle
|
||||||
|
clicking
|
||||||
|
clickety-clack
|
||||||
|
rumble
|
||||||
|
plop
|
||||||
|
jingle
|
||||||
|
hum
|
||||||
|
zing
|
||||||
|
boing
|
||||||
|
crunch
|
||||||
|
silence
|
||||||
|
sine_wave
|
||||||
|
harmonic
|
||||||
|
chirp_tone
|
||||||
|
sound_effect
|
||||||
|
pulse
|
||||||
|
inside
|
||||||
|
inside
|
||||||
|
inside
|
||||||
|
outside
|
||||||
|
outside
|
||||||
|
reverberation
|
||||||
|
echo
|
||||||
|
noise
|
||||||
|
environmental_noise
|
||||||
|
static
|
||||||
|
mains_hum
|
||||||
|
distortion
|
||||||
|
sidetone
|
||||||
|
cacophony
|
||||||
|
white_noise
|
||||||
|
pink_noise
|
||||||
|
throbbing
|
||||||
|
vibration
|
||||||
|
television
|
||||||
|
radio
|
||||||
|
field_recording
|
93
benchmark.py
93
benchmark.py
@@ -1,17 +1,23 @@
|
|||||||
import os
|
|
||||||
from statistics import mean
|
|
||||||
import multiprocessing as mp
|
|
||||||
import numpy as np
|
|
||||||
import datetime
|
import datetime
|
||||||
from frigate.edgetpu import ObjectDetector, EdgeTPUProcess, RemoteObjectDetector, load_labels
|
import multiprocessing as mp
|
||||||
|
from statistics import mean
|
||||||
|
|
||||||
my_frame = np.expand_dims(np.full((300,300,3), 1, np.uint8), axis=0)
|
import numpy as np
|
||||||
labels = load_labels('/labelmap.txt')
|
|
||||||
|
from frigate.config import DetectorTypeEnum
|
||||||
|
from frigate.object_detection import (
|
||||||
|
ObjectDetectProcess,
|
||||||
|
RemoteObjectDetector,
|
||||||
|
load_labels,
|
||||||
|
)
|
||||||
|
|
||||||
|
my_frame = np.expand_dims(np.full((300, 300, 3), 1, np.uint8), axis=0)
|
||||||
|
labels = load_labels("/labelmap.txt")
|
||||||
|
|
||||||
######
|
######
|
||||||
# Minimal same process runner
|
# Minimal same process runner
|
||||||
######
|
######
|
||||||
# object_detector = ObjectDetector()
|
# object_detector = LocalObjectDetector()
|
||||||
# tensor_input = np.expand_dims(np.full((300,300,3), 0, np.uint8), axis=0)
|
# tensor_input = np.expand_dims(np.full((300,300,3), 0, np.uint8), axis=0)
|
||||||
|
|
||||||
# start = datetime.datetime.now().timestamp()
|
# start = datetime.datetime.now().timestamp()
|
||||||
@@ -37,43 +43,66 @@ labels = load_labels('/labelmap.txt')
|
|||||||
# print(f"Processed for {duration:.2f} seconds.")
|
# print(f"Processed for {duration:.2f} seconds.")
|
||||||
# print(f"Average frame processing time: {mean(frame_times)*1000:.2f}ms")
|
# print(f"Average frame processing time: {mean(frame_times)*1000:.2f}ms")
|
||||||
|
|
||||||
|
|
||||||
|
def start(id, num_detections, detection_queue, event):
|
||||||
|
object_detector = RemoteObjectDetector(
|
||||||
|
str(id), "/labelmap.txt", detection_queue, event
|
||||||
|
)
|
||||||
|
start = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
|
frame_times = []
|
||||||
|
for x in range(0, num_detections):
|
||||||
|
start_frame = datetime.datetime.now().timestamp()
|
||||||
|
object_detector.detect(my_frame)
|
||||||
|
frame_times.append(datetime.datetime.now().timestamp() - start_frame)
|
||||||
|
|
||||||
|
duration = datetime.datetime.now().timestamp() - start
|
||||||
|
object_detector.cleanup()
|
||||||
|
print(f"{id} - Processed for {duration:.2f} seconds.")
|
||||||
|
print(f"{id} - FPS: {object_detector.fps.eps():.2f}")
|
||||||
|
print(f"{id} - Average frame processing time: {mean(frame_times)*1000:.2f}ms")
|
||||||
|
|
||||||
|
|
||||||
######
|
######
|
||||||
# Separate process runner
|
# Separate process runner
|
||||||
######
|
######
|
||||||
def start(id, num_detections, detection_queue):
|
# event = mp.Event()
|
||||||
object_detector = RemoteObjectDetector(str(id), '/labelmap.txt', detection_queue)
|
# detection_queue = mp.Queue()
|
||||||
start = datetime.datetime.now().timestamp()
|
# edgetpu_process = EdgeTPUProcess(detection_queue, {'1': event}, 'usb:0')
|
||||||
|
|
||||||
frame_times = []
|
# start(1, 1000, edgetpu_process.detection_queue, event)
|
||||||
for x in range(0, num_detections):
|
# print(f"Average raw inference speed: {edgetpu_process.avg_inference_speed.value*1000:.2f}ms")
|
||||||
start_frame = datetime.datetime.now().timestamp()
|
|
||||||
detections = object_detector.detect(my_frame)
|
|
||||||
frame_times.append(datetime.datetime.now().timestamp()-start_frame)
|
|
||||||
|
|
||||||
duration = datetime.datetime.now().timestamp()-start
|
|
||||||
print(f"{id} - Processed for {duration:.2f} seconds.")
|
|
||||||
print(f"{id} - Average frame processing time: {mean(frame_times)*1000:.2f}ms")
|
|
||||||
|
|
||||||
edgetpu_process = EdgeTPUProcess()
|
|
||||||
|
|
||||||
# start(1, 1000, edgetpu_process.detect_lock, edgetpu_process.detect_ready, edgetpu_process.frame_ready)
|
|
||||||
|
|
||||||
####
|
####
|
||||||
# Multiple camera processes
|
# Multiple camera processes
|
||||||
####
|
####
|
||||||
camera_processes = []
|
camera_processes = []
|
||||||
|
|
||||||
|
events = {}
|
||||||
for x in range(0, 10):
|
for x in range(0, 10):
|
||||||
camera_process = mp.Process(target=start, args=(x, 100, edgetpu_process.detection_queue))
|
events[str(x)] = mp.Event()
|
||||||
camera_process.daemon = True
|
detection_queue = mp.Queue()
|
||||||
camera_processes.append(camera_process)
|
edgetpu_process_1 = ObjectDetectProcess(
|
||||||
|
detection_queue, events, DetectorTypeEnum.edgetpu, "usb:0"
|
||||||
|
)
|
||||||
|
edgetpu_process_2 = ObjectDetectProcess(
|
||||||
|
detection_queue, events, DetectorTypeEnum.edgetpu, "usb:1"
|
||||||
|
)
|
||||||
|
|
||||||
start = datetime.datetime.now().timestamp()
|
for x in range(0, 10):
|
||||||
|
camera_process = mp.Process(
|
||||||
|
target=start, args=(x, 300, detection_queue, events[str(x)])
|
||||||
|
)
|
||||||
|
camera_process.daemon = True
|
||||||
|
camera_processes.append(camera_process)
|
||||||
|
|
||||||
|
start_time = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
for p in camera_processes:
|
for p in camera_processes:
|
||||||
p.start()
|
p.start()
|
||||||
|
|
||||||
for p in camera_processes:
|
for p in camera_processes:
|
||||||
p.join()
|
p.join()
|
||||||
|
|
||||||
duration = datetime.datetime.now().timestamp()-start
|
duration = datetime.datetime.now().timestamp() - start_time
|
||||||
print(f"Total - Processed for {duration:.2f} seconds.")
|
print(f"Total - Processed for {duration:.2f} seconds.")
|
||||||
|
118
benchmark_motion.py
Normal file
118
benchmark_motion.py
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
import datetime
|
||||||
|
import multiprocessing as mp
|
||||||
|
import os
|
||||||
|
|
||||||
|
import cv2
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
from frigate.config import MotionConfig
|
||||||
|
from frigate.motion.improved_motion import ImprovedMotionDetector
|
||||||
|
from frigate.util import create_mask
|
||||||
|
|
||||||
|
# get info on the video
|
||||||
|
# cap = cv2.VideoCapture("debug/front_cam_2023_05_23_08_41__2023_05_23_08_43.mp4")
|
||||||
|
# cap = cv2.VideoCapture("debug/motion_test_clips/rain_1.mp4")
|
||||||
|
cap = cv2.VideoCapture("debug/motion_test_clips/lawn_mower_night_1.mp4")
|
||||||
|
# cap = cv2.VideoCapture("airport.mp4")
|
||||||
|
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
||||||
|
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
||||||
|
fps = cap.get(cv2.CAP_PROP_FPS)
|
||||||
|
frame_shape = (height, width, 3)
|
||||||
|
# Nick back:
|
||||||
|
# "1280,0,1280,316,1170,216,1146,126,1016,127,979,82,839,0",
|
||||||
|
# "310,350,300,402,224,405,241,354",
|
||||||
|
# "378,0,375,26,0,23,0,0",
|
||||||
|
# Front door:
|
||||||
|
# "1080,0,1080,339,1010,280,1020,169,777,163,452,170,318,299,191,365,186,417,139,470,108,516,40,530,0,514,0,0",
|
||||||
|
# "336,833,438,1024,346,1093,103,1052,24,814",
|
||||||
|
# Back
|
||||||
|
# "1855,0,1851,100,1289,96,1105,161,1045,119,890,121,890,0",
|
||||||
|
# "505,95,506,138,388,153,384,114",
|
||||||
|
# "689,72,689,122,549,134,547,89",
|
||||||
|
# "261,134,264,176,169,195,167,158",
|
||||||
|
# "145,159,146,202,70,220,65,183",
|
||||||
|
|
||||||
|
mask = create_mask(
|
||||||
|
(height, width),
|
||||||
|
[
|
||||||
|
"1080,0,1080,339,1010,280,1020,169,777,163,452,170,318,299,191,365,186,417,139,470,108,516,40,530,0,514,0,0",
|
||||||
|
"336,833,438,1024,346,1093,103,1052,24,814",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
# create the motion config
|
||||||
|
motion_config_1 = MotionConfig()
|
||||||
|
motion_config_1.mask = np.zeros((height, width), np.uint8)
|
||||||
|
motion_config_1.mask[:] = mask
|
||||||
|
# motion_config_1.improve_contrast = 1
|
||||||
|
motion_config_1.frame_height = 150
|
||||||
|
# motion_config_1.frame_alpha = 0.02
|
||||||
|
# motion_config_1.threshold = 30
|
||||||
|
# motion_config_1.contour_area = 10
|
||||||
|
|
||||||
|
motion_config_2 = MotionConfig()
|
||||||
|
motion_config_2.mask = np.zeros((height, width), np.uint8)
|
||||||
|
motion_config_2.mask[:] = mask
|
||||||
|
# motion_config_2.improve_contrast = 1
|
||||||
|
motion_config_2.frame_height = 150
|
||||||
|
# motion_config_2.frame_alpha = 0.01
|
||||||
|
motion_config_2.threshold = 20
|
||||||
|
# motion_config.contour_area = 10
|
||||||
|
|
||||||
|
save_images = True
|
||||||
|
|
||||||
|
improved_motion_detector_1 = ImprovedMotionDetector(
|
||||||
|
frame_shape=frame_shape,
|
||||||
|
config=motion_config_1,
|
||||||
|
fps=fps,
|
||||||
|
improve_contrast=mp.Value("i", motion_config_1.improve_contrast),
|
||||||
|
threshold=mp.Value("i", motion_config_1.threshold),
|
||||||
|
contour_area=mp.Value("i", motion_config_1.contour_area),
|
||||||
|
name="default",
|
||||||
|
)
|
||||||
|
improved_motion_detector_1.save_images = save_images
|
||||||
|
|
||||||
|
improved_motion_detector_2 = ImprovedMotionDetector(
|
||||||
|
frame_shape=frame_shape,
|
||||||
|
config=motion_config_2,
|
||||||
|
fps=fps,
|
||||||
|
improve_contrast=mp.Value("i", motion_config_2.improve_contrast),
|
||||||
|
threshold=mp.Value("i", motion_config_2.threshold),
|
||||||
|
contour_area=mp.Value("i", motion_config_2.contour_area),
|
||||||
|
name="compare",
|
||||||
|
)
|
||||||
|
improved_motion_detector_2.save_images = save_images
|
||||||
|
|
||||||
|
# read and process frames
|
||||||
|
ret, frame = cap.read()
|
||||||
|
frame_counter = 1
|
||||||
|
while ret:
|
||||||
|
yuv_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2YUV_I420)
|
||||||
|
|
||||||
|
start_frame = datetime.datetime.now().timestamp()
|
||||||
|
improved_motion_detector_1.detect(yuv_frame)
|
||||||
|
|
||||||
|
start_frame = datetime.datetime.now().timestamp()
|
||||||
|
improved_motion_detector_2.detect(yuv_frame)
|
||||||
|
|
||||||
|
default_frame = f"debug/frames/default-{frame_counter}.jpg"
|
||||||
|
compare_frame = f"debug/frames/compare-{frame_counter}.jpg"
|
||||||
|
if os.path.exists(default_frame) and os.path.exists(compare_frame):
|
||||||
|
images = [
|
||||||
|
cv2.imread(default_frame),
|
||||||
|
cv2.imread(compare_frame),
|
||||||
|
]
|
||||||
|
|
||||||
|
cv2.imwrite(
|
||||||
|
f"debug/frames/all-{frame_counter}.jpg",
|
||||||
|
cv2.vconcat(images)
|
||||||
|
if frame_shape[0] > frame_shape[1]
|
||||||
|
else cv2.hconcat(images),
|
||||||
|
)
|
||||||
|
os.unlink(default_frame)
|
||||||
|
os.unlink(compare_frame)
|
||||||
|
frame_counter += 1
|
||||||
|
|
||||||
|
ret, frame = cap.read()
|
||||||
|
|
||||||
|
cap.release()
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 MiB |
@@ -1,136 +0,0 @@
|
|||||||
web_port: 5000
|
|
||||||
|
|
||||||
mqtt:
|
|
||||||
host: mqtt.server.com
|
|
||||||
topic_prefix: frigate
|
|
||||||
# client_id: frigate # Optional -- set to override default client id of 'frigate' if running multiple instances
|
|
||||||
# user: username # Optional
|
|
||||||
#################
|
|
||||||
## Environment variables that begin with 'FRIGATE_' may be referenced in {}.
|
|
||||||
## password: '{FRIGATE_MQTT_PASSWORD}'
|
|
||||||
#################
|
|
||||||
# password: password # Optional
|
|
||||||
|
|
||||||
#################
|
|
||||||
# Default ffmpeg args. Optional and can be overwritten per camera.
|
|
||||||
# Should work with most RTSP cameras that send h264 video
|
|
||||||
# Built from the properties below with:
|
|
||||||
# "ffmpeg" + global_args + input_args + "-i" + input + output_args
|
|
||||||
#################
|
|
||||||
# ffmpeg:
|
|
||||||
# global_args:
|
|
||||||
# - -hide_banner
|
|
||||||
# - -loglevel
|
|
||||||
# - panic
|
|
||||||
# hwaccel_args: []
|
|
||||||
# input_args:
|
|
||||||
# - -avoid_negative_ts
|
|
||||||
# - make_zero
|
|
||||||
# - -fflags
|
|
||||||
# - nobuffer
|
|
||||||
# - -flags
|
|
||||||
# - low_delay
|
|
||||||
# - -strict
|
|
||||||
# - experimental
|
|
||||||
# - -fflags
|
|
||||||
# - +genpts+discardcorrupt
|
|
||||||
# - -vsync
|
|
||||||
# - drop
|
|
||||||
# - -rtsp_transport
|
|
||||||
# - tcp
|
|
||||||
# - -stimeout
|
|
||||||
# - '5000000'
|
|
||||||
# - -use_wallclock_as_timestamps
|
|
||||||
# - '1'
|
|
||||||
# output_args:
|
|
||||||
# - -f
|
|
||||||
# - rawvideo
|
|
||||||
# - -pix_fmt
|
|
||||||
# - rgb24
|
|
||||||
|
|
||||||
####################
|
|
||||||
# Global object configuration. Applies to all cameras
|
|
||||||
# unless overridden at the camera levels.
|
|
||||||
# Keys must be valid labels. By default, the model uses coco (https://dl.google.com/coral/canned_models/coco_labels.txt).
|
|
||||||
# All labels from the model are reported over MQTT. These values are used to filter out false positives.
|
|
||||||
# min_area (optional): minimum width*height of the bounding box for the detected person
|
|
||||||
# max_area (optional): maximum width*height of the bounding box for the detected person
|
|
||||||
# threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
|
|
||||||
####################
|
|
||||||
objects:
|
|
||||||
track:
|
|
||||||
- person
|
|
||||||
- car
|
|
||||||
- truck
|
|
||||||
filters:
|
|
||||||
person:
|
|
||||||
min_area: 5000
|
|
||||||
max_area: 100000
|
|
||||||
threshold: 0.5
|
|
||||||
|
|
||||||
cameras:
|
|
||||||
back:
|
|
||||||
ffmpeg:
|
|
||||||
################
|
|
||||||
# Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
|
|
||||||
# Environment variables that begin with 'FRIGATE_' may be referenced in {}
|
|
||||||
################
|
|
||||||
input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
|
|
||||||
#################
|
|
||||||
# These values will override default values for just this camera
|
|
||||||
#################
|
|
||||||
# global_args: []
|
|
||||||
# hwaccel_args: []
|
|
||||||
# input_args: []
|
|
||||||
# output_args: []
|
|
||||||
|
|
||||||
################
|
|
||||||
## Optionally specify the resolution of the video feed. Frigate will try to auto detect if not specified
|
|
||||||
################
|
|
||||||
# height: 1280
|
|
||||||
# width: 720
|
|
||||||
|
|
||||||
################
|
|
||||||
## Optional mask. Must be the same aspect ratio as your video feed.
|
|
||||||
##
|
|
||||||
## The mask works by looking at the bottom center of the bounding box for the detected
|
|
||||||
## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
|
|
||||||
## false positive. In my mask, the grass and driveway visible from my backdoor camera
|
|
||||||
## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
|
|
||||||
## person to stand) are black.
|
|
||||||
##
|
|
||||||
## Masked areas are also ignored for motion detection.
|
|
||||||
################
|
|
||||||
# mask: back-mask.bmp
|
|
||||||
|
|
||||||
################
|
|
||||||
# Allows you to limit the framerate within frigate for cameras that do not support
|
|
||||||
# custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
|
|
||||||
# 3 every 3rd frame, etc.
|
|
||||||
################
|
|
||||||
take_frame: 1
|
|
||||||
|
|
||||||
################
|
|
||||||
# The expected framerate for the camera. Frigate will try and ensure it maintains this framerate
|
|
||||||
# by dropping frames as necessary. Setting this lower than the actual framerate will allow frigate
|
|
||||||
# to process every frame at the expense of realtime processing.
|
|
||||||
################
|
|
||||||
fps: 5
|
|
||||||
|
|
||||||
################
|
|
||||||
# Configuration for the snapshots in the debug view and mqtt
|
|
||||||
################
|
|
||||||
snapshots:
|
|
||||||
show_timestamp: True
|
|
||||||
|
|
||||||
################
|
|
||||||
# Camera level object config. This config is merged with the global config above.
|
|
||||||
################
|
|
||||||
objects:
|
|
||||||
track:
|
|
||||||
- person
|
|
||||||
filters:
|
|
||||||
person:
|
|
||||||
min_area: 5000
|
|
||||||
max_area: 100000
|
|
||||||
threshold: 0.5
|
|
16
config/config.yml.example
Normal file
16
config/config.yml.example
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
mqtt:
|
||||||
|
host: mqtt
|
||||||
|
|
||||||
|
cameras:
|
||||||
|
test:
|
||||||
|
ffmpeg:
|
||||||
|
inputs:
|
||||||
|
- path: /media/frigate/car-stopping.mp4
|
||||||
|
input_args: -re -stream_loop -1 -fflags +genpts
|
||||||
|
roles:
|
||||||
|
- detect
|
||||||
|
- rtmp
|
||||||
|
detect:
|
||||||
|
height: 1080
|
||||||
|
width: 1920
|
||||||
|
fps: 5
|
@@ -1,247 +0,0 @@
|
|||||||
import os
|
|
||||||
import cv2
|
|
||||||
import time
|
|
||||||
import datetime
|
|
||||||
import queue
|
|
||||||
import yaml
|
|
||||||
import threading
|
|
||||||
import multiprocessing as mp
|
|
||||||
import subprocess as sp
|
|
||||||
import numpy as np
|
|
||||||
import logging
|
|
||||||
from flask import Flask, Response, make_response, jsonify
|
|
||||||
import paho.mqtt.client as mqtt
|
|
||||||
|
|
||||||
from frigate.video import track_camera
|
|
||||||
from frigate.object_processing import TrackedObjectProcessor
|
|
||||||
from frigate.util import EventsPerSecond
|
|
||||||
from frigate.edgetpu import EdgeTPUProcess
|
|
||||||
|
|
||||||
FRIGATE_VARS = {k: v for k, v in os.environ.items() if k.startswith('FRIGATE_')}
|
|
||||||
|
|
||||||
with open('/config/config.yml') as f:
|
|
||||||
CONFIG = yaml.safe_load(f)
|
|
||||||
|
|
||||||
MQTT_HOST = CONFIG['mqtt']['host']
|
|
||||||
MQTT_PORT = CONFIG.get('mqtt', {}).get('port', 1883)
|
|
||||||
MQTT_TOPIC_PREFIX = CONFIG.get('mqtt', {}).get('topic_prefix', 'frigate')
|
|
||||||
MQTT_USER = CONFIG.get('mqtt', {}).get('user')
|
|
||||||
MQTT_PASS = CONFIG.get('mqtt', {}).get('password')
|
|
||||||
if not MQTT_PASS is None:
|
|
||||||
MQTT_PASS = MQTT_PASS.format(**FRIGATE_VARS)
|
|
||||||
MQTT_CLIENT_ID = CONFIG.get('mqtt', {}).get('client_id', 'frigate')
|
|
||||||
|
|
||||||
# Set the default FFmpeg config
|
|
||||||
FFMPEG_CONFIG = CONFIG.get('ffmpeg', {})
|
|
||||||
FFMPEG_DEFAULT_CONFIG = {
|
|
||||||
'global_args': FFMPEG_CONFIG.get('global_args',
|
|
||||||
['-hide_banner','-loglevel','panic']),
|
|
||||||
'hwaccel_args': FFMPEG_CONFIG.get('hwaccel_args',
|
|
||||||
[]),
|
|
||||||
'input_args': FFMPEG_CONFIG.get('input_args',
|
|
||||||
['-avoid_negative_ts', 'make_zero',
|
|
||||||
'-fflags', 'nobuffer',
|
|
||||||
'-flags', 'low_delay',
|
|
||||||
'-strict', 'experimental',
|
|
||||||
'-fflags', '+genpts+discardcorrupt',
|
|
||||||
'-vsync', 'drop',
|
|
||||||
'-rtsp_transport', 'tcp',
|
|
||||||
'-stimeout', '5000000',
|
|
||||||
'-use_wallclock_as_timestamps', '1']),
|
|
||||||
'output_args': FFMPEG_CONFIG.get('output_args',
|
|
||||||
['-f', 'rawvideo',
|
|
||||||
'-pix_fmt', 'rgb24'])
|
|
||||||
}
|
|
||||||
|
|
||||||
GLOBAL_OBJECT_CONFIG = CONFIG.get('objects', {})
|
|
||||||
|
|
||||||
WEB_PORT = CONFIG.get('web_port', 5000)
|
|
||||||
DEBUG = (CONFIG.get('debug', '0') == '1')
|
|
||||||
|
|
||||||
class CameraWatchdog(threading.Thread):
|
|
||||||
def __init__(self, camera_processes, config, tflite_process, tracked_objects_queue, object_processor):
|
|
||||||
threading.Thread.__init__(self)
|
|
||||||
self.camera_processes = camera_processes
|
|
||||||
self.config = config
|
|
||||||
self.tflite_process = tflite_process
|
|
||||||
self.tracked_objects_queue = tracked_objects_queue
|
|
||||||
self.object_processor = object_processor
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
time.sleep(10)
|
|
||||||
while True:
|
|
||||||
# wait a bit before checking
|
|
||||||
time.sleep(30)
|
|
||||||
|
|
||||||
if (self.tflite_process.detection_start.value > 0.0 and
|
|
||||||
datetime.datetime.now().timestamp() - self.tflite_process.detection_start.value > 10):
|
|
||||||
print("Detection appears to be stuck. Restarting detection process")
|
|
||||||
self.tflite_process.start_or_restart()
|
|
||||||
time.sleep(30)
|
|
||||||
|
|
||||||
for name, camera_process in self.camera_processes.items():
|
|
||||||
process = camera_process['process']
|
|
||||||
if not process.is_alive():
|
|
||||||
print(f"Process for {name} is not alive. Starting again...")
|
|
||||||
camera_process['fps'].value = float(self.config[name]['fps'])
|
|
||||||
camera_process['skipped_fps'].value = 0.0
|
|
||||||
camera_process['detection_fps'].value = 0.0
|
|
||||||
process = mp.Process(target=track_camera, args=(name, self.config[name], FFMPEG_DEFAULT_CONFIG, GLOBAL_OBJECT_CONFIG,
|
|
||||||
self.tflite_process.detection_queue, self.tracked_objects_queue,
|
|
||||||
camera_process['fps'], camera_process['skipped_fps'], camera_process['detection_fps']))
|
|
||||||
process.daemon = True
|
|
||||||
camera_process['process'] = process
|
|
||||||
process.start()
|
|
||||||
print(f"Camera_process started for {name}: {process.pid}")
|
|
||||||
|
|
||||||
def main():
|
|
||||||
# connect to mqtt and setup last will
|
|
||||||
def on_connect(client, userdata, flags, rc):
|
|
||||||
print("On connect called")
|
|
||||||
if rc != 0:
|
|
||||||
if rc == 3:
|
|
||||||
print ("MQTT Server unavailable")
|
|
||||||
elif rc == 4:
|
|
||||||
print ("MQTT Bad username or password")
|
|
||||||
elif rc == 5:
|
|
||||||
print ("MQTT Not authorized")
|
|
||||||
else:
|
|
||||||
print ("Unable to connect to MQTT: Connection refused. Error code: " + str(rc))
|
|
||||||
# publish a message to signal that the service is running
|
|
||||||
client.publish(MQTT_TOPIC_PREFIX+'/available', 'online', retain=True)
|
|
||||||
client = mqtt.Client(client_id=MQTT_CLIENT_ID)
|
|
||||||
client.on_connect = on_connect
|
|
||||||
client.will_set(MQTT_TOPIC_PREFIX+'/available', payload='offline', qos=1, retain=True)
|
|
||||||
if not MQTT_USER is None:
|
|
||||||
client.username_pw_set(MQTT_USER, password=MQTT_PASS)
|
|
||||||
client.connect(MQTT_HOST, MQTT_PORT, 60)
|
|
||||||
client.loop_start()
|
|
||||||
|
|
||||||
# start plasma store
|
|
||||||
plasma_cmd = ['plasma_store', '-m', '400000000', '-s', '/tmp/plasma']
|
|
||||||
plasma_process = sp.Popen(plasma_cmd, stdout=sp.DEVNULL)
|
|
||||||
time.sleep(1)
|
|
||||||
rc = plasma_process.poll()
|
|
||||||
if rc is not None:
|
|
||||||
raise RuntimeError("plasma_store exited unexpectedly with "
|
|
||||||
"code %d" % (rc,))
|
|
||||||
|
|
||||||
##
|
|
||||||
# Setup config defaults for cameras
|
|
||||||
##
|
|
||||||
for name, config in CONFIG['cameras'].items():
|
|
||||||
config['snapshots'] = {
|
|
||||||
'show_timestamp': config.get('snapshots', {}).get('show_timestamp', True)
|
|
||||||
}
|
|
||||||
|
|
||||||
# Queue for cameras to push tracked objects to
|
|
||||||
tracked_objects_queue = mp.Queue()
|
|
||||||
|
|
||||||
# Start the shared tflite process
|
|
||||||
tflite_process = EdgeTPUProcess()
|
|
||||||
|
|
||||||
# start the camera processes
|
|
||||||
camera_processes = {}
|
|
||||||
for name, config in CONFIG['cameras'].items():
|
|
||||||
camera_processes[name] = {
|
|
||||||
'fps': mp.Value('d', float(config['fps'])),
|
|
||||||
'skipped_fps': mp.Value('d', 0.0),
|
|
||||||
'detection_fps': mp.Value('d', 0.0)
|
|
||||||
}
|
|
||||||
camera_process = mp.Process(target=track_camera, args=(name, config, FFMPEG_DEFAULT_CONFIG, GLOBAL_OBJECT_CONFIG,
|
|
||||||
tflite_process.detection_queue, tracked_objects_queue,
|
|
||||||
camera_processes[name]['fps'], camera_processes[name]['skipped_fps'], camera_processes[name]['detection_fps']))
|
|
||||||
camera_process.daemon = True
|
|
||||||
camera_processes[name]['process'] = camera_process
|
|
||||||
|
|
||||||
for name, camera_process in camera_processes.items():
|
|
||||||
camera_process['process'].start()
|
|
||||||
print(f"Camera_process started for {name}: {camera_process['process'].pid}")
|
|
||||||
|
|
||||||
object_processor = TrackedObjectProcessor(CONFIG['cameras'], client, MQTT_TOPIC_PREFIX, tracked_objects_queue)
|
|
||||||
object_processor.start()
|
|
||||||
|
|
||||||
camera_watchdog = CameraWatchdog(camera_processes, CONFIG['cameras'], tflite_process, tracked_objects_queue, object_processor)
|
|
||||||
camera_watchdog.start()
|
|
||||||
|
|
||||||
# create a flask app that encodes frames a mjpeg on demand
|
|
||||||
app = Flask(__name__)
|
|
||||||
log = logging.getLogger('werkzeug')
|
|
||||||
log.setLevel(logging.ERROR)
|
|
||||||
|
|
||||||
@app.route('/')
|
|
||||||
def ishealthy():
|
|
||||||
# return a healh
|
|
||||||
return "Frigate is running. Alive and healthy!"
|
|
||||||
|
|
||||||
@app.route('/debug/stats')
|
|
||||||
def stats():
|
|
||||||
stats = {}
|
|
||||||
|
|
||||||
total_detection_fps = 0
|
|
||||||
|
|
||||||
for name, camera_stats in camera_processes.items():
|
|
||||||
total_detection_fps += camera_stats['detection_fps'].value
|
|
||||||
stats[name] = {
|
|
||||||
'fps': round(camera_stats['fps'].value, 2),
|
|
||||||
'skipped_fps': round(camera_stats['skipped_fps'].value, 2),
|
|
||||||
'detection_fps': round(camera_stats['detection_fps'].value, 2)
|
|
||||||
}
|
|
||||||
|
|
||||||
stats['coral'] = {
|
|
||||||
'fps': round(total_detection_fps, 2),
|
|
||||||
'inference_speed': round(tflite_process.avg_inference_speed.value*1000, 2),
|
|
||||||
'detection_queue': tflite_process.detection_queue.qsize(),
|
|
||||||
'detection_start': tflite_process.detection_start.value
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = plasma_process.poll()
|
|
||||||
stats['plasma_store_rc'] = rc
|
|
||||||
|
|
||||||
stats['tracked_objects_queue'] = tracked_objects_queue.qsize()
|
|
||||||
|
|
||||||
return jsonify(stats)
|
|
||||||
|
|
||||||
@app.route('/<camera_name>/<label>/best.jpg')
|
|
||||||
def best(camera_name, label):
|
|
||||||
if camera_name in CONFIG['cameras']:
|
|
||||||
best_frame = object_processor.get_best(camera_name, label)
|
|
||||||
if best_frame is None:
|
|
||||||
best_frame = np.zeros((720,1280,3), np.uint8)
|
|
||||||
best_frame = cv2.cvtColor(best_frame, cv2.COLOR_RGB2BGR)
|
|
||||||
ret, jpg = cv2.imencode('.jpg', best_frame)
|
|
||||||
response = make_response(jpg.tobytes())
|
|
||||||
response.headers['Content-Type'] = 'image/jpg'
|
|
||||||
return response
|
|
||||||
else:
|
|
||||||
return "Camera named {} not found".format(camera_name), 404
|
|
||||||
|
|
||||||
@app.route('/<camera_name>')
|
|
||||||
def mjpeg_feed(camera_name):
|
|
||||||
if camera_name in CONFIG['cameras']:
|
|
||||||
# return a multipart response
|
|
||||||
return Response(imagestream(camera_name),
|
|
||||||
mimetype='multipart/x-mixed-replace; boundary=frame')
|
|
||||||
else:
|
|
||||||
return "Camera named {} not found".format(camera_name), 404
|
|
||||||
|
|
||||||
def imagestream(camera_name):
|
|
||||||
while True:
|
|
||||||
# max out at 1 FPS
|
|
||||||
time.sleep(1)
|
|
||||||
frame = object_processor.get_current_frame(camera_name)
|
|
||||||
if frame is None:
|
|
||||||
frame = np.zeros((720,1280,3), np.uint8)
|
|
||||||
frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
|
|
||||||
ret, jpg = cv2.imencode('.jpg', frame)
|
|
||||||
yield (b'--frame\r\n'
|
|
||||||
b'Content-Type: image/jpeg\r\n\r\n' + jpg.tobytes() + b'\r\n\r\n')
|
|
||||||
|
|
||||||
app.run(host='0.0.0.0', port=WEB_PORT, debug=False)
|
|
||||||
|
|
||||||
camera_watchdog.join()
|
|
||||||
|
|
||||||
plasma_process.terminate()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
40
docker-compose.yml
Normal file
40
docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
devcontainer:
|
||||||
|
container_name: frigate-devcontainer
|
||||||
|
# add groups from host for render, plugdev, video
|
||||||
|
group_add:
|
||||||
|
- "109" # render
|
||||||
|
- "110" # render
|
||||||
|
- "44" # video
|
||||||
|
- "46" # plugdev
|
||||||
|
shm_size: "256mb"
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: docker/main/Dockerfile
|
||||||
|
# Use target devcontainer-trt for TensorRT dev
|
||||||
|
target: devcontainer
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
reservations:
|
||||||
|
devices:
|
||||||
|
- driver: nvidia
|
||||||
|
count: 1
|
||||||
|
capabilities: [gpu]
|
||||||
|
environment:
|
||||||
|
YOLO_MODELS: yolov7-320
|
||||||
|
devices:
|
||||||
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
|
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
||||||
|
volumes:
|
||||||
|
- .:/workspace/frigate:cached
|
||||||
|
- ./web/dist:/opt/frigate/web:cached
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- ./config:/config
|
||||||
|
- ./debug:/media/frigate
|
||||||
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
|
mqtt:
|
||||||
|
container_name: mqtt
|
||||||
|
image: eclipse-mosquitto:1.6
|
||||||
|
ports:
|
||||||
|
- "1883:1883"
|
263
docker/main/Dockerfile
Normal file
263
docker/main/Dockerfile
Normal file
@@ -0,0 +1,263 @@
|
|||||||
|
# syntax=docker/dockerfile:1.6
|
||||||
|
|
||||||
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
ARG BASE_IMAGE=debian:11
|
||||||
|
ARG SLIM_BASE=debian:11-slim
|
||||||
|
|
||||||
|
FROM ${BASE_IMAGE} AS base
|
||||||
|
|
||||||
|
FROM --platform=${BUILDPLATFORM} debian:11 AS base_host
|
||||||
|
|
||||||
|
FROM ${SLIM_BASE} AS slim-base
|
||||||
|
|
||||||
|
FROM slim-base AS wget
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y wget xz-utils \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
WORKDIR /rootfs
|
||||||
|
|
||||||
|
FROM base AS nginx
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
ENV CCACHE_DIR /root/.ccache
|
||||||
|
ENV CCACHE_MAXSIZE 2G
|
||||||
|
|
||||||
|
# bind /var/cache/apt to tmpfs to speed up nginx build
|
||||||
|
RUN --mount=type=tmpfs,target=/tmp --mount=type=tmpfs,target=/var/cache/apt \
|
||||||
|
--mount=type=bind,source=docker/main/build_nginx.sh,target=/deps/build_nginx.sh \
|
||||||
|
--mount=type=cache,target=/root/.ccache \
|
||||||
|
/deps/build_nginx.sh
|
||||||
|
|
||||||
|
FROM scratch AS go2rtc
|
||||||
|
ARG TARGETARCH
|
||||||
|
WORKDIR /rootfs/usr/local/go2rtc/bin
|
||||||
|
ADD --link --chmod=755 "https://github.com/AlexxIT/go2rtc/releases/download/v1.8.1/go2rtc_linux_${TARGETARCH}" go2rtc
|
||||||
|
|
||||||
|
|
||||||
|
####
|
||||||
|
#
|
||||||
|
# OpenVino Support
|
||||||
|
#
|
||||||
|
# 1. Download and convert a model from Intel's Public Open Model Zoo
|
||||||
|
# 2. Build libUSB without udev to handle NCS2 enumeration
|
||||||
|
#
|
||||||
|
####
|
||||||
|
# Download and Convert OpenVino model
|
||||||
|
FROM base_host AS ov-converter
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
|
||||||
|
# Install OpenVino Runtime and Dev library
|
||||||
|
COPY docker/main/requirements-ov.txt /requirements-ov.txt
|
||||||
|
RUN apt-get -qq update \
|
||||||
|
&& apt-get -qq install -y wget python3 python3-distutils \
|
||||||
|
&& wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
|
||||||
|
&& python3 get-pip.py "pip" \
|
||||||
|
&& pip install -r /requirements-ov.txt
|
||||||
|
|
||||||
|
# Get OpenVino Model
|
||||||
|
RUN mkdir /models \
|
||||||
|
&& cd /models && omz_downloader --name ssdlite_mobilenet_v2 \
|
||||||
|
&& cd /models && omz_converter --name ssdlite_mobilenet_v2 --precision FP16
|
||||||
|
|
||||||
|
|
||||||
|
# libUSB - No Udev
|
||||||
|
FROM wget as libusb-build
|
||||||
|
ARG TARGETARCH
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
ENV CCACHE_DIR /root/.ccache
|
||||||
|
ENV CCACHE_MAXSIZE 2G
|
||||||
|
|
||||||
|
# Build libUSB without udev. Needed for Openvino NCS2 support
|
||||||
|
WORKDIR /opt
|
||||||
|
RUN apt-get update && apt-get install -y unzip build-essential automake libtool ccache pkg-config
|
||||||
|
RUN --mount=type=cache,target=/root/.ccache wget -q https://github.com/libusb/libusb/archive/v1.0.26.zip -O v1.0.26.zip && \
|
||||||
|
unzip v1.0.26.zip && cd libusb-1.0.26 && \
|
||||||
|
./bootstrap.sh && \
|
||||||
|
./configure CC='ccache gcc' CCX='ccache g++' --disable-udev --enable-shared && \
|
||||||
|
make -j $(nproc --all)
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends libusb-1.0-0-dev && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
WORKDIR /opt/libusb-1.0.26/libusb
|
||||||
|
RUN /bin/mkdir -p '/usr/local/lib' && \
|
||||||
|
/bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' && \
|
||||||
|
/bin/mkdir -p '/usr/local/include/libusb-1.0' && \
|
||||||
|
/usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0' && \
|
||||||
|
/bin/mkdir -p '/usr/local/lib/pkgconfig' && \
|
||||||
|
cd /opt/libusb-1.0.26/ && \
|
||||||
|
/usr/bin/install -c -m 644 libusb-1.0.pc '/usr/local/lib/pkgconfig' && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
|
FROM wget AS models
|
||||||
|
|
||||||
|
# Get model and labels
|
||||||
|
RUN wget -qO edgetpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite
|
||||||
|
RUN wget -qO cpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess.tflite
|
||||||
|
COPY labelmap.txt .
|
||||||
|
# Copy OpenVino model
|
||||||
|
COPY --from=ov-converter /models/public/ssdlite_mobilenet_v2/FP16 openvino-model
|
||||||
|
RUN wget -q https://github.com/openvinotoolkit/open_model_zoo/raw/master/data/dataset_classes/coco_91cl_bkgr.txt -O openvino-model/coco_91cl_bkgr.txt && \
|
||||||
|
sed -i 's/truck/car/g' openvino-model/coco_91cl_bkgr.txt
|
||||||
|
# Get Audio Model and labels
|
||||||
|
RUN wget -qO cpu_audio_model.tflite https://tfhub.dev/google/lite-model/yamnet/classification/tflite/1?lite-format=tflite
|
||||||
|
COPY audio-labelmap.txt .
|
||||||
|
|
||||||
|
|
||||||
|
FROM wget AS s6-overlay
|
||||||
|
ARG TARGETARCH
|
||||||
|
RUN --mount=type=bind,source=docker/main/install_s6_overlay.sh,target=/deps/install_s6_overlay.sh \
|
||||||
|
/deps/install_s6_overlay.sh
|
||||||
|
|
||||||
|
|
||||||
|
FROM base AS wheels
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
# Use a separate container to build wheels to prevent build dependencies in final image
|
||||||
|
RUN apt-get -qq update \
|
||||||
|
&& apt-get -qq install -y \
|
||||||
|
apt-transport-https \
|
||||||
|
gnupg \
|
||||||
|
wget \
|
||||||
|
# the key fingerprint can be obtained from https://ftp-master.debian.org/keys.html
|
||||||
|
&& wget -qO- "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA4285295FC7B1A81600062A9605C66F00D6C9793" | \
|
||||||
|
gpg --dearmor > /usr/share/keyrings/debian-archive-bullseye-stable.gpg \
|
||||||
|
&& echo "deb [signed-by=/usr/share/keyrings/debian-archive-bullseye-stable.gpg] http://deb.debian.org/debian bullseye main contrib non-free" | \
|
||||||
|
tee /etc/apt/sources.list.d/debian-bullseye-nonfree.list \
|
||||||
|
&& apt-get -qq update \
|
||||||
|
&& apt-get -qq install -y \
|
||||||
|
python3.9 \
|
||||||
|
python3.9-dev \
|
||||||
|
# opencv dependencies
|
||||||
|
build-essential cmake git pkg-config libgtk-3-dev \
|
||||||
|
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
|
||||||
|
libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
|
||||||
|
gfortran openexr libatlas-base-dev libssl-dev\
|
||||||
|
libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
|
||||||
|
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \
|
||||||
|
# scipy dependencies
|
||||||
|
gcc gfortran libopenblas-dev liblapack-dev && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Ensure python3 defaults to python3.9
|
||||||
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
||||||
|
|
||||||
|
RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
|
||||||
|
&& python3 get-pip.py "pip"
|
||||||
|
|
||||||
|
COPY docker/main/requirements.txt /requirements.txt
|
||||||
|
RUN pip3 install -r /requirements.txt
|
||||||
|
|
||||||
|
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
|
||||||
|
RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt
|
||||||
|
|
||||||
|
|
||||||
|
# Collect deps in a single layer
|
||||||
|
FROM scratch AS deps-rootfs
|
||||||
|
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
|
||||||
|
COPY --from=go2rtc /rootfs/ /
|
||||||
|
COPY --from=libusb-build /usr/local/lib /usr/local/lib
|
||||||
|
COPY --from=s6-overlay /rootfs/ /
|
||||||
|
COPY --from=models /rootfs/ /
|
||||||
|
COPY docker/main/rootfs/ /
|
||||||
|
|
||||||
|
|
||||||
|
# Frigate deps (ffmpeg, python, nginx, go2rtc, s6-overlay, etc)
|
||||||
|
FROM slim-base AS deps
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
# http://stackoverflow.com/questions/48162574/ddg#49462622
|
||||||
|
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
|
||||||
|
|
||||||
|
# https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(Native-GPU-Support)
|
||||||
|
ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
||||||
|
|
||||||
|
ENV PATH="/usr/lib/btbn-ffmpeg/bin:/usr/local/go2rtc/bin:/usr/local/nginx/sbin:${PATH}"
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN --mount=type=bind,source=docker/main/install_deps.sh,target=/deps/install_deps.sh \
|
||||||
|
/deps/install_deps.sh
|
||||||
|
|
||||||
|
RUN --mount=type=bind,from=wheels,source=/wheels,target=/deps/wheels \
|
||||||
|
python3 -m pip install --upgrade pip && \
|
||||||
|
pip3 install -U /deps/wheels/*.whl
|
||||||
|
|
||||||
|
COPY --from=deps-rootfs / /
|
||||||
|
|
||||||
|
RUN ldconfig
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
EXPOSE 1935
|
||||||
|
EXPOSE 8554
|
||||||
|
EXPOSE 8555/tcp 8555/udp
|
||||||
|
|
||||||
|
# Configure logging to prepend timestamps, log to stdout, keep 0 archives and rotate on 10MB
|
||||||
|
ENV S6_LOGGING_SCRIPT="T 1 n0 s10000000 T"
|
||||||
|
|
||||||
|
ENTRYPOINT ["/init"]
|
||||||
|
CMD []
|
||||||
|
|
||||||
|
HEALTHCHECK --start-period=120s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
|
||||||
|
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1
|
||||||
|
|
||||||
|
# Frigate deps with Node.js and NPM for devcontainer
|
||||||
|
FROM deps AS devcontainer
|
||||||
|
|
||||||
|
# Do not start the actual Frigate service on devcontainer as it will be started by VSCode
|
||||||
|
# But start a fake service for simulating the logs
|
||||||
|
COPY docker/main/fake_frigate_run /etc/s6-overlay/s6-rc.d/frigate/run
|
||||||
|
|
||||||
|
# Create symbolic link to the frigate source code, as go2rtc's create_config.sh uses it
|
||||||
|
RUN mkdir -p /opt/frigate \
|
||||||
|
&& ln -svf /workspace/frigate/frigate /opt/frigate/frigate
|
||||||
|
|
||||||
|
# Install Node 16
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install wget -y \
|
||||||
|
&& wget -qO- https://deb.nodesource.com/setup_16.x | bash - \
|
||||||
|
&& apt-get install -y nodejs \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& npm install -g npm@9
|
||||||
|
|
||||||
|
WORKDIR /workspace/frigate
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install make -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN --mount=type=bind,source=./docker/main/requirements-dev.txt,target=/workspace/frigate/requirements-dev.txt \
|
||||||
|
pip3 install -r requirements-dev.txt
|
||||||
|
|
||||||
|
CMD ["sleep", "infinity"]
|
||||||
|
|
||||||
|
|
||||||
|
# Frigate web build
|
||||||
|
# This should be architecture agnostic, so speed up the build on multiarch by not using QEMU.
|
||||||
|
FROM --platform=$BUILDPLATFORM node:16 AS web-build
|
||||||
|
|
||||||
|
WORKDIR /work
|
||||||
|
COPY web/package.json web/package-lock.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY web/ ./
|
||||||
|
RUN npm run build \
|
||||||
|
&& mv dist/BASE_PATH/monacoeditorwork/* dist/assets/ \
|
||||||
|
&& rm -rf dist/BASE_PATH
|
||||||
|
|
||||||
|
# Collect final files in a single layer
|
||||||
|
FROM scratch AS rootfs
|
||||||
|
|
||||||
|
WORKDIR /opt/frigate/
|
||||||
|
COPY frigate frigate/
|
||||||
|
COPY migrations migrations/
|
||||||
|
COPY --from=web-build /work/dist/ web/
|
||||||
|
|
||||||
|
# Frigate final container
|
||||||
|
FROM deps AS frigate
|
||||||
|
|
||||||
|
WORKDIR /opt/frigate/
|
||||||
|
COPY --from=rootfs / /
|
70
docker/main/build_nginx.sh
Executable file
70
docker/main/build_nginx.sh
Executable file
@@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
NGINX_VERSION="1.25.2"
|
||||||
|
VOD_MODULE_VERSION="1.31"
|
||||||
|
SECURE_TOKEN_MODULE_VERSION="1.5"
|
||||||
|
RTMP_MODULE_VERSION="1.2.2"
|
||||||
|
|
||||||
|
cp /etc/apt/sources.list /etc/apt/sources.list.d/sources-src.list
|
||||||
|
sed -i 's|deb http|deb-src http|g' /etc/apt/sources.list.d/sources-src.list
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
apt-get -yqq build-dep nginx
|
||||||
|
|
||||||
|
apt-get -yqq install --no-install-recommends ca-certificates wget
|
||||||
|
update-ca-certificates -f
|
||||||
|
apt install -y ccache
|
||||||
|
|
||||||
|
export PATH="/usr/lib/ccache:$PATH"
|
||||||
|
|
||||||
|
mkdir /tmp/nginx
|
||||||
|
wget -nv https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
|
||||||
|
tar -zxf nginx-${NGINX_VERSION}.tar.gz -C /tmp/nginx --strip-components=1
|
||||||
|
rm nginx-${NGINX_VERSION}.tar.gz
|
||||||
|
mkdir /tmp/nginx-vod-module
|
||||||
|
wget -nv https://github.com/kaltura/nginx-vod-module/archive/refs/tags/${VOD_MODULE_VERSION}.tar.gz
|
||||||
|
tar -zxf ${VOD_MODULE_VERSION}.tar.gz -C /tmp/nginx-vod-module --strip-components=1
|
||||||
|
rm ${VOD_MODULE_VERSION}.tar.gz
|
||||||
|
# Patch MAX_CLIPS to allow more clips to be added than the default 128
|
||||||
|
sed -i 's/MAX_CLIPS (128)/MAX_CLIPS (1080)/g' /tmp/nginx-vod-module/vod/media_set.h
|
||||||
|
patch -d /tmp/nginx-vod-module/ -p1 << 'EOF'
|
||||||
|
--- a/vod/avc_hevc_parser.c 2022-06-27 11:38:10.000000000 +0000
|
||||||
|
+++ b/vod/avc_hevc_parser.c 2023-01-16 11:25:10.900521298 +0000
|
||||||
|
@@ -3,6 +3,9 @@
|
||||||
|
bool_t
|
||||||
|
avc_hevc_parser_rbsp_trailing_bits(bit_reader_state_t* reader)
|
||||||
|
{
|
||||||
|
+ // https://github.com/blakeblackshear/frigate/issues/4572
|
||||||
|
+ return TRUE;
|
||||||
|
+
|
||||||
|
uint32_t one_bit;
|
||||||
|
|
||||||
|
if (reader->stream.eof_reached)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
mkdir /tmp/nginx-secure-token-module
|
||||||
|
wget https://github.com/kaltura/nginx-secure-token-module/archive/refs/tags/${SECURE_TOKEN_MODULE_VERSION}.tar.gz
|
||||||
|
tar -zxf ${SECURE_TOKEN_MODULE_VERSION}.tar.gz -C /tmp/nginx-secure-token-module --strip-components=1
|
||||||
|
rm ${SECURE_TOKEN_MODULE_VERSION}.tar.gz
|
||||||
|
mkdir /tmp/nginx-rtmp-module
|
||||||
|
wget -nv https://github.com/arut/nginx-rtmp-module/archive/refs/tags/v${RTMP_MODULE_VERSION}.tar.gz
|
||||||
|
tar -zxf v${RTMP_MODULE_VERSION}.tar.gz -C /tmp/nginx-rtmp-module --strip-components=1
|
||||||
|
rm v${RTMP_MODULE_VERSION}.tar.gz
|
||||||
|
|
||||||
|
cd /tmp/nginx
|
||||||
|
|
||||||
|
./configure --prefix=/usr/local/nginx \
|
||||||
|
--with-file-aio \
|
||||||
|
--with-http_sub_module \
|
||||||
|
--with-http_ssl_module \
|
||||||
|
--with-threads \
|
||||||
|
--add-module=../nginx-vod-module \
|
||||||
|
--add-module=../nginx-secure-token-module \
|
||||||
|
--add-module=../nginx-rtmp-module \
|
||||||
|
--with-cc-opt="-O3 -Wno-error=implicit-fallthrough"
|
||||||
|
|
||||||
|
make CC="ccache gcc" -j$(nproc) && make install
|
||||||
|
rm -rf /usr/local/nginx/html /usr/local/nginx/conf/*.default
|
13
docker/main/fake_frigate_run
Executable file
13
docker/main/fake_frigate_run
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Start the fake Frigate service
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Tell S6-Overlay not to restart this service
|
||||||
|
s6-svc -O .
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
echo "[INFO] The fake Frigate service is running..."
|
||||||
|
sleep 5s
|
||||||
|
done
|
84
docker/main/install_deps.sh
Executable file
84
docker/main/install_deps.sh
Executable file
@@ -0,0 +1,84 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
apt-get -qq update
|
||||||
|
|
||||||
|
apt-get -qq install --no-install-recommends -y \
|
||||||
|
apt-transport-https \
|
||||||
|
gnupg \
|
||||||
|
wget \
|
||||||
|
procps vainfo \
|
||||||
|
unzip locales tzdata libxml2 xz-utils \
|
||||||
|
python3.9 \
|
||||||
|
python3-pip \
|
||||||
|
curl \
|
||||||
|
jq \
|
||||||
|
nethogs
|
||||||
|
|
||||||
|
# ensure python3 defaults to python3.9
|
||||||
|
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
||||||
|
|
||||||
|
mkdir -p -m 600 /root/.gnupg
|
||||||
|
|
||||||
|
# add coral repo
|
||||||
|
curl -fsSLo - https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
|
||||||
|
gpg --dearmor -o /etc/apt/trusted.gpg.d/google-cloud-packages-archive-keyring.gpg
|
||||||
|
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
|
||||||
|
echo "libedgetpu1-max libedgetpu/accepted-eula select true" | debconf-set-selections
|
||||||
|
|
||||||
|
# enable non-free repo in Debian
|
||||||
|
if grep -q "Debian" /etc/issue; then
|
||||||
|
sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list
|
||||||
|
fi
|
||||||
|
|
||||||
|
# coral drivers
|
||||||
|
apt-get -qq update
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
libedgetpu1-max python3-tflite-runtime python3-pycoral
|
||||||
|
|
||||||
|
# btbn-ffmpeg -> amd64
|
||||||
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
|
mkdir -p /usr/lib/btbn-ffmpeg
|
||||||
|
wget -qO btbn-ffmpeg.tar.xz "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linux64-gpl-5.1.tar.xz"
|
||||||
|
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/btbn-ffmpeg --strip-components 1
|
||||||
|
rm -rf btbn-ffmpeg.tar.xz /usr/lib/btbn-ffmpeg/doc /usr/lib/btbn-ffmpeg/bin/ffplay
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ffmpeg -> arm64
|
||||||
|
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
|
mkdir -p /usr/lib/btbn-ffmpeg
|
||||||
|
wget -qO btbn-ffmpeg.tar.xz "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linuxarm64-gpl-5.1.tar.xz"
|
||||||
|
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/btbn-ffmpeg --strip-components 1
|
||||||
|
rm -rf btbn-ffmpeg.tar.xz /usr/lib/btbn-ffmpeg/doc /usr/lib/btbn-ffmpeg/bin/ffplay
|
||||||
|
fi
|
||||||
|
|
||||||
|
# arch specific packages
|
||||||
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
|
# use debian bookworm for hwaccel packages
|
||||||
|
echo 'deb https://deb.debian.org/debian bookworm main contrib non-free' >/etc/apt/sources.list.d/debian-bookworm.list
|
||||||
|
apt-get -qq update
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
intel-opencl-icd \
|
||||||
|
mesa-va-drivers radeontop libva-drm2 intel-media-va-driver-non-free i965-va-driver libmfx1 intel-gpu-tools
|
||||||
|
# something about this dependency requires it to be installed in a separate call rather than in the line above
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
i965-va-driver-shaders
|
||||||
|
rm -f /etc/apt/sources.list.d/debian-bookworm.list
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
libva-drm2 mesa-va-drivers
|
||||||
|
fi
|
||||||
|
|
||||||
|
apt-get purge gnupg apt-transport-https xz-utils -y
|
||||||
|
apt-get clean autoclean -y
|
||||||
|
apt-get autoremove --purge -y
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install yq, for frigate-prepare and go2rtc echo source
|
||||||
|
curl -fsSL \
|
||||||
|
"https://github.com/mikefarah/yq/releases/download/v4.33.3/yq_linux_$(dpkg --print-architecture)" \
|
||||||
|
--output /usr/local/bin/yq
|
||||||
|
chmod +x /usr/local/bin/yq
|
19
docker/main/install_s6_overlay.sh
Executable file
19
docker/main/install_s6_overlay.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
s6_version="3.1.5.0"
|
||||||
|
|
||||||
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
|
s6_arch="x86_64"
|
||||||
|
elif [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
|
s6_arch="aarch64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p /rootfs/
|
||||||
|
|
||||||
|
wget -qO- "https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-noarch.tar.xz" |
|
||||||
|
tar -C /rootfs/ -Jxpf -
|
||||||
|
|
||||||
|
wget -qO- "https://github.com/just-containers/s6-overlay/releases/download/v${s6_version}/s6-overlay-${s6_arch}.tar.xz" |
|
||||||
|
tar -C /rootfs/ -Jxpf -
|
3
docker/main/requirements-dev.txt
Normal file
3
docker/main/requirements-dev.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
black == 23.10.*
|
||||||
|
isort
|
||||||
|
ruff
|
5
docker/main/requirements-ov.txt
Normal file
5
docker/main/requirements-ov.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
numpy
|
||||||
|
# Openvino Library - Custom built with MYRIAD support
|
||||||
|
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-manylinux_2_31_x86_64.whl; platform_machine == 'x86_64'
|
||||||
|
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-linux_aarch64.whl; platform_machine == 'aarch64'
|
||||||
|
openvino-dev[tensorflow2] @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino_dev-2022.3.1-1-py3-none-any.whl
|
28
docker/main/requirements-wheels.txt
Normal file
28
docker/main/requirements-wheels.txt
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
click == 8.1.*
|
||||||
|
Flask == 2.3.*
|
||||||
|
imutils == 0.5.*
|
||||||
|
matplotlib == 3.7.*
|
||||||
|
mypy == 1.6.1
|
||||||
|
numpy == 1.23.*
|
||||||
|
onvif_zeep == 0.2.12
|
||||||
|
opencv-python-headless == 4.7.0.*
|
||||||
|
paho-mqtt == 1.6.*
|
||||||
|
peewee == 3.17.*
|
||||||
|
peewee_migrate == 1.12.*
|
||||||
|
psutil == 5.9.*
|
||||||
|
pydantic == 1.10.*
|
||||||
|
git+https://github.com/fbcotter/py3nvml#egg=py3nvml
|
||||||
|
PyYAML == 6.0.*
|
||||||
|
pytz == 2023.3
|
||||||
|
ruamel.yaml == 0.17.*
|
||||||
|
tzlocal == 5.1
|
||||||
|
types-PyYAML == 6.0.*
|
||||||
|
requests == 2.31.*
|
||||||
|
types-requests == 2.31.*
|
||||||
|
scipy == 1.11.*
|
||||||
|
norfair == 2.2.*
|
||||||
|
setproctitle == 1.3.*
|
||||||
|
ws4py == 0.5.*
|
||||||
|
# Openvino Library - Custom built with MYRIAD support
|
||||||
|
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-manylinux_2_31_x86_64.whl; platform_machine == 'x86_64'
|
||||||
|
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-linux_aarch64.whl; platform_machine == 'aarch64'
|
2
docker/main/requirements.txt
Normal file
2
docker/main/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
scikit-build == 0.17.*
|
||||||
|
nvidia-pyindex
|
@@ -0,0 +1 @@
|
|||||||
|
frigate
|
@@ -0,0 +1 @@
|
|||||||
|
frigate-pipeline
|
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate-log/run
Executable file
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate-log/run
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
exec logutil-service /dev/shm/logs/frigate
|
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
28
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/finish
Executable file
28
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/finish
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Take down the S6 supervision tree when the service exits
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
declare exit_code_container
|
||||||
|
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
||||||
|
readonly exit_code_container
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="Frigate"
|
||||||
|
|
||||||
|
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|
||||||
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo $((128 + exit_code_signal)) >/run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
elif [[ "${exit_code_service}" -ne 0 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo "${exit_code_service}" >/run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec /run/s6/basedir/bin/halt
|
@@ -0,0 +1 @@
|
|||||||
|
frigate-log
|
55
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
Executable file
55
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
Executable file
@@ -0,0 +1,55 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Start the Frigate service
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
# Tell S6-Overlay not to restart this service
|
||||||
|
s6-svc -O .
|
||||||
|
|
||||||
|
function migrate_db_path() {
|
||||||
|
# Find config file in yaml or yml, but prefer yaml
|
||||||
|
local config_file="${CONFIG_FILE:-"/config/config.yml"}"
|
||||||
|
local config_file_yaml="${config_file//.yml/.yaml}"
|
||||||
|
if [[ -f "${config_file_yaml}" ]]; then
|
||||||
|
config_file="${config_file_yaml}"
|
||||||
|
elif [[ ! -f "${config_file}" ]]; then
|
||||||
|
echo "[ERROR] Frigate config file not found"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
unset config_file_yaml
|
||||||
|
|
||||||
|
# Use yq to check if database.path is set
|
||||||
|
local user_db_path
|
||||||
|
user_db_path=$(yq eval '.database.path' "${config_file}")
|
||||||
|
|
||||||
|
if [[ "${user_db_path}" == "null" ]]; then
|
||||||
|
local previous_db_path="/media/frigate/frigate.db"
|
||||||
|
local new_db_dir="/config"
|
||||||
|
if [[ -f "${previous_db_path}" ]]; then
|
||||||
|
if mountpoint --quiet "${new_db_dir}"; then
|
||||||
|
# /config is a mount point, move the db
|
||||||
|
echo "[INFO] Moving db from '${previous_db_path}' to the '${new_db_dir}' dir..."
|
||||||
|
# Move all files that starts with frigate.db to the new directory
|
||||||
|
mv -vf "${previous_db_path}"* "${new_db_dir}"
|
||||||
|
else
|
||||||
|
echo "[ERROR] Trying to migrate the db path from '${previous_db_path}' to the '${new_db_dir}' dir, but '${new_db_dir}' is not a mountpoint, please mount the '${new_db_dir}' dir"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "[INFO] Preparing Frigate..."
|
||||||
|
migrate_db_path
|
||||||
|
export LIBAVFORMAT_VERSION_MAJOR=$(ffmpeg -version | grep -Po 'libavformat\W+\K\d+')
|
||||||
|
|
||||||
|
echo "[INFO] Starting Frigate..."
|
||||||
|
|
||||||
|
cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate"
|
||||||
|
|
||||||
|
# Replace the bash process with the Frigate process, redirecting stderr to stdout
|
||||||
|
exec 2>&1
|
||||||
|
exec python3 -u -m frigate
|
@@ -0,0 +1 @@
|
|||||||
|
120000
|
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/type
Normal file
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
12
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-healthcheck/finish
Executable file
12
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-healthcheck/finish
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="go2rtc-healthcheck"
|
||||||
|
|
||||||
|
echo "[INFO] The ${service} service exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
@@ -0,0 +1 @@
|
|||||||
|
go2rtc-log
|
22
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-healthcheck/run
Executable file
22
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-healthcheck/run
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Start the go2rtc-healthcheck service
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
# Give some additional time for go2rtc to start before start pinging
|
||||||
|
sleep 10s
|
||||||
|
echo "[INFO] Starting go2rtc healthcheck service..."
|
||||||
|
|
||||||
|
while sleep 30s; do
|
||||||
|
# Check if the service is running
|
||||||
|
if ! curl --connect-timeout 10 --fail --silent --show-error --output /dev/null http://127.0.0.1:1984/api/streams 2>&1; then
|
||||||
|
echo "[ERROR] The go2rtc service is not responding to ping, restarting..."
|
||||||
|
# We can also use -r instead of -t to send kill signal rather than term
|
||||||
|
s6-svc -t /var/run/service/go2rtc 2>&1
|
||||||
|
# Give some additional time to go2rtc to restart before start pinging again
|
||||||
|
sleep 10s
|
||||||
|
fi
|
||||||
|
done
|
@@ -0,0 +1 @@
|
|||||||
|
5000
|
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
@@ -0,0 +1,2 @@
|
|||||||
|
go2rtc
|
||||||
|
go2rtc-healthcheck
|
@@ -0,0 +1 @@
|
|||||||
|
go2rtc-pipeline
|
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-log/run
Executable file
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-log/run
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
exec logutil-service /dev/shm/logs/go2rtc
|
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
12
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/finish
Executable file
12
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/finish
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="go2rtc"
|
||||||
|
|
||||||
|
echo "[INFO] The ${service} service exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
@@ -0,0 +1 @@
|
|||||||
|
go2rtc-log
|
72
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run
Executable file
72
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run
Executable file
@@ -0,0 +1,72 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Start the go2rtc service
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
function get_ip_and_port_from_supervisor() {
|
||||||
|
local ip_address
|
||||||
|
# Example: 192.168.1.10/24
|
||||||
|
local ip_regex='^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/[0-9]{1,2}$'
|
||||||
|
if ip_address=$(
|
||||||
|
curl -fsSL \
|
||||||
|
-H "Authorization: Bearer ${SUPERVISOR_TOKEN}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
http://supervisor/network/interface/default/info |
|
||||||
|
jq --exit-status --raw-output '.data.ipv4.address[0]'
|
||||||
|
) && [[ "${ip_address}" =~ ${ip_regex} ]]; then
|
||||||
|
ip_address="${BASH_REMATCH[1]}"
|
||||||
|
echo "[INFO] Got IP address from supervisor: ${ip_address}"
|
||||||
|
else
|
||||||
|
echo "[WARN] Failed to get IP address from supervisor"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
local webrtc_port
|
||||||
|
local port_regex='^([0-9]{1,5})$'
|
||||||
|
if webrtc_port=$(
|
||||||
|
curl -fsSL \
|
||||||
|
-H "Authorization: Bearer ${SUPERVISOR_TOKEN}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
http://supervisor/addons/self/info |
|
||||||
|
jq --exit-status --raw-output '.data.network["8555/tcp"]'
|
||||||
|
) && [[ "${webrtc_port}" =~ ${port_regex} ]]; then
|
||||||
|
webrtc_port="${BASH_REMATCH[1]}"
|
||||||
|
echo "[INFO] Got WebRTC port from supervisor: ${webrtc_port}"
|
||||||
|
else
|
||||||
|
echo "[WARN] Failed to get WebRTC port from supervisor"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
export FRIGATE_GO2RTC_WEBRTC_CANDIDATE_INTERNAL="${ip_address}:${webrtc_port}"
|
||||||
|
}
|
||||||
|
|
||||||
|
export LIBAVFORMAT_VERSION_MAJOR=$(ffmpeg -version | grep -Po 'libavformat\W+\K\d+')
|
||||||
|
|
||||||
|
if [[ ! -f "/dev/shm/go2rtc.yaml" ]]; then
|
||||||
|
echo "[INFO] Preparing go2rtc config..."
|
||||||
|
|
||||||
|
if [[ -n "${SUPERVISOR_TOKEN:-}" ]]; then
|
||||||
|
# Running as a Home Assistant add-on, infer the IP address and port
|
||||||
|
get_ip_and_port_from_supervisor
|
||||||
|
fi
|
||||||
|
|
||||||
|
python3 /usr/local/go2rtc/create_config.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
readonly config_path="/config"
|
||||||
|
|
||||||
|
if [[ -x "${config_path}/go2rtc" ]]; then
|
||||||
|
readonly binary_path="${config_path}/go2rtc"
|
||||||
|
echo "[WARN] Using go2rtc binary from '${binary_path}' instead of the embedded one"
|
||||||
|
else
|
||||||
|
readonly binary_path="/usr/local/go2rtc/bin/go2rtc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[INFO] Starting go2rtc..."
|
||||||
|
|
||||||
|
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
||||||
|
exec 2>&1
|
||||||
|
exec "${binary_path}" -config=/dev/shm/go2rtc.yaml
|
@@ -0,0 +1 @@
|
|||||||
|
30000
|
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/type
Normal file
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
11
docker/main/rootfs/etc/s6-overlay/s6-rc.d/log-prepare/run
Executable file
11
docker/main/rootfs/etc/s6-overlay/s6-rc.d/log-prepare/run
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Prepare the logs folder for s6-log
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx)
|
||||||
|
|
||||||
|
mkdir -p "${dirs[@]}"
|
||||||
|
chown nobody:nogroup "${dirs[@]}"
|
||||||
|
chmod 02755 "${dirs[@]}"
|
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/log-prepare/up
Normal file
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/log-prepare/up
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/log-prepare/run
|
@@ -0,0 +1 @@
|
|||||||
|
nginx
|
@@ -0,0 +1 @@
|
|||||||
|
nginx-pipeline
|
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx-log/run
Executable file
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx-log/run
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
exec logutil-service /dev/shm/logs/nginx
|
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx-log/type
Normal file
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx-log/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
30
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish
Executable file
30
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Take down the S6 supervision tree when the service fails
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
declare exit_code_container
|
||||||
|
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
||||||
|
readonly exit_code_container
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="NGINX"
|
||||||
|
|
||||||
|
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|
||||||
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo $((128 + exit_code_signal)) >/run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
if [[ "${exit_code_signal}" -eq 15 ]]; then
|
||||||
|
exec /run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
elif [[ "${exit_code_service}" -ne 0 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo "${exit_code_service}" >/run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
exec /run/s6/basedir/bin/halt
|
||||||
|
fi
|
@@ -0,0 +1 @@
|
|||||||
|
nginx-log
|
13
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
Executable file
13
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Start the NGINX service
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
echo "[INFO] Starting NGINX..."
|
||||||
|
|
||||||
|
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
||||||
|
exec 2>&1
|
||||||
|
exec nginx
|
@@ -0,0 +1 @@
|
|||||||
|
30000
|
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/type
Normal file
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
137
docker/main/rootfs/usr/local/go2rtc/create_config.py
Normal file
137
docker/main/rootfs/usr/local/go2rtc/create_config.py
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
"""Creates a go2rtc config file."""
|
||||||
|
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
|
sys.path.insert(0, "/opt/frigate")
|
||||||
|
from frigate.const import BIRDSEYE_PIPE # noqa: E402
|
||||||
|
from frigate.ffmpeg_presets import ( # noqa: E402
|
||||||
|
parse_preset_hardware_acceleration_encode,
|
||||||
|
)
|
||||||
|
|
||||||
|
sys.path.remove("/opt/frigate")
|
||||||
|
|
||||||
|
|
||||||
|
FRIGATE_ENV_VARS = {k: v for k, v in os.environ.items() if k.startswith("FRIGATE_")}
|
||||||
|
config_file = os.environ.get("CONFIG_FILE", "/config/config.yml")
|
||||||
|
|
||||||
|
# Check if we can use .yaml instead of .yml
|
||||||
|
config_file_yaml = config_file.replace(".yml", ".yaml")
|
||||||
|
if os.path.isfile(config_file_yaml):
|
||||||
|
config_file = config_file_yaml
|
||||||
|
|
||||||
|
with open(config_file) as f:
|
||||||
|
raw_config = f.read()
|
||||||
|
|
||||||
|
if config_file.endswith((".yaml", ".yml")):
|
||||||
|
config: dict[str, any] = yaml.safe_load(raw_config)
|
||||||
|
elif config_file.endswith(".json"):
|
||||||
|
config: dict[str, any] = json.loads(raw_config)
|
||||||
|
|
||||||
|
go2rtc_config: dict[str, any] = config.get("go2rtc", {})
|
||||||
|
|
||||||
|
# Need to enable CORS for go2rtc so the frigate integration / card work automatically
|
||||||
|
if go2rtc_config.get("api") is None:
|
||||||
|
go2rtc_config["api"] = {"origin": "*"}
|
||||||
|
elif go2rtc_config["api"].get("origin") is None:
|
||||||
|
go2rtc_config["api"]["origin"] = "*"
|
||||||
|
|
||||||
|
# Need to set default location for HA config
|
||||||
|
if go2rtc_config.get("hass") is None:
|
||||||
|
go2rtc_config["hass"] = {"config": "/config"}
|
||||||
|
|
||||||
|
# we want to ensure that logs are easy to read
|
||||||
|
if go2rtc_config.get("log") is None:
|
||||||
|
go2rtc_config["log"] = {"format": "text"}
|
||||||
|
elif go2rtc_config["log"].get("format") is None:
|
||||||
|
go2rtc_config["log"]["format"] = "text"
|
||||||
|
|
||||||
|
if not go2rtc_config.get("webrtc", {}).get("candidates", []):
|
||||||
|
default_candidates = []
|
||||||
|
# use internal candidate if it was discovered when running through the add-on
|
||||||
|
internal_candidate = os.environ.get(
|
||||||
|
"FRIGATE_GO2RTC_WEBRTC_CANDIDATE_INTERNAL", None
|
||||||
|
)
|
||||||
|
if internal_candidate is not None:
|
||||||
|
default_candidates.append(internal_candidate)
|
||||||
|
# should set default stun server so webrtc can work
|
||||||
|
default_candidates.append("stun:8555")
|
||||||
|
|
||||||
|
go2rtc_config["webrtc"] = {"candidates": default_candidates}
|
||||||
|
else:
|
||||||
|
print(
|
||||||
|
"[INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually",
|
||||||
|
)
|
||||||
|
|
||||||
|
# sets default RTSP response to be equivalent to ?video=h264,h265&audio=aac
|
||||||
|
# this means user does not need to specify audio codec when using restream
|
||||||
|
# as source for frigate and the integration supports HLS playback
|
||||||
|
if go2rtc_config.get("rtsp") is None:
|
||||||
|
go2rtc_config["rtsp"] = {"default_query": "mp4"}
|
||||||
|
else:
|
||||||
|
if go2rtc_config["rtsp"].get("default_query") is None:
|
||||||
|
go2rtc_config["rtsp"]["default_query"] = "mp4"
|
||||||
|
|
||||||
|
if go2rtc_config["rtsp"].get("username") is not None:
|
||||||
|
go2rtc_config["rtsp"]["username"] = go2rtc_config["rtsp"]["username"].format(
|
||||||
|
**FRIGATE_ENV_VARS
|
||||||
|
)
|
||||||
|
|
||||||
|
if go2rtc_config["rtsp"].get("password") is not None:
|
||||||
|
go2rtc_config["rtsp"]["password"] = go2rtc_config["rtsp"]["password"].format(
|
||||||
|
**FRIGATE_ENV_VARS
|
||||||
|
)
|
||||||
|
|
||||||
|
# need to replace ffmpeg command when using ffmpeg4
|
||||||
|
if int(os.environ["LIBAVFORMAT_VERSION_MAJOR"]) < 59:
|
||||||
|
if go2rtc_config.get("ffmpeg") is None:
|
||||||
|
go2rtc_config["ffmpeg"] = {
|
||||||
|
"rtsp": "-fflags nobuffer -flags low_delay -stimeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i {input}"
|
||||||
|
}
|
||||||
|
elif go2rtc_config["ffmpeg"].get("rtsp") is None:
|
||||||
|
go2rtc_config["ffmpeg"][
|
||||||
|
"rtsp"
|
||||||
|
] = "-fflags nobuffer -flags low_delay -stimeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i {input}"
|
||||||
|
|
||||||
|
for name in go2rtc_config.get("streams", {}):
|
||||||
|
stream = go2rtc_config["streams"][name]
|
||||||
|
|
||||||
|
if isinstance(stream, str):
|
||||||
|
try:
|
||||||
|
go2rtc_config["streams"][name] = go2rtc_config["streams"][name].format(
|
||||||
|
**FRIGATE_ENV_VARS
|
||||||
|
)
|
||||||
|
except KeyError as e:
|
||||||
|
print(
|
||||||
|
"[ERROR] Invalid substitution found, see https://docs.frigate.video/configuration/restream#advanced-restream-configurations for more info."
|
||||||
|
)
|
||||||
|
sys.exit(e)
|
||||||
|
|
||||||
|
elif isinstance(stream, list):
|
||||||
|
for i, stream in enumerate(stream):
|
||||||
|
try:
|
||||||
|
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
|
||||||
|
except KeyError as e:
|
||||||
|
print(
|
||||||
|
"[ERROR] Invalid substitution found, see https://docs.frigate.video/configuration/restream#advanced-restream-configurations for more info."
|
||||||
|
)
|
||||||
|
sys.exit(e)
|
||||||
|
|
||||||
|
# add birdseye restream stream if enabled
|
||||||
|
if config.get("birdseye", {}).get("restream", False):
|
||||||
|
birdseye: dict[str, any] = config.get("birdseye")
|
||||||
|
|
||||||
|
input = f"-f rawvideo -pix_fmt yuv420p -video_size {birdseye.get('width', 1280)}x{birdseye.get('height', 720)} -r 10 -i {BIRDSEYE_PIPE}"
|
||||||
|
ffmpeg_cmd = f"exec:{parse_preset_hardware_acceleration_encode(config.get('ffmpeg', {}).get('hwaccel_args'), input, '-rtsp_transport tcp -f rtsp {output}')}"
|
||||||
|
|
||||||
|
if go2rtc_config.get("streams"):
|
||||||
|
go2rtc_config["streams"]["birdseye"] = ffmpeg_cmd
|
||||||
|
else:
|
||||||
|
go2rtc_config["streams"] = {"birdseye": ffmpeg_cmd}
|
||||||
|
|
||||||
|
# Write go2rtc_config to /dev/shm/go2rtc.yaml
|
||||||
|
with open("/dev/shm/go2rtc.yaml", "w") as f:
|
||||||
|
yaml.dump(go2rtc_config, f)
|
243
docker/main/rootfs/usr/local/nginx/conf/nginx.conf
Normal file
243
docker/main/rootfs/usr/local/nginx/conf/nginx.conf
Normal file
@@ -0,0 +1,243 @@
|
|||||||
|
daemon off;
|
||||||
|
user root;
|
||||||
|
worker_processes auto;
|
||||||
|
|
||||||
|
error_log /dev/stdout warn;
|
||||||
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
include mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
access_log /dev/stdout main;
|
||||||
|
|
||||||
|
# send headers in one piece, it is better than sending them one by one
|
||||||
|
tcp_nopush on;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/javascript image/svg+xml image/x-icon image/bmp image/png image/gif image/jpeg image/jpg;
|
||||||
|
gzip_proxied no-cache no-store private expired auth;
|
||||||
|
gzip_vary on;
|
||||||
|
|
||||||
|
upstream frigate_api {
|
||||||
|
server 127.0.0.1:5001;
|
||||||
|
keepalive 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream mqtt_ws {
|
||||||
|
server 127.0.0.1:5002;
|
||||||
|
keepalive 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream jsmpeg {
|
||||||
|
server 127.0.0.1:8082;
|
||||||
|
keepalive 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream go2rtc {
|
||||||
|
server 127.0.0.1:1984;
|
||||||
|
keepalive 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 5000;
|
||||||
|
|
||||||
|
# vod settings
|
||||||
|
vod_base_url '';
|
||||||
|
vod_segments_base_url '';
|
||||||
|
vod_mode mapped;
|
||||||
|
vod_max_mapping_response_size 1m;
|
||||||
|
vod_upstream_location /api;
|
||||||
|
vod_align_segments_to_key_frames on;
|
||||||
|
vod_manifest_segment_durations_mode accurate;
|
||||||
|
vod_ignore_edit_list on;
|
||||||
|
vod_segment_duration 10000;
|
||||||
|
vod_hls_mpegts_align_frames off;
|
||||||
|
vod_hls_mpegts_interleave_frames on;
|
||||||
|
|
||||||
|
# file handle caching / aio
|
||||||
|
open_file_cache max=1000 inactive=5m;
|
||||||
|
open_file_cache_valid 2m;
|
||||||
|
open_file_cache_min_uses 1;
|
||||||
|
open_file_cache_errors on;
|
||||||
|
aio on;
|
||||||
|
|
||||||
|
# https://github.com/kaltura/nginx-vod-module#vod_open_file_thread_pool
|
||||||
|
vod_open_file_thread_pool default;
|
||||||
|
|
||||||
|
# vod caches
|
||||||
|
vod_metadata_cache metadata_cache 512m;
|
||||||
|
vod_mapping_cache mapping_cache 5m 10m;
|
||||||
|
|
||||||
|
# gzip manifests
|
||||||
|
gzip on;
|
||||||
|
gzip_types application/vnd.apple.mpegurl;
|
||||||
|
|
||||||
|
location /vod/ {
|
||||||
|
aio threads;
|
||||||
|
vod hls;
|
||||||
|
|
||||||
|
secure_token $args;
|
||||||
|
secure_token_types application/vnd.apple.mpegurl;
|
||||||
|
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
expires off;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /stream/ {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
expires off;
|
||||||
|
|
||||||
|
types {
|
||||||
|
application/dash+xml mpd;
|
||||||
|
application/vnd.apple.mpegurl m3u8;
|
||||||
|
video/mp2t ts;
|
||||||
|
image/jpeg jpg;
|
||||||
|
}
|
||||||
|
|
||||||
|
root /tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /clips/ {
|
||||||
|
|
||||||
|
types {
|
||||||
|
video/mp4 mp4;
|
||||||
|
image/jpeg jpg;
|
||||||
|
}
|
||||||
|
|
||||||
|
autoindex on;
|
||||||
|
root /media/frigate;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /cache/ {
|
||||||
|
internal; # This tells nginx it's not accessible from the outside
|
||||||
|
alias /tmp/cache/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /recordings/ {
|
||||||
|
types {
|
||||||
|
video/mp4 mp4;
|
||||||
|
}
|
||||||
|
|
||||||
|
autoindex on;
|
||||||
|
autoindex_format json;
|
||||||
|
root /media/frigate;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /exports/ {
|
||||||
|
types {
|
||||||
|
video/mp4 mp4;
|
||||||
|
}
|
||||||
|
|
||||||
|
autoindex on;
|
||||||
|
autoindex_format json;
|
||||||
|
root /media/frigate;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /ws {
|
||||||
|
proxy_pass http://mqtt_ws/;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /live/jsmpeg/ {
|
||||||
|
proxy_pass http://jsmpeg/;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /live/mse/ {
|
||||||
|
proxy_pass http://go2rtc/;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /live/webrtc/ {
|
||||||
|
proxy_pass http://go2rtc/;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~* /api/go2rtc([/]?.*)$ {
|
||||||
|
proxy_pass http://go2rtc;
|
||||||
|
rewrite ^/api/go2rtc(.*)$ /api$1 break;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~* /api/.*\.(jpg|jpeg|png)$ {
|
||||||
|
rewrite ^/api/(.*)$ $1 break;
|
||||||
|
proxy_pass http://frigate_api;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api/ {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
expires off;
|
||||||
|
proxy_pass http://frigate_api/;
|
||||||
|
include proxy.conf;
|
||||||
|
|
||||||
|
location /api/stats {
|
||||||
|
access_log off;
|
||||||
|
rewrite ^/api/(.*)$ $1 break;
|
||||||
|
proxy_pass http://frigate_api;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api/version {
|
||||||
|
access_log off;
|
||||||
|
rewrite ^/api/(.*)$ $1 break;
|
||||||
|
proxy_pass http://frigate_api;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
expires off;
|
||||||
|
|
||||||
|
location /assets/ {
|
||||||
|
access_log off;
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control "public";
|
||||||
|
}
|
||||||
|
|
||||||
|
sub_filter 'href="/BASE_PATH/' 'href="$http_x_ingress_path/';
|
||||||
|
sub_filter 'url(/BASE_PATH/' 'url($http_x_ingress_path/';
|
||||||
|
sub_filter '"/BASE_PATH/dist/' '"$http_x_ingress_path/dist/';
|
||||||
|
sub_filter '"/BASE_PATH/js/' '"$http_x_ingress_path/js/';
|
||||||
|
sub_filter '"/BASE_PATH/assets/' '"$http_x_ingress_path/assets/';
|
||||||
|
sub_filter '"/BASE_PATH/monacoeditorwork/' '"$http_x_ingress_path/assets/';
|
||||||
|
sub_filter 'return"/BASE_PATH/"' 'return window.baseUrl';
|
||||||
|
sub_filter '<body>' '<body><script>window.baseUrl="$http_x_ingress_path/";</script>';
|
||||||
|
sub_filter_types text/css application/javascript;
|
||||||
|
sub_filter_once off;
|
||||||
|
|
||||||
|
root /opt/frigate/web;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rtmp {
|
||||||
|
server {
|
||||||
|
listen 1935;
|
||||||
|
chunk_size 4096;
|
||||||
|
allow publish 127.0.0.1;
|
||||||
|
deny publish all;
|
||||||
|
allow play all;
|
||||||
|
application live {
|
||||||
|
live on;
|
||||||
|
record off;
|
||||||
|
meta copy;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
4
docker/main/rootfs/usr/local/nginx/conf/proxy.conf
Normal file
4
docker/main/rootfs/usr/local/nginx/conf/proxy.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $host;
|
16
docker/rpi/Dockerfile
Normal file
16
docker/rpi/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# syntax=docker/dockerfile:1.4
|
||||||
|
|
||||||
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
FROM deps AS rpi-deps
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
RUN rm -rf /usr/lib/btbn-ffmpeg/
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN --mount=type=bind,source=docker/rpi/install_deps.sh,target=/deps/install_deps.sh \
|
||||||
|
/deps/install_deps.sh
|
||||||
|
|
||||||
|
WORKDIR /opt/frigate/
|
||||||
|
COPY --from=rootfs / /
|
30
docker/rpi/install_deps.sh
Executable file
30
docker/rpi/install_deps.sh
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
apt-get -qq update
|
||||||
|
|
||||||
|
apt-get -qq install --no-install-recommends -y \
|
||||||
|
apt-transport-https \
|
||||||
|
gnupg \
|
||||||
|
wget \
|
||||||
|
procps vainfo \
|
||||||
|
unzip locales tzdata libxml2 xz-utils \
|
||||||
|
python3-pip \
|
||||||
|
curl \
|
||||||
|
jq \
|
||||||
|
nethogs
|
||||||
|
|
||||||
|
mkdir -p -m 600 /root/.gnupg
|
||||||
|
|
||||||
|
# enable non-free repo
|
||||||
|
sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list
|
||||||
|
|
||||||
|
# ffmpeg -> arm64
|
||||||
|
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
|
# add raspberry pi repo
|
||||||
|
gpg --no-default-keyring --keyring /usr/share/keyrings/raspbian.gpg --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/raspbian.gpg] https://archive.raspberrypi.org/debian/ bullseye main" | tee /etc/apt/sources.list.d/raspi.list
|
||||||
|
apt-get -qq update
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y ffmpeg
|
||||||
|
fi
|
20
docker/rpi/rpi.hcl
Normal file
20
docker/rpi/rpi.hcl
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
target deps {
|
||||||
|
dockerfile = "docker/main/Dockerfile"
|
||||||
|
platforms = ["linux/arm64"]
|
||||||
|
target = "deps"
|
||||||
|
}
|
||||||
|
|
||||||
|
target rootfs {
|
||||||
|
dockerfile = "docker/main/Dockerfile"
|
||||||
|
platforms = ["linux/arm64"]
|
||||||
|
target = "rootfs"
|
||||||
|
}
|
||||||
|
|
||||||
|
target rpi {
|
||||||
|
dockerfile = "docker/rpi/Dockerfile"
|
||||||
|
contexts = {
|
||||||
|
deps = "target:deps",
|
||||||
|
rootfs = "target:rootfs"
|
||||||
|
}
|
||||||
|
platforms = ["linux/arm64"]
|
||||||
|
}
|
10
docker/rpi/rpi.mk
Normal file
10
docker/rpi/rpi.mk
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
BOARDS += rpi
|
||||||
|
|
||||||
|
local-rpi: version
|
||||||
|
docker buildx bake --load --file=docker/rpi/rpi.hcl --set rpi.tags=frigate:latest-rpi rpi
|
||||||
|
|
||||||
|
build-rpi: version
|
||||||
|
docker buildx bake --file=docker/rpi/rpi.hcl --set rpi.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rpi rpi
|
||||||
|
|
||||||
|
push-rpi: build-rpi
|
||||||
|
docker buildx bake --push --file=docker/rpi/rpi.hcl --set rpi.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rpi rpi
|
32
docker/tensorrt/Dockerfile.amd64
Normal file
32
docker/tensorrt/Dockerfile.amd64
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# syntax=docker/dockerfile:1.4
|
||||||
|
|
||||||
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
# Make this a separate target so it can be built/cached optionally
|
||||||
|
FROM wheels as trt-wheels
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
# Add TensorRT wheels to another folder
|
||||||
|
COPY docker/tensorrt/requirements-amd64.txt /requirements-tensorrt.txt
|
||||||
|
RUN mkdir -p /trt-wheels && pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt
|
||||||
|
|
||||||
|
FROM tensorrt-base AS frigate-tensorrt
|
||||||
|
ENV TRT_VER=8.5.3
|
||||||
|
RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \
|
||||||
|
pip3 install -U /deps/trt-wheels/*.whl && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
|
WORKDIR /opt/frigate/
|
||||||
|
COPY --from=rootfs / /
|
||||||
|
|
||||||
|
# Dev Container w/ TRT
|
||||||
|
FROM devcontainer AS devcontainer-trt
|
||||||
|
|
||||||
|
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
||||||
|
COPY --from=trt-deps /usr/local/src/tensorrt_demos /usr/local/src/tensorrt_demos
|
||||||
|
COPY docker/tensorrt/detector/rootfs/ /
|
||||||
|
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
||||||
|
RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \
|
||||||
|
pip3 install -U /deps/trt-wheels/*.whl
|
79
docker/tensorrt/Dockerfile.arm64
Normal file
79
docker/tensorrt/Dockerfile.arm64
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
# syntax=docker/dockerfile:1.4
|
||||||
|
|
||||||
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
ARG BASE_IMAGE
|
||||||
|
FROM ${BASE_IMAGE} AS build-wheels
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
|
||||||
|
# Use a separate container to build wheels to prevent build dependencies in final image
|
||||||
|
RUN apt-get -qq update \
|
||||||
|
&& apt-get -qq install -y --no-install-recommends \
|
||||||
|
python3.9 python3.9-dev \
|
||||||
|
wget build-essential cmake git \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Ensure python3 defaults to python3.9
|
||||||
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
||||||
|
|
||||||
|
RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
|
||||||
|
&& python3 get-pip.py "pip"
|
||||||
|
|
||||||
|
|
||||||
|
FROM build-wheels AS trt-wheels
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
# python-tensorrt build deps are 3.4 GB!
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y ccache cuda-cudart-dev-* cuda-nvcc-* libnvonnxparsers-dev libnvparsers-dev libnvinfer-plugin-dev \
|
||||||
|
&& ([ -e /usr/local/cuda ] || ln -s /usr/local/cuda-* /usr/local/cuda) \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
|
# Determine version of tensorrt already installed in base image, e.g. "Version: 8.4.1-1+cuda11.4"
|
||||||
|
RUN NVINFER_VER=$(dpkg -s libnvinfer8 | grep -Po "Version: \K.*") \
|
||||||
|
&& echo $NVINFER_VER | grep -Po "^\d+\.\d+\.\d+" > /etc/TENSORRT_VER
|
||||||
|
|
||||||
|
RUN --mount=type=bind,source=docker/tensorrt/detector/build_python_tensorrt.sh,target=/deps/build_python_tensorrt.sh \
|
||||||
|
--mount=type=cache,target=/root/.ccache \
|
||||||
|
export PATH="/usr/lib/ccache:$PATH" CCACHE_DIR=/root/.ccache CCACHE_MAXSIZE=2G \
|
||||||
|
&& TENSORRT_VER=$(cat /etc/TENSORRT_VER) /deps/build_python_tensorrt.sh
|
||||||
|
|
||||||
|
COPY docker/tensorrt/requirements-arm64.txt /requirements-tensorrt.txt
|
||||||
|
RUN pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt
|
||||||
|
|
||||||
|
FROM build-wheels AS trt-model-wheels
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y protobuf-compiler libprotobuf-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN --mount=type=bind,source=docker/tensorrt/requirements-models-arm64.txt,target=/requirements-tensorrt-models.txt \
|
||||||
|
pip3 wheel --wheel-dir=/trt-model-wheels -r /requirements-tensorrt-models.txt
|
||||||
|
|
||||||
|
FROM wget AS jetson-ffmpeg
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
ENV CCACHE_DIR /root/.ccache
|
||||||
|
ENV CCACHE_MAXSIZE 2G
|
||||||
|
RUN --mount=type=bind,source=docker/tensorrt/build_jetson_ffmpeg.sh,target=/deps/build_jetson_ffmpeg.sh \
|
||||||
|
--mount=type=cache,target=/root/.ccache \
|
||||||
|
/deps/build_jetson_ffmpeg.sh
|
||||||
|
|
||||||
|
# Frigate w/ TensorRT for NVIDIA Jetson platforms
|
||||||
|
FROM tensorrt-base AS frigate-tensorrt
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y python-is-python3 libprotobuf17 \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN rm -rf /usr/lib/btbn-ffmpeg/
|
||||||
|
COPY --from=jetson-ffmpeg /rootfs /
|
||||||
|
|
||||||
|
COPY --from=trt-wheels /etc/TENSORRT_VER /etc/TENSORRT_VER
|
||||||
|
RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \
|
||||||
|
--mount=type=bind,from=trt-model-wheels,source=/trt-model-wheels,target=/deps/trt-model-wheels \
|
||||||
|
pip3 install -U /deps/trt-wheels/*.whl /deps/trt-model-wheels/*.whl \
|
||||||
|
&& ldconfig
|
||||||
|
|
||||||
|
WORKDIR /opt/frigate/
|
||||||
|
COPY --from=rootfs / /
|
29
docker/tensorrt/Dockerfile.base
Normal file
29
docker/tensorrt/Dockerfile.base
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# syntax=docker/dockerfile:1.6
|
||||||
|
|
||||||
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
ARG TRT_BASE=nvcr.io/nvidia/tensorrt:23.03-py3
|
||||||
|
|
||||||
|
# Build TensorRT-specific library
|
||||||
|
FROM ${TRT_BASE} AS trt-deps
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y git build-essential cuda-nvcc-* cuda-nvtx-* libnvinfer-dev libnvinfer-plugin-dev libnvparsers-dev libnvonnxparsers-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN --mount=type=bind,source=docker/tensorrt/detector/tensorrt_libyolo.sh,target=/tensorrt_libyolo.sh \
|
||||||
|
/tensorrt_libyolo.sh
|
||||||
|
|
||||||
|
# Frigate w/ TensorRT Support as separate image
|
||||||
|
FROM deps AS tensorrt-base
|
||||||
|
|
||||||
|
#Disable S6 Global timeout
|
||||||
|
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
||||||
|
|
||||||
|
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
||||||
|
COPY --from=trt-deps /usr/local/src/tensorrt_demos /usr/local/src/tensorrt_demos
|
||||||
|
COPY docker/tensorrt/detector/rootfs/ /
|
||||||
|
ENV YOLO_MODELS="yolov7-320"
|
||||||
|
|
||||||
|
HEALTHCHECK --start-period=600s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
|
||||||
|
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user