mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Use existing bounding box for region when object is stationary (#8248)
This commit is contained in:
		
							parent
							
								
									b4d5a3ef14
								
							
						
					
					
						commit
						a3c0e30502
					
				@ -607,7 +607,12 @@ def process_frames(
 | 
			
		||||
 | 
			
		||||
            # get tracked object boxes that aren't stationary
 | 
			
		||||
            tracked_object_boxes = [
 | 
			
		||||
                (
 | 
			
		||||
                    # use existing object box for stationary objects
 | 
			
		||||
                    obj["estimate"]
 | 
			
		||||
                    if obj["motionless_count"] < detect_config.stationary.threshold
 | 
			
		||||
                    else obj["box"]
 | 
			
		||||
                )
 | 
			
		||||
                for obj in object_tracker.tracked_objects.values()
 | 
			
		||||
                if obj["id"] not in stationary_object_ids
 | 
			
		||||
            ]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user