Skip to content

Commit b36bcd5

Browse files
committed
Add common issues to README
1 parent 3a2b6f4 commit b36bcd5

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,22 @@ depending on a black box library, [read my article](https://medium.com/@ageitgey
212212
* The face recognition model is trained on adults and does not work very well on children. It tends to mix
213213
up children quite easy using the default comparison threshold of 0.6.
214214

215+
## Common Issues
216+
217+
##### Issue: `Illegal instruction (core dumped)` when using face_recognition or running examples.
218+
219+
Solution: `dlib` is compiled with SSE4 or AVX support, but your CPU is too old and doesn't support that.
220+
You'll need to recompile `dlib` after [making the code change outlined here](https://github.com/ageitgey/face_recognition/issues/11#issuecomment-287398611).
221+
222+
##### Issue: `RuntimeError: Unsupported image type, must be 8bit gray or RGB image.` when running the webcam example.
223+
224+
Solution: Your webcam probably isn't set up correctly with OpenCV. [Look here for more](https://github.com/ageitgey/face_recognition/issues/21#issuecomment-287779524).
225+
226+
##### Issue: `MemoryError` when running `pip2 install face_recognition`
227+
228+
Solution: The face_recognition_models file is too big for your available pip cache memory. Instead,
229+
try `pip2 --no-cache-dir install face_recognition` to avoid the issue.
230+
215231
## Thanks
216232

217233
* Many, many thanks to [Davis King](https://github.com/davisking) ([@nulhom](https://twitter.com/nulhom))

README.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,33 @@ Caveats
257257
very well on children. It tends to mix
258258
up children quite easy using the default comparison threshold of 0.6.
259259

260+
Common Issues
261+
-------------
262+
263+
Issue: ``Illegal instruction (core dumped)`` when using face\_recognition or running examples.
264+
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
265+
266+
| Solution: ``dlib`` is compiled with SSE4 or AVX support, but your CPU
267+
is too old and doesn't support that.
268+
| You'll need to recompile ``dlib`` after `making the code change
269+
outlined
270+
here <https://github.com/ageitgey/face_recognition/issues/11#issuecomment-287398611>`__.
271+
272+
Issue: ``RuntimeError: Unsupported image type, must be 8bit gray or RGB image.`` when running the webcam example.
273+
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
274+
275+
Solution: Your webcam probably isn't set up correctly with OpenCV. `Look
276+
here for
277+
more <https://github.com/ageitgey/face_recognition/issues/21#issuecomment-287779524>`__.
278+
279+
Issue: ``MemoryError`` when running ``pip2 install face_recognition``
280+
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
281+
282+
| Solution: The face\_recognition\_models file is too big for your
283+
available pip cache memory. Instead,
284+
| try ``pip2 --no-cache-dir install face_recognition`` to avoid the
285+
issue.
286+
260287
Thanks
261288
------
262289

0 commit comments

Comments
 (0)