Closed mrmezan06 closed 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.
Yeah, I was fixed it.Forget to close the issue.
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)