mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Cleans code
This commit is contained in:
1
Guy.py
1
Guy.py
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user