WKafka library lets developers stream images over Kafka as typed messages
WKafka, an open-source MIT-licensed Python library, introduces native image support for Apache Kafka by treating frames as first-class messages rather than raw bytes. Developers can send NumPy arrays directly to a Kafka topic using a format='image' parameter, which handles serialization to JPEG and back automatically. Consumers receive the reconstructed array with the original shape and channel order intact, eliminating the need for custom decoding logic on each end. The library is compatible with OpenCV, NumPy, and PIL out of the box, and maintains per-frame ordering within vision pipelines. Created by William Steve Rodríguez Villamizar, WKafka is available on PyPI with documentation and runnable examples on GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in