The problem
An ESP32-P4 AI camera with face recognition is a camera device that identifies people it has been taught to recognise, entirely on the device, and then acts on that identification, for example by unlocking a door. This project builds that device around Espressif's ESP32-P4-EYE vision board, a camera-shaped board launched in 2025 around the dual-core RISC-V ESP32-P4, with a 2 MP MIPI-CSI camera, a 1.54-inch LCD and an ESP32-C6 coprocessor for Wi-Fi. The face pipeline runs on the chip with Espressif's ESP-DL library: each frame is checked for faces, reduced to a compact embedding and compared with enrolments on the microSD card, so no face image leaves the device. Most student face-recognition demos run the model on a laptop or in the cloud, which hides the hard part — fitting detection and matching into a microcontroller's memory budget. This project makes that constraint the point of the work, combining embedded AI, camera interfacing and a relay output.
Builder note from the demo build: the two front buttons on the ESP32-P4-EYE are boot-select and reset only, so the rotary encoder on top became the control for switching the LCD between the live camera view and the enrolled-face list during bench testing.
2 MP MIPI-CSI camera streams frames and shows the live view on the 1.54-inch LCD.
Follow the working sequence
How it works
From camera to action, the whole loop stays on-device. The 2 MP MIPI-CSI camera captures a frame, and the ESP32-P4 runs the ESP-DL face-detection model to find face boxes and landmarks. Each detected face is cropped and passed to the feature model, which converts it into a numerical embedding — a compact fingerprint of that face. The firmware compares this embedding with the enrolments stored on the microSD card and produces a match score for the closest person. Face recognition on the edge is a comparison, not a memory: the frame is reduced to an embedding and the match is a distance check against stored embeddings, so enrolment quality, not camera megapixels, decides whether the door opens for the right person. When the score clears the threshold, the relay energises and the LCD shows the name; when it does not, the event is recorded as an unknown face. The ESP32-C6 coprocessor carries each result over Wi-Fi to the dashboard.
- Enrol faces first: each person stands before the camera while the firmware captures 5 frames, extracts an embedding with the ESP-DL feature model, and stores it on the microSD card with a name.
- The 2 MP MIPI-CSI camera streams frames to the ESP32-P4, which displays the live view on the 1.54-inch LCD.
- The ESP-DL HumanFaceDetect model scans each frame for faces and returns bounding boxes and facial landmarks, all on the chip.
- Each detected face is cropped to a 112 × 112 × 3 input and passed to the HumanFaceFeat model, which produces a numerical embedding for that face.
- The firmware compares the new embedding with every stored enrolment and reports the closest match with a score; the best-scoring person is the candidate.
- If the score clears the threshold (default 80%), the relay energises to unlock the door, the buzzer sounds once, and the LCD shows the matched name; below the threshold the event is logged as an unknown face with its score and time.
- Every event is written to the microSD card and sent over Wi-Fi through the ESP32-C6 coprocessor to the companion dashboard, where the recognition log and enrolled faces are displayed.
Tech stack:
- ESP32-P4-EYE vision board
- ESP-IDF · ESP-DL
- ESP32-C6-MINI-1U Wi-Fi coprocessor
- Human face detection · recognition models
- MIPI-CSI camera · 2 MP sensor
- HTML · CSS · JavaScript dashboard
- microSD card storage
- Relay · buzzer output modules
Dataset & model details
- Dataset: Enrolled faces captured on the device — 5 frames per person from the 2 MP camera, stored as embeddings on the microSD card. No public dataset is used; the buyer enrols their own faces.
- Task: Face detection (bounding box + landmarks) followed by face recognition (embedding match against the enrolled set); input = camera frame, output = matched name + score, or "unknown".
- Model: ESP-DL HumanFaceDetect + HumanFaceFeat (MFN_S8_V1 feature model, INT8 quantized, 112 × 112 × 3 input), running on the ESP32-P4.
- Metrics: No recognition accuracy is claimed — accuracy depends on enrolment images, lighting, face angle and threshold, and is measured by the buyer with their own enrolled set. Reference latency from Espressif's component registry: MFN_S8_V1 feature extraction takes 81.5 ms on the ESP32-P4 (datasheet value, 112 × 112 × 3 input).
| Parameter | Value |
|---|---|
| Main controller | ESP32-P4, dual-core RISC-V up to 400 MHz (datasheet value) |
| SRAM | 768 KB (datasheet value) |
| PSRAM | Up to 32 MB (datasheet value) |
| Flash | 16 MB SPI flash (datasheet value) |
| Camera | 2 MP MIPI-CSI, manually adjustable focus (datasheet value) |
| Display | 1.54-inch SPI LCD, 240 × 240 resolution (datasheet value) |
| Wireless coprocessor | ESP32-C6-MINI-1U, Wi-Fi 6 + Bluetooth 5 + IEEE 802.15.4 (datasheet value) |
| Face feature model | MFN_S8_V1, 112 × 112 × 3 input, 81.5 ms inference (Espressif component value, ESP32-P4) |
| Enrolment | 5 frames per face (design choice) |
| Match threshold | 80% default, adjustable 60–95% (configurable) |
| Relay output | 1-channel relay for door lock or buzzer (design) |
| Power | 5 V via USB Type-C (datasheet value) |
| Log storage | Timestamped entries on microSD card + dashboard (card capacity buyer-supplied) |
Project features
The strongest parts of this build are the on-device recognition pipeline, the enrolment workflow and the relay output. Face detection and recognition both run on the ESP32-P4 with Espressif's ESP-DL library, so the camera works without a laptop or cloud service in the loop. Enrolment takes five frames of a face from the 2 MP camera and stores the resulting embedding on the microSD card, and the dashboard lists every enrolled person with the date they were added. A match above the adjustable threshold energises a relay that can drive a door lock or a buzzer, while an unknown face is only logged with its score and the time. The 1.54-inch LCD on the board shows the live camera view and the match result, so the device can be demonstrated without opening the dashboard. Every feature below is implemented in the base build; optional additions are listed separately under customisation.
- [On-device face detection] The ESP-DL HumanFaceDetect model finds face boxes and landmarks in each camera frame on the ESP32-P4 itself, with no cloud service involved in detection.
- [On-device face recognition] The ESP-DL HumanFaceFeat model converts each detected face into an embedding and matches it against the enrolled faces stored on the microSD card.
- [Face enrolment from the camera] A new person is enrolled by capturing 5 frames from the 2 MP camera; the dashboard lists each enrolled person with their enrolment date and stored frame count.
- [Relay door control] A match above the set threshold energises a 1-channel relay that can drive a door lock, an electric strike or a buzzer; an unknown face only triggers a log entry.
- [Timestamped recognition log] Every event is recorded with time, matched name or "unknown", and match score, on the microSD card and in the dashboard.
- [On-board LCD preview] The 1.54-inch 240 × 240 SPI LCD shows the live camera view and the match result, so the device demonstrates standalone.
- [Adjustable match threshold] The match threshold is set from the dashboard, with a default of 80% and an adjustable range of 60–95%.
- [Wi-Fi companion dashboard] The ESP32-C6 coprocessor serves the dashboard over local Wi-Fi, showing enrolled faces, the recognition log and the threshold control.
What is included
- Working ESP32-P4-EYE prototype with camera, LCD, relay and buzzer wired
- Firmware source code (ESP-IDF + ESP-DL face detection and recognition)
- Companion web dashboard (enrolled faces, recognition log, threshold control)
- Wiring diagram and component list
- Enrolment and threshold-tuning guide
- Project report PDF (background, ESP-DL pipeline, methodology, results)
- PPT presentation for final review
- Viva Q&A preparation document (RISC-V, ESP-DL, embeddings, thresholds)
- Project abstract PDF
Limitations & prerequisites
- Recognition accuracy is not measured in this build and is not guaranteed; it depends on enrolment images, lighting, face angle and the match threshold, and is measured by the buyer with their own enrolled set.
- This is an academic prototype, not a certified security system; the pipeline has no liveness or anti-spoofing check, so a printed photograph can be falsely matched.
- Detection works best with 1 face in the frame at a time; several faces in one frame slow each recognition cycle.
- The 2 MP camera needs reasonable indoor lighting; dim rooms reduce detection reliability.
- Enrolled faces live as embeddings on the microSD card, so a lost or corrupted card loses the enrolment database; the guide covers a backup step.
- The dashboard is reachable on the local Wi-Fi network only; remote access over the internet is an optional addition, not part of the base build.
Frequently Asked Questions
Is this project suitable for a final-year project?
Yes, it fits Electronics & Telecommunication, Computer Science and IoT-focused programs because it combines embedded hardware, on-device AI with the ESP-DL library, camera interfacing and a working web dashboard in a single system that can be demonstrated live during the review. It teaches the ESP32-P4 platform, the ESP-DL face pipeline, camera interfacing and access-control logic, and the report documents each part for the review.
Which board and library run the face recognition?
The ESP32-P4-EYE vision board runs the whole pipeline, using Espressif's ESP-DL library with its HumanFaceDetect and HumanFaceFeat models on the dual-core RISC-V ESP32-P4, with face embeddings stored on the board's microSD card and matched on the chip itself rather than in the cloud. The ESP32-C6-MINI-1U coprocessor only handles Wi-Fi and Bluetooth, so recognition keeps working even if the network drops.
Is the recognition accuracy guaranteed?
No accuracy figure is guaranteed, because recognition depends on the quality of the enrolled face images, the lighting and angle at recognition time, and the match threshold chosen on the dashboard, so the same device can look strong in bright light and weak in a dim corridor. The honest way to state performance is to enrol the actual users, run the buyer's own test set through the device and record the measured match rate in the report.
Does it need internet connectivity?
No, face detection and recognition run entirely on the ESP32-P4, and the dashboard is served over the local Wi-Fi network through the ESP32-C6 coprocessor, so the camera keeps recognising faces and unlocking the relay even when the broadband connection is down. Internet is needed only if remote access to the dashboard is added later, which is an optional customisation rather than part of the base build.
Can it work as a door lock or an attendance system?
Yes, the relay output can drive a door lock or an electric strike, and every recognition is timestamped in the log, which is the raw material for attendance, so the same hardware covers both access control and entry records without any extra sensor. A ready-made attendance export with names, dates and a spreadsheet download is an optional addition that can be built on the existing log.
What will I receive with the project?
You receive the working ESP32-P4-EYE prototype with the camera, LCD, relay and buzzer wired, the complete ESP-IDF firmware, the companion dashboard, wiring and enrolment documentation, the project report, PPT and viva Q&A, plus the project abstract PDF for the submission file. The team also gets a demonstration walkthrough of enrolment, threshold tuning and the recognition log.
Components & software requirements
- ESP32-P4-EYE vision board
- ESP-IDF · ESP-DL
- ESP32-C6-MINI-1U Wi-Fi coprocessor
- Human face detection · recognition models
- MIPI-CSI camera · 2 MP sensor
- HTML · CSS · JavaScript dashboard
- microSD card storage
- Relay · buzzer output modules
Dataset & model details
- Dataset: Enrolled faces captured on the device — 5 frames per person from the 2 MP camera, stored as embeddings on the microSD card. No public dataset is used; the buyer enrols their own faces.
- Task: Face detection (bounding box + landmarks) followed by face recognition (embedding match against the enrolled set); input = camera frame, output = matched name + score, or "unknown".
- Model: ESP-DL HumanFaceDetect + HumanFaceFeat (MFN_S8_V1 feature model, INT8 quantized, 112 × 112 × 3 input), running on the ESP32-P4.
- Metrics: No recognition accuracy is claimed — accuracy depends on enrolment images, lighting, face angle and threshold, and is measured by the buyer with their own enrolled set. Reference latency from Espressif's component registry: MFN_S8_V1 feature extraction takes 81.5 ms on the ESP32-P4 (datasheet value, 112 × 112 × 3 input).
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.