Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit eb7439a

Browse files
authored
Added barebones GUI for lucasKanadeOpticalFlow.py
1 parent 69edda1 commit eb7439a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opticalFlow/lucasKanadeOpticalFlow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def get_file_path():
3131

3232
# function allowing you to select the output path in the GUI
3333
def output():
34-
global savepath
35-
savepath = filedialog.asksaveasfilename(filetypes=[("mp4", '*.mp4')])
34+
global outpath
35+
outpath = filedialog.asksaveasfilename(filetypes=[("mp4", '*.mp4')])
3636
window.destroy()
3737

3838
# Creating a button to search for the input file and to select the output destinatio and file name
@@ -111,8 +111,8 @@ def output():
111111
# if saving video
112112
if savevid:
113113
# path to save output video
114-
#pathparts = vidpath.split('.')
115-
#savepath = vidpath.split('.')[-2] + '_LK_FLOW' + '.mp4'
114+
filename = outpath
115+
savepath = filename + '_LK_FLOW' + '.mp4'
116116
print(f"Saving Output video to: {savepath}")
117117

118118
# get shape of video frames

0 commit comments

Comments
 (0)