/MTCNN-pi

Run MTCNN on Raspberry Pi

Primary LanguagePython

MTCNN-pi

We aim to implement the real-time face recognition based on Multi-task Convolution Neuron Network on Raspberry Pi 3B.

This project was developed by our develop team based on

Credit to our team members:

To understand this Neuron Network, you can refer to my post Understand MTCNN (Multi-task Cascaded Neuron Network) in 10min


Hardware

  • Raspberry Pi 3B (Operating system: Raspbian)
  • Camera Module

Software

  • Python 3.5.3

Settings

Click the link to see the installastion instruction.

  1. Environment Setup and Dependencies
  • Install dependencies
  • Check Python version and install pip3
  • Install Protobuf 2.6.1
  • Install OpenCV 3.3.0
  • Install caffe
  1. Install the Camera Module
  • Install the camera hardware
  • Configure the Raspberry Pi
  • Test the camera module

File Structrues

You should be able to find three demo files in this repo as we use different strategies to speed up the process. It is noteworthy that the accuracy varies from method to method.

  • demo_slow.py
  • demo_scales.py
  • demo_multiprocess.py (Do not run the multiprocess demo for a long time on your Raspberry Pi, as it fully uses its cores and may overheat the chip.)

As the file name suggestes, we used methods like grayscale/selected scales/multiprocessing to improve the inference speed for real-time face detection.

Requisitions regarding reposting please contact wonnor.cam@gmail.com.