官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 德惠市| 商水县| 白河县| 建瓯市| 江都市| 囊谦县| 辰溪县| 长葛市| 南部县| 马尔康县| 双桥区| 广汉市| 渭源县| 安陆市| 家居| 通城县| 三门县| 延安市| 静宁县| 安宁市| 朝阳市| 咸宁市| 延津县| 黔江区| 金堂县| 延川县| 五台县| 靖西县| 通江县| 南靖县| 丰都县| 乐昌市| 商洛市| 郁南县| 白河县| 林州市| 凌海市| 伊金霍洛旗| 九江县| 虹口区| 观塘区|