Giter VIP home page Giter VIP logo

esp32facerecbreathalyzer's Introduction

ESP32 FaceRec Breathalyzer

ESP32 Based Facial Detection and Alcohol Breathalyzer TIme Clock

This library implements a Time Clock device which uses the ESP32-Cam development board and an MQ3 alcohol sensor to log a timestamp and breath alcohol level to a server. It is a prototype for a time clock device that can be used by employers to check their employees breath alcohol level when they clock in.

How to install: Take the components of the ESP32 folder and open them in arduino IDE. In CameraWebServerWorking.ino, Uncomment the definition for the development board you are using, and change the ssid and password to your wifi details. In app_httpd.cpp, change the variable serverName to include the ip address to your server, as well as the pin number where the analog input of the MQ3 sensor is connected. Install the included libraries. Make sure PSRam is enabled and use the Huge App partition scheme to flash the esp32.

Make sure node’s and npm are installed on your server. Make sure mongoldb daemon is installed and running on your server. Upload the components of the server folder to your server and run npm install. Change the mongodb url in server.js if necessary. Then use nodejs to run server.js.

How to use: Find the ip address of the esp32 through the serial connection to the esp32. Go to this ip address in your web browser. Enable face recognition and face detection using the web UI. Use the enroll face button to enroll 5 faces per user. Once the faces are recognized, the LED will flash once, and the user has 5 seconds to blow into the MQ3 sensor. Then, the LED will flash again, and an ID representing the recognized face and the sensor value will be sent to the server via HTTP request.

prototype image

esp32facerecbreathalyzer's People

Contributors

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