Git Product home page Git Product logo

face_clustering's Introduction

Welcome to the face_clustering package!

In this README is explained how to get the project running. In the wiki is eplained how the project works.

Introduction

With this package it's possible to do realtime face clustering! With this project it's possible to do face clustering using chinese whisps clustering.

Chinese Whispers

Getting started

In this chapter is explained how to get the project up and running. The project is tested on Ubuntu 16.04.

Prerequisites

There are a few packages you'll need to run the code:

Optional

If you have a NVIDIA GPU that's CUDA compatible, you can install dlib with CUDA support. In this way it's possible to run dlib on GPU, which probably will increase performance. To compile dlib with CUDA support you'll need to install the following packages:

The project is tested with CUDA 10.1. But you'll need to find out which version of CUDA is compatible with your system, information about this can be found here. Important is that the CUDA and cuDNN versions are matching.

Installing

To install the project on your own computer you just need to clone this repository in your preffered folder.

git clone https://github.com/RemcoKuijpers/face_clustering.git

You'll need to change the paths in the code, so they will match with your system. You also need two empty directories in the face_clustering repository. One is named 'dataset' and the other one is named 'output_folder'.

Run project

To run the project you'll need to run two programs. The fisrt program that's need to run first is the faceRecognition.py file. If you don't have a "dataset" folder and a "output_folder", create them.

python face_recognition/faceRecognition.py

This codes fills the database for the clustering. The code uses OpenCV haarcascades to detect faces. When a face is detected it takes images and saves it into the database.

Chinese Whispers

To use the Chinese Whispers clustering method, you'll need to run the runChineseWhispersClustering.sh shell script.

./runChineseWhispersClustering.sh

This program saves one image of each unique face that's detected, in the output_folder folder.

face_clustering's People

Contributors

remcokuijpers avatar robohubeindhoven-user avatar

Stargazers

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