Facial Recognition for Raspberry Pi with OpenCV and Python (Updated Tutorial)

Published at : 23 Dec 2025

🔗 *The full guide* : _https://core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/_

In this video we will be learning how to run *face recognition* on a *Raspberry Pi* with *OpenCV* and the face recognition library. We will be covering how to install the required packages and libraries, how to take photos and *train the model*, as well as *controlling hardware* with the detection results.

🔧🔨🧰 Hardware featured in this guide:

*Raspberry Pis:*
_https://core-electronics.com.au/raspberry-pi/boards.html#category_1392_
*Camera Module 3:*
_https://core-electronics.com.au/catalog/product/view/sku/CE09425_

💡❓ If you have any questions about this content or want to share a project you're working on head over to our *maker forum:* _http://coreelec.io/forum_

0:00 Intro
0:38 What You Will Need
1:32 Hardware Assembly and Set Up
2:10 Installing Libraries
4:40 Taking Photos and Training Model
7:31 Running Face Recognition
9:32 Controlling Hardware

🌏🦘 *Core Electronics* is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

• *Raspberry Pi* _https://core-electronics.com.au/raspberry-pi.html_
• *Arduino* _https://core-electronics.com.au/arduino.html_
• *Sparkfun* _https://core-electronics.com.au/brands/sparkfun-australia_
• *Adafruit* _https://core-electronics.com.au/brands/adafruit-australia_
• *Pololu* _https://core-electronics.com.au/brands/pololu-australia_
• *DFRobot* _https://core-electronics.com.au/brands/dfrobot-australia_

The following trademarks are owned by *Core Electronics Pty Ltd:*

"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo