dnt 0.3.1.3__py3-none-any.whl → 0.3.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dnt might be problematic. Click here for more details.
- dnt/__init__.py +1 -1
- dnt/analysis/__init__.py +3 -3
- dnt/analysis/count.py +54 -37
- dnt/analysis/{interaction.py → interaction2.py} +23 -8
- dnt/analysis/stop3.py +7 -3
- dnt/detect/signal/detector.py +13 -4
- dnt/detect/timestamp.py +105 -0
- dnt/detect/yolov8/detector.py +72 -29
- dnt/detect/yolov8/segmentor.py +60 -2
- dnt/filter/filter.py +19 -8
- dnt/label/labeler2.py +170 -67
- dnt/shared/synhcro.py +1 -1
- dnt/track/dsort/deep_sort/deep_sort.py +4 -3
- dnt/track/dsort/deep_sort/sort/detection.py +2 -1
- dnt/track/dsort/deep_sort/sort/track.py +2 -1
- dnt/track/dsort/deep_sort/sort/tracker.py +1 -1
- dnt/track/dsort/dsort.py +34 -17
- dnt/track/re_class.py +29 -6
- dnt/track/sort/sort.py +4 -5
- dnt/track/tracker.py +9 -5
- {dnt-0.3.1.3.dist-info → dnt-0.3.1.7.dist-info}/METADATA +16 -8
- {dnt-0.3.1.3.dist-info → dnt-0.3.1.7.dist-info}/RECORD +25 -24
- {dnt-0.3.1.3.dist-info → dnt-0.3.1.7.dist-info}/WHEEL +1 -1
- {dnt-0.3.1.3.dist-info → dnt-0.3.1.7.dist-info/licenses}/LICENSE +0 -0
- {dnt-0.3.1.3.dist-info → dnt-0.3.1.7.dist-info}/top_level.txt +0 -0
dnt/track/tracker.py
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import torch
|
|
1
|
+
import pandas as pd
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
5
4
|
from dsort import track as track_dsort
|
|
6
5
|
from sort import track as track_sort
|
|
7
6
|
from botsort import track as track_botsort
|
|
8
7
|
from config import Config
|
|
9
|
-
|
|
8
|
+
|
|
10
9
|
from tqdm import tqdm
|
|
11
10
|
import numpy as np
|
|
12
11
|
from ..engine import interpolate_bbox, interpolate_bboxes, cluster_by_gap
|
|
13
12
|
|
|
13
|
+
sys.path.append(os.path.dirname(__file__))
|
|
14
|
+
|
|
14
15
|
class Tracker(object):
|
|
15
16
|
def __init__(self, cfg: dict = None, device:str='auto', half:bool=False):
|
|
16
17
|
'''
|
|
@@ -195,6 +196,9 @@ class Tracker(object):
|
|
|
195
196
|
|
|
196
197
|
pbar.close()
|
|
197
198
|
|
|
199
|
+
if results == []:
|
|
200
|
+
return None
|
|
201
|
+
|
|
198
202
|
df = pd.concat(results, ignore_index=True)
|
|
199
203
|
if inplace:
|
|
200
204
|
tracks_del = tracks[~tracks['track'].isin(del_ids)].copy()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: dnt
|
|
3
|
-
Version: 0.3.1.
|
|
3
|
+
Version: 0.3.1.7
|
|
4
4
|
Summary: A Python tool for video-based traffic analytiscs
|
|
5
5
|
Home-page: https://its.cutr.usf.edu/dnt/
|
|
6
6
|
Author: Zhenyu Wang
|
|
@@ -16,23 +16,22 @@ License-File: LICENSE
|
|
|
16
16
|
Requires-Dist: torch
|
|
17
17
|
Requires-Dist: torchvision
|
|
18
18
|
Requires-Dist: torchaudio
|
|
19
|
-
Requires-Dist: ultralytics
|
|
19
|
+
Requires-Dist: ultralytics>=8.2
|
|
20
20
|
Requires-Dist: cython
|
|
21
|
-
Requires-Dist:
|
|
21
|
+
Requires-Dist: cython_bbox
|
|
22
22
|
Requires-Dist: easydict
|
|
23
23
|
Requires-Dist: faiss-cpu
|
|
24
|
-
Requires-Dist: faiss-gpu
|
|
25
24
|
Requires-Dist: filterpy
|
|
26
25
|
Requires-Dist: gdown
|
|
27
26
|
Requires-Dist: geopandas
|
|
28
27
|
Requires-Dist: h5py
|
|
29
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: lapx
|
|
30
29
|
Requires-Dist: loguru
|
|
31
30
|
Requires-Dist: matplotlib
|
|
32
31
|
Requires-Dist: motmetrics
|
|
33
32
|
Requires-Dist: ninja
|
|
34
33
|
Requires-Dist: numpy
|
|
35
|
-
Requires-Dist:
|
|
34
|
+
Requires-Dist: numpy_indexed
|
|
36
35
|
Requires-Dist: opencv-contrib-python
|
|
37
36
|
Requires-Dist: opencv-python
|
|
38
37
|
Requires-Dist: pandas
|
|
@@ -52,4 +51,13 @@ Requires-Dist: thop
|
|
|
52
51
|
Requires-Dist: tqdm
|
|
53
52
|
Requires-Dist: vidgear
|
|
54
53
|
Requires-Dist: yacs
|
|
55
|
-
|
|
54
|
+
Dynamic: author
|
|
55
|
+
Dynamic: author-email
|
|
56
|
+
Dynamic: classifier
|
|
57
|
+
Dynamic: home-page
|
|
58
|
+
Dynamic: keywords
|
|
59
|
+
Dynamic: license
|
|
60
|
+
Dynamic: license-file
|
|
61
|
+
Dynamic: requires-dist
|
|
62
|
+
Dynamic: requires-python
|
|
63
|
+
Dynamic: summary
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
dnt/__init__.py,sha256=
|
|
2
|
-
dnt/analysis/__init__.py,sha256
|
|
3
|
-
dnt/analysis/count.py,sha256=
|
|
4
|
-
dnt/analysis/
|
|
1
|
+
dnt/__init__.py,sha256=z1Zd_a6E0VmW-afb-LTKnmchJdQg-jZ8vSJW_y6nvro,162
|
|
2
|
+
dnt/analysis/__init__.py,sha256=-TzIL_MSIG76yGbxoAesaA8oXMLUtHaK7G92FOMnRTc,159
|
|
3
|
+
dnt/analysis/count.py,sha256=6x7GvveygGOkRqgnzVD9lGaIlJN3HPprJbNkl7CdN18,4628
|
|
4
|
+
dnt/analysis/interaction2.py,sha256=-c3yxIIDYHv8uCS653_HKxT2T02OP8AKqDwKLPpO6SE,26904
|
|
5
5
|
dnt/analysis/position.py,sha256=RHCDv_R-2MsDDjy-sx3-qoY215NiflrgJ20cJVrbVBQ,239
|
|
6
6
|
dnt/analysis/speed.py,sha256=KHHjompo4wT8Ft36dAQWq1yyJFJ89vVcpFJVaoz37-k,560
|
|
7
7
|
dnt/analysis/stop.py,sha256=jIQkMnSJuIMK6_wQacVXLWtuP_JAqy7-5KyKhIAz8hs,10956
|
|
8
8
|
dnt/analysis/stop2.py,sha256=UtRqSq3vT7BDKfeDD2b_LhNMSbPcafiLrLHDYxtkOlw,11128
|
|
9
|
-
dnt/analysis/stop3.py,sha256=
|
|
9
|
+
dnt/analysis/stop3.py,sha256=TQB1dCTeXqCCn_oMUHvD2hejwrmtO0EEs-Q9hOkx0y8,38478
|
|
10
10
|
dnt/detect/__init__.py,sha256=HEABuLXssGAlf1XB8GAo4DIq-e672Ls7_E0J9JL3CfA,110
|
|
11
|
-
dnt/detect/
|
|
11
|
+
dnt/detect/timestamp.py,sha256=qSUvaPs3OSqfzMynu95er0XNOplBZtNMS9P4eSHFwZs,3653
|
|
12
|
+
dnt/detect/signal/detector.py,sha256=TZH-bpO4IunqJmxXs4Z8XtCg5s4CD9jVudd57efn-OU,11967
|
|
12
13
|
dnt/detect/yolov8/__init__.py,sha256=r57LNAlmn1lNEcOEeVq1nye5AD6qVYp82XN9z0r3ZEY,95
|
|
13
|
-
dnt/detect/yolov8/detector.py,sha256=
|
|
14
|
-
dnt/detect/yolov8/segmentor.py,sha256=
|
|
14
|
+
dnt/detect/yolov8/detector.py,sha256=Yy9NkGUrsNgqdxWAZYRsYMg_lYD7uh9LeGPSX9DMEo4,12087
|
|
15
|
+
dnt/detect/yolov8/segmentor.py,sha256=gPw5lbhiqoCUHs_IsRSoSslm0SPNmg3Ga4G04PQuXLI,6423
|
|
15
16
|
dnt/engine/__init__.py,sha256=d_SI1PXnh_G2voYg6lxMQMwXPTIiYI7h5DbJXR5M8Sw,212
|
|
16
17
|
dnt/engine/bbox_interp.py,sha256=I-rCPr36x5c8Uuikmml5SwV7gDQRlU1AAX68e8hoouA,3076
|
|
17
18
|
dnt/engine/bbox_iou.py,sha256=5yQbPdXklliLe6WuB9U4wifehwoU41mU03x03R4jUoY,506
|
|
18
19
|
dnt/engine/cluster.py,sha256=TWt_Rt0Q3mBWxWbTW_d5GpMOYVyVF5gWso5BmVBaZIU,822
|
|
19
20
|
dnt/engine/iob.py,sha256=kwlwnYKYpzoCwgRjWkuPFXukJ7wZ1iUb6EXNzCIPUDQ,2209
|
|
20
21
|
dnt/filter/__init__.py,sha256=xjvrrcNPtgoX7sSqXBzWk5RfPgFpUohhIXeYEXW-7mQ,99
|
|
21
|
-
dnt/filter/filter.py,sha256=
|
|
22
|
+
dnt/filter/filter.py,sha256=0g4h-jwvkBl3zVNZX_bPsj4acb0wivsxdUhH7Q8NFWc,20528
|
|
22
23
|
dnt/label/__init__.py,sha256=iTyqt8OlxIeRY6_mDKbOcEYSKYyoeEflEznF1ChpKKo,102
|
|
23
24
|
dnt/label/labeler.py,sha256=M1rSzXNoohs6a7GgcuoG2LCNItpcGF9ba9FUUCdItx8,22831
|
|
24
|
-
dnt/label/labeler2.py,sha256=
|
|
25
|
+
dnt/label/labeler2.py,sha256=xD8ICHnBgbNPv8dc3gMy124N4WfbSerJsKUOnm1wWJc,24642
|
|
25
26
|
dnt/shared/__init__.py,sha256=_1OvnXJdeCFtCgnXo4lVIOXI7ZUcJO8JjnQsqmu3oaM,98
|
|
26
27
|
dnt/shared/convert.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
28
|
dnt/shared/download.py,sha256=S_yVXrIh1bEpypYA0KuMovGy5ofO2-l2VnzWNgTpC_s,395
|
|
28
29
|
dnt/shared/files.py,sha256=EwQl2tqyMP15E_lTnso1GJewvKvDBtUi_hx-75sBB5U,642
|
|
29
30
|
dnt/shared/filter.py,sha256=fYvKCgrs5sTz1sQCK-jAGmEO-qYAjx1aTW9X2ULTu1A,1372
|
|
30
|
-
dnt/shared/synhcro.py,sha256=
|
|
31
|
+
dnt/shared/synhcro.py,sha256=hKgaQ2gX9RTmW_GlMevAKtb3H69wytuYWvpBT24uIQE,5939
|
|
31
32
|
dnt/shared/util.py,sha256=K57i2yQmtihPu_yhIhfrxUeKLy80d3Npcf0fMzR_JSQ,19446
|
|
32
33
|
dnt/shared/data/coco.names,sha256=Y0oRMusz-AkdYPLDRqur6LkFrgg4cDeu2IOVO3Mpr4Q,625
|
|
33
34
|
dnt/shared/data/openimages.names,sha256=RM3TTr5bRkQLbsXQl48pLe97V8fOoEnz1P557YjUBmQ,5476
|
|
@@ -271,8 +272,8 @@ dnt/third_party/fast-reid/fastreid/utils/timer.py,sha256=umKqc9hGOt5LgJucaDBhTkP
|
|
|
271
272
|
dnt/third_party/fast-reid/fastreid/utils/visualizer.py,sha256=qNsZwsBKxXj3sIANr9RzB5maGVOlpH8VrkIrL2CX3uU,11831
|
|
272
273
|
dnt/track/__init__.py,sha256=cmDf8vJxrE3kS5pDwzOROdM07wrRNf5865Rgac5n4q4,160
|
|
273
274
|
dnt/track/config.py,sha256=8kd9bmJpEfn7U_y2LGLzL8BejVcQojArMPPGF-Y-K6o,6244
|
|
274
|
-
dnt/track/re_class.py,sha256=
|
|
275
|
-
dnt/track/tracker.py,sha256=
|
|
275
|
+
dnt/track/re_class.py,sha256=SalCzJMNj-rKssc0iRhNHzokH5k_dJtb4GrCl6rOunw,4488
|
|
276
|
+
dnt/track/tracker.py,sha256=gAvWdZe30ML13uZyNGfu9bH3J4nFEVNFmnJE9RzcA3E,10801
|
|
276
277
|
dnt/track/botsort/__init__.py,sha256=9FB0CiokYiLbebof1l6M9lZQgFpLJ0awPRin8cCpi9A,100
|
|
277
278
|
dnt/track/botsort/inference.py,sha256=-1o-KUQIAfgROI5c7iItRo--Ckfx_6eCfCexlP9eSmE,3254
|
|
278
279
|
dnt/track/botsort/bot_tracker/__init__.py,sha256=DVRNfpNUsRw71bjP-ewihmhmmVSqjRexaTJ9V5vaJZw,124
|
|
@@ -286,29 +287,29 @@ dnt/track/botsort/bot_tracker/tracking_utils/evaluation.py,sha256=PShRltoCU3VnaK
|
|
|
286
287
|
dnt/track/botsort/bot_tracker/tracking_utils/io.py,sha256=KtcgFGtTNpfRMT4g1lc2ZAON00wCWfTH5zgDLpwrg3k,3627
|
|
287
288
|
dnt/track/botsort/bot_tracker/tracking_utils/timer.py,sha256=wjOo45QtJzTwtWt584Xaq8wBpXB2SclpQ6UYuVFpXSU,958
|
|
288
289
|
dnt/track/dsort/__init__.py,sha256=osS5iI6LXf0A8ClpVB3x5LfI5eFYzkuT34X_PIXmuhI,97
|
|
289
|
-
dnt/track/dsort/dsort.py,sha256=
|
|
290
|
+
dnt/track/dsort/dsort.py,sha256=uwJgQ2SnyiUqnnCVJUXqZILuvrY9Dh_S9rfbWK1IHPs,3425
|
|
290
291
|
dnt/track/dsort/configs/bagtricks_R50.yml,sha256=HI3gJPAf3FWcsZJenqYXv3xrMJQuWH85j2Xmj5fAnQg,134
|
|
291
292
|
dnt/track/dsort/configs/deep_sort.yaml,sha256=RlWX74HFvoXmt-m7YbJyFID4qgI809ysK4g7ahQ9mJA,178
|
|
292
293
|
dnt/track/dsort/configs/fastreid.yaml,sha256=7liz49xIZNDAalBawJg6xAch1DsRyRJWsSWSaVJf_ZE,97
|
|
293
294
|
dnt/track/dsort/deep_sort/__init__.py,sha256=OP0dTJjoHrfIl9zxtWU0AIHlsz2iEaWD3kQL4tfgmWI,574
|
|
294
|
-
dnt/track/dsort/deep_sort/deep_sort.py,sha256=
|
|
295
|
+
dnt/track/dsort/deep_sort/deep_sort.py,sha256=IxKF9CZxc6DAqyxM8tsHz9-Lerj0NO-G3zng6MT-ZiQ,5290
|
|
295
296
|
dnt/track/dsort/deep_sort/deep/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
296
297
|
dnt/track/dsort/deep_sort/deep/feature_extractor.py,sha256=JSSk2MjkzLo4WUKxuKWkUxKY3KrYnGf3iuB1iTKw8SU,5427
|
|
297
298
|
dnt/track/dsort/deep_sort/deep/model.py,sha256=-OYmUtAhnRQofwp1Ar1p6Cl24j2ANokHcWvHYfQyqMs,3314
|
|
298
299
|
dnt/track/dsort/deep_sort/deep/checkpoint/ckpt.t7,sha256=33Xd70LD0b2me8lLCT585h3n91qJ82qPhopChGIZgxY,46034619
|
|
299
300
|
dnt/track/dsort/deep_sort/sort/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
300
|
-
dnt/track/dsort/deep_sort/sort/detection.py,sha256=
|
|
301
|
+
dnt/track/dsort/deep_sort/sort/detection.py,sha256=bV2AQVecMAP1GMdaqyo8Xqa87lMp9rfYj9ZYhCzBiB4,1503
|
|
301
302
|
dnt/track/dsort/deep_sort/sort/iou_matching.py,sha256=X6MFCzpA3-5X6cTgV8lhgUzO6UtHGPzowfhxeWN8UIE,2907
|
|
302
303
|
dnt/track/dsort/deep_sort/sort/kalman_filter.py,sha256=jOiYGSo9wQPcdPFvVAbxeMuMWlhTKp0cdbs2ymk2d5Y,8016
|
|
303
304
|
dnt/track/dsort/deep_sort/sort/linear_assignment.py,sha256=nj9UwqrQYjUjnn0I5OTYISWfixi2CngPHdK0EEbKKQ8,8080
|
|
304
305
|
dnt/track/dsort/deep_sort/sort/nn_matching.py,sha256=En6DgChB03Pa1HHJaiA9SxCmkfglUJz5cmoMdPmbHj0,5827
|
|
305
306
|
dnt/track/dsort/deep_sort/sort/preprocessing.py,sha256=AOgEvA5OXouaGZnQiRbSzKUjOdo9zwxjClm4JAESG3M,1987
|
|
306
|
-
dnt/track/dsort/deep_sort/sort/track.py,sha256=
|
|
307
|
-
dnt/track/dsort/deep_sort/sort/tracker.py,sha256=
|
|
307
|
+
dnt/track/dsort/deep_sort/sort/track.py,sha256=E_pd78wG_13myFmJAq73VXlRN3cnZ_jcxI3OHixyTZg,5176
|
|
308
|
+
dnt/track/dsort/deep_sort/sort/tracker.py,sha256=Yo6WjefoHm6VGvr-LIKGNzTdcqocKGePcLogzRr2pU4,5444
|
|
308
309
|
dnt/track/sort/__init__.py,sha256=3pUesXuRtu28cZQ3ORXBJtZ-stbWBrDyRSIC0IvmsDc,23
|
|
309
|
-
dnt/track/sort/sort.py,sha256=
|
|
310
|
-
dnt-0.3.1.
|
|
311
|
-
dnt-0.3.1.
|
|
312
|
-
dnt-0.3.1.
|
|
313
|
-
dnt-0.3.1.
|
|
314
|
-
dnt-0.3.1.
|
|
310
|
+
dnt/track/sort/sort.py,sha256=zevTgan4EoBlxgoQGJTrQCDeKFVdCp7CSDhweMJrFLI,9714
|
|
311
|
+
dnt-0.3.1.7.dist-info/licenses/LICENSE,sha256=ogjvEhk5GMZcGK_ykzVanElTHgnFdGANoG57hexoiVU,1067
|
|
312
|
+
dnt-0.3.1.7.dist-info/METADATA,sha256=x6GRflO7_dFU_2faLOoJ5OobXEVhTm-3W46R_bgZwVM,1623
|
|
313
|
+
dnt-0.3.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
314
|
+
dnt-0.3.1.7.dist-info/top_level.txt,sha256=h1DZPTWPJuWyVPN837zOMtsfMP3Tl-rE-YumDuDahcU,4
|
|
315
|
+
dnt-0.3.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|