Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1234

Python • Re: Face recognition problem with model training

$
0
0
So i have been trying to get face recognition running on my Raspberry pi model 3 b+. I'm also using pi cam.

I solved most of the problems just by looking on the web, but i can't find a solution for this.

When in try to run

Code:

python train_model.py
I get the following error code:
Traceback (most recent call last):
File "/home/pi/facial_recognition/train_model.py", line 5, in <module>
import face_recognition
File "/usr/local/lib/python3.9/dist-packages/face_recognition/__init__.py", line 7, in <module>
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/usr/local/lib/python3.9/dist-packages/face_recognition/api.py", line 4, in <module>
import dlib
File "/home/pi/.local/lib/python3.9/site-packages/dlib/__init__.py", line 19, in <module>
from _dlib_pybind11 import *
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory
I've been following https://www.tomshardware.com/how-to/ras ... ecognition for installation.

Does anyone know how to get this working?
This is the type of thing we can search on google. Searching for that last error "ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory" shows many links on how to install the necessary stuff. When you do this, just make sure you tell google to return results from the last 12 months only because sometimes you get results that are so old ant won't help or might make things worse (see pic below)

https://www.google.com/search?q=ImportE ... 1342&dpr=1

Looks through some of the links the the first 1 or 2 pages of results and you'll probably find what needs to be installed and most of the time how to install it too. Don't just follow instructions blindly, read through the stuff you find. Sometimes you'll find things like "this fixed it in Buster for me" but if you're not running Buster it may not work for you.

2024.06.12_17.04.04.png

Statistics: Posted by memjr — Wed Jun 12, 2024 9:04 pm



Viewing all articles
Browse latest Browse all 1234

Trending Articles