{"id":15321945,"url":"https://github.com/akmamun/kafka-python-camera-stream","last_synced_at":"2025-07-19T06:37:25.455Z","repository":{"id":106930985,"uuid":"172576792","full_name":"akmamun/kafka-python-camera-stream","owner":"akmamun","description":"Distributed Streaming with Apache Kafka and Python OpenCV","archived":false,"fork":false,"pushed_at":"2019-02-27T16:14:34.000Z","size":3,"stargazers_count":38,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T02:40:15.578Z","etag":null,"topics":["apache-kafka","camera-stream","distributed","kafka","kafka-consumer","kafka-producer","live-streaming-videos","opencv","python3","realtime","rtsp-stream","streaming"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akmamun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-25T20:10:24.000Z","updated_at":"2024-12-23T05:42:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"2152733f-ecb8-4d88-a234-208f00120ff6","html_url":"https://github.com/akmamun/kafka-python-camera-stream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akmamun/kafka-python-camera-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fkafka-python-camera-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fkafka-python-camera-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fkafka-python-camera-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fkafka-python-camera-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akmamun","download_url":"https://codeload.github.com/akmamun/kafka-python-camera-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fkafka-python-camera-stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265898331,"owners_count":23845774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache-kafka","camera-stream","distributed","kafka","kafka-consumer","kafka-producer","live-streaming-videos","opencv","python3","realtime","rtsp-stream","streaming"],"created_at":"2024-10-01T09:13:42.947Z","updated_at":"2025-07-19T06:37:25.422Z","avatar_url":"https://github.com/akmamun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real time Video Streaming with Kafka and Python\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"400\" height=\"200\" src=\"https://cdn-images-1.medium.com/max/600/1*iUWxneAQ_kozzLPkFsrakw.png\"\u003e\n\u003c/p\u003e\n \nInstall And Configure [Apache Kafka](https://en.wikipedia.org/wiki/Apache_Kafka), [Java](https://en.wikipedia.org/wiki/Java_(programming_language)) and [ZooKeeper](https://en.wikipedia.org/wiki/Apache_ZooKeeper) \n### Let's making your Ubuntu up to date\n```sh\nsudo apt-get update -y\nsudo apt-get upgrade -y\n```\n### Installing Java\nBefore installing Kafka, you will need to install Java, add this repository\n```sh\nsudo add-apt-repository -y ppa:webupd8team/java\n```\nNext, update the metadata of the new repository and install JDK 8\n```sh\nsudo apt-get update\nsudo apt-get install oracle-java8-installer -y\n```\n\n## Install ZooKeeper\n```sh\nsudo apt-get install zookeeperd\n```\n## Install And Start Kafka Server\n```sh\nwget https://www-eu.apache.org/dist/kafka/2.1.1/kafka_2.11-2.1.1.tgz \n``` \nIf not work, download latest binary of apache kafka from [Kafka](https://kafka.apache.org/downloads) official site\n\nNext, create a directory for Kafka installation\n```sh\nsudo mkdir /opt/Kafka\ncd /opt/Kafka\n```\nExtract the downloaded archive using tar command in /opt/Kafka\n```sh\nsudo tar -xvf kafka_2.11-2.1.1.tgz -C /opt/Kafka/\n```\nMake Sure Server is Running \n```sh\nsudo /opt/Kafka/kafka_2.11-2.1.1/bin/kafka-server-start.sh /opt/Kafka/kafka_2.11-2.1.1/config/server.properties\n```\nNow create a sample topic with name \"testing\"\n```sh\nsudo /opt/Kafka/kafka_2.11-2.1.1/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1  --partitions 1 --topic testing\n```\nNow create environment and install Kafka-Python, Open-CV and Flask Server\n```sh\npip install -r requirements.txt\n```\nLets run Producer\n```sh\npython producer.py \n```\nConsumer\n```sh\npython consumer.py\n```\nNow Browse this\nhttp://localhost:5000/\n\nCredit\n- [Distributed video stream with python](https://scotch.io/tutorials/build-a-distributed-streaming-system-with-apache-kafka-and-python)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Fkafka-python-camera-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakmamun%2Fkafka-python-camera-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Fkafka-python-camera-stream/lists"}