mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	update an object once per minute
This commit is contained in:
		
							parent
							
								
									63536d249f
								
							
						
					
					
						commit
						3189467a36
					
				@ -165,6 +165,10 @@ class TrackedObject:
 | 
				
			|||||||
            ):
 | 
					            ):
 | 
				
			||||||
                significant_change = True
 | 
					                significant_change = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            # update at least once per minute
 | 
				
			||||||
 | 
					            if self.obj_data["frame_time"] - self.previous["frame_time"] > 60:
 | 
				
			||||||
 | 
					                significant_change = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.obj_data.update(obj_data)
 | 
					        self.obj_data.update(obj_data)
 | 
				
			||||||
        self.current_zones = current_zones
 | 
					        self.current_zones = current_zones
 | 
				
			||||||
        return (thumb_update, significant_change)
 | 
					        return (thumb_update, significant_change)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user