Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
updated requirements.txt
and regarding code main.py
The error which you're facing while installing the face_recognition library due to the dlib installation issue is a common one. dlib can be tricky to install because it requires some dependencies, especially on Windows Sys.
steps which can be done to fix or resolve the issue is
by installing/updating the latest vs build tools for windows
install cmake, because the dlib requires cmake to build, then check whether it has added to your system path or not (You can check this by typing cmake in the command prompt), if not then add it .
install precompiled dlib (Recmmd)
you can install a precompiled version of dlib. This method is usually much faster and easier, especially for Windows users.
(pip install dlib==19.8.1 or 19.24.6)
then
after ensuring dlib is installed properly, you should be able to install the face_recognition library: by
pip install face_recognition
and regarding your compress image file
you can use pil(Python Imaging Libary) to resize and compress the images.