detect and process dedicated lpr plates

This commit is contained in:
Josh Hawkins
2025-03-20 09:18:32 -05:00
parent 8bf1c216bb
commit ed1cffd4ae
2 changed files with 332 additions and 137 deletions

View File

@@ -35,9 +35,11 @@ class LicensePlateRealTimeProcessor(LicensePlateProcessingMixin, RealTimeProcess
self.sub_label_publisher = sub_label_publisher
super().__init__(config, metrics)
def process_frame(self, obj_data: dict[str, any], frame: np.ndarray):
def process_frame(
self, obj_data: dict[str, any], frame: np.ndarray, dedicated_lpr: bool = None
):
"""Look for license plates in image."""
self.lpr_process(obj_data, frame)
self.lpr_process(obj_data, frame, dedicated_lpr)
def handle_request(self, topic, request_data) -> dict[str, any] | None:
return