Illegal parking recognition in no-parking areas has a very wide range of applications in vehicle application scenarios. With the help of AI, human input can be reduced, and illegally parked vehicles can be accurately and quickly identified, and further behaviors such as broadcasting to expel the vehicles can be performed. Based on the vehicle tracking model, license plate detection model and license plate recognition model, the PP-Vehicle realizes the illegal parking recognition function. The specific model information is as follows:
Task | Algorithm | Precision | Inference Speed(ms) | Inference Model Download Link |
---|---|---|---|---|
Vehicle Tracking | PP-YOLOE-l | mAP: 63.9 | - | Link |
Plate Detection | ch_PP-OCRv3_det | hmean: 0.979 | - | Link |
Plate Recognition | ch_PP-OCRv3_rec | acc: 0.773 | - | Link |
PaddleDetection/output_inference
path, and modify the model path in the configuration file, or download the model automatically by default. The model paths for the three models can be manually set in
deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml
``.Description of configuration items in infer_cfg_illegal_parking.yml
:
MOT: # Tracking Module
model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/mot_ppyoloe_l_36e_ppvehicle.zip # Path of Tracking Model
tracker_config: deploy/pipeline/config/tracker_config.yml # Config Path of Tracking
batch_size: 1 # Tracking batch size
enable: True # Whether to Enable Tracking Function
VEHICLE_PLATE: # Plate Recognition Module
det_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_det_infer.tar.gz # Path of Plate Detection Model
det_limit_side_len: 480 # Single Side Size of Detection Model
det_limit_type: "max" # Detection model Input Size Selection of Long and Short Sides, "max" Represents the Long Side
rec_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_rec_infer.tar.gz # Path of Plate Recognition Model
rec_image_shape: [3, 48, 320] # The Input Size of Plate Recognition Model
rec_batch_num: 6 # Plate Recognition batch size
word_dict_path: deploy/pipeline/ppvehicle/rec_word_dict.txt # OCR Model Look-up Table
enable: True # Whether to Enable Plate Recognition Function
The parameter description:
Methods to modify the path of model:
./deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml
file;-o VEHICLE_PLATE.det_model_dir=[YOUR_DETMODEL_PATH] VEHICLE_PLATE.rec_model_dir=[YOUR_RECMODEL_PATH]
after the --config configuration item to modify the model path.Test Result: