File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -882,7 +882,7 @@ output_name: "{input_basename}"
882
882
config:
883
883
mean_values: [[0, 0, 0]]
884
884
std_values: [[255, 255, 255]]
885
- quant_img_rgb2bgr : true
885
+ quant_img_RGB2BGR : true
886
886
` ` `
887
887
888
888
Explanation of the paramters :
Original file line number Diff line number Diff line change 4
4
5
5
import numpy as np
6
6
7
- from frigate .detectors .detector_config import ModelTypeEnum
7
+ from frigate .detectors .detector_config import BaseDetectorConfig , ModelTypeEnum
8
8
9
9
logger = logging .getLogger (__name__ )
10
10
@@ -14,7 +14,7 @@ class DetectionApi(ABC):
14
14
supported_models : List [ModelTypeEnum ]
15
15
16
16
@abstractmethod
17
- def __init__ (self , detector_config ):
17
+ def __init__ (self , detector_config : BaseDetectorConfig ):
18
18
self .detector_config = detector_config
19
19
self .thresh = 0.5
20
20
self .height = detector_config .model .height
Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ export default function SearchFilterGroup({
63
63
return ;
64
64
}
65
65
const cameraConfig = config . cameras [ camera ] ;
66
+
67
+ if ( ! cameraConfig ) {
68
+ return ;
69
+ }
70
+
66
71
cameraConfig . objects . track . forEach ( ( label ) => {
67
72
if ( ! config . model . all_attributes . includes ( label ) ) {
68
73
labels . add ( label ) ;
@@ -99,7 +104,13 @@ export default function SearchFilterGroup({
99
104
if ( camera == "birdseye" ) {
100
105
return ;
101
106
}
107
+
102
108
const cameraConfig = config . cameras [ camera ] ;
109
+
110
+ if ( ! cameraConfig ) {
111
+ return ;
112
+ }
113
+
103
114
Object . entries ( cameraConfig . zones ) . map ( ( [ name , _ ] ) => {
104
115
zones . add ( name ) ;
105
116
} ) ;
Original file line number Diff line number Diff line change @@ -107,7 +107,13 @@ export default function SearchView({
107
107
if ( camera == "birdseye" ) {
108
108
return ;
109
109
}
110
+
110
111
const cameraConfig = config . cameras [ camera ] ;
112
+
113
+ if ( ! cameraConfig ) {
114
+ return ;
115
+ }
116
+
111
117
cameraConfig . objects . track . forEach ( ( label ) => {
112
118
labels . add ( label ) ;
113
119
} ) ;
@@ -139,7 +145,13 @@ export default function SearchView({
139
145
if ( camera == "birdseye" ) {
140
146
return ;
141
147
}
148
+
142
149
const cameraConfig = config . cameras [ camera ] ;
150
+
151
+ if ( ! cameraConfig ) {
152
+ return ;
153
+ }
154
+
143
155
Object . entries ( cameraConfig . zones ) . map ( ( [ name , _ ] ) => {
144
156
zones . add ( name ) ;
145
157
} ) ;
You can’t perform that action at this time.
0 commit comments