1. Engineering background:
In some specific work scenarios, it is necessary to ensure the safety of workers and require workers to wear safety helmets. In order to prevent workers from not wearing safety helmets due to some reasons, a kind of safety helmet has been developed. A device that performs facial recognition and determines whether to wear a helmet.
2. Engineering principle:
Work flow:

1) Train K210 to recognize faces and helmets on the Sipeed official image recognition training website, and use K210 to perform image feature recognition.
Website: https://maixhub.com
Collect images to create a data set and train the data set.

2) After K210 recognizes the face, it then performs helmet recognition and compares the coordinate position information of the face and the helmet to determine whether the worker is wearing a helmet. Afterwards, MaixBit uses Maixpyide to write code and configure the serial port. Send specific data of the recognition results to the main control board through the serial port.

Recognition results for not wearing a helmet

Recognition results for wearing a helmet

3) Use the MounRiver Studio software to configure the CH32 serial port and PWM, output the PWM to the drive module to control the motor, and drive the entire device to rotate. CH32 communicates with MaixBit through the serial port. When the serial port receives the MaixBit, it sends After receiving the data, the IO port outputs the corresponding PWM control device to stop the rotation.


4) Write a data packet, and CH32 sends the corresponding data packet to control the voice module to broadcast the recognition result through the serial port to the voice module, and the voice module broadcasts the result of the K210 recognition judgment.

3. Selection of hardware:
The MaixBit development board with K210 as the core unit is the AI machine vision module

L298N driver module

SYN6288 voice module

reduction motor

Sipeed 2.4-inch display screen

4. Function:
This device can initially determine specific work scenarios that require wearing a safety helmet. Check whether the staff complies with the work requirements and wears safety helmets when working.