SYMBOL INDEX (529 symbols across 81 files) FILE: deepface/DeepFace.py function build_model (line 54) | def build_model(model_name: str, task: str = "facial_recognition") -> Any: function verify (line 75) | def verify( function analyze (line 178) | def analyze( function find (line 281) | def find( function represent (line 420) | def represent( function stream (line 523) | def stream( function extract_faces (line 591) | def extract_faces( function cli (line 665) | def cli() -> None: function detectFace (line 677) | def detectFace( function register (line 724) | def register( function search (line 797) | def search( function build_index (line 905) | def build_index( FILE: deepface/api/src/app.py function create_app (line 22) | def create_app() -> Flask: function load_models_on_startup (line 41) | def load_models_on_startup(variables: Variables) -> None: FILE: deepface/api/src/dependencies/container.py class Container (line 7) | class Container: method __init__ (line 8) | def __init__(self, variables: Variables) -> None: FILE: deepface/api/src/dependencies/variables.py class Variables (line 9) | class Variables: method __init__ (line 10) | def __init__(self) -> None: FILE: deepface/api/src/modules/auth/service.py class AuthService (line 11) | class AuthService: method __init__ (line 12) | def __init__(self, auth_token: Optional[str] = None) -> None: method extract_token (line 16) | def extract_token(self, auth_header: Optional[str]) -> Optional[str]: method validate (line 24) | def validate(self, headers: Dict[str, Any]) -> bool: FILE: deepface/api/src/modules/core/routes.py function home (line 25) | def home() -> str: function extract_image_from_request (line 29) | def extract_image_from_request(img_key: str) -> Union[str, NDArray[Any]]: function represent (line 77) | def represent() -> Tuple[Dict[str, Any], int]: function verify (line 110) | def verify() -> Tuple[Dict[str, Any], int]: function analyze (line 147) | def analyze() -> Tuple[Dict[str, Any], int]: function register (line 192) | def register() -> Tuple[Dict[str, Any], int]: function search (line 238) | def search() -> Tuple[Dict[str, Any], int]: function build_index (line 280) | def build_index() -> Tuple[Dict[str, Any], int]: FILE: deepface/api/src/modules/core/service.py function represent (line 18) | def represent( function verify (line 47) | def verify( function analyze (line 76) | def analyze( function register (line 104) | def register( function search (line 143) | def search( function build_index (line 190) | def build_index( FILE: deepface/commons/embed_utils.py function is_flat_embedding (line 4) | def is_flat_embedding(x: Union[List[float], List[List[float]]]) -> bool: FILE: deepface/commons/folder_utils.py function initialize_folder (line 7) | def initialize_folder() -> None: function get_deepface_home (line 27) | def get_deepface_home() -> str: FILE: deepface/commons/image_utils.py function list_images (line 25) | def list_images(path: str) -> List[str]: function yield_images (line 44) | def yield_images(path: str) -> Generator[str, None, None]: function find_image_hash (line 61) | def find_image_hash(file_path: str) -> str: function load_image (line 84) | def load_image( function load_image_from_io_object (line 135) | def load_image_from_io_object(obj: IO[bytes]) -> NDArray[Any]: function load_image_from_base64 (line 161) | def load_image_from_base64(uri: str) -> NDArray[Any]: function load_image_from_file_storage (line 191) | def load_image_from_file_storage(file: FileStorage) -> NDArray[Any]: function load_image_from_web (line 206) | def load_image_from_web(url: str) -> NDArray[Any]: FILE: deepface/commons/logger.py class Logger (line 8) | class Logger: method __new__ (line 19) | def __new__(cls) -> "Logger": method __init__ (line 24) | def __init__(self) -> None: method info (line 38) | def info(self, message: Any) -> None: method debug (line 47) | def debug(self, message: Any) -> None: method warn (line 56) | def warn(self, message: Any) -> None: method error (line 65) | def error(self, message: Any) -> None: method critical (line 74) | def critical(self, message: Any) -> None: method dump_log (line 83) | def dump_log(self, message: Any) -> None: FILE: deepface/commons/package_utils.py function get_tf_major_version (line 13) | def get_tf_major_version() -> int: function get_tf_minor_version (line 22) | def get_tf_minor_version() -> int: function validate_for_keras3 (line 31) | def validate_for_keras3() -> None: function find_file_hash (line 52) | def find_file_hash(file_path: str, hash_algorithm: str = "sha256") -> str: FILE: deepface/commons/weight_utils.py function download_weights_if_necessary (line 29) | def download_weights_if_necessary( function load_model_weights (line 81) | def load_model_weights(model: Sequential, weight_file: str) -> Sequential: function download_all_models_in_one_shot (line 104) | def download_all_models_in_one_shot() -> None: FILE: deepface/config/minmax.py function get_minmax_values (line 16) | def get_minmax_values(model_name: str) -> Tuple[float, float]: FILE: deepface/models/Demography.py class Demography (line 22) | class Demography(ABC): method predict (line 27) | def predict( method _predict_internal (line 32) | def _predict_internal(self, img_batch: NDArray[Any]) -> NDArray[Any]: method _preprocess_batch_or_single_input (line 58) | def _preprocess_batch_or_single_input( FILE: deepface/models/Detector.py class Detector (line 13) | class Detector(ABC): method detect_faces (line 15) | def detect_faces(self, img: NDArray[Any]) -> List["FacialAreaRegion"]: class FacialAreaRegion (line 35) | class FacialAreaRegion: class DetectedFace (line 65) | class DetectedFace: FILE: deepface/models/FacialRecognition.py class FacialRecognition (line 23) | class FacialRecognition(ABC): method forward (line 29) | def forward(self, img: NDArray[Any]) -> Union[List[float], List[List[f... FILE: deepface/models/demography/Age.py class ApparentAgeClient (line 33) | class ApparentAgeClient(Demography): method __init__ (line 38) | def __init__(self) -> None: method predict (line 42) | def predict( function load_model (line 68) | def load_model( function find_apparent_age (line 103) | def find_apparent_age(age_predictions: NDArray[Any]) -> np.float64: FILE: deepface/models/demography/Emotion.py class EmotionClient (line 41) | class EmotionClient(Demography): method __init__ (line 46) | def __init__(self) -> None: method _preprocess_image (line 50) | def _preprocess_image(self, img: NDArray[Any]) -> NDArray[Any]: method predict (line 62) | def predict(self, img: Union[NDArray[Any], List[NDArray[Any]]]) -> NDA... function load_model (line 86) | def load_model( FILE: deepface/models/demography/Gender.py class GenderClient (line 38) | class GenderClient(Demography): method __init__ (line 43) | def __init__(self) -> None: method predict (line 47) | def predict(self, img: Union[NDArray[Any], List[NDArray[Any]]]) -> NDA... function load_model (line 66) | def load_model( FILE: deepface/models/demography/Race.py class RaceClient (line 35) | class RaceClient(Demography): method __init__ (line 40) | def __init__(self) -> None: method predict (line 44) | def predict(self, img: Union[NDArray[Any], List[NDArray[Any]]]) -> NDA... function load_model (line 64) | def load_model( FILE: deepface/models/face_detection/CenterFace.py class CenterFaceClient (line 22) | class CenterFaceClient(Detector): method __init__ (line 23) | def __init__(self) -> None: method build_model (line 28) | def build_model(self) -> "CenterFace": method detect_faces (line 38) | def detect_faces(self, img: NDArray[Any]) -> List["FacialAreaRegion"]: class CenterFace (line 90) | class CenterFace: method __init__ (line 96) | def __init__(self, weight_path: str) -> None: method forward (line 103) | def forward(self, img: NDArray[Any], height: int, width: int, threshol... method inference_opencv (line 107) | def inference_opencv(self, img: NDArray[Any], threshold: float) -> Any: method transform (line 120) | def transform(self, h: int, w: int) -> Tuple[int, int, float, float]: method postprocess (line 125) | def postprocess( method decode (line 150) | def decode( method nms (line 187) | def nms(self, boxes: NDArray[Any], scores: NDArray[Any], nms_thresh: f... FILE: deepface/models/face_detection/Dlib.py class DlibClient (line 17) | class DlibClient(Detector): method __init__ (line 18) | def __init__(self) -> None: method build_model (line 21) | def build_model(self) -> Dict[str, Any]: method detect_faces (line 51) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: FILE: deepface/models/face_detection/FastMtCnn.py class FastMtCnnClient (line 12) | class FastMtCnnClient(Detector): method __init__ (line 17) | def __init__(self) -> None: method detect_faces (line 21) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: method build_model (line 64) | def build_model(self) -> Any: function xyxy_to_xywh (line 86) | def xyxy_to_xywh( FILE: deepface/models/face_detection/MediaPipe.py class MediaPipeClient (line 12) | class MediaPipeClient(Detector): method __init__ (line 17) | def __init__(self) -> None: method build_model (line 20) | def build_model(self) -> Any: method detect_faces (line 45) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: FILE: deepface/models/face_detection/MtCnn.py class MtCnnClient (line 14) | class MtCnnClient(Detector): method __init__ (line 19) | def __init__(self) -> None: method detect_faces (line 24) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: FILE: deepface/models/face_detection/OpenCv.py class OpenCvClient (line 14) | class OpenCvClient(Detector): method __init__ (line 19) | def __init__(self) -> None: method build_model (line 23) | def build_model(self) -> Dict[str, Any]: method detect_faces (line 34) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: method find_eyes (line 84) | def find_eyes( method __build_cascade (line 143) | def __build_cascade(self, model_name: str = "haarcascade") -> Any: method __get_opencv_path (line 175) | def __get_opencv_path(self) -> str: FILE: deepface/models/face_detection/RetinaFace.py class RetinaFaceClient (line 13) | class RetinaFaceClient(Detector): method __init__ (line 14) | def __init__(self) -> None: method detect_faces (line 18) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: FILE: deepface/models/face_detection/Ssd.py class SsdClient (line 23) | class SsdClient(Detector): method __init__ (line 24) | def __init__(self) -> None: method build_model (line 27) | def build_model(self) -> Any: method detect_faces (line 57) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: FILE: deepface/models/face_detection/Yolo.py class YoloModel (line 17) | class YoloModel(Enum): method __init__ (line 61) | def __init__(self, file_name: str, url: str): class YoloDetectorClient (line 66) | class YoloDetectorClient(Detector): method __init__ (line 67) | def __init__(self, model: YoloModel): method build_model (line 71) | def build_model(self, model: YoloModel) -> Any: method detect_faces (line 103) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: class YoloDetectorClientV8n (line 163) | class YoloDetectorClientV8n(YoloDetectorClient): method __init__ (line 164) | def __init__(self) -> None: class YoloDetectorClientV8m (line 168) | class YoloDetectorClientV8m(YoloDetectorClient): method __init__ (line 169) | def __init__(self) -> None: class YoloDetectorClientV8l (line 173) | class YoloDetectorClientV8l(YoloDetectorClient): method __init__ (line 174) | def __init__(self) -> None: class YoloDetectorClientV11n (line 178) | class YoloDetectorClientV11n(YoloDetectorClient): method __init__ (line 179) | def __init__(self) -> None: class YoloDetectorClientV11s (line 183) | class YoloDetectorClientV11s(YoloDetectorClient): method __init__ (line 184) | def __init__(self) -> None: class YoloDetectorClientV11m (line 188) | class YoloDetectorClientV11m(YoloDetectorClient): method __init__ (line 189) | def __init__(self) -> None: class YoloDetectorClientV11l (line 193) | class YoloDetectorClientV11l(YoloDetectorClient): method __init__ (line 194) | def __init__(self) -> None: class YoloDetectorClientV12n (line 198) | class YoloDetectorClientV12n(YoloDetectorClient): method __init__ (line 199) | def __init__(self) -> None: class YoloDetectorClientV12s (line 203) | class YoloDetectorClientV12s(YoloDetectorClient): method __init__ (line 204) | def __init__(self) -> None: class YoloDetectorClientV12m (line 208) | class YoloDetectorClientV12m(YoloDetectorClient): method __init__ (line 209) | def __init__(self) -> None: class YoloDetectorClientV12l (line 213) | class YoloDetectorClientV12l(YoloDetectorClient): method __init__ (line 214) | def __init__(self) -> None: FILE: deepface/models/face_detection/YuNet.py class YuNetClient (line 20) | class YuNetClient(Detector): method __init__ (line 21) | def __init__(self) -> None: method build_model (line 24) | def build_model(self) -> Any: method detect_faces (line 60) | def detect_faces(self, img: NDArray[Any]) -> List[FacialAreaRegion]: FILE: deepface/models/facial_recognition/ArcFace.py class ArcFaceClient (line 52) | class ArcFaceClient(FacialRecognition): method __init__ (line 57) | def __init__(self) -> None: function load_model (line 64) | def load_model( function ResNet34 (line 97) | def ResNet34() -> Model: function block1 (line 118) | def block1( function stack1 (line 171) | def stack1(x: Any, filters: int, blocks: int, stride1: int = 2, name: st... function stack_fn (line 178) | def stack_fn(x: Any) -> Any: FILE: deepface/models/facial_recognition/Buffalo_L.py class Buffalo_L (line 18) | class Buffalo_L(FacialRecognition): method __init__ (line 19) | def __init__(self) -> None: method load_model (line 25) | def load_model(self) -> None: method preprocess (line 60) | def preprocess(self, img: NDArray[Any]) -> NDArray[Any]: method forward (line 81) | def forward(self, img: NDArray[Any]) -> Union[List[float], List[List[f... FILE: deepface/models/facial_recognition/DeepID.py class DeepIdClient (line 43) | class DeepIdClient(FacialRecognition): method __init__ (line 48) | def __init__(self) -> None: function load_model (line 55) | def load_model( FILE: deepface/models/facial_recognition/Dlib.py class DlibClient (line 19) | class DlibClient(FacialRecognition): method __init__ (line 24) | def __init__(self) -> None: method forward (line 30) | def forward(self, img: NDArray[Any]) -> Union[List[float], List[List[f... class DlibResNet (line 60) | class DlibResNet: method __init__ (line 61) | def __init__(self) -> None: FILE: deepface/models/facial_recognition/Facenet.py class FaceNet128dClient (line 60) | class FaceNet128dClient(FacialRecognition): method __init__ (line 65) | def __init__(self) -> None: class FaceNet512dClient (line 72) | class FaceNet512dClient(FacialRecognition): method __init__ (line 77) | def __init__(self) -> None: function scaling (line 84) | def scaling(x: NDArray[Any], scale: float) -> NDArray[Any]: function InceptionResNetV1 (line 88) | def InceptionResNetV1(dimension: int = 128) -> Model: function load_facenet128d_model (line 1671) | def load_facenet128d_model( function load_facenet512d_model (line 1691) | def load_facenet512d_model( FILE: deepface/models/facial_recognition/FbDeepFace.py class DeepFaceClient (line 37) | class DeepFaceClient(FacialRecognition): method __init__ (line 42) | def __init__(self) -> None: function load_model (line 57) | def load_model( FILE: deepface/models/facial_recognition/GhostFaceNet.py class GhostFaceNetClient (line 57) | class GhostFaceNetClient(FacialRecognition): method __init__ (line 66) | def __init__(self) -> None: function load_model (line 73) | def load_model() -> Model: function GhostFaceNetV1 (line 85) | def GhostFaceNetV1() -> Model: function se_module (line 158) | def se_module(inputs: Any, reduction: int) -> Any: function ghost_module (line 198) | def ghost_module( function ghost_bottleneck (line 234) | def ghost_bottleneck( function replace_relu_with_prelu (line 294) | def replace_relu_with_prelu(model: Model) -> Model: FILE: deepface/models/facial_recognition/OpenFace.py class OpenFaceClient (line 35) | class OpenFaceClient(FacialRecognition): method __init__ (line 40) | def __init__(self) -> None: function load_model (line 47) | def load_model( FILE: deepface/models/facial_recognition/SFace.py class SFaceClient (line 20) | class SFaceClient(FacialRecognition): method __init__ (line 25) | def __init__(self) -> None: method forward (line 31) | def forward(self, img: NDArray[Any]) -> Union[List[float], List[List[f... function load_model (line 54) | def load_model( class SFaceWrapper (line 70) | class SFaceWrapper: method __init__ (line 71) | def __init__(self, model_path: str) -> None: FILE: deepface/models/facial_recognition/VGGFace.py class VggFaceClient (line 47) | class VggFaceClient(FacialRecognition): method __init__ (line 52) | def __init__(self) -> None: method forward (line 58) | def forward(self, img: NDArray[Any]) -> List[float]: function base_model (line 83) | def base_model() -> Sequential: function load_model (line 137) | def load_model( FILE: deepface/models/spoofing/FasNet.py class Fasnet (line 20) | class Fasnet: method __init__ (line 28) | def __init__(self) -> None: method analyze (line 99) | def analyze( function to_tensor (line 152) | def to_tensor(pic: NDArray[Any]) -> Any: class Compose (line 176) | class Compose: method __init__ (line 177) | def __init__(self, transforms: List[Any]) -> None: method __call__ (line 180) | def __call__(self, img: NDArray[Any]) -> NDArray[Any]: class ToTensor (line 186) | class ToTensor: method __call__ (line 187) | def __call__(self, pic: Any) -> Any: function _get_new_box (line 191) | def _get_new_box( function crop (line 224) | def crop( FILE: deepface/models/spoofing/FasNetBackbone.py function MiniFASNetV2 (line 131) | def MiniFASNetV2( function MiniFASNetV1SE (line 143) | def MiniFASNetV1SE( class Flatten (line 155) | class Flatten(Module): # type: ignore[misc] method forward (line 156) | def forward(self, input: Any) -> Any: class Conv_block (line 160) | class Conv_block(Module): # type: ignore[misc] method __init__ (line 161) | def __init__( method forward (line 183) | def forward(self, x: Any) -> Any: class Linear_block (line 190) | class Linear_block(Module): # type: ignore[misc] method __init__ (line 191) | def __init__( method forward (line 212) | def forward(self, x: Any) -> Any: class Depth_Wise (line 218) | class Depth_Wise(Module): # type: ignore[misc] method __init__ (line 219) | def __init__( method forward (line 241) | def forward(self, x: Any) -> Any: class Depth_Wise_SE (line 254) | class Depth_Wise_SE(Module): # type: ignore[misc] method __init__ (line 255) | def __init__( method forward (line 279) | def forward(self, x: Any) -> Any: class SEModule (line 293) | class SEModule(Module): # type: ignore[misc] method __init__ (line 294) | def __init__(self, channels: int, reduction: int): method forward (line 304) | def forward(self, x: Any) -> Any: class Residual (line 316) | class Residual(Module): # type: ignore[misc] method __init__ (line 317) | def __init__( method forward (line 348) | def forward(self, x: Any) -> Any: class ResidualSE (line 352) | class ResidualSE(Module): # type: ignore[misc] method __init__ (line 353) | def __init__( method forward (line 400) | def forward(self, x: Any) -> Any: class MiniFASNet (line 404) | class MiniFASNet(Module): # type: ignore[misc] method __init__ (line 405) | def __init__( method forward (line 502) | def forward(self, x: Any) -> Any: class MiniFASNetSE (line 522) | class MiniFASNetSE(MiniFASNet): method __init__ (line 523) | def __init__( FILE: deepface/modules/database/inventory.py class DatabaseSpec (line 14) | class DatabaseSpec(TypedDict): FILE: deepface/modules/database/mongo.py class MongoDbClient (line 21) | class MongoDbClient(Database): method __init__ (line 26) | def __init__( method close (line 67) | def close(self) -> None: method initialize_database (line 71) | def initialize_database(self, **kwargs: Any) -> None: method upsert_embeddings_index (line 101) | def upsert_embeddings_index( method get_embeddings_index (line 137) | def get_embeddings_index( method insert_embeddings (line 174) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method fetch_all_embeddings (line 235) | def fetch_all_embeddings( method search_by_id (line 288) | def search_by_id( FILE: deepface/modules/database/neo4j.py class Neo4jClient (line 22) | class Neo4jClient(Database): method __init__ (line 23) | def __init__( method close (line 62) | def close(self) -> None: method initialize_database (line 70) | def initialize_database(self, **kwargs: Any) -> None: method insert_embeddings (line 119) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method fetch_all_embeddings (line 187) | def fetch_all_embeddings( method search_by_vector (line 245) | def search_by_vector( method __is_gds_installed (line 317) | def __is_gds_installed(self) -> bool: method __generate_node_label (line 332) | def __generate_node_label( FILE: deepface/modules/database/pgvector.py class PGVectorClient (line 24) | class PGVectorClient(Database): method __init__ (line 25) | def __init__( method close (line 85) | def close(self) -> None: method initialize_database (line 89) | def initialize_database(self, **kwargs: Any) -> None: method insert_embeddings (line 168) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method fetch_all_embeddings (line 254) | def fetch_all_embeddings( method search_by_vector (line 307) | def search_by_vector( method __generate_table_name (line 369) | def __generate_table_name( FILE: deepface/modules/database/pinecone.py class PineconeClient (line 17) | class PineconeClient(Database): method __init__ (line 22) | def __init__( method initialize_database (line 49) | def initialize_database(self, **kwargs: Any) -> None: method insert_embeddings (line 81) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method search_by_vector (line 131) | def search_by_vector( method fetch_all_embeddings (line 183) | def fetch_all_embeddings( method close (line 231) | def close(self) -> None: method __generate_index_name (line 236) | def __generate_index_name( FILE: deepface/modules/database/postgres.py class PostgresClient (line 55) | class PostgresClient(Database): method __init__ (line 56) | def __init__( method initialize_database (line 94) | def initialize_database(self, **kwargs: Any) -> None: method close (line 126) | def close(self) -> None: method upsert_embeddings_index (line 130) | def upsert_embeddings_index( method get_embeddings_index (line 162) | def get_embeddings_index( method insert_embeddings (line 198) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method fetch_all_embeddings (line 270) | def fetch_all_embeddings( method search_by_id (line 309) | def search_by_id( FILE: deepface/modules/database/types.py class Database (line 7) | class Database(ABC): method __init__ (line 9) | def __init__( method initialize_database (line 20) | def initialize_database(self, **kwargs: Any) -> None: method insert_embeddings (line 27) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method fetch_all_embeddings (line 34) | def fetch_all_embeddings( method close (line 48) | def close(self) -> None: method get_embeddings_index (line 54) | def get_embeddings_index( method search_by_vector (line 69) | def search_by_vector( method search_by_id (line 85) | def search_by_id( method upsert_embeddings_index (line 97) | def upsert_embeddings_index( FILE: deepface/modules/database/weaviate.py class WeaviateClient (line 22) | class WeaviateClient(Database): method __init__ (line 27) | def __init__( method initialize_database (line 66) | def initialize_database(self, **kwargs: Any) -> None: method insert_embeddings (line 121) | def insert_embeddings(self, embeddings: List[Dict[str, Any]], batch_si... method fetch_all_embeddings (line 188) | def fetch_all_embeddings( method search_by_vector (line 234) | def search_by_vector( method close (line 283) | def close(self) -> None: method __generate_class_name (line 290) | def __generate_class_name( FILE: deepface/modules/datastore.py function register (line 34) | def register( function search (line 139) | def search( function build_index (line 478) | def build_index( function __get_embeddings (line 628) | def __get_embeddings( function __connect_database (line 692) | def __connect_database( function __get_index (line 725) | def __get_index( FILE: deepface/modules/demography.py function analyze (line 16) | def analyze( FILE: deepface/modules/detection.py function is_valid_landmark (line 24) | def is_valid_landmark( function extract_faces (line 47) | def extract_faces( function detect_faces (line 264) | def detect_faces( function extract_face (line 344) | def extract_face( function extract_sub_image (line 456) | def extract_sub_image( function align_img_wrt_eyes (line 508) | def align_img_wrt_eyes( function project_facial_area (line 542) | def project_facial_area( FILE: deepface/modules/encryption.py function encrypt_embeddings (line 17) | def encrypt_embeddings( function encrypt_embedding (line 49) | def encrypt_embedding(embeddings: List[float], cryptosystem: LightPHE) -... FILE: deepface/modules/exceptions.py class ImgNotFound (line 4) | class ImgNotFound(ValueError): class PathNotFound (line 10) | class PathNotFound(ValueError): class FaceNotDetected (line 16) | class FaceNotDetected(ValueError): class SpoofDetected (line 22) | class SpoofDetected(ValueError): class EmptyDatasource (line 28) | class EmptyDatasource(ValueError): class DimensionMismatchError (line 34) | class DimensionMismatchError(ValueError): class InvalidEmbeddingsShapeError (line 40) | class InvalidEmbeddingsShapeError(ValueError): class DataTypeError (line 46) | class DataTypeError(ValueError): class UnimplementedError (line 52) | class UnimplementedError(ValueError): class DuplicateEntryError (line 58) | class DuplicateEntryError(ValueError): FILE: deepface/modules/modeling.py class AvailableModels (line 43) | class AvailableModels(TypedDict): function build_model (line 98) | def build_model(task: str, model_name: str) -> Any: FILE: deepface/modules/normalization.py function normalize_embedding_minmax (line 12) | def normalize_embedding_minmax( function normalize_embedding_l2 (line 53) | def normalize_embedding_l2( FILE: deepface/modules/preprocessing.py function normalize_input (line 20) | def normalize_input(img: NDArray[Any], normalization: str = "base") -> N... function resize_image (line 78) | def resize_image(img: NDArray[Any], target_size: Tuple[int, int]) -> NDA... FILE: deepface/modules/recognition.py function find (line 31) | def find( function __find_bulk_embeddings (line 414) | def __find_bulk_embeddings( function find_batched (line 518) | def find_batched( function __save_representations (line 697) | def __save_representations( function __load_representations (line 718) | def __load_representations( function __build_dsa (line 745) | def __build_dsa(credentials: Union[LightDSA, Dict[str, Any]]) -> LightDSA: function __sign_datastore (line 769) | def __sign_datastore( function __verify_signature (line 796) | def __verify_signature( FILE: deepface/modules/representation.py function represent (line 23) | def represent( FILE: deepface/modules/streaming.py function analysis (line 28) | def analysis( function build_facial_recognition_model (line 226) | def build_facial_recognition_model(model_name: str) -> None: function search_identity (line 239) | def search_identity( function build_demography_models (line 334) | def build_demography_models(enable_face_analysis: bool) -> None: function highlight_facial_areas (line 352) | def highlight_facial_areas( function countdown_to_freeze (line 381) | def countdown_to_freeze( function countdown_to_release (line 410) | def countdown_to_release( function grab_facial_areas (line 440) | def grab_facial_areas( function extract_facial_areas (line 485) | def extract_facial_areas( function perform_facial_recognition (line 504) | def perform_facial_recognition( function perform_demography_analysis (line 561) | def perform_demography_analysis( function overlay_identified_face (line 612) | def overlay_identified_face( function overlay_emotion (line 868) | def overlay_emotion( function overlay_age_gender (line 982) | def overlay_age_gender( FILE: deepface/modules/verification.py function verify (line 27) | def verify( function __extract_faces_and_embeddings (line 243) | def __extract_faces_and_embeddings( function find_cosine_distance (line 296) | def find_cosine_distance( function find_angular_distance (line 334) | def find_angular_distance( function find_euclidean_distance (line 377) | def find_euclidean_distance( function l2_normalize (line 414) | def l2_normalize( function find_distance (line 433) | def find_distance( function find_threshold (line 477) | def find_threshold(model_name: str, distance_metric: str) -> float: function __sigmoid (line 502) | def __sigmoid(z: float) -> float: function find_confidence (line 525) | def find_confidence( FILE: docker/postgres-init/001_create_table.sql type embeddings (line 3) | CREATE TABLE IF NOT EXISTS embeddings ( type embeddings_index (line 21) | CREATE TABLE IF NOT EXISTS embeddings_index ( FILE: tests/integration/test_postgres_register.py function flush_data (line 28) | def flush_data(): function test_regsiter_with_json (line 38) | def test_regsiter_with_json(flush_data): function test_register_with_string (line 50) | def test_register_with_string(flush_data): function test_register_with_envvar (line 63) | def test_register_with_envvar(flush_data): function test_register_with_connection (line 74) | def test_register_with_connection(flush_data): function test_register_duplicate (line 88) | def test_register_duplicate(flush_data): FILE: tests/integration/test_postgres_search.py function flush_data (line 28) | def flush_data(): function load_data (line 39) | def load_data(): function test_postgres_search (line 64) | def test_postgres_search(flush_data, load_data): FILE: tests/unit/test_analyze.py function test_standard_analyze (line 16) | def test_standard_analyze(): function test_analyze_with_all_actions_as_tuple (line 31) | def test_analyze_with_all_actions_as_tuple(): function test_analyze_with_all_actions_as_list (line 56) | def test_analyze_with_all_actions_as_list(): function test_analyze_for_some_actions (line 81) | def test_analyze_for_some_actions(): function test_analyze_for_preloaded_image (line 103) | def test_analyze_for_preloaded_image(): function test_analyze_for_different_detectors (line 119) | def test_analyze_for_different_detectors(): function test_analyze_for_batched_image_as_list_of_string (line 158) | def test_analyze_for_batched_image_as_list_of_string(): function test_analyze_for_batched_image_as_list_of_numpy (line 181) | def test_analyze_for_batched_image_as_list_of_numpy(): function test_analyze_for_numpy_batched_image (line 209) | def test_analyze_for_numpy_batched_image(): function test_batch_detect_age_for_multiple_faces (line 247) | def test_batch_detect_age_for_multiple_faces(): function test_batch_detect_emotion_for_multiple_faces (line 260) | def test_batch_detect_emotion_for_multiple_faces(): function test_batch_detect_gender_for_multiple_faces (line 272) | def test_batch_detect_gender_for_multiple_faces(): function test_batch_detect_race_for_multiple_faces (line 284) | def test_batch_detect_race_for_multiple_faces(): FILE: tests/unit/test_api.py class TestApiFunctions (line 33) | class TestApiFunctions(unittest.TestCase): method setUp (line 34) | def setUp(self): method setup_invalid_image (line 42) | def setup_invalid_image(self): method test_tp_verify (line 49) | def test_tp_verify(self): method test_tn_verify (line 71) | def test_tn_verify(self): method test_represent (line 93) | def test_represent(self): method test_represent_encoded (line 113) | def test_represent_encoded(self): method test_represent_url (line 138) | def test_represent_url(self): method test_analyze (line 161) | def test_analyze(self): method test_analyze_inputformats (line 182) | def test_analyze_inputformats(self): method test_invalid_verify (line 248) | def test_invalid_verify(self): method test_invalid_represent (line 257) | def test_invalid_represent(self): method test_no_file_represent (line 267) | def test_no_file_represent(self): method test_invalid_analyze (line 275) | def test_invalid_analyze(self): method test_no_file_analyze (line 284) | def test_no_file_analyze(self): method test_analyze_for_multipart_form_data (line 292) | def test_analyze_for_multipart_form_data(self): method test_verify_for_multipart_form_data (line 313) | def test_verify_for_multipart_form_data(self): method test_represent_for_multipart_form_data (line 342) | def test_represent_for_multipart_form_data(self): method test_represent_for_multipart_form_data_and_filepath (line 361) | def test_represent_for_multipart_form_data_and_filepath(self): method test_extract_image_from_form_data (line 379) | def test_extract_image_from_form_data(self): method test_extract_image_string_from_json_data (line 405) | def test_extract_image_string_from_json_data(self): method test_extract_image_string_from_form_data (line 426) | def test_extract_image_string_from_form_data(self): class TestTokenValidation (line 452) | class TestTokenValidation(unittest.TestCase): method setUp (line 460) | def setUp(self): method test_missing_token (line 474) | def test_missing_token(self): method test_invalid_token (line 480) | def test_invalid_token(self): method test_valid_token (line 494) | def test_valid_token( class TestConnectionStringFailedValidation (line 520) | class TestConnectionStringFailedValidation(unittest.TestCase): method setUp (line 521) | def setUp(self): method test_register (line 530) | def test_register(self): method test_build_index (line 535) | def test_build_index(self): method test_search (line 540) | def test_search(self): class TestConnectionStringSucceddedValidation (line 546) | class TestConnectionStringSucceddedValidation(unittest.TestCase): method setUp (line 548) | def setUp(self): method tearDown (line 566) | def tearDown(self): method test_register (line 571) | def test_register(self): method test_build_index (line 576) | def test_build_index(self): method test_search (line 581) | def test_search(self): function download_test_images (line 587) | def download_test_images(url: str): function is_form_data_file_testable (line 596) | def is_form_data_file_testable() -> bool: function test_landmarks_are_raw_python_types (line 616) | def test_landmarks_are_raw_python_types(monkeypatch): FILE: tests/unit/test_commons.py function test_loading_broken_weights (line 32) | def test_loading_broken_weights(): class TestDownloadWeightFeature (line 63) | class TestDownloadWeightFeature: method test_download_weights_for_available_file (line 64) | def test_download_weights_for_available_file( method test_download_weights_if_necessary_gdown_failure (line 91) | def test_download_weights_if_necessary_gdown_failure( method test_download_weights_if_necessary_no_compression (line 120) | def test_download_weights_if_necessary_no_compression( method test_download_weights_if_necessary_zip (line 155) | def test_download_weights_if_necessary_zip( method test_download_weights_if_necessary_bz2 (line 198) | def test_download_weights_if_necessary_bz2( method test_download_weights_for_non_supported_compress_type (line 245) | def test_download_weights_for_non_supported_compress_type( FILE: tests/unit/test_encrypt.py function test_no_encrypt (line 21) | def test_no_encrypt(): function test_encrypt_single (line 34) | def test_encrypt_single(): function test_encrypt_batch (line 53) | def test_encrypt_batch(): function test_encrypt_single_skip_case (line 76) | def test_encrypt_single_skip_case(): function test_encrypt_batch_skip_case (line 121) | def test_encrypt_batch_skip_case(): function test_homomorphic_encryption (line 176) | def test_homomorphic_encryption(): FILE: tests/unit/test_enforce_detection.py function test_enabled_enforce_detection_for_non_facial_input (line 12) | def test_enabled_enforce_detection_for_non_facial_input(): function test_disabled_enforce_detection_for_non_facial_input_on_represent (line 24) | def test_disabled_enforce_detection_for_non_facial_input_on_represent(): function test_disabled_enforce_detection_for_non_facial_input_on_verify (line 44) | def test_disabled_enforce_detection_for_non_facial_input_on_verify(): FILE: tests/unit/test_extract_faces.py function test_different_detectors (line 19) | def test_different_detectors(): function test_numpy_input (line 85) | def test_numpy_input(): function test_backends_for_enforced_detection_with_non_facial_inputs (line 102) | def test_backends_for_enforced_detection_with_non_facial_inputs(): function test_backends_for_not_enforced_detection_with_non_facial_inputs (line 110) | def test_backends_for_not_enforced_detection_with_non_facial_inputs(): function test_file_types_while_loading_base64 (line 120) | def test_file_types_while_loading_base64(): function image_to_base64 (line 135) | def image_to_base64(image_path): function test_facial_coordinates_are_in_borders (line 141) | def test_facial_coordinates_are_in_borders(): function test_batch_str_inputs (line 173) | def test_batch_str_inputs(): function test_batch_ndarray_inputs (line 191) | def test_batch_ndarray_inputs(): FILE: tests/unit/test_find.py function test_find_with_exact_path (line 20) | def test_find_with_exact_path(): function test_find_with_array_input (line 49) | def test_find_with_array_input(): function test_find_with_extracted_faces (line 71) | def test_find_with_extracted_faces(): function test_filetype_for_find (line 93) | def test_filetype_for_find(): function test_filetype_for_find_bulk_embeddings (line 106) | def test_filetype_for_find_bulk_embeddings(): function test_find_without_refresh_database (line 126) | def test_find_without_refresh_database(): function test_find_for_similarity_search (line 176) | def test_find_for_similarity_search(): FILE: tests/unit/test_find_batched.py function test_find_with_exact_path (line 18) | def test_find_with_exact_path(): function test_batched_find_with_similarity_search (line 57) | def test_batched_find_with_similarity_search(): function test_find_with_array_input (line 103) | def test_find_with_array_input(): function test_find_with_extracted_faces (line 126) | def test_find_with_extracted_faces(): function test_filetype_for_find (line 151) | def test_filetype_for_find(): FILE: tests/unit/test_landmark_sanitization.py function sanitize_landmarks (line 8) | def sanitize_landmarks(region, width, height): function test_sanitize_landmarks (line 21) | def test_sanitize_landmarks(): function test_extract_faces_sanitizes_landmarks (line 42) | def test_extract_faces_sanitizes_landmarks(monkeypatch): FILE: tests/unit/test_output_normalization.py function test_minmax_normalization (line 10) | def test_minmax_normalization(): function test_minmax_normalization_batch (line 33) | def test_minmax_normalization_batch(): function test_minmax_normalization_edge_values (line 50) | def test_minmax_normalization_edge_values(): function test_l2_normalization (line 69) | def test_l2_normalization(): FILE: tests/unit/test_represent.py function test_standard_represent (line 15) | def test_standard_represent(): function test_standard_represent_with_io_object (line 30) | def test_standard_represent_with_io_object(): function test_represent_for_skipped_detector_backend_with_image_path (line 49) | def test_represent_for_skipped_detector_backend_with_image_path(): function test_represent_for_preloaded_image (line 65) | def test_represent_for_preloaded_image(): function test_represent_for_skipped_detector_backend_with_preloaded_image (line 86) | def test_represent_for_skipped_detector_backend_with_preloaded_image(): function test_max_faces (line 103) | def test_max_faces(): function test_represent_detector_backend (line 114) | def test_represent_detector_backend(): function test_batched_represent_for_list_input (line 143) | def test_batched_represent_for_list_input(model_name): function test_batched_represent_for_numpy_input (line 203) | def test_batched_represent_for_numpy_input(model_name): FILE: tests/unit/test_signature.py class TestSignature (line 21) | class TestSignature(unittest.TestCase): method setUp (line 22) | def setUp(self): method tearDown (line 38) | def tearDown(self): method test_sign_and_verify_happy_path_with_obj (line 42) | def test_sign_and_verify_happy_path_with_obj(self): method test_sign_and_verify_happy_path_with_dict (line 66) | def test_sign_and_verify_happy_path_with_dict(self): method test_missing_algorithm_in_dict (line 83) | def test_missing_algorithm_in_dict(self): method test_tampered_datastore_detection_with_type_error (line 99) | def test_tampered_datastore_detection_with_type_error(self): method test_tampered_datastore_detection_with_content (line 121) | def test_tampered_datastore_detection_with_content(self): method test_unsigned_datastore_detected (line 166) | def test_unsigned_datastore_detected(self): method test_signed_datastore_with_no_credentials (line 184) | def test_signed_datastore_with_no_credentials(self): method test_custom_curves (line 201) | def test_custom_curves(self): method __flush_datastore_and_signature (line 241) | def __flush_datastore_and_signature(self): FILE: tests/unit/test_singleton.py function test_singleton_same_object (line 6) | def test_singleton_same_object(): FILE: tests/unit/test_verify.py function test_different_facial_recognition_models (line 17) | def test_different_facial_recognition_models(): function test_different_face_detectors (line 76) | def test_different_face_detectors(): function test_verify_for_preloaded_image (line 112) | def test_verify_for_preloaded_image(): function test_verify_for_precalculated_embeddings (line 120) | def test_verify_for_precalculated_embeddings(): function test_verify_with_precalculated_embeddings_for_incorrect_model (line 159) | def test_verify_with_precalculated_embeddings_for_incorrect_model(): function test_verify_for_broken_embeddings (line 177) | def test_verify_for_broken_embeddings(): function test_verify_for_nested_embeddings (line 189) | def test_verify_for_nested_embeddings(): function test_compability_of_verify_and_represent (line 205) | def test_compability_of_verify_and_represent(): function test_confidence (line 236) | def test_confidence(): FILE: tests/unit/test_version.py function test_version (line 11) | def test_version():