cd ..

[ project / 11 ] · Computer Vision

FaceRecognition.

One of my first projects: real-time face recognition with OpenCV, built out of curiosity about what cameras can do.

PythonOpenCV
facerecognition: live feed
match: tiago · 98.2%
rec · 30 fps

interface sketch · see it on GitHub

about the project

This is one of my first Python projects, built when I was starting out with the language and found the possibilities of cameras genuinely exciting: the idea that a program could look at a live feed and know who it was looking at, for security or just for personalized experiences, felt like something worth understanding from the inside.

The system has two scripts. record_face.py captures frames from the webcam and builds a labeled training set for a person. Main.py runs the recognition loop: it reads frames from the camera, detects faces with OpenCV cascades, encodes them and matches against the trained set, drawing bounding boxes and confidence scores on the live feed in real time.

The goal was not to wrap a cloud API but to understand the pipeline: what does detection actually do, how does encoding work, what makes a match confident or uncertain. Old code from early in the journey, but it represents the curiosity about computer vision that has stayed with me.

project.meta

type
Computer Vision
stack
Python · OpenCV
source
repo

what it does

Key features

01

Two-script pipeline

record_face.py builds the training set from webcam captures. Main.py runs the live recognition loop against it.

02

Real-time face detection

Faces detected frame by frame from the live camera feed using OpenCV cascades.

03

Recognition with confidence scores

Known faces matched against trained encodings, with confidence scores drawn on the live video feed.