Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def exitapp():
- tkMessageBox.showinfo("Video Summarization","Exiting the app...")
- answer = tkMessageBox.askquestion("Video Summarization","Do you really want to exit?")
- if answer == 'yes':
- root.destroy()
- def browse_button():
- file = tkFileDialog.askopenfilename(initialdir = "./",title = "Select file",filetypes = (("mp4 files","*.mp4"),("all files","*.*")))
- generate_frames(file)
- def about_app():
- quote = """The main aim of Video summarization is to provide clear analysis of video by
- removing duplications and extracting key frames from the video. Massive
- growth in video content poses problem of information overload and
- management of content. In order to manage the growing videos on the web and
- also to extract an efficient and valid information from the videos, more attention
- has to be paid towards video and image processing technologies. Video
- summarization is a mechanism to produce a short summary of a video to give to
- the user a synthetic and useful visual abstract of video sequence; it can either be
- an image (key frames) or moving images. Video summarization is a vital
- process that facilitates well-organized storage, quick browsing, and retrieval of
- large collection of video data without losing important aspects. In terms of
- browsing and navigation, a good video abstract will enable the user to get
- maximum information about the target video sequence in a specified time
- limitation or adequate information in the minimum time."""
- label = Label(root, text=quote, pady=10,padx=0, justify=LEFT)
- label.config(font=("Arial",20))
- label.pack(side=TOP)
- label2 = Label(root,pady=30, text="Developed By\n AKHIL RAUT\n PRASHANT PORWAL\n YASH PATANGE")
- label2.config(font=("Arial",30))
- label2.pack(side=TOP)
- root.mainloop()
- #desktop application
- root = Tk()
- root.title("Video Summarization")
- myMenu = Menu(root,bg="blue")
- myMenu.add_cascade(label="Select File",command=browse_button)
- myMenu.add_cascade(label="About",command=about_app)
- myMenu.add_cascade(label="Exit",command=exitapp)
- root.configure(menu=myMenu)
- toolbar =Frame(root)
- Try1 = Button(toolbar, text="Summarize video", bg="#acd9e2",command="")
- Try1.pack(side=LEFT,padx=5,pady=5)
- toolbar.pack(side=BOTTOM,fill=X)
- root.mainloop()
Add Comment
Please, Sign In to add comment