anmspro / Traffic-Signal-Violation-Detection-System

A Computer Vision based Traffic Signal Violation Detection System from video footage using YOLOv3 & Tkinter. (GUI Included)
GNU General Public License v3.0
438 stars 167 forks source link

Exception in Tkinter callback #4

Closed mrmezan06 closed 4 years ago

mrmezan06 commented 4 years ago

When I Open a video through file option, it's given this kind of error:

Traceback (most recent call last): File "D:\Anaconda3\lib\tkinter__init.py", line 1705, in call__ return self.func(*args) File "", line 53, in open_file self.show_image('G:/Traffic Violation Detection/Traffic Signal Violation Detection System/Images/preview.jpg') File "", line 57, in show_image self.imgSize = Image.open(frame) File "D:\Anaconda3\lib\site-packages\PIL\Image.py", line 2766, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'G:/Traffic Violation Detection/Traffic Signal Violation Detection System/Images/preview.jpg' Traceback (most recent call last):

File "", line 245, in root.mainloop()

File "D:\Anaconda3\lib\tkinter__init__.py", line 1283, in mainloop self.tk.mainloop(n)

anmspro commented 4 years ago

The problem is in the directory address. 'G:/Traffic Violation Detection/Traffic Signal Violation Detection System/Images/preview.jpg' Change the address according to the location in your pc.

mrmezan06 commented 4 years ago

Yeah, I was fixed it.Forget to close the issue.