Adam Geitgey

Results 51 comments of Adam Geitgey

We can't help unless you give us some sample images where faces aren't detected that should be. Otherwise I have no way to know what's happening :)

Can you simplify the problem? Take one of your timestamped image files that you have already captured and saved to disk. Verify that the captured image looks correct with an...

In this: ```python Roman_image = face_recognition.load_image_file("photo2.jpg") Roman_face_encoding = face_recognition.face_encodings(Roman_image) ``` Are you sure any faces were detected in that photo? It looks like `Roman_face_encoding` array is possibly empty and causing...

Do you have another file in that folder called `face_recognition.py` maybe?

If you don't have a file called `face_recognition.py`, most likely you have a weird mismash of python versions installed and something has gone wrong. This seems to happen with Anaconda...

The `'/home/pi/face_recognition/face_recognition'` in the system path is suspicious. Did you set the PYTHONPATH variable yourself or do you know where that got set? I'm not sure how that happened. As...

@mvput Hmm. It's loading the module from `/usr/local/lib/python3.5/dist-packages/face_recognition/__init__.py` but you also have `/usr/local/lib/python3.5/dist-packages/face_recognition-1.2.1-py3.5.egg` in your path. That makes it seem like you have two copies installed somehow. You might try...

@marksrg Now that you got rid of that extra copy, you might try just installing face_recognition from pip again - `pip3 install face_recognition` and seeing if it works after that.

Don't name your own script `face_recogntion.py` because then you are just importing your own script in itself instead of importing the library :)