mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	* Refactor post processor to be real time processor * Build out generic API for post processing * Cleanup * Fix
		
			
				
	
	
		
			28 lines
		
	
	
		
			738 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			738 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from enum import Enum
 | |
| from typing import TypedDict
 | |
| 
 | |
| from frigate.camera import CameraMetrics
 | |
| from frigate.data_processing.types import DataProcessorMetrics
 | |
| from frigate.object_detection import ObjectDetectProcess
 | |
| 
 | |
| 
 | |
| class StatsTrackingTypes(TypedDict):
 | |
|     camera_metrics: dict[str, CameraMetrics]
 | |
|     embeddings_metrics: DataProcessorMetrics | None
 | |
|     detectors: dict[str, ObjectDetectProcess]
 | |
|     started: int
 | |
|     latest_frigate_version: str
 | |
|     last_updated: int
 | |
|     processes: dict[str, int]
 | |
| 
 | |
| 
 | |
| class ModelStatusTypesEnum(str, Enum):
 | |
|     not_downloaded = "not_downloaded"
 | |
|     downloading = "downloading"
 | |
|     downloaded = "downloaded"
 | |
|     error = "error"
 | |
| 
 | |
| 
 | |
| class TrackedObjectUpdateTypesEnum(str, Enum):
 | |
|     description = "description"
 |