Facial recognition

I just found how get on the forum my name is James.
I installed facial recognition on my raspberry pi 4.
I run the camera to take pictures press the space bar my picture went in my james folder.
I had installed all.the code on the sheet.
I run sudo apt-get install python opencv .
It came back latest version installed
before the i had run the code cd racial recognition
/facial recognition python train_model.py
No opencv installed ?
I also run python
Import opencv2
Error message
Any help. In instaĺling opencv
What gone wrong
Thanks any help

Hi @James217596

You’ve installed pythoncv with apt as sudo. That’s totally fine. :slightly_smiling_face:
I believe that means you also need to run your python scripts as sudo.

sudo python3 python train_model.py

Could that be it?