Giter Club home page Giter Club logo

concurrent-face-id's Introduction

Concurrent Face Detection

This script is used to detect faces in images within a specified directory. It uses the Python face_recognition library to detect faces and the PIL library to work with images.

Usage

The script requires a directory containing the images to be processed. The directory is set using the photo_dir variable at the beginning of the script.

The script will search for all JPEG files (.jpg or .jpeg extensions) within the specified directory and its subdirectories. It will then use multiple processes to detect faces in the images in parallel.

The maximum number of faces to detect can be set using the max_faces variable at the beginning of the script.

The script outputs a log to the console using the logging module. By default, it logs at the INFO level, but the DEBUG level can be enabled by uncommenting the appropriate line.

The script prints the list of files with detected faces to the console.

Requirements

  • Python 3.6 or higher
  • face_recognition library
  • PIL library

Notes

  • The script only works with JPEG files. Other file formats are not supported.
  • The script may take some time to run, especially if there are many images to process. The processing time can be reduced by increasing the number of processes used, which can be set by changing the num_processes variable. However, increasing the number of processes will also increase the amount of system resources used.

concurrent-face-id's People

Contributors

nathanmartins avatar

Watchers

 avatar  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.