https://github.com/davisking/dlib/issues/620
Maybe this is solution:
https://github.com/ageitgey/face_recognition#face-recognition
Common Issues
Issue: Illegal instruction (core dumped) when using face_recognition or running examples.
Solution: dlib is compiled with SSE4 or AVX support, but your CPU is too old and doesn't support that. You'll need to recompile dlib after making the code change outlined here.
The issue is most likely that dlib was compiled with support for AVX and/or SSE4 instructions, but your cpu is too old to support them (pre-2011, I think).
The easiest solution is to download dlib and compile it yourself. But when you do that, you need to make one change.
Before compiling dlib, edit dlib's tools/python/CMakeLists.txt file from:
set(USE_SSE4_INSTRUCTIONS ON CACHE BOOL "Use SSE4 instructions")
to:
set(USE_SSE2_INSTRUCTIONS ON CACHE BOOL "Use SSE2 instructions")
And then compile and install dlib and the dlib python extensions. Hopefully that should fix it.
解决方法:需要重新编译dlib,编译时指定不用AVX和SSE指令集,详见http://dlib.net/faq.html#Whyisdlibslow