mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Setting motion masks to zero, rather than 255, will speed up calibration, as the average frame starts out at zero (#9992)
This commit is contained in:
		
							parent
							
								
									a6aa5328aa
								
							
						
					
					
						commit
						fc94fcb2ac
					
				| @ -101,7 +101,8 @@ class ImprovedMotionDetector(MotionDetector): | ||||
| 
 | ||||
|         # mask frame | ||||
|         # this has to come after contrast improvement | ||||
|         resized_frame[self.mask] = [255] | ||||
|         # Setting masked pixels to zero, to match the average frame at startup | ||||
|         resized_frame[self.mask] = [0] | ||||
| 
 | ||||
|         resized_frame = gaussian_filter(resized_frame, sigma=1, radius=self.blur_radius) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user