-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Computer Vision on AWS
By :

After confirming that the RTSP endpoint(s) are accessible, it is time to connect using the open source computer vision library OpenCV. OpenCV for Python is a collection of tools and capabilities for interacting with image and video content. It contains a ton of functionality, enough to fill multiple books. However, we’ll only scratch the surface and use it to collect frames from our cameras.
OpenCV’s Python installation has several platform-dependent binaries, so you must be mindful of where the Python code will execute. This chapter uses an x86 64bit Amazon Linux 2 machine:
$ yum -y update && yum -y install \ mesa-libGL.x86_64 \ opencv-python.x86_64 \ python3
Suppose you’re using an Apple M1 or Amazon Graviton processor. In that case, you must specify the ARM64 platform:
$ yum -y update && yum -y install \ mesa-libGL.arm64 \ opencv-python...