Giter VIP home page Giter VIP logo

face_characters_detection's Introduction

Face Detection API

A simple face detection API made with Python Flask and FastAPI, using the Deepface library.

Tech Stack

  • Python
  • Flask
  • Deepface

Dependencies

Running the API

  1. Clone the repository
  2. Install the dependencies with Poetry:
    • Install Poetry with curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python or pip install poetry
    • Install the packages with poetry install
    • Start a poetry shell with poetry shell
  3. Start the Flask development server with flask run
  4. Start the FastAPI development server with uvicorn fast_app:app

Installing Deepface on MacOS or Troubleshooting

If you encounter any errors during installation, try the following steps:

  1. Remove the pyproject.toml and poetry.lock files
  2. For MacOS with M1, run:
    • poetry add tensorflow-macos tensorflow-Metal fastapi flask pillow
  3. Start a Poetry shell with poetry shell
  4. Install Deepface without dependencies by running pip install deepface --no-deps

Note

Before running the API, make sure to check that you have all the required dependencies installed and configured correctly.

face_characters_detection's People

Contributors

pythonhubdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.