kandi background

dlib | A toolkit for making real world machine learning and data analysis applications in C | Machine Learning library

Download this library from

kandi X-RAY | dlib Summary

dlib is a C++ library typically used in Artificial Intelligence, Machine Learning, Deep Learning, OpenCV applications. dlib has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.
Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. See http://dlib.net for the main project documentation and API reference.

kandi-support Support

  • dlib has a medium active ecosystem.
  • It has 10897 star(s) with 3026 fork(s). There are 479 watchers for this library.
  • There were 1 major release(s) in the last 6 months.
  • There are 32 open issues and 1943 have been closed. On average issues are closed in 36 days. There are 8 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of dlib is v19.23

quality kandi Quality

  • dlib has 0 bugs and 0 code smells.

securitySecurity

  • dlib has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • dlib code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.

license License

  • dlib is licensed under the BSL-1.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.

buildReuse

  • dlib releases are available to install and integrate.
  • Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

dlib Key Features

A toolkit for making real world machine learning and data analysis applications in C++

dlib Examples and Code Snippets

  • Compiling dlib C++ example programs
  • Compiling your own C++ programs that use dlib
  • Compiling dlib Python API
  • Running the unit test suite
  • how to extract self-defined ROI with dlib facelandmarks?
  • Why such different answers for the xgboost scikit-learn interface?
  • "ERROR: CMake must be installed to build dlib" when installing face_recognition
  • Overloading member operator,?
  • Sorting a tensor list in ascending order
  • How to automatically detect a specific feature from one image and map it to another mask image? Then how to smoothen only the corners of the image?
  • How to change the value of one RGB channel in Python with cv2?
  • error MSB4095: How to properly add additional settings in Visual Studio project properties dialog?
  • Head Pose Estimation Using Facial Landmarks
  • Error in "from keras.utils import to_categorical"

Compiling dlib C++ example programs

mkdir build; cd build; cmake .. ; cmake --build .

Community Discussions

Trending Discussions on dlib
  • Cannot install face_recognition using pip install face_recognition on Win10
  • how to extract self-defined ROI with dlib facelandmarks?
  • Why such different answers for the xgboost scikit-learn interface?
  • Recreating Global 3D Points, from Local 3D Points and Global 2D Points; SolvePnP
  • "ERROR: CMake must be installed to build dlib" when installing face_recognition
  • dlib import failure on M1 pro
  • Bounding boxes returned without detected face image in dlib python
  • Overloading member operator,?
  • Sorting a tensor list in ascending order
  • How to shrink/expand facial features using Opencv?
Trending Discussions on dlib

QUESTION

Cannot install face_recognition using pip install face_recognition on Win10

Asked 2022-Apr-04 at 09:48

I get the error

Running setup.py install for dlib ... error error: subprocess-exited-with-error

× Running setup.py install for dlib did not run successfully. │ exit code: 1 ╰─> [58 lines of output] running install running build running build_py package init file 'tools\python\dlib_init_.py' not found (or not a regular file) running build_ext Building extension for Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] Invoking CMake setup: 'cmake C:\Users\amade\AppData\Local\Temp\pip-install-_k5e982w\dlib_237006073dfd4b13993bf60b7ecb3629\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\amade\AppData\Local\Temp\pip-install-_k5e982w\dlib_237006073dfd4b13993bf60b7ecb3629\build\lib.win-amd64-3.10 -DPYTHON_EXECUTABLE=C:\Users\amade\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\amade\AppData\Local\Temp\pip-install-_k5e982w\dlib_237006073dfd4b13993bf60b7ecb3629\build\lib.win-amd64-3.10 -A x64' -- Building for: Visual Studio 17 2022 -- Selecting Windows SDK version to target Windows 10.0.19044. -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:14 (project): No CMAKE_C_COMPILER could be found.

  CMake Error at CMakeLists.txt:14 (project):
    No CMAKE_CXX_COMPILER could be found.



  -- Configuring incomplete, errors occurred!
  See also "C:/Users/amade/AppData/Local/Temp/pip-install-_k5e982w/dlib_237006073dfd4b13993bf60b7ecb3629/build/temp.win-amd64-3.10/Release/CMakeFiles/CMakeOutput.log".
  See also "C:/Users/amade/AppData/Local/Temp/pip-install-_k5e982w/dlib_237006073dfd4b13993bf60b7ecb3629/build/temp.win-amd64-3.10/Release/CMakeFiles/CMakeError.log".
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\amade\AppData\Local\Temp\pip-install-_k5e982w\dlib_237006073dfd4b13993bf60b7ecb3629\setup.py", line 222, in <module>
      setup(
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\command\install.py", line 61, in run
      return orig.install.run(self)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\command\install.py", line 568, in run
      self.run_command('build')
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\amade\AppData\Local\Temp\pip-install-_k5e982w\dlib_237006073dfd4b13993bf60b7ecb3629\setup.py", line 134, in run
      self.build_extension(ext)
    File "C:\Users\amade\AppData\Local\Temp\pip-install-_k5e982w\dlib_237006073dfd4b13993bf60b7ecb3629\setup.py", line 171, in build_extension
      subprocess.check_call(cmake_setup, cwd=build_folder)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 369, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\amade\\AppData\\Local\\Temp\\pip-install-_k5e982w\\dlib_237006073dfd4b13993bf60b7ecb3629\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\amade\\AppData\\Local\\Temp\\pip-install-_k5e982w\\dlib_237006073dfd4b13993bf60b7ecb3629\\build\\lib.win-amd64-3.10', '-DPYTHON_EXECUTABLE=C:\\Users\\amade\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\amade\\AppData\\Local\\Temp\\pip-install-_k5e982w\\dlib_237006073dfd4b13993bf60b7ecb3629\\build\\lib.win-amd64-3.10', '-A', 'x64']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> dlib

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

ANSWER

Answered 2022-Apr-03 at 09:50

Follow the steps below to install face_recognition python package on Windows 10.

The instruction has been tested on Windows 10 64bit, python 3.9.

Step 1

Download CMake installation package for your OS from official site

Step 2

Install downloaded CMake installation package. Please make sure that Add CMake to system PATH option has been selected during the installation.

Step 3

Reboot your OS (restart computer)

Step 4

Run pip install dlib It tooks several minutes so be prepared to wait

Step 5

If it completes without any errors, you're all set. Run pip install face_recognition to install face_recognition.

Result

enter image description here

Source https://stackoverflow.com/questions/71717231

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install dlib

You can download it from GitHub.

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

Build your Application

Share this kandi XRay Report