OpenCV · Python · Kafka
In real-world Edge AI applications (like self-driving cars or security systems), we stream video frames to cloud servers for analysis. Here, we'll use OpenCV and Kafka to stream your webcam!
To capture live video frames using a webcam, compress them, serialize them into bytes, and stream them over a Kafka topic to a remote consumer that reconstructs and displays the video.
Video is just a sequence of image arrays. We capture an image, encode it to JPEG (to save bandwidth), and send the raw bytes over Kafka.