This project consists of two Python scripts designed to handle messages related to inference and publish images to a message queue. Below is an overview of each script and how to use them.
This script handles the task of publishing images to a message queue. It reads images from a specified directory and publishes them to the queue for further processing.
- Reads images from a local directory.
- Publishes images to a queue for processing.
python publish_images_to_queue.pyThis script is responsible for consuming messages related to inference. It listens to a queue, retrieves messages, and processes the inference results.
- Connects to a message queue.
- Retrieves inference-related messages.
- Processes the data for further analysis.
python consume_inference_messages.py- Python 3.x
- Pika
- Opencv-Python
- Ultralytics
- Numpy
- Loguru
- os
-
Clone the repository:
https://github.com/zahid26/WorkingWithRabbitMQ.git
-
Install dependencies:
pip install -r requirements.txt