Add object detection, tracking, mobile notifications, and search to any security camera.
increase oc-sort max age
roryclear2c4157cc91d7
diff --git a/clearcam.py b/clearcam.pyindex 6284ee5..f83a757 100644--- a/clearcam.py+++ b/clearcam.py@@ -1597,7 +1597,7 @@ if __name__ == "__main__":from ocsort_tracker import ocsort- tracker = ocsort.OCSort()+ tracker = ocsort.OCSort(max_age=100)live_link = dict()if rtsp_url is None:diff --git a/test/test_mot.py b/test/test_mot.pyindex d6c234a..bb7d84c 100644--- a/test/test_mot.py+++ b/test/test_mot.py@@ -36,7 +36,7 @@ def letterbox(im, new_shape=(1280, 1280), color=(114, 114, 114), auto=True, scalif __name__ == "__main__":from ocsort_tracker import ocsort- ocs_tracker = ocsort.OCSort()+ ocs_tracker = ocsort.OCSort(max_age=60)size = "t"model = YOLOv9(*SIZES[size]) if size in SIZES else YOLOv9()@@ -46,7 +46,7 @@ if __name__ == "__main__":Path('./test_outputs').mkdir(parents=True, exist_ok=True)trackers = [ocs_tracker]- excepted_ppl = [288]+ excepted_ppl = [241]for j,t in enumerate(trackers):cap = cv2.VideoCapture("test/videos/MOT16-03.mp4")