| [plugin]
|
| name = "license_plate_recognition"
|
| version = "5.3.0"
|
| display_name = "Nhận diện biển số xe"
|
| description = "Phát hiện và nhận diện biển số xe Việt Nam"
|
| library = "license_plate_recognition.dll"
|
|
|
| [capabilities]
|
| use_gpu = true
|
| use_batching = true
|
| use_tracking = true
|
| use_zone = true
|
|
|
| [classes]
|
| names = ["car", "motorbike", "truck", "bus"]
|
| defaults = ["car", "motorbike", "truck", "bus"]
|
|
|
| [models]
|
|
|
|
|
|
|
|
|
| files = [
|
| "mbfs_vehicle_det_v4.onnx",
|
| "lp_detection_v4.onnx",
|
| "mbfsn_cls_brand_car_v1.onnx",
|
| "license_place_rec_crnn_v8.onnx",
|
| "weight_detect_corner.onnx",
|
| ]
|
|
|
| [inference]
|
| model = "mbfs_vehicle_det_v4.onnx"
|
| confidence = 0.5
|
| nms = 0.45
|
| input_size = 640
|
|
|
| [models.plate_detector]
|
| model = "lp_detection_v4.onnx"
|
| kind = "yolo"
|
| input_size = 640
|
| confidence = 0.3
|
| nms = 0.45
|
|
|
|
|
|
|
|
|
|
|
| [models.vehicle_brand]
|
| model = "mbfsn_cls_brand_car_v1.onnx"
|
| kind = "classifier"
|
| input_size = 224
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| [models.plate_ocr_crnn]
|
| model = "license_place_rec_crnn_v8.onnx"
|
| kind = "ocr_seq"
|
| input_size = [128, 32]
|
|
|
| [models.plate_ocr_crnn.ocr_seq]
|
| vocab = "0123456789ABCDEFGHKLMNPRSTUVXYZ"
|
| channels = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| [models.plate_corner]
|
| model = "weight_detect_corner.onnx"
|
| kind = "yolo"
|
| input_size = 320
|
| confidence = 0.3
|
| nms = 0.5
|
|
|
|
|
|
|
| [[config.sections]]
|
| title = "MODELS"
|
| fields = [
|
| { key = "model_1", type = "model", label = "Vehicle Detector:" },
|
| { key = "model_2", type = "model", label = "Plate Detector:" },
|
| { key = "model_3", type = "model", label = "Vehicle Brand:" },
|
| { key = "model_4", type = "model", label = "CRNN OCR Model (v8):" },
|
| { key = "model_5", type = "model", label = "Corner Detector:" },
|
| ]
|
|
|
| [[config.sections]]
|
| title = "DETECTION"
|
| fields = [
|
| { key = "inference.confidence", type = "slider", label = "Vehicle Detection Confidence", help = "Primary YOLO vehicle detection confidence (0.0-1.0)", min = 0.0, max = 1.0, step = 0.05, default = 0.5 },
|
| { key = "models.plate_detector.confidence", type = "slider", label = "Plate Detection Confidence", help = "Plate detector confidence threshold (0.0-1.0)", min = 0.0, max = 1.0, step = 0.05, default = 0.3 },
|
| { key = "two_line_aspect_max", type = "slider", label = "2-Line Plate Aspect Threshold", help = "Plates with width/height below this are tried as 2-line first. Falls back to 1-line on failed validation. Lower = favor 1-line; higher = favor 2-line.", min = 1.5, max = 3.5, step = 0.1, default = 2.3 },
|
| { key = "min_ocr_confidence", type = "slider", label = "Min Plate OCR Confidence", help = "Reject whole plate readings below this averaged per-character confidence (0.0-1.0)", min = 0.0, max = 1.0, step = 0.05, default = 0.3 },
|
| ]
|
|
|
| [[config.sections]]
|
| title = "VEHICLE IDENTIFICATION"
|
| fields = [
|
| { key = "vehicle_brand_enabled", type = "toggle", label = "Brand/Model Classifier", description = "Classify make and model on confirmed vehicle tracks", default = true },
|
| { key = "vehicle_brand_classify_interval", type = "number", label = "Classify Interval", help = "Frames between brand+model classification (1-30)", min = 1, max = 30, step = 1, default = 5, visible_when = "vehicle_brand_enabled" },
|
| { key = "vehicle_brand_min_confidence", type = "slider", label = "Min Brand Confidence", help = "Drop brand+model predictions below this joint-softmax confidence (80-class Make_Model head). 0.3 is a reasonable default; both brand and model receive the same confidence.", min = 0.0, max = 1.0, step = 0.05, default = 0.3, visible_when = "vehicle_brand_enabled" },
|
| { key = "vehicle_model_min_confidence", type = "slider", label = "Min Model Confidence", help = "Legacy knob from the two-head classifier era. The new joint Make_Model classifier uses vehicle_brand_min_confidence only; this slider is currently inert.", min = 0.0, max = 1.0, step = 0.05, default = 0.1, visible_when = "vehicle_brand_enabled" },
|
| ]
|
|
|
| [[config.sections]]
|
| title = "TRACKING"
|
| fields = [
|
| { key = "tracker_min_observations", type = "number", label = "Min Observations", help = "Plate tracker observations before emitting result (1-10)", min = 1, max = 10, step = 1, default = 2 },
|
| { key = "dedup_cooldown_secs", type = "float", label = "Dedup Cooldown", help = "Seconds before same plate re-triggers (1-120)", min = 1.0, max = 120.0, step = 1.0, suffix = "s", default = 10.0 },
|
| ]
|
|
|