Site icon Application System

Source code of facial recognition software for rice ATM

In this article, I would like to introduce the source code of face recognition from webcam images shared from https://thigiacmaytinh.com/ . This is a very useful website to help develop your application.

Source: https://thigiacmaytinh.com/

The program uses module FaceComp< /a> to recognize faces from webcam images.

1. Working principle

Each person will look at the webcam, the computer will automatically or manually identify whether this person has ever appeared. If you do not appear within the allotted time, the machine will give you rice.

After shooting, if the rice output conditions are satisfied, the software outputs a signal through the Arduino Nano circuit, which controls the relay for current to flow. In the software, there is a code to automatically detect the circuit board and control the signal to the board.

2. Prepare

3. Build software

After successful build, the software interface is as shown below

When operating the program will have the following processing flow:

If your build fails, you can go to folder bin/Rice_ATM-x64/ run the program Rice_ATM.exe we built it. p>

The program uses database SQLite to store the photographer’s information.

4. Relay opening and closing circuit

The software automatically finds the COM ports to see which port the Arduino is connecting to. If detected, Arduino board will automatically connect to send signal.

You need to load the Arduino code to receive the signal from the computer to send it down, I convention that when there is an O (OK) character, the signal will be output to pin A0. When the A0 pin outputs a signal, it will generate a voltage of 5V to trigger the solid relay SSR-40-DA to generate rice.

Relay SSR-40-DA  is a type of relay for AC power (220V residential). If you use 12V/24V DC power, you can use relays SSR-40-DD

Depending on the type of motor, it can be replaced with other suitable relays
 

You should use the Arduino Nano pin output base as shown below for stability when using, not afraid of loose wires

5. Download pre-built program

If you don’t know how to build software, you can use pre-built software:
https://viscomsolution.com/download/Rice_ATM-x64_1.3.2.zip

6. Article source and reference

Article sourced from: https://thigiacmaytinh.com/source-code-phan-mem-nhan-dien-khuon-mat-cho-atm-gao/

Author: vohungvi

Exit mobile version