frrostbitee

desktop_app

Apr 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.28 KB | None | 0 0
  1. def exitapp():
  2.     tkMessageBox.showinfo("Video Summarization","Exiting the app...")
  3.     answer = tkMessageBox.askquestion("Video Summarization","Do you really want to exit?")
  4.     if answer == 'yes':
  5.         root.destroy()
  6.  
  7. def browse_button():
  8.     file = tkFileDialog.askopenfilename(initialdir = "./",title = "Select file",filetypes = (("mp4 files","*.mp4"),("all files","*.*")))
  9.     generate_frames(file)
  10.  
  11. def about_app():
  12.    
  13.    
  14.     quote = """The main aim of Video summarization is to provide clear analysis of video by
  15. removing duplications and extracting key frames from the video. Massive
  16. growth in video content poses problem of information overload and
  17. management of content. In order to manage the growing videos on the web and
  18. also to extract an efficient and valid information from the videos, more attention
  19. has to be paid towards video and image processing technologies. Video
  20. summarization is a mechanism to produce a short summary of a video to give to
  21. the user a synthetic and useful visual abstract of video sequence; it can either be
  22. an image (key frames) or moving images. Video summarization is a vital
  23. process that facilitates well-organized storage, quick browsing, and retrieval of
  24. large collection of video data without losing important aspects. In terms of
  25. browsing and navigation, a good video abstract will enable the user to get
  26. maximum information about the target video sequence in a specified time
  27. limitation or adequate information in the minimum time."""
  28.     label = Label(root, text=quote, pady=10,padx=0, justify=LEFT)
  29.     label.config(font=("Arial",20))
  30.     label.pack(side=TOP)
  31.    
  32.     label2 = Label(root,pady=30, text="Developed By\n AKHIL RAUT\n PRASHANT PORWAL\n YASH PATANGE")
  33.     label2.config(font=("Arial",30))
  34.     label2.pack(side=TOP)
  35.     root.mainloop()
  36.    
  37.  
  38.  
  39. #desktop application
  40. root = Tk()
  41.  
  42. root.title("Video Summarization")
  43.  
  44. myMenu = Menu(root,bg="blue")
  45. myMenu.add_cascade(label="Select File",command=browse_button)
  46. myMenu.add_cascade(label="About",command=about_app)
  47. myMenu.add_cascade(label="Exit",command=exitapp)
  48.  
  49. root.configure(menu=myMenu)
  50. toolbar =Frame(root)
  51. Try1 = Button(toolbar, text="Summarize video", bg="#acd9e2",command="")
  52. Try1.pack(side=LEFT,padx=5,pady=5)
  53. toolbar.pack(side=BOTTOM,fill=X)
  54.  
  55.  
  56. root.mainloop()
Add Comment
Please, Sign In to add comment