vehicle_detection_tracker
vehicle_detection_tracker copied to clipboard
Python 3.10 : TypeError
/workspace/vehicle_detection_tracker/examples/OpenCvTrackerTest.py", line 19, in
vehicle_detection.process_video(video_path, result_callback = result_callback)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/VehicleDetectionTracker/VehicleDetectionTracker.py", line 291, in process_video
response = self.process_frame(frame, timestamp)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/VehicleDetectionTracker/VehicleDetectionTracker.py", line 195, in process_frame
delta_t = int(t2) - int(t1)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'datetime.datetime'
we need to change the package code,
delta_t = t2.timestamp() - t1.timestamp()