While using a video file the program was running successfully. But when I changed it to use web cam the following error occurs.
Press [ESC] to quit video
Traceback (most recent call last):
File "run.py", line 32, in
tfnet.camera()
File "/home/vuelogix/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/help.py", line 124, in camera
fps = 1 / self._get_fps(frame)
File "/home/vuelogix/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/help.py", line 66, in _get_fps
processed = self.framework.postprocess(net_out, frame)
File "/home/vuelogix/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/yolov2/predict.py", line 127, in postprocess
trackers = tracker.update(detections)
AttributeError: 'NoneType' object has no attribute 'update'
While using a video file the program was running successfully. But when I changed it to use web cam the following error occurs.
Press [ESC] to quit video Traceback (most recent call last): File "run.py", line 32, in
tfnet.camera()
File "/home/vuelogix/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/help.py", line 124, in camera
fps = 1 / self._get_fps(frame)
File "/home/vuelogix/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/help.py", line 66, in _get_fps
processed = self.framework.postprocess(net_out, frame)
File "/home/vuelogix/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/yolov2/predict.py", line 127, in postprocess
trackers = tracker.update(detections)
AttributeError: 'NoneType' object has no attribute 'update'
Can anyone find the reason for this? Thanks.