diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/billiard.iml b/.idea/billiard.iml new file mode 100644 index 0000000..f721fe6 --- /dev/null +++ b/.idea/billiard.iml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..5d56808 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,461 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a95a050 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..42b05f7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/test.py b/test.py index d403e08..f3cc25c 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,12 @@ +from urllib import parse + from ultralytics import YOLO # Configure the tracking parameters and run the tracker +# model = YOLO('best.pt') +# source2 = "rtmp://rtmp03open.ys7.com:1935/v3/openlive/L05874022_1_1?expire=1726487667&id=625419662355599360&t=228dca5d37b6bead201e80cca3fc5fe74140242278e4eb51a99bcce593cae027&ev=100" +# source = parse.urlencode({"source": source2}) +# source = "./videos/123.mp4" +# results = model.track(source=source2, conf=0.3, iou=0.5, show=True) model = YOLO('best.pt') results = model.track(source="./videos/123.mp4", tracker='botsort.yaml', show=True) diff --git a/videos/123.mp4 b/videos/123.mp4 index 619a13d..f8ecfbf 100644 Binary files a/videos/123.mp4 and b/videos/123.mp4 differ diff --git a/videos/黑八1.mp4 b/videos/黑八1.mp4 new file mode 100644 index 0000000..c6c4ffd Binary files /dev/null and b/videos/黑八1.mp4 differ diff --git a/videos/黑八2.mp4 b/videos/黑八2.mp4 new file mode 100644 index 0000000..c4f59c6 Binary files /dev/null and b/videos/黑八2.mp4 differ diff --git a/videos/黑八3.mp4 b/videos/黑八3.mp4 new file mode 100644 index 0000000..995e957 Binary files /dev/null and b/videos/黑八3.mp4 differ