# Raspberry Pi Facial Recognition

**URL:** <https://forum.core-electronics.com.au/t/raspberry-pi-facial-recognition/20035>\
**Category:** Support\
**Created:** [23 May 2024 23:14 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-facial-recognition/20035 "2024-05-23T23:14:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry272154](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jerry272154](https://forum.core-electronics.com.au/u/Jerry272154)\
**Post date:** [23 May 2024 23:14 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-facial-recognition/20035/1 "2024-05-23T23:14:52Z")

</div>

Hi All,

I’m having some difficulties with OpenCV on my Raspberry Pi, I’m looking to use it for a facial recognition project, but am running into this error:

> "Traceback (most recent call last):  
> File “\<stdin\>”, line 1, in \<module\>  
> ImportError: No module named cv2“

Hoping someone can point me in the right direction so I can move ahead with the project.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Dan](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/dan/32/10815_2.png) [@Dan](https://forum.core-electronics.com.au/u/Dan)\
**Post date:** [23 May 2024 23:24 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-facial-recognition/20035/2 "2024-05-23T23:24:39Z")

</div>

Hi Jerry,

Welcome to the forum 🙂

Looking at the error that you have there, it would appear that you don’t have cv2 installed, are you able to open up a terminal on your pi and put in the following command?

> sudo cd /

> pip3 install opencv-python

another thing to check is that when you’re importing cv2 in your code that it matches what I’ve put below as it is case sensitive.

> import cv2
