Customer Face Recognition and Emotion Detection

Project using DeepFace, implemented experimentally at Kaikaku's London store.

Project Overview

This project involves customer face recognition and emotion detection using DeepFace. It is currently in an experimental phase at Kaikaku's store in London, providing insights into customer reactions and behaviors. By recognizing customer faces and analyzing their emotions, this project aims to enhance customer interaction analysis and provide data-driven insights for improving customer experience.

Key Features

Code Implementation

The following code snippet shows the main functionality of the project: performing face recognition with DeepFace and detecting emotions with the FER library.


# Perform face recognition
results = DeepFace.find(img_path=image_path, db_path=local_db_path, model_name=model_name, distance_metric=distance_metric)

# Perform emotion detection
detector = FER(mtcnn=True)
emotion_results = detector.detect_emotions(image_path)
if emotion_results:
    emotion = emotion_results[0]['emotions']
    dominant_emotion = max(emotion, key=emotion.get)
else:
    dominant_emotion = "No emotion detected"
                

Experimental Implementation and Results

In Kaikaku's store, this system is used to identify returning customers and gauge their emotional response to various products and store layouts. Early results suggest that this technology can provide valuable insights into customer satisfaction and engagement, supporting Kaikaku in making data-driven decisions to enhance the shopping experience.