FRAME ANALYSIS AND PROCESSING IN DIGITAL VIDEO USING PYTHON AND TKINTER
ByVivian SiahaanRismon Hasiholan Sianipar
This ebook may not meet accessibility standards and may not be fully compatible with assistive technologies.
The first project in chapter one which is Canny Edge Detector presented here is a graphical user interface (GUI) application built using Tkinter in Python. This application allows users to open video files (of formats like mp4, avi, or mkv) and view them along with their corresponding Canny edge detection frames. The application provides functionalities such as playing, pausing, stopping, navigating through frames, and jumping to specific times within the video.
Upon opening the application, users are greeted with a clean interface comprising two main sections: the video display panel and the control panel. The video display panel consists of two canvas widgets, one for displaying the original video and another for displaying the Canny edge detection result. These canvases allow users to visualize the video and its corresponding edge detection in real-time.
The control panel houses various buttons and widgets for controlling the video playback and interaction. Users can open video files using the "Open Video" button, select a zoom scale for viewing convenience, jump to specific times within the video, play/pause the video, stop the video, navigate through frames, and even open another instance of the application for simultaneous use.
The core functionality lies in the methods responsible for displaying frames and performing Canny edge detection. The show_frame() method retrieves frames from the video, resizes them based on the selected zoom scale, and displays them on the original video canvas. Similarly, the show_canny_frame() method applies the Canny edge detection algorithm to the frames, enhances the edges using dilation, and displays the resulting edge detection frames on the corresponding canvas.
The application also supports mouse interactions such as dragging to pan the video frames within the canvas and scrolling to navigate through frames. These interactions are facilitated by event handling methods like on_press(), on_drag(), and on_scroll(), ensuring smooth user experience and intuitive control over video playback and exploration.
Overall, this project provides a user-friendly platform for visualizing video content and exploring Canny edge detection results, making it valuable for educational purposes, research, or practical applications involving image processing and computer vision.
This second project in chapter one implements a graphical user interface (GUI) application for performing edge detection using the Prewitt operator on ...
Details
- Publication Date
- Mar 27, 2024
- Language
- English
- Category
- Computers & Technology
- Copyright
- All Rights Reserved - Standard Copyright License
- Contributors
- By (author): Vivian Siahaan, By (author): Rismon Hasiholan Sianipar
Specifications
- Format