Giter Club home page Giter Club logo

polaris's Issues

Facing issue during installation of "face_recognition" on Windows 10

This is my current error report.

Nom du système d’exploitation: Microsoft Windows 10 Famille
Version du système: 10.0.19041 N/A version 19041
Python 3.9.1
pip 21.0.1

D:\Polaris>pip install face_recognition
Collecting face_recognition
  Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: Click>=6.0 in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (7.1.2)
Collecting dlib>=19.7
  Using cached dlib-19.22.0.tar.gz (7.4 MB)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (0.3.0)
Requirement already satisfied: Pillow in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (8.1.2)
Requirement already satisfied: numpy in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (1.20.2)
Building wheels for collected packages: dlib
  Building wheel for dlib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\ludndev\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\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\ludndev\AppData\Local\Temp\pip-wheel-h3ipmluc'
       cwd: C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\
  Complete output (73 lines):
  running bdist_wheel
  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.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
  Invoking CMake setup: 'cmake C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=c:\users\ludndev\appdata\local\programs\python\python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -A x64'
  -- Building for: Visual Studio 12 2013
  -- The C compiler identification is MSVC 18.0.21005.1
  -- The CXX compiler identification is MSVC 18.0.21005.1
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PythonInterp: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.1")
  -- Found PythonLibs: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/libs/Python39.lib
  -- pybind11 v2.2.4
  -- Using CMake version: 3.18.4
  -- Compiling dlib version: 19.22.0
  CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:31 (message):
    C++11 is required to use dlib, but the version of Visual Studio you are
    using is too old and doesn't support C++11.  You need Visual Studio 2015 or
    newer.
  Call Stack (most recent call first):
    C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/test_for_sse4/CMakeLists.txt:8 (include)


  CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/check_if_sse4_instructions_executable_on_host.cmake:13 (try_compile):
    Failed to configure test project build system.
  Call Stack (most recent call first):
    C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:13 (include)
    C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/CMakeLists.txt:33 (include)


  -- Configuring incomplete, errors occurred!
  See also "C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/build/temp.win-amd64-3.9/Release/CMakeFiles/CMakeOutput.log".
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 222, in <module>
      setup(
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 165, in setup
      return distutils.core.setup(**attrs)
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 134, in run
      self.build_extension(ext)
    File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 171, in build_extension
      subprocess.check_call(cmake_setup, cwd=build_folder)
    File "c:\users\ludndev\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-DPYTHON_EXECUTABLE=c:\\users\\ludndev\\appdata\\local\\programs\\python\\python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-A', 'x64']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for dlib
  Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, face-recognition
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\ludndev\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ludndev\AppData\Local\Temp\pip-record-gn9mlv3w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ludndev\appdata\local\programs\python\python39\Include\dlib'
         cwd: C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\
    Complete output (75 lines):
    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.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
    Invoking CMake setup: 'cmake C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=c:\users\ludndev\appdata\local\programs\python\python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -A x64'
    -- Building for: Visual Studio 12 2013
    -- The C compiler identification is MSVC 18.0.21005.1
    -- The CXX compiler identification is MSVC 18.0.21005.1
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found PythonInterp: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.1")
    -- Found PythonLibs: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/libs/Python39.lib
    -- pybind11 v2.2.4
    -- Using CMake version: 3.18.4
    -- Compiling dlib version: 19.22.0
    CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:31 (message):
      C++11 is required to use dlib, but the version of Visual Studio you are
      using is too old and doesn't support C++11.  You need Visual Studio 2015 or
      newer.
    Call Stack (most recent call first):
      C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/test_for_sse4/CMakeLists.txt:8 (include)


    CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/check_if_sse4_instructions_executable_on_host.cmake:13 (try_compile):
      Failed to configure test project build system.
    Call Stack (most recent call first):
      C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:13 (include)
      C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/CMakeLists.txt:33 (include)


    -- Configuring incomplete, errors occurred!
    See also "C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/build/temp.win-amd64-3.9/Release/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 222, in <module>
        setup(
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\command\install.py", line 546, in run
        self.run_command('build')
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 134, in run
        self.build_extension(ext)
      File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 171, in build_extension
        subprocess.check_call(cmake_setup, cwd=build_folder)
      File "c:\users\ludndev\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-DPYTHON_EXECUTABLE=c:\\users\\ludndev\\appdata\\local\\programs\\python\\python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-A', 'x64']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\ludndev\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ludndev\AppData\Local\Temp\pip-record-gn9mlv3w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ludndev\appdata\local\programs\python\python39\Include\dlib' Check the logs for full command output.

D:\Polaris>

Error

Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\gui.py", line 932, in process
self.start_error = process.start(path[0])
File "C:\process.py", line 135, in start
draw_delaunay( img_copy, subdiv, (255,219,0) ); #255, 219, 0
File "C:\process.py", line 108, in draw_delaunay
cv2.line(img, pt1, pt2, delaunay_color, lfont, cv2.LINE_AA, 0)
cv2.error: OpenCV(4.5.5) 👎 error: (-5:Bad argument) in function 'line'

Overload resolution failed:

  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type
  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type

Great work ...but

Hello brother
Your project excellent
I would appreciate if you could modify it when it making search to continue search until the end of data not starting over every time
The idea is find a result and display then continue until the end of database

Thanks again

GUI screen is not able to dynamically change.

@ChibaniMohamed Appreciate your PyQt5 GUI work. I want to create a dynamic GUI so it's responsive to all device sizes. As of now, it only works on 1400*720 screens. Could you please provide your design file so I will contribute responsively to GUI and modify the face verification speed?
I need qt5-tools designer screen design(XYZ.ui). I don't invest so much time in the alignment of Widgets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.