Sign inSign up

pcrete/zmq_consumer

By pcrete

•Updated about 7 years ago

ZMQ Video Consumer

Image
0

1.9K

pcrete/zmq_consumer repository overview

⁠ZMQ Video Consumer

ZeroMQ is a high-performance asynchronous messaging library, aimed at use in distributed or concurrent applications. It provides a message queue, but unlike message-oriented middleware, a ZeroMQ system can run without a dedicated message broker. The library's API is designed to resemble Berkeley sockets.

PyZMQ provides python bindings for ØMQ and allows you to leverage ØMQ in python applications. I have been using pyzmq-static with virtualenv as it neatly provides isolated sandbox for my learning.

imageZMQ is a set of Python classes that transport OpenCV images from one computer to another using PyZMQ messaging. For example, here is a screen on a Mac computer showing simultaneous video streams from 8 Raspberry Pi cameras.

⁠Docker

⁠Run Consumer
# example commands
docker run -d --network=host pcrete/zmq_consumer

docker run --rm -it \
--network=host \
-e SERVER_PORT=5555 \
pcrete/zmq_consumer
⁠Console Output
Open Port is tcp://*:5555
Receiving frames...
Producer connected >> register: 360 640 3

Tag summary

Content type

Image

Digest

Size

-

Last updated

about 7 years ago

docker pull pcrete/zmq_consumer