From 3932b44d61ab19318a0dfc8e06f9a9abb409e93a Mon Sep 17 00:00:00 2001 From: zhoushuliang Date: Fri, 4 Jul 2025 13:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20segutils/trafficUtils.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- segutils/trafficUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segutils/trafficUtils.py b/segutils/trafficUtils.py index 4495431..fa5c648 100644 --- a/segutils/trafficUtils.py +++ b/segutils/trafficUtils.py @@ -466,7 +466,7 @@ def tracfficAccidentMixFunction(preds,seg_pred_mulcls,pars): #b_0 = box[1:5];b_0.insert(0,box[0]);b_0.append(box[5] ) b_0 = box[0:4];b_0.insert(0,box[5]);b_0.append(box[4]) det_coords_original.append( box ) - if int(box[5]) != pars['CarId'] or int(box[5]) != pars['CthcId']: continue + if int(box[5]) != pars['CarId'] and int(box[5]) != pars['CthcId']: continue det_coords.append(b_0) #print('##line957:',det_coords_original )