- OpenCV 4 with Python Blueprints
- Dr. Menua Gevorgyan Arsen Mamikonyan Michael Beyeler
- 168字
- 2021-06-24 16:49:57
Planning the app
The final app must consist of the following modules and scripts:
- wx_gui.py: This module is our implementation of a basic GUI using wxpython. We will make extensive use of this file throughout the book. This module includes the following layouts:
- wx_gui.BaseLayout: This is a generic layout class from which more complicated layouts can be built.
- chapter1.py: This is the main script for this chapter. It contains the following functions and classes:
- chapter1.FilterLayout: This is a custom layout based on wx_gui.BaseLayout, which displays the camera feed and a row of radio buttons that allows the user to select from the available image filters to be applied to each frame of the camera feed.
- chapter1.main: This is the main routine function for starting the GUI application and accessing the webcam.
- tools.py: This is a Python module and has a lot of helper functions that we use in this chapter, which you can reuse for your projects.
The next section demonstrates how to create a black-and-white pencil sketch.
推薦閱讀
- CMDB分步構建指南
- C#編程入門指南(上下冊)
- Hands-On Data Structures and Algorithms with JavaScript
- Mastering Python Scripting for System Administrators
- Hadoop+Spark大數據分析實戰
- Visual C++應用開發
- Hands-On Swift 5 Microservices Development
- 零基礎入門學習Python(第2版)
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- PHP與MySQL權威指南
- C++ System Programming Cookbook
- Java并發實現原理:JDK源碼剖析
- 寫給青少年的人工智能(Python版·微課視頻版)
- WCF技術剖析(卷1)
- UI動效設計從入門到精通