mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	format
This commit is contained in:
		
							parent
							
								
									a53fc32d1a
								
							
						
					
					
						commit
						5ca3035cbf
					
				@ -29,8 +29,8 @@ from frigate.util import (
 | 
				
			|||||||
    deep_merge,
 | 
					    deep_merge,
 | 
				
			||||||
    escape_special_characters,
 | 
					    escape_special_characters,
 | 
				
			||||||
    get_ffmpeg_arg_list,
 | 
					    get_ffmpeg_arg_list,
 | 
				
			||||||
    load_config_with_no_duplicates,
 | 
					 | 
				
			||||||
    get_video_properties,
 | 
					    get_video_properties,
 | 
				
			||||||
 | 
					    load_config_with_no_duplicates,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
logger = logging.getLogger(__name__)
 | 
					logger = logging.getLogger(__name__)
 | 
				
			||||||
@ -676,7 +676,6 @@ class CameraConfig(FrigateBaseModel):
 | 
				
			|||||||
                "detect" in input.get("roles", [])
 | 
					                "detect" in input.get("roles", [])
 | 
				
			||||||
            ):
 | 
					            ):
 | 
				
			||||||
                try:
 | 
					                try:
 | 
				
			||||||
                    
 | 
					 | 
				
			||||||
                    streamInfo = get_video_properties(input.get("path"))
 | 
					                    streamInfo = get_video_properties(input.get("path"))
 | 
				
			||||||
                    config["detect"]["width"] = streamInfo["width"]
 | 
					                    config["detect"]["width"] = streamInfo["width"]
 | 
				
			||||||
                    config["detect"]["height"] = streamInfo["height"]
 | 
					                    config["detect"]["height"] = streamInfo["height"]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user