After going through the Camera Streamer Tutorial, you may still be wondering how you can add OpenCV to your version of the camera-streamer app to perform image processing.
Well just like PyTurboJPEG
was added to the setup.cfg
, you can add opencv-python
under the install_requires
section.
Then it’s as simple as importing in your python file with import cv2
and using the library!
Checkout this simple example showing how this is done:
Demonstrate adding opencv to camera streamer example
This example uses OpenCV to draw a red circle in the center of the image streams, but we’re sure you’ll use OpenCV for something much more interesting!