Table of Contents
Its a service implemented by fast API and python opencv to detect faces in one given image
python3.8, opencv, fast API, swagger, docker, docker compose, postgres sql, traefik, pytest
Install docker and docker compose
-
Clone the repo
git clone https://github.com/hosnahoseini/face_detection-service.git
-
run
docker-compose -f solution/docker-compose.yml up
-
then open http://0.0.0.0:8008/face/v1/docs#/ for face detection service in your browser or open http://0.0.0.0:8008/text/v1/docs#/ for text service in your browser
choose file in /detect_with_image/ or put your image on input folder and enter image relative path (start after /app/) in /detect_with_path/{imagePath:path} API and see the last result in /result/ (you can use images in test folder to test)_
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Hosna Oyarhoseini - [email protected]