mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Log warning for high detect fps (#11435)
* warn in log if detect fps > 10 * change message
This commit is contained in:
		
							parent
							
								
									4c87ef56c7
								
							
						
					
					
						commit
						82d4bf8ab5
					
				@ -1442,6 +1442,12 @@ class FrigateConfig(FrigateBaseModel):
 | 
			
		||||
                        else False
 | 
			
		||||
                    )
 | 
			
		||||
 | 
			
		||||
            # Warn if detect fps > 10
 | 
			
		||||
            if camera_config.detect.fps > 10:
 | 
			
		||||
                logger.warning(
 | 
			
		||||
                    f"{camera_config.name} detect fps is set to {camera_config.detect.fps}. This does NOT need to match your camera's frame rate. High values could lead to reduced performance. Recommended value is 5."
 | 
			
		||||
                )
 | 
			
		||||
 | 
			
		||||
            # Default min_initialized configuration
 | 
			
		||||
            min_initialized = int(camera_config.detect.fps / 2)
 | 
			
		||||
            if camera_config.detect.min_initialized is None:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user