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

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.
主站蜘蛛池模板: 景谷| 彭阳县| 泊头市| 兴城市| 灵石县| 酉阳| 京山县| 鄂托克旗| 阿坝县| 双辽市| 贡嘎县| 二连浩特市| 呈贡县| 芒康县| 余姚市| 吉水县| 许昌县| 琼结县| 鹤峰县| 湄潭县| 乌鲁木齐县| 青龙| 白城市| 富源县| 郁南县| 云梦县| 大同县| 武山县| 台中县| 托克托县| 房产| 东阿县| 侯马市| 武功县| 寿光市| 枝江市| 天气| 朝阳县| 上蔡县| 江源县| 岳西县|