- 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.
推薦閱讀
- Pandas Cookbook
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Scratch真好玩:教小孩學編程
- 人臉識別原理及算法:動態人臉識別系統研究
- Apex Design Patterns
- Spring+Spring MVC+MyBatis整合開發實戰
- Working with Odoo
- 精通Python自動化編程
- Learning Node.js for .NET Developers
- Node學習指南(第2版)
- Learning AWS
- Kotlin極簡教程
- Java7程序設計入門經典
- Android技術內幕(系統卷)
- Python編程入門(第3版)