In the middle of adding command line support

This commit is contained in:
julien Lengrand-Lambert
2012-04-25 08:42:03 +02:00
parent 5cfde7dff3
commit 4ab8d52d0e
5 changed files with 91 additions and 50 deletions

View File

@@ -6,7 +6,7 @@ Created on 16 avr. 2012
import os
from context import facemovie
from facemovie.facemovie import FaceMovie
from facemovie.Facemovie import FaceMovie
if __name__ == '__main__':
root_fo = "C:\Users\jll\perso\workspace\FaceMovie"
@@ -16,15 +16,19 @@ if __name__ == '__main__':
my_movie = FaceMovie(in_fo, out_fo, par_fo)
my_movie.list_guys() # find images in input folder
my_movie.search_faces() # search for images with faces
# listing training files
print my_movie.face_params.get_types()
#my_movie.search_faces() # search for images with faces
# I want to change images so that all faces have the same size
my_movie.normalize_faces() # sets all faces to the same size
#my_movie.normalize_faces() # sets all faces to the same size
# I want to know the size of the output frame, knowing initial conditions
my_movie.find_out_dims() # finds output minimal size to get all eyes in the same place
#my_movie.find_out_dims() # finds output minimal size to get all eyes in the same place
#choose your final step
#my_movie.show_faces(1000)
#my_movie.save_faces("output")
my_movie.save_movie("output")
#my_movie.save_movie("output")
print "Facemovie finished !"