diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..c957848293c654a36ed7309c83d1f5d1a02b9997 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text diff --git a/app.py b/app.py index 04cc31aa8d0e06aeaac3b59bb361ed71d831e43f..223aab68d982be3b81dd2dc6e02d77e89203b16b 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,85 @@ import gradio as gr +import face_recognition +import numpy as np +import os +from PIL import Image +import dlib -def greet(name): - return "Hello " + name + "!!" +# Verificar si CUDA está disponible y seleccionar el modelo adecuado +if dlib.DLIB_USE_CUDA: + print("✅ CUDA está disponible. Se usará GPU para reconocimiento facial.") + model_used = "cnn" # Modelo optimizado para GPU +else: + print("⚠ CUDA no está disponible. Se usará CPU para reconocimiento facial.") + model_used = "hog" # Modelo más adecuado para CPU + +# 📂 Directorio donde se encuentran las imágenes +IMAGE_DIRECTORY = "dataset_faces/" + +def load_images_and_encodings(directory): + """ + Carga las imágenes y extrae sus embeddings. + """ + known_encodings = [] + known_images = [] + known_names = [] + + for filename in os.listdir(directory): + if filename.lower().endswith((".jpg", ".png", ".jpeg")): + path = os.path.join(directory, filename) + image = face_recognition.load_image_file(path) + encodings = face_recognition.face_encodings(image, model=model_used) + if encodings: # Si se detecta al menos una cara + known_encodings.append(encodings[0]) + known_images.append(path) + known_names.append(filename) + return known_encodings, known_images, known_names + +# Cargar los datos de la carpeta de imágenes +known_encodings, known_images, known_names = load_images_and_encodings(IMAGE_DIRECTORY) + +def find_similar_faces_gradio(uploaded_image): + """ + Dada una imagen subida, busca las imágenes similares del dataset. + Devuelve una lista de diccionarios para la galería y un texto con detalles. + """ + if uploaded_image is None: + return [], "No se subió ninguna imagen." + + # Convertir la imagen subida a array de NumPy + image_np = np.array(uploaded_image) + face_encodings = face_recognition.face_encodings(image_np, model=model_used) + if not face_encodings: + return [], "⚠ No se detectó ningún rostro en la imagen subida." + + query_encoding = face_encodings[0] + distances = face_recognition.face_distance(known_encodings, query_encoding) + sorted_indices = np.argsort(distances) # Ordenar por similitud (menor distancia = mayor similitud) + + # Mostrar las 5 imágenes más similares + top_n = 5 + gallery_items = [] + details = "" + for idx in sorted_indices[:top_n]: + # Abrir la imagen del dataset + img = Image.open(known_images[idx]) + similarity = 1 - distances[idx] # Definir similitud (valor entre 0 y 1) + caption = f"{os.path.basename(known_images[idx])}: Similitud: {similarity:.2f}" + gallery_items.append({"image": img, "caption": caption}) + details += caption + "\n" + + return gallery_items, details + +# Definir la interfaz con Gradio +demo = gr.Interface( + fn=find_similar_faces_gradio, + inputs=gr.Image(label="Sube una imagen", type="pil"), + outputs=[ + gr.Gallery(label="Imágenes similares").style(grid=[2], height="auto"), + gr.Textbox(label="Detalles de similitud", lines=5) + ], + title="🔍 Buscador de Rostros en un Directorio", + description="Sube una imagen y se mostrarán las fotos más similares del directorio." +) -demo = gr.Interface(fn=greet, inputs="text", outputs="text") demo.launch() diff --git a/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_558 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_558 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..067945335a0300a05e8eaaefe272936d77b4bb44 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_558 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94af5fcd7602fd2689b33e4b9028b3c1cfac0a324038f47c3451735773be0bd2 +size 1910193 diff --git a/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_558.jpg b/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_558.jpg new file mode 100644 index 0000000000000000000000000000000000000000..067945335a0300a05e8eaaefe272936d77b4bb44 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_558.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94af5fcd7602fd2689b33e4b9028b3c1cfac0a324038f47c3451735773be0bd2 +size 1910193 diff --git a/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_560.jpg b/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_560.jpg new file mode 100644 index 0000000000000000000000000000000000000000..12d5bdd58c5f52bddd736724e7cda1acde3fe694 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_24126995-5b39-4547-b358-e5b7cf0fa0d2_560.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a60b607eb2c3e89666a7c6f8185a6456a7bcec50c397663f16c38df4344556ce +size 1736129 diff --git a/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2880.jpg b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2880.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2fb5b2fa703eb1142bb358098444337fc59c9661 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2880.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4783421c1735f7a93913361da67214a6c22ded84a4b396e7c0a722ad4d3ea4ff +size 1561103 diff --git a/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2881.jpg b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2881.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cdf952599ebd3f0b8539632a16ed02216e231be0 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2881.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ca7e709fc5ba2a8eaabd03bdb1184ab92a0df448c21da714a59b74bd6dfd022 +size 1647184 diff --git a/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2882.jpg b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2882.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d049223bb20390c8bf0d03b371c36bf48a0f741b --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2882.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:859505282df3f3a828285dc352c4422ecb4a6d5be07f33da96cc2d094c6ec094 +size 1659956 diff --git a/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2884.jpg b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2884.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0c664150f04575d217b7ecb16a16f5deb4619769 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_26e8e190-8144-4aea-9296-0440eebb3a29_2884.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24f447e9292edd460ffc8b7e80a7c5b1b9c164d98defdb3796fa94c418b8a8fb +size 1543302 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1685 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1685 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..4268dc3ef2afa5d48a42125381abdb9d489f46e5 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1685 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37e63cd6e266cb31ac406b9edb022bfe8949edd9aa56a3302b91c10e8ec62e96 +size 1808574 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1685.jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1685.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4268dc3ef2afa5d48a42125381abdb9d489f46e5 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1685.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37e63cd6e266cb31ac406b9edb022bfe8949edd9aa56a3302b91c10e8ec62e96 +size 1808574 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1686.jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1686.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5c495b11700c0e97bbe47dfe2a228cd8d833c1ee --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1686.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff51380d2019e4ac1c7358b67b1197e2e620503ba7bfc0f1ea79aff87a74fba3 +size 1778352 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1688 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1688 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..d2c950c18446b1b44c21d566d4e3c39006a5e50a --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1688 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ea233a81b96dab13c092e5fc3abc5961fb5e4b8a04bfe7dca2ab21470c19fd9 +size 1909206 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1688.jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1688.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d2c950c18446b1b44c21d566d4e3c39006a5e50a --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_1688.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ea233a81b96dab13c092e5fc3abc5961fb5e4b8a04bfe7dca2ab21470c19fd9 +size 1909206 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_765 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_765 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..efd66ea0990b38b98eaf973f001339a6267de2fe --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_765 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46f0597cb80545aea7f5a673b42ee0c47fd36a7e76244818f499bb86d6ff4e4f +size 1742312 diff --git a/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_765.jpg b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_765.jpg new file mode 100644 index 0000000000000000000000000000000000000000..efd66ea0990b38b98eaf973f001339a6267de2fe --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_29ffa06c-9b8d-4792-a394-b16077b5b79d_765.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46f0597cb80545aea7f5a673b42ee0c47fd36a7e76244818f499bb86d6ff4e4f +size 1742312 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2167.jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2167.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ec21e7085b21c88807d47d013c883a88625ddfde --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2167.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58e5f10d7e87f1d297b5bc10be6dd3a1aeafdd2b86f84e9b621cb66ac39fe218 +size 1983416 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2219.jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2219.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3f4cbada82c1268bde5f36f2e2f484c7fc0c04db --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2219.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f773ad96a83f184bbb0781403445bd5927fd322109e072b85f2784be2f9007ca +size 1429203 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2221.jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2221.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aa653611ba7473bb47ce77add115d4b04abdd687 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2221.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abd147b33228c35cc05f876969bda0efeab2371474bb61533e326c48ff52d222 +size 1423798 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2224 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2224 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..420e86cda1667bb09366a26ca4b09fc996996418 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2224 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:342197ecf06622f58753260b1d640b4d3f61ae707fe573db38b075f5da518ad2 +size 1999091 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2224.jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2224.jpg new file mode 100644 index 0000000000000000000000000000000000000000..420e86cda1667bb09366a26ca4b09fc996996418 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2224.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:342197ecf06622f58753260b1d640b4d3f61ae707fe573db38b075f5da518ad2 +size 1999091 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2226.jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2226.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1bef524221805fd19f3900004bcf9241579a1867 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_2226.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83f7f1bd2512939554e742c3fab9229efb27a9d86aaf63a3467b2194a3de9040 +size 1706751 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_415 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_415 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..7f0d78698461b8bd330b7a4ba8a6b50813273c47 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_415 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7f7139a9c2c50e565d8d6dbfc81b3481fe38aaa20982242e9a634d8d9ee6d78 +size 1712331 diff --git a/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_415.jpg b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_415.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7f0d78698461b8bd330b7a4ba8a6b50813273c47 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_58c03ce4-a06f-44c9-82d4-305bc8cc9058_415.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7f7139a9c2c50e565d8d6dbfc81b3481fe38aaa20982242e9a634d8d9ee6d78 +size 1712331 diff --git a/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1947 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1947 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..2faec2f6fde5dfa7c5aa933ba765c20503f32c88 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1947 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbf9b1292b7357894f48e22291596d5f2be74b232b0320d2a9bc857aabd2c37a +size 1998764 diff --git a/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1947.jpg b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1947.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2faec2f6fde5dfa7c5aa933ba765c20503f32c88 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1947.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbf9b1292b7357894f48e22291596d5f2be74b232b0320d2a9bc857aabd2c37a +size 1998764 diff --git a/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1948.jpg b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1948.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bb0a303635d2938c5ed764d94de75ade19469c75 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_1948.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:195971e81c9fe60f35689840162c858f72996bed36633f7c443ec07955877108 +size 1835583 diff --git a/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_3964.jpg b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_3964.jpg new file mode 100644 index 0000000000000000000000000000000000000000..98e53aa22320c4c70f7e9e684da9f966d09539d0 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_3964.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcd80a466477891f2b516ed0f79edcab91023075e98c3d74473c7cd6efa59e09 +size 2034312 diff --git a/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_3965.jpg b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_3965.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cde83a1e0e726c6989872f46fff29622bdf6c401 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_91e3fecd-ca72-4331-b034-10b70dd3f6a8_3965.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ed852950857dfc9f49c5604a554fd37160632b4bc032be83942648ba48e2946 +size 1314735 diff --git a/dataset_faces/FR_mmlaceja2024_1_9696544d-e89d-4ea9-a2c4-9232436ef6b8_820.jpg b/dataset_faces/FR_mmlaceja2024_1_9696544d-e89d-4ea9-a2c4-9232436ef6b8_820.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ac807265013914eac1bb048561ffa12d7df75c2a --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_9696544d-e89d-4ea9-a2c4-9232436ef6b8_820.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d93fdc7f4ee1c2c781c97ce87b216c82f8a1d6572645be041b21f593a277a2bd +size 1820364 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1800.jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1800.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a2af6c0e3ed9d8c83bd689f669456c18a79a0e90 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1800.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e315296598b5008be1110cb65f8836065adf0b76c74f703d56ad5e3e5c86858 +size 1892051 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1802 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1802 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8879993ad3ee6f29d41eef81952d244d6787abe --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1802 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1f3ee24cf8c54ba24359843ee258e202851a64c14811b1b5057265e9ced8aa7 +size 1967394 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1802.jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1802.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8879993ad3ee6f29d41eef81952d244d6787abe --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1802.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1f3ee24cf8c54ba24359843ee258e202851a64c14811b1b5057265e9ced8aa7 +size 1967394 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1957 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1957 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..93c5a39cd7ae6308f320c437e7f25ecad37fa633 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1957 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:141859b9ffbd1d9d98519596371e00bb7a93241349512e94ea3010cd473beaed +size 1930147 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1957.jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1957.jpg new file mode 100644 index 0000000000000000000000000000000000000000..93c5a39cd7ae6308f320c437e7f25ecad37fa633 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_1957.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:141859b9ffbd1d9d98519596371e00bb7a93241349512e94ea3010cd473beaed +size 1930147 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_3225 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_3225 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..b0ee6bee050ae10afc85c5902e40b96ee4510f09 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_3225 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13ad65619dc871edc98cc58bd19a6c7966b4a9bcd4252e9896442ea844ba12ae +size 1859751 diff --git a/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_3225.jpg b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_3225.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b0ee6bee050ae10afc85c5902e40b96ee4510f09 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bcccd5e9-926e-4720-b22d-9a6ba96efdcd_3225.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13ad65619dc871edc98cc58bd19a6c7966b4a9bcd4252e9896442ea844ba12ae +size 1859751 diff --git a/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_1492.jpg b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_1492.jpg new file mode 100644 index 0000000000000000000000000000000000000000..551286a236aceae689dff251fec780acd9dbd37b --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_1492.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4690e75415e3aa277e19a3eaf51490dd1bd9ca840a8ec91a9067e1159aec5e2 +size 1755714 diff --git a/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_320 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_320 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..c20f8f97f1157025847b52a73d4d01572f989fc2 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_320 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db235f3aca0c50bffd39425f0a197e3adc4cd363c95cfb798607ef17281b24c9 +size 1705006 diff --git a/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_320.jpg b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_320.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c20f8f97f1157025847b52a73d4d01572f989fc2 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_320.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db235f3aca0c50bffd39425f0a197e3adc4cd363c95cfb798607ef17281b24c9 +size 1705006 diff --git a/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_322.jpg b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_322.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2bdee6ec9e454c56f28273132666936eab79fec1 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_bfb46f55-ec2d-40ca-a131-4161f1bb8f81_322.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67996ccb8797bd3249e33ac0825c1fe220f49c854aa400bbb146f9f01adee58d +size 1965724 diff --git a/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1615.jpg b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1615.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1a788b825e7563d3faddb3ed67f8c292ba460616 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1615.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba6ad0b469871e1ddbb9c57444478f0abb5b1644909833d6e1625f0156aa6f8d +size 1751759 diff --git a/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1616 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1616 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..cb76ac571d24b4915977900a7543f5f4c240ed69 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1616 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4c5adb28b6c994dc790cb87879eafcf6bfc2c738e0d1b6e47ba7534866b3125 +size 1642930 diff --git a/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1616.jpg b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1616.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cb76ac571d24b4915977900a7543f5f4c240ed69 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1616.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4c5adb28b6c994dc790cb87879eafcf6bfc2c738e0d1b6e47ba7534866b3125 +size 1642930 diff --git a/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794 (1).jpg b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794 (1).jpg new file mode 100644 index 0000000000000000000000000000000000000000..118897ccdc8215e5ec8c205e2be516125d0822b2 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794 (1).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9c3c3a3fee74944f3e69a7f58075be1796a88830fd106a7beb817f3e8749cee +size 1728021 diff --git a/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794 (2).jpg b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794 (2).jpg new file mode 100644 index 0000000000000000000000000000000000000000..118897ccdc8215e5ec8c205e2be516125d0822b2 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794 (2).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9c3c3a3fee74944f3e69a7f58075be1796a88830fd106a7beb817f3e8749cee +size 1728021 diff --git a/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794.jpg b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794.jpg new file mode 100644 index 0000000000000000000000000000000000000000..118897ccdc8215e5ec8c205e2be516125d0822b2 --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e44f9374-6c5c-4493-8bfd-1141d175b401_1794.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9c3c3a3fee74944f3e69a7f58075be1796a88830fd106a7beb817f3e8749cee +size 1728021 diff --git a/dataset_faces/FR_mmlaceja2024_1_e466d074-71e7-4229-b4d1-e1d04d0a3ac8_55.jpg b/dataset_faces/FR_mmlaceja2024_1_e466d074-71e7-4229-b4d1-e1d04d0a3ac8_55.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fafaff8008913e4075398cac1b2f4dd5dfe7ecef --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_e466d074-71e7-4229-b4d1-e1d04d0a3ac8_55.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96ae677618633b37cad993aa7b56744d1eb74acd5c186ce7afa8764cbd265150 +size 2082780 diff --git a/dataset_faces/FR_mmlaceja2024_1_eb74f9d8-5282-48fd-bfbd-d49b0d0101ed_1016.jpg b/dataset_faces/FR_mmlaceja2024_1_eb74f9d8-5282-48fd-bfbd-d49b0d0101ed_1016.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5238ccf43b4d00252bad8100f93b0730cf29d6fd --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_eb74f9d8-5282-48fd-bfbd-d49b0d0101ed_1016.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:690175ea1ebbd2a320b553138adcc9d08c338d8c4dfb2efb5faae9662d753007 +size 1583889 diff --git a/dataset_faces/FR_mmlaceja2024_1_eb74f9d8-5282-48fd-bfbd-d49b0d0101ed_1020.jpg b/dataset_faces/FR_mmlaceja2024_1_eb74f9d8-5282-48fd-bfbd-d49b0d0101ed_1020.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5862965e5d721a30e144193010a0c03defaf6e1b --- /dev/null +++ b/dataset_faces/FR_mmlaceja2024_1_eb74f9d8-5282-48fd-bfbd-d49b0d0101ed_1020.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0327d8fa95b062b2ec8ac1078dfdd5a7bb198a78ae6f5529745fc0129b1a98d2 +size 2026616 diff --git a/dataset_faces/f0c7f9be-5fae-4c17-9a84-501dcb4cd91a.jpg b/dataset_faces/f0c7f9be-5fae-4c17-9a84-501dcb4cd91a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4c922815c0c2cbc278f5e94d424506340e26422b --- /dev/null +++ b/dataset_faces/f0c7f9be-5fae-4c17-9a84-501dcb4cd91a.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a05d04a0f8cdfcb21f8118934f221088177a96e7544766c575aa3f21ee22a6ed +size 91401 diff --git a/dataset_faces/services1.jpg b/dataset_faces/services1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..32cfe056e0b74a38605129f41ef89279a0079677 --- /dev/null +++ b/dataset_faces/services1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:499fee469ce2820b6a40841d2381980ecc6666db7df15346efee68b105dd4264 +size 1780589 diff --git a/dataset_faces/services2.jpg b/dataset_faces/services2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..20a14580845d6956108e07e4b7904066dfd0b6e5 --- /dev/null +++ b/dataset_faces/services2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a007b6021a08db86e5eec71f5a1d0e2ab5da66e2f68e673c5593e11cf528b3a1 +size 1728928 diff --git a/dataset_faces/services3.jpg b/dataset_faces/services3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..20a14580845d6956108e07e4b7904066dfd0b6e5 --- /dev/null +++ b/dataset_faces/services3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a007b6021a08db86e5eec71f5a1d0e2ab5da66e2f68e673c5593e11cf528b3a1 +size 1728928 diff --git a/dataset_faces/services4.jpg b/dataset_faces/services4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2fb5b2fa703eb1142bb358098444337fc59c9661 --- /dev/null +++ b/dataset_faces/services4.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4783421c1735f7a93913361da67214a6c22ded84a4b396e7c0a722ad4d3ea4ff +size 1561103 diff --git a/dataset_faces/sr.jpg b/dataset_faces/sr.jpg new file mode 100644 index 0000000000000000000000000000000000000000..23022c1f0aa033e94e2b56ac10804262ae3c0190 --- /dev/null +++ b/dataset_faces/sr.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b264c5601d1d65aabb907264f53ca4f26cf074d010b57e135de86c318e6a1e1 +size 1904325 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..9f972758137a6b9d51f3324be9a89c9d258a46cb --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +streamlit +face_recognition +opencv-python-headless +numpy +Pillow +dlib