Updates README to link to youtube video

This commit is contained in:
julien Lengrand-Lambert
2012-04-19 13:57:41 +02:00
parent f82e27e037
commit b84c1d419d
3 changed files with 25 additions and 19 deletions

1
Guy.py
View File

@@ -154,6 +154,7 @@ class Guy(object):
cv.SetImageROI(self.out_im, rect)
if self.normalize :
print "###"
cv.Copy(self.norm_im, self.out_im)
else:
cv.Copy(self.in_image, self.out_im)

View File

@@ -1,11 +1,14 @@
#Take on picture of yourself a day, simply get the results!
[FaceMovie](http://www.lengrand.fr) is a simple project that aims at helping you create videos of yourself over time, using photos as input.
I see a growing interest for this kind of projects, where people take one picture of themselves a day for several months (years ?) and compile it into a video.
I started this project for a friend currently [travelling around the world](http://http://ungrandtour.blogspot.com/). He wanted to create a video of its face changes along the trip.
**[FaceMovie](http://www.youtube.com/watch?v=JueOY7EtXrQ)** is a simple project that aims at helping you create videos of yourself over time, using photos as input.
I see a growing interest for this kind of projects, where people take one picture of themselves a day for several months (years ?) and compile it into a [video](http://www.youtube.com/watch?v=6B26asyGKDo).
I started this project for a friend currently [travelling around the world](http://http://ungrandtour.blogspot.com/). He wanted to create a video of his face changes along the trip.
The main idea is simple. The software takes a batch of images as input. The images are assumed to be named by date (so that an alphabetical order is also the chronological order).
The output is a video containing each image, where the face is centered and always placed in the same position. This way, people can actually see the face change over time.
The output is a video containing each image, where the face is always placed in the same position. This way, people can actually see the face change over time.
**[You can check out the last results in video here !](http://www.youtube.com/watch?v=JueOY7EtXrQ)**
**In progress: **
@@ -19,23 +22,21 @@ The output is a video containing each image, where the face is centered and alwa
## Libraries
This piece of code is developed in [Python](http://www.python.org/), simply because I love it :P (and because it allows easy testing while developing IP applications).
This piece of code is developed in [Python](http://www.python.org/), simply because I love it :P (and because it allows easy testing while developing Image Processing applications).
I used Python 2.7 for development.
The only library needed to run the code for now is [Opencv](http://opencv.willowgarage.com/wiki/) (and by extension [Numpy](http://numpy.scipy.org/)). See [the documentation](http://opencv.willowgarage.com/wiki/InstallGuide) for more information.
This project is developed on a Windows (7) platform, but there should be no compatibility problems with UNIX.
This project is developed on a Windows (7) platform, but there should (and, as a fanatic Linux User, will) be no compatibility problems with UNIX.
## License
Not defined yet. Let's say thaat the code is public and that you can use it and modify it as you want.
What I simply would love is a short message (like "Thank you !" or "You rock !" :p) if you find the project useful.
Not defined yet. Let's say that the code is public and that you can use it and modify it as you want.
I would simply love is a short message (like "Thank you !" or "You rock !" :p) if you find the project useful.
## Contact
I would enjoy having feedback if you like this idea, or even used it (even though you should change the source code to run it for now :) ).
I would also like to know if you have heard about any other solution to make this kind of stuff ! (Couldn't find any on the internet!)
I would also like to know if you have heard about any other solution to make this kind of stuff ! (Couldn't find any but this Iphone [app](http://everyday-app.com/) on the internet !)
Feel free to mail me for any comment or request.
You can contact me at julien at lengrand dot fr, or on my [current website](http://www.lengrand.fr)
Last update : 4/12/2012
You can contact me at julien at lengrand dot fr, or on my [current website](http://www.lengrand.fr).

View File

@@ -156,20 +156,24 @@ class FaceMovie(object):
Resize should be done somewhere else !
"""
filename = os.path.join(out_folder, "output.avi")
fourcc = 0#-1
fps = 24 # not taken into account
frameSize = (self.dim_x, self.dim_y)
fourcc = -1#0#-1
fps = 3 # not taken into account
frameSize = (self.dim_x, self.dim_y)
my_video = cv.CreateVideoWriter(filename,
fourcc,
fps,
frameSize,
1)
for a_guy in self.guys:
1)
ii = 0
for a_guy in self.guys:
ii += 1
if a_guy.has_face():
print "frame %d" %(ii)
a_guy.create_video_output(self.dim_x,
self.dim_y,
self.x_center,
self.y_center)
self.y_center)
cv.WriteFrame(my_video, a_guy.out_im)
def number_guys(self):
@@ -196,6 +200,6 @@ if __name__ == "__main__":
#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 !"