OpenCV 4 with Python Blueprints
上QQ阅读APP看书,第一时间看更新

Putting it all together

In the previous sections, we implemented a couple of nice filters that show how we can get nice effects with OpenCV. In this section, we want to build an interactive application that will allow you to apply these filters in real time to your laptop camera.

So, we need to write a user interface (UI) that will allow us to capture the camera stream and have some buttons so that you can select which filter you want to apply. We will start by setting up the camera capture with OpenCV. Then, we will build a nice interface around it using wxPython.