diff --git a/preprocessors/clothes-detector/README.md b/preprocessors/clothes-detector/README.md new file mode 100644 index 00000000..3fe0c1db --- /dev/null +++ b/preprocessors/clothes-detector/README.md @@ -0,0 +1,25 @@ +# Clothes Detection Preprocessor + +This preprocessor detects the type of clothing of individual people in a photograph. The following are the steps performed by the preprocessor + +1. We first crop individual people from the image, then detect the clothes worn by each individual. We have used YOLOv3 in the backend to detect and localise the clothes worn by each individual. The weights were obtained from [[another github repository](https://github.com/simaiden/Clothing-Detection)](https://github.com/simaiden/Clothing-Detection) +2. The localised clothes are further cropped to determine the color of those clothes. The cropped clothes are passed through a `webcolors` library, that provides the dominant color of the associated cloth. + + +The code to use this module as an API can be found in `clothes.py`. This module is fully versioned. The versions of the libraries used can be found in `requirements.txt`. The weights for the model and the procedure to convert the model to image could be found in `Dockerfile`. + + + +## Installation + +In order to use this module as an API, first build the image using : + +```bash +docker build -t +``` + +Then run the container with : + +```bash +docker run -d --rm --gpus all -p :5000 +```