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

Planning the app

The final app will consist of the following modules and scripts:

  • filters: A module comprising different classes for the three different image effects. The modular approach will allow us to use the filters independently of any graphical user interface (GUI).
  • filters.PencilSketch: A class for applying the pencil sketch effect to an RGB color image.
  • filters.WarmingFilter: A class for applying the warming filter to an RGB color image.
  • filters.CoolingFilter: A class for applying the cooling filter to an RGB color image.
  • filters.Cartoonizer: A method for applying the cartoonizer effect to an RGB color image.
  • gui: A module that provides a wxPython GUI application to access the webcam and display the camera feed, which we will make extensive use of throughout the book.
  • gui.BaseLayout: A generic layout from which more complicated layouts can be built.
  • chapter1: The main script for this chapter.
  • chapter1.FilterLayout: A custom layout based on gui.BaseLayout that 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: The main function routine for starting the GUI application and accessing the webcam.
主站蜘蛛池模板: 青川县| 台湾省| 无棣县| 高阳县| 台北县| 黑龙江省| 新乡市| 玉山县| 确山县| 合川市| 隆子县| 察哈| 进贤县| 南丰县| 澄江县| 波密县| 巴中市| 江津市| 西峡县| 大悟县| 辉县市| 白山市| 南木林县| 拉萨市| 广宁县| 潜山县| 乡宁县| 鄂伦春自治旗| 剑阁县| 寻乌县| 运城市| 冀州市| 雷山县| 邵阳县| 永嘉县| 息烽县| 龙游县| 都匀市| 扶余县| 宁远县| 温宿县|