Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-238
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-238
2021-238
Commits
ca4ca340
Commit
ca4ca340
authored
Oct 17, 2021
by
Amanda Tennakoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Frontend file
parent
b0f56cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
vehicle_counting_tensorflow-master/ap.py
vehicle_counting_tensorflow-master/ap.py
+32
-0
No files found.
vehicle_counting_tensorflow-master/ap.py
0 → 100644
View file @
ca4ca340
from
tkinter
import
*
from
tkinter.ttk
import
*
from
tkinter.filedialog
import
askopenfile
from
PIL
import
ImageTk
,
Image
from
vehicle_detection_main
import
object_detection_function
root
=
Tk
()
root
.
title
(
'Highway cctv'
)
root
.
geometry
(
'1100x720'
)
def
open_file
():
file
=
askopenfile
(
mode
=
'r'
,
filetypes
=
[(
'Excel Files'
,
'*.mov'
)])
if
file
is
not
None
:
source_video
=
file
.
name
object_detection_function
(
source_video
)
print
(
file
.
name
)
btn
=
Button
(
root
,
text
=
'Browse Video File Directory'
,
command
=
lambda
:
open_file
())
btn
.
pack
(
side
=
TOP
,
pady
=
10
)
# img = ImageTk.PhotoImage(Image.open("detected_vehicles/v2.png"))
# im_lable = Label(image=img)
# im_lable.pack(side=TOP, pady=5)
# Label(root, text="Please Open Video File to Detect Vehicles").pack(side=TOP, pady=5)
# Label(root, text="Video File Name - cctv5.mp4 ").pack(side=TOP, pady=5)
# Label(root, text="--- Last Passed Vehicle Description ---").pack(side=TOP, pady=5)
# Label(root, text="Vehicle Type - Car; Color - white; Speed : 117 kmph ").pack(side=TOP)
mainloop
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment