AnnSankavi commited on
Commit
e4abe2e
·
1 Parent(s): 6893724
Files changed (4) hide show
  1. .env +14 -0
  2. cmake_check.txt +3 -0
  3. install_log.txt +112 -0
  4. start-face-api.bat +10 -0
.env ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Face Verification API Configuration
2
+ # Copy this file to .env and adjust values as needed
3
+
4
+ # Face matching threshold (0.0 to 1.0)
5
+ # Lower = stricter matching, Higher = more lenient
6
+ # Default 0.6 is recommended for balance between security and usability
7
+ FACE_MATCH_THRESHOLD=0.6
8
+
9
+ # CORS allowed origins (comma-separated)
10
+ # Use * for development, restrict in production
11
+ ALLOWED_ORIGINS=*
12
+
13
+ # Server port
14
+ PORT=8000
cmake_check.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ cmake version 3.31.6-msvc6
2
+
3
+ CMake suite maintained and supported by Kitware (kitware.com/cmake).
install_log.txt ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Using pip 25.0.1 from C:\Users\Malar\Desktop\add\attendance-app\services\face-api\venv\Lib\site-packages\pip (python 3.12)
2
+ Collecting dlib
3
+ Using cached dlib-20.0.0.tar.gz (3.3 MB)
4
+ Installing build dependencies: started
5
+ Running command pip subprocess to install build dependencies
6
+ Using pip 25.0.1 from C:\Users\Malar\Desktop\add\attendance-app\services\face-api\venv\Lib\site-packages\pip (python 3.12)
7
+ Collecting setuptools
8
+ Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl.metadata
9
+ Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB)
10
+ Collecting wheel
11
+ Obtaining dependency information for wheel from https://files.pythonhosted.org/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl.metadata
12
+ Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
13
+ Using cached setuptools-80.9.0-py3-none-any.whl (1.2 MB)
14
+ Using cached wheel-0.45.1-py3-none-any.whl (72 kB)
15
+ Installing collected packages: wheel, setuptools
16
+ Creating C:\Users\Malar\AppData\Local\Temp\pip-build-env-6ojhd8_o\overlay\Scripts
17
+ Successfully installed setuptools-80.9.0 wheel-0.45.1
18
+ Installing build dependencies: finished with status 'done'
19
+ Getting requirements to build wheel: started
20
+ Running command Getting requirements to build wheel
21
+ running egg_info
22
+ writing tools/python\dlib.egg-info\PKG-INFO
23
+ writing dependency_links to tools/python\dlib.egg-info\dependency_links.txt
24
+ writing top-level names to tools/python\dlib.egg-info\top_level.txt
25
+ reading manifest file 'tools/python\dlib.egg-info\SOURCES.txt'
26
+ reading manifest template 'MANIFEST.in'
27
+ no previously-included directories found matching 'tools\python\build*'
28
+ no previously-included directories found matching 'dlib\cmake_utils\*\build*'
29
+ no previously-included directories found matching 'dlib\test'
30
+ warning: no previously-included files matching '*.pyc' found anywhere in distribution
31
+ adding license file 'LICENSE.txt'
32
+ writing manifest file 'tools/python\dlib.egg-info\SOURCES.txt'
33
+ Getting requirements to build wheel: finished with status 'done'
34
+ Preparing metadata (pyproject.toml): started
35
+ Running command Preparing metadata (pyproject.toml)
36
+ running dist_info
37
+ creating C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info
38
+ writing C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info\PKG-INFO
39
+ writing dependency_links to C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info\dependency_links.txt
40
+ writing top-level names to C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info\top_level.txt
41
+ writing manifest file 'C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info\SOURCES.txt'
42
+ reading manifest file 'C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info\SOURCES.txt'
43
+ reading manifest template 'MANIFEST.in'
44
+ no previously-included directories found matching 'tools\python\build*'
45
+ no previously-included directories found matching 'dlib\cmake_utils\*\build*'
46
+ no previously-included directories found matching 'dlib\test'
47
+ warning: no previously-included files matching '*.pyc' found anywhere in distribution
48
+ adding license file 'LICENSE.txt'
49
+ writing manifest file 'C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib.egg-info\SOURCES.txt'
50
+ creating 'C:\Users\Malar\AppData\Local\Temp\pip-modern-metadata-sqp11mfi\dlib-20.0.0.dist-info'
51
+ Preparing metadata (pyproject.toml): finished with status 'done'
52
+ Building wheels for collected packages: dlib
53
+ Building wheel for dlib (pyproject.toml): started
54
+ Running command Building wheel for dlib (pyproject.toml)
55
+ running bdist_wheel
56
+ running build
57
+ running build_ext
58
+
59
+ ================================================================================
60
+ ================================================================================
61
+ ================================================================================
62
+
63
+ CMake is not installed on your system!
64
+
65
+ Or it is possible some broken copy of cmake is installed on your system.
66
+ It is unfortunately very common for python package managers to include
67
+ broken copies of cmake. So if the error above this refers to some file
68
+ path to a cmake file inside a python or anaconda or miniconda path then you
69
+ should delete that broken copy of cmake from your computer.
70
+
71
+ Instead, please get an official copy of cmake from one of these known good
72
+ sources of an official cmake:
73
+ - cmake.org (this is how windows users should get cmake)
74
+ - apt install cmake (for Ubuntu or Debian based systems)
75
+ - yum install cmake (for Redhat or CenOS based systems)
76
+
77
+ On a linux machine you can run `which cmake` to see what cmake you are
78
+ actually using. If it tells you it's some cmake from any kind of python
79
+ packager delete it and install an official cmake.
80
+
81
+ More generally, cmake is not installed if when you open a terminal window
82
+ and type
83
+ cmake --version
84
+ you get an error. So you can use that as a very basic test to see if you
85
+ have cmake installed. That is, if cmake --version doesn't run from the
86
+ same terminal window from which you are reading this error message, then
87
+ you have not installed cmake. Windows users should take note that they
88
+ need to tell the cmake installer to add cmake to their PATH. Since you
89
+ can't run commands that are not in your PATH. This is how the PATH works
90
+ on Linux as well, but failing to add cmake to the PATH is a particularly
91
+ common problem on windows and rarely a problem on Linux.
92
+
93
+ ================================================================================
94
+ ================================================================================
95
+ ================================================================================
96
+ error: subprocess-exited-with-error
97
+
98
+ Building wheel for dlib (pyproject.toml) did not run successfully.
99
+ exit code: 1
100
+
101
+ See above for output.
102
+
103
+ note: This error originates from a subprocess, and is likely not a problem with pip.
104
+ full command: 'C:\Users\Malar\Desktop\add\attendance-app\services\face-api\venv\Scripts\python.exe' 'C:\Users\Malar\Desktop\add\attendance-app\services\face-api\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py' build_wheel 'C:\Users\Malar\AppData\Local\Temp\tmp_pksdet5'
105
+ cwd: C:\Users\Malar\AppData\Local\Temp\pip-install-0v9s1j6y\dlib_5c30ebd48f0e49868e1123af08a37856
106
+ Building wheel for dlib (pyproject.toml): finished with status 'error'
107
+ ERROR: Failed building wheel for dlib
108
+ Failed to build dlib
109
+
110
+ [notice] A new release of pip is available: 25.0.1 -> 25.3
111
+ [notice] To update, run: python.exe -m pip install --upgrade pip
112
+ ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib)
start-face-api.bat ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ echo Starting Face API server...
3
+ cd /d "%~dp0"
4
+ if not exist "venv\Scripts\python.exe" (
5
+ echo Virtual environment not found. Please run set up first.
6
+ pause
7
+ exit /b
8
+ )
9
+ "venv\Scripts\python.exe" -m uvicorn main:app --reload --host 0.0.0.0 --port 8000
10
+ pause