diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..23426f41cdbd0bd200bc1cd74db6f6a3a218d35c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# created by virtualenv automatically +# Ignore Python virtual environment +venv/ +# Ignore the lib directory +Lib/ + diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/FaceRecognition.iml b/.idea/FaceRecognition.iml new file mode 100644 index 0000000000000000000000000000000000000000..d0876a78d06ac03b5d78c8dcdb95570281c6f1d6 --- /dev/null +++ b/.idea/FaceRecognition.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000000000000000000000000000000000000..ad7b3a99bac274429369193161fb15ad6aeec4d6 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,227 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..105ce2da2d6447d11dfe32bfb846c3d5b199fc99 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..0abec964c1f633f1555fbe7a27bd08edc73fac42 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..1b8faaa2b6af8936c934e0ccfbd1256c3ed6c75f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..94a25f7f4cb416c083d265558da75d457237d671 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/FaceRecognition.json b/FaceRecognition.json new file mode 100644 index 0000000000000000000000000000000000000000..1dd7cfe8bf652b50a19fe32fff7a0ded55837413 --- /dev/null +++ b/FaceRecognition.json @@ -0,0 +1,22 @@ +{ + "info": { + "name": "FastAPI API", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "read_root", + "request": { + "url": "http://localhost:8000/", + "method": "GET" + } + }, + { + "name": "verify_image", + "request": { + "url": "http://localhost:8000/verify/", + "method": "GET" + } + } + ] +} \ No newline at end of file diff --git a/Scripts/Activate.ps1 b/Scripts/Activate.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..2057a7e1df47ef2f2073fe3f975b87176e080921 --- /dev/null +++ b/Scripts/Activate.ps1 @@ -0,0 +1,60 @@ +$script:THIS_PATH = $myinvocation.mycommand.path +$script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent + +function global:deactivate([switch] $NonDestructive) { + if (Test-Path variable:_OLD_VIRTUAL_PATH) { + $env:PATH = $variable:_OLD_VIRTUAL_PATH + Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global + } + + if (Test-Path function:_old_virtual_prompt) { + $function:prompt = $function:_old_virtual_prompt + Remove-Item function:\_old_virtual_prompt + } + + if ($env:VIRTUAL_ENV) { + Remove-Item env:VIRTUAL_ENV -ErrorAction SilentlyContinue + } + + if (!$NonDestructive) { + # Self destruct! + Remove-Item function:deactivate + Remove-Item function:pydoc + } +} + +function global:pydoc { + python -m pydoc $args +} + +# unset irrelevant variables +deactivate -nondestructive + +$VIRTUAL_ENV = $BASE_DIR +$env:VIRTUAL_ENV = $VIRTUAL_ENV + +New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH + +$env:PATH = "$env:VIRTUAL_ENV/Scripts;" + $env:PATH +if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) { + function global:_old_virtual_prompt { + "" + } + $function:_old_virtual_prompt = $function:prompt + + if ("" -ne "") { + function global:prompt { + # Add the custom prefix to the existing prompt + $previous_prompt_value = & $function:_old_virtual_prompt + ("() " + $previous_prompt_value) + } + } + else { + function global:prompt { + # Add a prefix to the current prompt, but don't discard it. + $previous_prompt_value = & $function:_old_virtual_prompt + $new_prompt_value = "($( Split-Path $env:VIRTUAL_ENV -Leaf )) " + ($new_prompt_value + $previous_prompt_value) + } + } +} diff --git a/Scripts/activate b/Scripts/activate new file mode 100644 index 0000000000000000000000000000000000000000..96189b1921def4e354e7abf5188e2e4e53b7bc63 --- /dev/null +++ b/Scripts/activate @@ -0,0 +1,83 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + + +if [ "${BASH_SOURCE-}" = "$0" ]; then + echo "You must source this script: \$ source $0" >&2 + exit 33 +fi + +deactivate () { + unset -f pydoc >/dev/null 2>&1 || true + + # reset old environment variables + # ! [ -z ${VAR+_} ] returns true if VAR is declared at all + if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then + PATH="$_OLD_VIRTUAL_PATH" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then + PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # The hash command must be called to get it to forget past + # commands. Without forgetting past commands the $PATH changes + # we made may not be respected + hash -r 2>/dev/null + + if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then + PS1="$_OLD_VIRTUAL_PS1" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + if [ ! "${1-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV='C:\Users\Jainam\PycharmProjects\FaceRecognition' +if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then + VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV") +fi +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/Scripts:$PATH" +export PATH + +# unset PYTHONHOME if set +if ! [ -z "${PYTHONHOME+_}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1-}" + if [ "x" != x ] ; then + PS1="() ${PS1-}" + else + PS1="(`basename \"$VIRTUAL_ENV\"`) ${PS1-}" + fi + export PS1 +fi + +# Make sure to unalias pydoc if it's already there +alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true + +pydoc () { + python -m pydoc "$@" +} + +# The hash command must be called to get it to forget past +# commands. Without forgetting past commands the $PATH changes +# we made may not be respected +hash -r 2>/dev/null diff --git a/Scripts/activate.bat b/Scripts/activate.bat new file mode 100644 index 0000000000000000000000000000000000000000..3400fa4548a6e39280e1f03c23ee9cd686a05823 --- /dev/null +++ b/Scripts/activate.bat @@ -0,0 +1,39 @@ +@echo off + +set "VIRTUAL_ENV=C:\Users\Jainam\PycharmProjects\FaceRecognition" + +if defined _OLD_VIRTUAL_PROMPT ( + set "PROMPT=%_OLD_VIRTUAL_PROMPT%" +) else ( + if not defined PROMPT ( + set "PROMPT=$P$G" + ) + if not defined VIRTUAL_ENV_DISABLE_PROMPT ( + set "_OLD_VIRTUAL_PROMPT=%PROMPT%" + ) +) +if not defined VIRTUAL_ENV_DISABLE_PROMPT ( + if "" NEQ "" ( + set "PROMPT=() %PROMPT%" + ) else ( + for %%d in ("%VIRTUAL_ENV%") do set "PROMPT=(%%~nxd) %PROMPT%" + ) +) + +REM Don't use () to avoid problems with them in %PATH% +if defined _OLD_VIRTUAL_PYTHONHOME goto ENDIFVHOME + set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%" +:ENDIFVHOME + +set PYTHONHOME= + +REM if defined _OLD_VIRTUAL_PATH ( +if not defined _OLD_VIRTUAL_PATH goto ENDIFVPATH1 + set "PATH=%_OLD_VIRTUAL_PATH%" +:ENDIFVPATH1 +REM ) else ( +if defined _OLD_VIRTUAL_PATH goto ENDIFVPATH2 + set "_OLD_VIRTUAL_PATH=%PATH%" +:ENDIFVPATH2 + +set "PATH=%VIRTUAL_ENV%\Scripts;%PATH%" diff --git a/Scripts/activate.fish b/Scripts/activate.fish new file mode 100644 index 0000000000000000000000000000000000000000..c56a9be1a04e72c976ba227aa8bbc3167d6f3ab9 --- /dev/null +++ b/Scripts/activate.fish @@ -0,0 +1,100 @@ +# This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*. +# Do not run it directly. + +function _bashify_path -d "Converts a fish path to something bash can recognize" + set fishy_path $argv + set bashy_path $fishy_path[1] + for path_part in $fishy_path[2..-1] + set bashy_path "$bashy_path:$path_part" + end + echo $bashy_path +end + +function _fishify_path -d "Converts a bash path to something fish can recognize" + echo $argv | tr ':' '\n' +end + +function deactivate -d 'Exit virtualenv mode and return to the normal environment.' + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + # https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling + if test (echo $FISH_VERSION | head -c 1) -lt 3 + set -gx PATH (_fishify_path "$_OLD_VIRTUAL_PATH") + else + set -gx PATH $_OLD_VIRTUAL_PATH + end + set -e _OLD_VIRTUAL_PATH + end + + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME "$_OLD_VIRTUAL_PYTHONHOME" + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + and functions -q _old_fish_prompt + # Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`. + set -l fish_function_path + + # Erase virtualenv's `fish_prompt` and restore the original. + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + set -e _OLD_FISH_PROMPT_OVERRIDE + end + + set -e VIRTUAL_ENV + + if test "$argv[1]" != 'nondestructive' + # Self-destruct! + functions -e pydoc + functions -e deactivate + functions -e _bashify_path + functions -e _fishify_path + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV 'C:\Users\Jainam\PycharmProjects\FaceRecognition' + +# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling +if test (echo $FISH_VERSION | head -c 1) -lt 3 + set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH) +else + set -gx _OLD_VIRTUAL_PATH $PATH +end +set -gx PATH "$VIRTUAL_ENV"'/Scripts' $PATH + +# Unset `$PYTHONHOME` if set. +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +function pydoc + python -m pydoc $argv +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # Copy the current `fish_prompt` function as `_old_fish_prompt`. + functions -c fish_prompt _old_fish_prompt + + function fish_prompt + # Run the user's prompt first; it might depend on (pipe)status. + set -l prompt (_old_fish_prompt) + + # Prompt override provided? + # If not, just prepend the environment name. + if test -n '' + printf '(%s) ' '' + else + printf '(%s) ' (basename "$VIRTUAL_ENV") + end + + string join -- \n $prompt # handle multi-line prompts + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" +end diff --git a/Scripts/activate.nu b/Scripts/activate.nu new file mode 100644 index 0000000000000000000000000000000000000000..78bdc9fcdeda8e2602be75acf62b1977870e4bbd --- /dev/null +++ b/Scripts/activate.nu @@ -0,0 +1,41 @@ +# Setting all environment variables for the venv +let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" }) +let virtual-env = "C:\Users\Jainam\PycharmProjects\FaceRecognition" +let bin = "Scripts" +let path-sep = ";" + +let old-path = ($nu.path | str collect ($path-sep)) + +let venv-path = ([$virtual-env $bin] | path join) +let new-path = ($nu.path | prepend $venv-path | str collect ($path-sep)) + +# environment variables that will be batched loaded to the virtual env +let new-env = ([ + [name, value]; + [$path-name $new-path] + [_OLD_VIRTUAL_PATH $old-path] + [VIRTUAL_ENV $virtual-env] +]) + +load-env $new-env + +# Creating the new prompt for the session +let virtual_prompt = (if ("" != "") { + "() " +} { + (build-string '(' ($virtual-env | path basename) ') ') +} +) + +# If there is no default prompt, then only the env is printed in the prompt +let new_prompt = (if ( config | select prompt | empty? ) { + ($"build-string '($virtual_prompt)'") +} { + ($"build-string '($virtual_prompt)' (config get prompt | str find-replace "build-string" "")") +}) +let-env PROMPT_COMMAND = $new_prompt + +# We are using alias as the function definitions because only aliases can be +# removed from the scope +alias pydoc = python -m pydoc +alias deactivate = source "C:\Users\Jainam\PycharmProjects\FaceRecognition\Scripts\deactivate.nu" diff --git a/Scripts/activate_this.py b/Scripts/activate_this.py new file mode 100644 index 0000000000000000000000000000000000000000..3d79a531aeb5c8e2cefde16019ceac8be0152d58 --- /dev/null +++ b/Scripts/activate_this.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +"""Activate virtualenv for current interpreter: + +Use exec(open(this_file).read(), {'__file__': this_file}). + +This can be used when you must use an existing Python interpreter, not the virtualenv bin/python. +""" +import os +import site +import sys + +try: + abs_file = os.path.abspath(__file__) +except NameError: + raise AssertionError("You must use exec(open(this_file).read(), {'__file__': this_file}))") + +bin_dir = os.path.dirname(abs_file) +base = bin_dir[: -len("Scripts") - 1] # strip away the bin part from the __file__, plus the path separator + +# prepend bin to PATH (this file is inside the bin directory) +os.environ["PATH"] = os.pathsep.join([bin_dir] + os.environ.get("PATH", "").split(os.pathsep)) +os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory + +# add the virtual environments libraries to the host python import mechanism +prev_length = len(sys.path) +for lib in "..\Lib\site-packages".split(os.pathsep): + path = os.path.realpath(os.path.join(bin_dir, lib)) + site.addsitedir(path.decode("utf-8") if "" else path) +sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length] + +sys.real_prefix = sys.prefix +sys.prefix = base diff --git a/Scripts/chardetect.exe b/Scripts/chardetect.exe new file mode 100644 index 0000000000000000000000000000000000000000..3510feb303b3753c8bae6fa282a67667d02780f6 Binary files /dev/null and b/Scripts/chardetect.exe differ diff --git a/Scripts/deactivate.bat b/Scripts/deactivate.bat new file mode 100644 index 0000000000000000000000000000000000000000..7bbc56882d9aa3b5786bea6000669145d2f44794 --- /dev/null +++ b/Scripts/deactivate.bat @@ -0,0 +1,19 @@ +@echo off + +set VIRTUAL_ENV= + +REM Don't use () to avoid problems with them in %PATH% +if not defined _OLD_VIRTUAL_PROMPT goto ENDIFVPROMPT + set "PROMPT=%_OLD_VIRTUAL_PROMPT%" + set _OLD_VIRTUAL_PROMPT= +:ENDIFVPROMPT + +if not defined _OLD_VIRTUAL_PYTHONHOME goto ENDIFVHOME + set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" + set _OLD_VIRTUAL_PYTHONHOME= +:ENDIFVHOME + +if not defined _OLD_VIRTUAL_PATH goto ENDIFVPATH + set "PATH=%_OLD_VIRTUAL_PATH%" + set _OLD_VIRTUAL_PATH= +:ENDIFVPATH diff --git a/Scripts/deactivate.nu b/Scripts/deactivate.nu new file mode 100644 index 0000000000000000000000000000000000000000..40524380352e82507fbc6e6fcd7250fe71d26feb --- /dev/null +++ b/Scripts/deactivate.nu @@ -0,0 +1,11 @@ +# Setting the old path +let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" }) +let-env $path-name = $nu.env._OLD_VIRTUAL_PATH + +# Unleting the environment variables that were created when activating the env +unlet-env VIRTUAL_ENV +unlet-env _OLD_VIRTUAL_PATH +unlet-env PROMPT_COMMAND + +unalias pydoc +unalias deactivate diff --git a/Scripts/deepface.exe b/Scripts/deepface.exe new file mode 100644 index 0000000000000000000000000000000000000000..5e4f24027db9977084b4b3dd06e40a1c6aa651f7 Binary files /dev/null and b/Scripts/deepface.exe differ diff --git a/Scripts/estimator_ckpt_converter.exe b/Scripts/estimator_ckpt_converter.exe new file mode 100644 index 0000000000000000000000000000000000000000..586ec7f60b341f0806ef001fc31e79e1227a9f7e Binary files /dev/null and b/Scripts/estimator_ckpt_converter.exe differ diff --git a/Scripts/f2py.exe b/Scripts/f2py.exe new file mode 100644 index 0000000000000000000000000000000000000000..2f4d35a30e673b73117e832b98e796cfba3eb74f Binary files /dev/null and b/Scripts/f2py.exe differ diff --git a/Scripts/fastapi2postman.exe b/Scripts/fastapi2postman.exe new file mode 100644 index 0000000000000000000000000000000000000000..6698e8f5f9767e20bff37d4c2cb490e4e4a271ec Binary files /dev/null and b/Scripts/fastapi2postman.exe differ diff --git a/Scripts/flask.exe b/Scripts/flask.exe new file mode 100644 index 0000000000000000000000000000000000000000..f327b1b149d5d69a6c67a66ab41a78d649a988b5 Binary files /dev/null and b/Scripts/flask.exe differ diff --git a/Scripts/gdown.exe b/Scripts/gdown.exe new file mode 100644 index 0000000000000000000000000000000000000000..4aa555cbd7c87f12b0f9a01a7eccefce3b390baf Binary files /dev/null and b/Scripts/gdown.exe differ diff --git a/Scripts/google-oauthlib-tool.exe b/Scripts/google-oauthlib-tool.exe new file mode 100644 index 0000000000000000000000000000000000000000..aa8d65cf6903a3b61af7d6eacf5e309d0e8599e6 Binary files /dev/null and b/Scripts/google-oauthlib-tool.exe differ diff --git a/Scripts/gunicorn.exe b/Scripts/gunicorn.exe new file mode 100644 index 0000000000000000000000000000000000000000..83832451125c8e85c855b0c4ca362f811b26f183 Binary files /dev/null and b/Scripts/gunicorn.exe differ diff --git a/Scripts/import_pb_to_tensorboard.exe b/Scripts/import_pb_to_tensorboard.exe new file mode 100644 index 0000000000000000000000000000000000000000..269871c1fba81f7402b631d3d811718b4b3ef245 Binary files /dev/null and b/Scripts/import_pb_to_tensorboard.exe differ diff --git a/Scripts/markdown_py.exe b/Scripts/markdown_py.exe new file mode 100644 index 0000000000000000000000000000000000000000..f8fd123557639eb862e8dde7cdf0d3b51f8d4065 Binary files /dev/null and b/Scripts/markdown_py.exe differ diff --git a/Scripts/normalizer.exe b/Scripts/normalizer.exe new file mode 100644 index 0000000000000000000000000000000000000000..a41c27425929224b40e416d01f53f6e05983461a Binary files /dev/null and b/Scripts/normalizer.exe differ diff --git a/Scripts/pip.exe b/Scripts/pip.exe new file mode 100644 index 0000000000000000000000000000000000000000..8b5cd305499836a8453444d1fe3824fc721ca3df Binary files /dev/null and b/Scripts/pip.exe differ diff --git a/Scripts/pip3.10.exe b/Scripts/pip3.10.exe new file mode 100644 index 0000000000000000000000000000000000000000..8b5cd305499836a8453444d1fe3824fc721ca3df Binary files /dev/null and b/Scripts/pip3.10.exe differ diff --git a/Scripts/pip3.exe b/Scripts/pip3.exe new file mode 100644 index 0000000000000000000000000000000000000000..8b5cd305499836a8453444d1fe3824fc721ca3df Binary files /dev/null and b/Scripts/pip3.exe differ diff --git a/Scripts/pydoc.bat b/Scripts/pydoc.bat new file mode 100644 index 0000000000000000000000000000000000000000..3d46a231a52b9a226b3d911601f645d74c08f521 --- /dev/null +++ b/Scripts/pydoc.bat @@ -0,0 +1 @@ +python.exe -m pydoc %* diff --git a/Scripts/pyrsa-decrypt.exe b/Scripts/pyrsa-decrypt.exe new file mode 100644 index 0000000000000000000000000000000000000000..8111d1b861fa8d46cf34f2c2a59a5331fe4b2a58 Binary files /dev/null and b/Scripts/pyrsa-decrypt.exe differ diff --git a/Scripts/pyrsa-encrypt.exe b/Scripts/pyrsa-encrypt.exe new file mode 100644 index 0000000000000000000000000000000000000000..c7ce7498d2c87004fca35437861748e0a72f09b8 Binary files /dev/null and b/Scripts/pyrsa-encrypt.exe differ diff --git a/Scripts/pyrsa-keygen.exe b/Scripts/pyrsa-keygen.exe new file mode 100644 index 0000000000000000000000000000000000000000..6f0c9e7bd2f3186bc22ffb3aa0a9e9be415d3575 Binary files /dev/null and b/Scripts/pyrsa-keygen.exe differ diff --git a/Scripts/pyrsa-priv2pub.exe b/Scripts/pyrsa-priv2pub.exe new file mode 100644 index 0000000000000000000000000000000000000000..dbc2f2418c5669b83f1e15afa6a813539dd5010c Binary files /dev/null and b/Scripts/pyrsa-priv2pub.exe differ diff --git a/Scripts/pyrsa-sign.exe b/Scripts/pyrsa-sign.exe new file mode 100644 index 0000000000000000000000000000000000000000..03d66eef5b985f2243ec8063672d5c655479b5f8 Binary files /dev/null and b/Scripts/pyrsa-sign.exe differ diff --git a/Scripts/pyrsa-verify.exe b/Scripts/pyrsa-verify.exe new file mode 100644 index 0000000000000000000000000000000000000000..e43bc66ed8592edce37e1012e762e01aad2fbfc7 Binary files /dev/null and b/Scripts/pyrsa-verify.exe differ diff --git a/Scripts/python.exe b/Scripts/python.exe new file mode 100644 index 0000000000000000000000000000000000000000..8655d9d5a5ce275d03737ec3dc733c7591ca4b8d Binary files /dev/null and b/Scripts/python.exe differ diff --git a/Scripts/pythonw.exe b/Scripts/pythonw.exe new file mode 100644 index 0000000000000000000000000000000000000000..b19f1fde5e2f997e341a6e7ae14897785b1ad757 Binary files /dev/null and b/Scripts/pythonw.exe differ diff --git a/Scripts/saved_model_cli.exe b/Scripts/saved_model_cli.exe new file mode 100644 index 0000000000000000000000000000000000000000..f265873af90517ead0c46efc3a1d8727653c7d80 Binary files /dev/null and b/Scripts/saved_model_cli.exe differ diff --git a/Scripts/tensorboard.exe b/Scripts/tensorboard.exe new file mode 100644 index 0000000000000000000000000000000000000000..ad2a37df4c351295cc0ac4e20091aa8a145f4653 Binary files /dev/null and b/Scripts/tensorboard.exe differ diff --git a/Scripts/tf_upgrade_v2.exe b/Scripts/tf_upgrade_v2.exe new file mode 100644 index 0000000000000000000000000000000000000000..15324c05c34fddf75a85a05f1a3afe69c9c34bec Binary files /dev/null and b/Scripts/tf_upgrade_v2.exe differ diff --git a/Scripts/tflite_convert.exe b/Scripts/tflite_convert.exe new file mode 100644 index 0000000000000000000000000000000000000000..b72508125940be51f05e6b8b7660fb51e89ab516 Binary files /dev/null and b/Scripts/tflite_convert.exe differ diff --git a/Scripts/toco.exe b/Scripts/toco.exe new file mode 100644 index 0000000000000000000000000000000000000000..b72508125940be51f05e6b8b7660fb51e89ab516 Binary files /dev/null and b/Scripts/toco.exe differ diff --git a/Scripts/toco_from_protos.exe b/Scripts/toco_from_protos.exe new file mode 100644 index 0000000000000000000000000000000000000000..2a3b31ae783cd75cbd4a620c5476a5f25d1d94d3 Binary files /dev/null and b/Scripts/toco_from_protos.exe differ diff --git a/Scripts/tqdm.exe b/Scripts/tqdm.exe new file mode 100644 index 0000000000000000000000000000000000000000..504755d45c6060cab3049b9a96d36f44d7bf5657 Binary files /dev/null and b/Scripts/tqdm.exe differ diff --git a/Scripts/uvicorn.exe b/Scripts/uvicorn.exe new file mode 100644 index 0000000000000000000000000000000000000000..d0f7f03025916f009cd63e5a99e1d7cd8e6b189b Binary files /dev/null and b/Scripts/uvicorn.exe differ diff --git a/Scripts/wheel-3.10.exe b/Scripts/wheel-3.10.exe new file mode 100644 index 0000000000000000000000000000000000000000..5a059f84e2493220fc5190dc4ba7a2ad654752bc Binary files /dev/null and b/Scripts/wheel-3.10.exe differ diff --git a/Scripts/wheel.exe b/Scripts/wheel.exe new file mode 100644 index 0000000000000000000000000000000000000000..5a059f84e2493220fc5190dc4ba7a2ad654752bc Binary files /dev/null and b/Scripts/wheel.exe differ diff --git a/Scripts/wheel3.10.exe b/Scripts/wheel3.10.exe new file mode 100644 index 0000000000000000000000000000000000000000..5a059f84e2493220fc5190dc4ba7a2ad654752bc Binary files /dev/null and b/Scripts/wheel3.10.exe differ diff --git a/Scripts/wheel3.exe b/Scripts/wheel3.exe new file mode 100644 index 0000000000000000000000000000000000000000..5a059f84e2493220fc5190dc4ba7a2ad654752bc Binary files /dev/null and b/Scripts/wheel3.exe differ diff --git a/app.py b/app.py new file mode 100644 index 0000000000000000000000000000000000000000..7f564edc333c04d593d71b7932cdc2f08a883c4f --- /dev/null +++ b/app.py @@ -0,0 +1,53 @@ +import requests +import pyrebase +import urllib +from retinaface import RetinaFace +from deepface import DeepFace +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + return {"Hello": "World"} + +@app.get("/verify/") +def verify_image(url1): + firebaseConfig = { + "apiKey": "AIzaSyClnRJAnrJgAgkYjuYnlvu-CJ6Cxyklebo", + "authDomain": "socioverse-2025.firebaseapp.com", + "projectId": "socioverse-2025", + "storageBucket": "socioverse-2025.appspot.com", + "messagingSenderId": "689574504641", + "appId": "1:689574504641:web:a22f6a2fa343e4221acc40", + "databaseURL": "https://console.firebase.google.com/project/socioverse-2025/storage/socioverse-2025.appspot.com/files", + "serviceAccount":"Firebase_Service_Account_Keys.json" + }; + firebase = pyrebase.initialize_app(firebaseConfig) + storage = firebase.storage() + path = "Faces/" + files = storage.bucket.list_blobs(prefix=path) + flag = False + # url1 = "https://api.time.com/wp-content/uploads/2023/04/shah-rukh-khan-time100-2023-1.jpg" + for file in files: + if file.name.endswith(".jpg"): + # print(file.name) + url = storage.child(f"{file.name}").get_url(None) + # print(url) + with requests.get(url) as response: + result = DeepFace.verify(f"{url1}",url, model_name="Facenet", distance_metric='cosine') + if result['verified']: + flag = True + start_index = file.name.rfind('/') + end_index = file.name.rfind('$') + if start_index != -1 and end_index != -1: + name = file.name[start_index + 1:end_index] + return {"username": name} + break + + if flag == False: + print("Not Verified") + return {"username": "Not Found"} + + + diff --git a/pyvenv.cfg b/pyvenv.cfg new file mode 100644 index 0000000000000000000000000000000000000000..bc6b212c422c48ac7fcea91213a70152e26639a7 --- /dev/null +++ b/pyvenv.cfg @@ -0,0 +1,6 @@ +home = C:\Users\Jainam\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0 +implementation = CPython +version_info = 3.10.11.final.0 +virtualenv = 20.13.0 +include-system-site-packages = false +version = 3.10.11 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..ec381da18a228a7234063b0286ac06157bab70ae --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +Pyrebase4==4.7.1 +requests==2.23.0 +opencv-python==4.8.1.78 +urllib3==1.25.11 +uvicorn==0.23.2 +deepface==0.0.79 +fastapi==0.104.0 +python-dateutil==2.8.2 +python-jwt==4.0.0 +pydantic==2.4.2 +pydantic_core==2.10.1 diff --git a/share/doc/jwcrypto/LICENSE b/share/doc/jwcrypto/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..65c5ca88a67c30becee01c5a8816d964b03862f9 --- /dev/null +++ b/share/doc/jwcrypto/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/share/doc/jwcrypto/README.md b/share/doc/jwcrypto/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c777d51df7c9d4b0bf3853c162b60f5aba7211b4 --- /dev/null +++ b/share/doc/jwcrypto/README.md @@ -0,0 +1,48 @@ +[![PyPI](https://img.shields.io/pypi/v/jwcrypto.svg)](https://pypi.org/project/jwcrypto/) +[![Changelog](https://img.shields.io/github/v/release/latchset/jwcrypto?label=changelog)](https://github.com/latchset/jwcrypto/releases) +[![Build Status](https://github.com/latchset/jwcrypto/actions/workflows/build.yml/badge.svg)](https://github.com/latchset/jwcrypto/actions/workflows/build.yml) +[![ppc64le Build](https://github.com/latchset/jwcrypto/actions/workflows/ppc64le.yml/badge.svg)](https://github.com/latchset/jwcrypto/actions/workflows/ppc64le.yml) +[![Code Scan](https://github.com/latchset/jwcrypto/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/latchset/jwcrypto/actions/workflows/codeql-analysis.yml) +[![Documentation Status](https://readthedocs.org/projects/jwcrypto/badge/?version=latest)](https://jwcrypto.readthedocs.io/en/latest/?badge=latest) + +JWCrypto +======== + +An implementation of the JOSE Working Group documents: +- RFC 7515 - JSON Web Signature (JWS) +- RFC 7516 - JSON Web Encryption (JWE) +- RFC 7517 - JSON Web Key (JWK) +- RFC 7518 - JSON Web Algorithms (JWA) +- RFC 7519 - JSON Web Token (JWT) +- RFC 7520 - Examples of Protecting Content Using JSON Object Signing and + Encryption (JOSE) + +Installation +============ + + pip install jwcrypto + +Documentation +============= + +http://jwcrypto.readthedocs.org + +Deprecation Notices +=================== + +2020.12.11: The RSA1_5 algorithm is now considered deprecated due to numerous +implementation issues that make it a very problematic tool to use safely. +The algorithm can still be used but requires explicitly allowing it on object +instantiation. If your application depends on it there are examples of how to +re-enable RSA1_5 usage in the tests files. + +Note: if you enable support for `RSA1_5` and the attacker can send you chosen +ciphertext and is able to measure the processing times of your application, +then your application will be vulnerable to a Bleichenbacher RSA padding +oracle, allowing the so-called "Million messages attack". That attack allows +to decrypt intercepted messages (even if they were encrypted with RSA-OAEP) or +forge signatures (both RSA-PKCS#1 v1.5 and RSASSA-PSS). + +Given JWT is generally used in tokens to sign authorization assertions or to +encrypt private key material, this is a particularly severe issue, and must +not be underestimated.