Cleans code

This commit is contained in:
julien Lengrand-Lambert
2012-04-19 08:06:07 +02:00
parent a14d9fd6db
commit 2f9ceeb0e9
3 changed files with 2 additions and 4 deletions

1
Guy.py
View File

@@ -219,7 +219,6 @@ class Guy(object):
"""
Saves output image to the given format (given in extension)
"""
# check that format is a string ? ?
file_name = self.name + "." + ext
out_name = os.path.join(out_folder, file_name)
print "Saving %s" %(out_name)

View File

@@ -181,7 +181,6 @@ class FaceMovie(object):
if __name__ == "__main__":
# quick and dirty tests
root_fo = "C:\Users\jll\perso\workspace\FaceMovie"
#in_fo = os.path.join(root_fo, "input\Axel_tsts")
in_fo = os.path.join(root_fo, "input\Axel")
out_fo = os.path.join(root_fo, "output")
par_fo = os.path.join(root_fo, "haarcascades")
@@ -194,6 +193,7 @@ if __name__ == "__main__":
# 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
#choose your final step
#my_movie.show_faces(1000)
#my_movie.save_faces("output")
#my_movie.save_movie("output")

View File

@@ -6,11 +6,9 @@ Created on 16 avr. 2012
import os
import cv
from facemovie import *
from Guy import *
# quick and dirty tests
root_fo = "C:\Users\jll\perso\workspace\FaceMovie"
#in_fo = os.path.join(root_fo, "input\Axel_tsts")
in_fo = os.path.join(root_fo, "input\Axel")
out_fo = os.path.join(root_fo, "output")
par_fo = os.path.join(root_fo, "haarcascades")
@@ -25,6 +23,7 @@ my_movie.normalize_faces()
# I want to know the size of the output frame, knowing initial conditions
my_movie.find_out_dims()
# choose your final step
#my_movie.show_faces(1000)
#my_movie.save_faces("output")
my_movie.save_movie("output")