-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99bd88a
commit d2cae4c
Showing
72 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import calculos as c | ||
import os | ||
|
||
movie="Angeles y demonios" | ||
m="moviesdata" | ||
g="actordata" | ||
s='/' | ||
apidata=os.listdir(m+s+movie) | ||
actordata=os.listdir(g+s+movie) | ||
print(movie) | ||
print(apidata) | ||
print(actordata) | ||
DM=0.75 # 0.0 distancia minima posible | ||
AM=0.4 # 1.0 angle maxim posible | ||
calculos=0 | ||
for unkownactor in apidata: | ||
act=c.extraerSublistaArchivo(m+s+movie+s+unkownactor) | ||
print("\n") | ||
print('{} subcaras para el actor {}'.format(len(act),unkownactor.strip('.txt'))) | ||
for subactor in actordata: | ||
currentactor=c.extraerSublistaArchivo(g+s+movie+s+subactor) | ||
count=0 | ||
for subcara in act: | ||
for caratest in currentactor: | ||
calculos=calculos+1 | ||
if(c.similitudCoseno(caratest,subcara)>AM): | ||
if(c.distanciaEuclidea(caratest,subcara)<DM): | ||
count=count+1 | ||
if(count>0): | ||
print('{} Positivo para el cluster {}, {} positivos para coeficientes AM: {} y DM: {}'.format(subactor.strip('.txt'),unkownactor.strip('.txt'),count,AM,DM)) | ||
# calculos=calculos+1 | ||
# else: | ||
# calculos=calculos+1 | ||
# pass | ||
# print("no hi han cares valides per els coeficients AM : {} i DM: {} per l'actor {}".format(AM,DM,subactor.strip('.txt'))) | ||
print("\n") | ||
print('{} pares de caras comparados para la pelicula {}'.format(calculos,movie)) |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Figura 1 Representación de convolución pagina 19 | ||
Figura 2: Clúster artista 00 Yo robot (Will Smith) pagina 28 | ||
Figura 3: Muestra de errores típicos en extracción de caras pagina 34 | ||
Figura 4: Muestra de código de IMDBPY pagina 36 | ||
Figura 5: Muestra de algunos de los actores de Matrix pagina 36 | ||
Figura 6: implementación de descarga de imágenes de actores pagina 37 | ||
Figura 7: muestra de imágenes de Keanu Reeves pagina 38 | ||
Figura 8: Representación de dos caras V y W en un espacio vectorial N = 128. pagina 44 | ||
Figura 9: Verdaderos positivos de Linda Fiorentino según coeficiente DM pagina 45 | ||
Figura 10: Verdaderos positivos de Rip Torn según coeficiente DM pagina 46 | ||
Figura 11: Imagen del sub set de comprobación para el actor Rip Torn pagina 47 | ||
Figura 12: Verdaderos positivos de Linda Fiorentino según coeficiente AM. pagina 48 | ||
Figura 13: Verdaderos positivos de Linda Fiorentino según coeficientes AM y DM. pagina 49 | ||
Figura 14: Falsos positivos de Linda Fiorentino según coeficientes AM y DM. pagina 50 | ||
Figura 15: muestra de resultados de los posibles casos para la película Ángeles y demonios. pagina 52 |
Binary file added
BIN
+49.6 KB
...tNTcwMjFiNzJjZmNjXkEyXkFqcGdeQXVyMDM5ODIyNw@@._V1_SY1000_CR0,0,666,1000_AL_.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 KB
...MTM1NDQxMzk2Nl5BMl5BanBnXkFtZTcwNzEwMTQyMw@@._V1_SY1000_CR0,0,1502,1000_AL_.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.6 KB
images/I Robot 2004/Bridget Moynahan/7.f579409b8710d97f9e0fdb458827fd76.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.4 KB
...zUtYTQ0YzA1YTE5MGYxXkEyXkFqcGdeQXVyMDM5ODIyNw@@._V1_UY268_CR8,0,182,268_AL_.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+305 KB
...BMjE2NTY4NjY5Nl5BMl5BanBnXkFtZTcwOTAxMTQyMw@@._V1_SX1777_CR0,0,1777,986_AL_.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.3 KB
images/I Robot 2004/Will Smith/2.yo-robot-2004-will-smith-1550867185.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+148 KB
images/I Robot 2004/Will Smith/3.will-smith-yo-robot-yo-robot-2004-bpn4bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+126 KB
...U5LWFhYWMtOTM4NTAyYTY1ZWM4L2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyNTc3MjUzNTI@._V1_.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+162 KB
...2004/Will Smith/6.yo-robot-2004-20th-century-fox-film-con-will-smith-akdwg4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+174 KB
...-i-robot-2004-alex-proyas-will-smith-D_NQ_NP_267421-MLM20794978474_062016-F.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.