diff --git a/demo/car.jpg b/demo/car.jpg index 409787b597b3e171a8755e8a1f9e4b874269a732..eeacfe5914a3029b0c4b4bfcb6b87ebd1f95b6ed 100644 Binary files a/demo/car.jpg and b/demo/car.jpg differ diff --git a/deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml b/deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml index a8e7d85d4255fcff3ac31cfc329c854e4b3dd180..d19bdf3d4652251668105015b72fdc6eacf6b628 100644 --- a/deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml +++ b/deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml @@ -11,7 +11,7 @@ MOT: VEHICLE_PLATE: det_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_det_infer.tar.gz det_limit_side_len: 736 - det_limit_type: "max" + det_limit_type: "min" rec_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_rec_infer.tar.gz rec_image_shape: [3, 48, 320] rec_batch_num: 6 diff --git a/deploy/pipeline/config/examples/infer_cfg_vehicle_plate.yml b/deploy/pipeline/config/examples/infer_cfg_vehicle_plate.yml index bf745f9cc6546abcc450eac6bfc64965d7306a49..9f8d0740a8f41084f3fe37efced9d62227481bc3 100644 --- a/deploy/pipeline/config/examples/infer_cfg_vehicle_plate.yml +++ b/deploy/pipeline/config/examples/infer_cfg_vehicle_plate.yml @@ -15,7 +15,7 @@ MOT: VEHICLE_PLATE: det_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_det_infer.tar.gz det_limit_side_len: 736 - det_limit_type: "max" + det_limit_type: "min" rec_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_rec_infer.tar.gz rec_image_shape: [3, 48, 320] rec_batch_num: 6 diff --git a/deploy/pipeline/config/infer_cfg_ppvehicle.yml b/deploy/pipeline/config/infer_cfg_ppvehicle.yml index c2106d9c09bec0d07adf8fa10732e711940a7adb..e5272ca28427f2f0a1e25beb1e977763b7998bce 100644 --- a/deploy/pipeline/config/infer_cfg_ppvehicle.yml +++ b/deploy/pipeline/config/infer_cfg_ppvehicle.yml @@ -16,7 +16,7 @@ MOT: VEHICLE_PLATE: det_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_det_infer.tar.gz det_limit_side_len: 736 - det_limit_type: "max" + det_limit_type: "min" rec_model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/ch_PP-OCRv3_rec_infer.tar.gz rec_image_shape: [3, 48, 320] rec_batch_num: 6 diff --git a/deploy/pipeline/pphuman/mtmct.py b/deploy/pipeline/pphuman/mtmct.py index 8ab72f4a4351d3872f1ae36881fc10f07653eae1..5792e15d239c4bac624336e713a27b399eb32b59 100644 --- a/deploy/pipeline/pphuman/mtmct.py +++ b/deploy/pipeline/pphuman/mtmct.py @@ -128,7 +128,7 @@ def save_mtmct_vis_results(camera_results, captures, output_dir, height = int(capture.get(cv2.CAP_PROP_FRAME_HEIGHT)) fps = int(capture.get(cv2.CAP_PROP_FPS)) frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT)) - fourcc = cv2.VideoWriter_fourcc(*'mp4v') + fourcc = cv2.VideoWriter_fourcc(* 'mp4v') writer = cv2.VideoWriter(out_path, fourcc, fps, (width, height)) frame_id = 0 while (1): @@ -148,10 +148,7 @@ def save_mtmct_vis_results(camera_results, captures, output_dir, # add attr vis if multi_res: - tid_list = [ - 'c' + str(idx) + '_' + 't' + str(int(j)) - for j in range(1, len(ids) + 1) - ] # c0_t1, c0_t2... + tid_list = multi_res.keys() # c0_t1, c0_t2... all_attr_result = [multi_res[i]["attrs"] for i in tid_list] # all cid_tid result if any(