Multi-type_vehicles_flow_statistics
Multi-type_vehicles_flow_statistics copied to clipboard
selecting the area for counting the number of vehicles
How can I select an area from the video? Using mouse, I can not select the area, It shows an error which is:
OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v' Traceback (most recent call last): File "D:\Multi-type_vehicles_flow_statistics-master\counter.py", line 60, in run frame = self.counter(self.permission, self.colorDict, frame,np.array(self.countArea), self.mot_tracker, video) File "D:\Multi-type_vehicles_flow_statistics-master\counter.py", line 102, in counter AreaBound = [min(CountArea[:, 0]), min(CountArea[:, 1]), max(CountArea[:, 0]), max(CountArea[:, 1])] IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed