obendidi / Tracking-with-darkflow

Real-time people Multitracker using YOLO v2 and deep_sort with tensorflow
GNU General Public License v3.0
523 stars 174 forks source link

On using camera: AttributeError: 'NoneType' object has no attribute 'update' #43

Open nidhinkk opened 6 years ago

nidhinkk commented 6 years ago

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.