@@ -80,7 +80,7 @@ def detect_faces(self, *args, **kwargs):
80
80
output = None ,
81
81
scales = scales )
82
82
if not all (faces for faces in processed ) and self .rotation != [0 ]:
83
- processed = self .process_rotations (detect_images , processed )
83
+ processed = self .process_rotations (detect_images , processed , scales )
84
84
for idx , faces in enumerate (processed ):
85
85
filename = filenames [idx ]
86
86
for b_idx , item in enumerate (batch ):
@@ -137,7 +137,8 @@ def process_output(self, batch_detected,
137
137
indexes = None , rotation_matrix = None , output = None , scales = None ):
138
138
""" Process the output images """
139
139
logger .trace ("Processing Output: (batch_detected: %s, indexes: %s, rotation_matrix: %s, "
140
- "output: %s" , batch_detected , indexes , rotation_matrix , output )
140
+ "output: %s, scales: %s" ,
141
+ batch_detected , indexes , rotation_matrix , output , scales )
141
142
output = output if output else list ()
142
143
for idx , faces in enumerate (batch_detected ):
143
144
detected_faces = list ()
@@ -163,7 +164,7 @@ def process_output(self, batch_detected,
163
164
logger .trace ("Processed Output: %s" , output )
164
165
return output
165
166
166
- def process_rotations (self , detect_images , processed ):
167
+ def process_rotations (self , detect_images , processed , scales ):
167
168
""" Rotate frames missing faces until face is found """
168
169
logger .trace ("Processing Rotations" )
169
170
for angle in self .rotation :
@@ -182,7 +183,8 @@ def process_rotations(self, detect_images, processed):
182
183
processed = self .process_output (batch_detected ,
183
184
indexes = indexes ,
184
185
rotation_matrix = rotmat ,
185
- output = processed )
186
+ output = processed ,
187
+ scales = scales )
186
188
logger .trace ("Processed Rotations" )
187
189
return processed
188
190
0 commit comments