dlib

Relocation R_X86_64_32S against '_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 14:16:54
问题 I'm trying to install the dlib Python library. On some systems (macOS, stock Ubuntu 14.04) pip install dlib works fine, but in the Ubuntu 14.x that's part of our CircleCI environment it fails with the following error. Linking CXX shared library dlib.so /usr/bin/ld: /opt/circleci/python/2.7.11/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against '_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC error: cmake build failed! What could be wrong

DLib : train_shape_predictor_ex.cpp

拥有回忆 提交于 2019-12-01 12:18:57
I am trying to train the shape predictor of Dlib by executing train_dlib_shape_predictor_ex.cpp on helen dataset as described in the code, I place test images in a face folder in current directory of shape predictor. But when I run the code it throws following exception: C:\train_shape_predictor_ex\Release>train_shape_predictor_ex test exception thrown! ERROR: unable to open test/training_with_face_landmarks.xml for reading. as no training_with_face_landmarks.xml and testing_with_face_landmarks.xml files are available in helen dataset on the following page : link There is a folder named

DLIB : Training Shape_predictor for 194 landmarks (helen dataset)

旧时模样 提交于 2019-11-30 15:32:32
I am training DLIB 's shape_predictor for 194 face landmarks using helen dataset which is used to detect face landmarks through face_landmark_detection_ex.cpp of dlib library. Now it gave me an sp.dat binary file of around 45 MB which is less compared to file given ( http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2 ) for 68 face landmarks. In training Mean training error : 0.0203811 Mean testing error : 0.0204511 and when I used trained data to get face landmarks position, IN result I got.. which are very deviated from the result got from 68

Error to run a library to python

两盒软妹~` 提交于 2019-11-30 09:42:02
问题 I follow the steps according to http://npatta01.github.io/2015/08/10/dlib/ but when I try to run (I use sudo), python python_examples/face_detector.py examples/faces/2007_007763.jpg take back error. Firstly, the error was AttributeError: 'module' object has no attribute 'image_window' to line 8. Now, the error is Illegal instruction (core dumped) but I don't know why. Please, help me to add the library correctly. import sys import dlib from skimage import io detector = dlib.get_frontal_face

pycharm+dlib库的安装

。_饼干妹妹 提交于 2019-11-30 00:35:00
安装dlib库遇到了好多的坑,因为想要用dlib库实现68点的人脸标定,然后发现dlib库怎么也安装不上。 因为在anaconda的environment里找dlib库发现没有,网上尝试了很多方法,cmake+boost,下载whl文件安装都失败 最后通过pycharm安装成功 不过应该是基于了特定的环境才能安装成功,首先是python 3.5 ,然后在pycharm的interpreter settings中的Project interpreter里添加dlib库,选择dlib 18.17.100安装,尝试python 3.7加一些版本,3.5加dlib的新的版本都安装失败。 算是分享一些经验给安装不成功的同学们,我也不算安装成功,dlib的新版本真的安不上,将就用一下旧版本 来源: https://blog.csdn.net/qq_28200939/article/details/100980622

DLIB : Training Shape_predictor for 194 landmarks (helen dataset)

谁说胖子不能爱 提交于 2019-11-29 22:15:34
问题 I am training DLIB 's shape_predictor for 194 face landmarks using helen dataset which is used to detect face landmarks through face_landmark_detection_ex.cpp of dlib library. Now it gave me an sp.dat binary file of around 45 MB which is less compared to file given (http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2) for 68 face landmarks. In training Mean training error : 0.0203811 Mean testing error : 0.0204511 and when I used trained data to

Error to run a library to python

天大地大妈咪最大 提交于 2019-11-29 16:19:47
I follow the steps according to http://npatta01.github.io/2015/08/10/dlib/ but when I try to run (I use sudo), python python_examples/face_detector.py examples/faces/2007_007763.jpg take back error. Firstly, the error was AttributeError: 'module' object has no attribute 'image_window' to line 8. Now, the error is Illegal instruction (core dumped) but I don't know why. Please, help me to add the library correctly. import sys import dlib from skimage import io detector = dlib.get_frontal_face_detector() win = dlib.image_window() for f in sys.argv[1:]: print("Processing file: {}".format(f)) img =

how to build DLIB for iOS

走远了吗. 提交于 2019-11-28 17:36:05
I'm trying to build DLIB for an iOS project. Running the cmake results in a libdlib.a and a load of .o files. When I add the library to an Xcode project I get warning that the library hasn't been built for arm64 . My question is two-part: How can I build DLIB for iOS (I tried cmake **path_to_source** -DCMAKE_OSX_ARCHITECTURE="arm64" but it caused loads of errors e.g. unknown type name '__uint32_t'; did you mean '__uint128_t' )? What is the purpose of all the .o files that get built when you run cmake? Do I need to include them in an Xcode project? I finally figured out how to do this:

face_recognition安装

倖福魔咒の 提交于 2019-11-28 14:59:13
Face_Recognition更适合于Linux系统,性能方面Windows系统下只能发挥Linux系统的四分之一。 Windows系统下安装:    方法1:anaconda3.5以前的版本含3.5     安装visual studio2014:       安装C/C++ 编译器,VS主要用于之后boost库的编译。     安装boost:       下载地址:https://sourceforge.net/projects/boost/files/boost-binaries/ 我下载的是boost_1_67_0-msvc-14.1-64.exe 直接安装就行。       如果下载的zip那就需要先解压,打开vs命令,更改文件夹到boost的解压路径,输入 bootstrap.bat 在文件夹里生成b2.exe,再输入 b2,让boost库里的东西自动编译     安装cmake:       官方下载地址:https://cmake.org/ 我下载的是cmake-3.13.1-win64-x64.msi,直接双击安装。将其路径加入PATH环境变量     安装dlib:       下载地址:https://pypi.org/simple/dlib/ 我下载的是dlib-19.7.0-cp36-cp36m-win_amd64.whl

How can I solve Error of installation Dlib?

余生颓废 提交于 2019-11-28 12:57:21
问题 How I can install dlib. I tried to install dlib in many way but it's alway error. Got an error: ERROR: Complete output from command 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\hommy\\AppData\\Local\\Temp\\pip-install-c_rc8wfx\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\hommy