Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lubosmj/image-triaging-km
Simple Image Triager
https://github.com/lubosmj/image-triaging-km
Last synced: 21 days ago
JSON representation
Simple Image Triager
- Host: GitHub
- URL: https://github.com/lubosmj/image-triaging-km
- Owner: lubosmj
- Created: 2024-06-18T19:03:07.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-18T19:24:51.000Z (7 months ago)
- Last Synced: 2024-10-31T16:08:50.937Z (2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Image Triaging Tool
A utility for triaging images based on their average/mean color. It consists of three microservices
operating on their own. The first one reads the images specified in a source directory. The second
one calculates the average/mean color of the images. Finally, the third one copies the parsed images
to a destination directory.Run the services and define the source and destination directory for mounted volumes:
```
$ sudo HOST_SOURCE_DIR=/home/user/Downloads/ HOST_DEST_DIR=/home/user/Workplace/ docker compose up --build
```Additionally, use `--force-recreate` or `--remove-orphans` to enforce clean startup.
### Note
The utility runs RabbitMQ along with the three microservices in the docker-compose format. Users
are allowed to override default values for the source and destination directory inside the containers.
Visit `.env` file to see which environment values can be modified and consult [docker-compose documentation](https://docs.docker.com/compose/environment-variables/set-environment-variables/#set-environment-variables-with-docker-compose-run---env) to learn more.### Running Tests
First, download required packages and execute the pytest utility, like so:
```
python -m venv venv
source venv/bin/activatepython -m pip install -r tests/test_requirements.txt
python -m pytest -vv tests
```