Files
Ivolution/params.json
2012-06-13 00:59:37 -07:00

1 line
11 KiB
JSON

{"name":"Facemovie","body":"#Take one picture of yourself a day, automatically generate a movie!\r\n\r\n\r\n**[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.\r\nSimply take several pictures of yourself in the same position, and decide when to compile everything into a video. Just indicate the location of your pictures, Facemovie does everything else for you. \r\n\r\nI see a growing interest for 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). \r\nWhen searching on the web, I realized that there was only one software allowing people to do this, the [everyday paid iphone app](everyday url). I hope that Facemovie could help some of you!\r\nThe main difference with everyday is that Facemovie searches automatically for faces in the input images and compile them in the best possible way, so that your video look awesome. \r\n\r\nDue to its general implementation, FaceMovie may be used for faces, but also profiles (for projects showing [women along pregnancy for example](http://www.youtube.com/watch?v=CG_KArKYTq4) or full body([for people workouting](http://www.youtube.com/watch?v=02Pzfv7JV48)). The only limitation comes from you ! \r\n\r\n**[You can check out an example here.](http://www.youtube.com/watch?v=2pUHK7Sf23I)**.\r\n\r\n\r\n## Installation\r\n\r\nThere are several ways you can choose from to run Facemovie, each being developed below.\r\nPlease note that you best pick as this stage would be to choose the executable. \r\n\r\n### Windows executable (Default)\r\n\r\nThis is the current safest and easiest solution for you. \r\n\r\nDownload the archive available [here](). By default, choose the full archive.\r\nThe light archive is intended for users having Python2.7 already installed on their system. In this case, a python.dll is given with the executable.\r\n\r\nUncompress the archive. It contains three elements :\r\n - The executable itself, called Facemovifier.exe.\r\n - A folder called haar_cascades. It contains files used by the executable. Leave it in the same location as the executable by default.\r\n - This README\r\n\r\n In order to check that everything is ready, open a command line in at the executable location and run the Facemovie helper : \r\n ```\r\n $ cd my\\installation\\folder\r\n $ Facemoviefier.exe -h\r\n ``` \r\n\r\n You are now ready to use the Facemovie !\r\n\r\n### Github\r\n\r\nYou can also simply clone the project from Github and use it as you wish. \r\n```\r\ngit clone git://github.com/jlengrand/FaceMovie.git\r\n```\r\n\r\nThis is a very good solution if you already have Python2.7 and OpenCV installed on your system (see requirements chapter).\r\n\r\nTo check the code, simply open a command line and try to run the Facemovifier : \r\n ```\r\n $ cd my\\cloned\\folder\r\n $ python facemovie\\Facemoviefier.py -h\r\n ``` \r\n\r\nScripts are available for Windows and Linux (called __run.sh__ and __run_windows.sh__) in order to help you run Facemovie. \r\n\r\n### Sample archive\r\n\r\nSo that you can start playing with the FaceMovie even though you do not have a batch of images, I compiled some samples in a archive available [here](). \r\nSimply uncompress it wherever you want, and use the image as input source !\r\n\r\n## Getting Started\r\n\r\nNow that FaceMovie is installed on your system, let's start playing with it !\r\nIf you do not have images to play with, note that an [archive including samples] is available.\r\n\r\nFor each of the following commands, __Facemovifier__ should be replaced by __FaceMovifier.exe__ or __python Facemovifier__ depending on your installation method (executable or Python egg).\r\n\r\n\r\nOnce installed, let's start by calling the helper of Facemovie. It can be done by\r\n```\r\n$ Facemoviefier -h\r\n```\r\ndepending whether you used the installer or the Python egg. \r\nThis command will list all the available parameters that can be used.\r\n\r\nThe next step is to try to create you first video. It is no more complex than running the following in command line :\r\n```\r\n$ Facemoviefier -i input_folder -o output_folder\r\n```\r\nWhere input_folder is the repository where all your images are stored, and output_folder where you want the results to be saved. \r\nIf you don't have images, you can still test the application by downloading some samples [here](lien vers samples).\r\n\r\nHere is a concrete example : \r\n```\r\n$ Facemoviefier.exe -i \"../data/input/samples\" -o \"../data/output\"\r\n```\r\n\r\n**NOTE : ** In order to get good results, your images should contain only one person; and you should try to always keep the same angle with the camera for each of them.\r\n\r\n\r\nFacemovie needs the list of haar_cascades to correctly detect faces. This means that if you decide to run the Facemovie from another location, you should update the folders accordingly and use the root_folder option:\r\n``` \r\n$ Facemoviefier -i input_folder -o output_folder -r haar_cascades_folder_location\r\n```\r\n\r\n\r\nFacemovie allows you to choose the type of output you want once the processing is done. This can be done by using the --type (-t) option. Here is the case where I save images instead of a movie in output.\r\n```\r\n$ Facemoviefier -i \"../data/input/Axel\" -o \"../data/output\" -t i\r\n```\r\n\r\nBy default, Facemovie is searching for frontal faces. You can change this by setting up which profile to use using the --profile (-p) option: \r\n```\r\n$ Facemoviefier -i \"../data/input/Axel\" -o \"../data/output\" -p \"profile face\"\r\n```\r\nAn extensive list of training files is available while calling the helper, or by running the following command.\r\n```\r\n$ Facemoviefier -p ?\r\n```\r\n\r\n### Options available in the Facemoviefier\r\n\r\n**Required :**\r\n\r\n- -i, --input : Input folder of the images to be processed\r\n- -o, --output : Output folder where the final results will be saved\r\n\r\n**Optional :**\r\n\r\n- -h, --help : Shows help message and exits\r\n- -r, --root : Location of the facemovie folder. Required if you run the Facemovifier from an external location\r\n- -e, --equalize : If this option is activated, images will NOT be resized so that all faces have the same size.\r\n- -p, --param : Used to change the file used to train the classifier. Useful you want to detect something else than front faces.\r\n Available parameters : \r\n - upper body.\r\n - profile face.\r\n - lower body.\r\n - frontal face (default).\r\n - full body.\r\n- -t, --type : The type of output to be created. Can be either images, video or simple display (nothing written on disc).\r\n Available types :\r\n - video\r\n - images\r\n - simple graphical display\r\n- -e, --equalize : When this option is activated, Facemovie will **NOT** resize images so that faces always keep the same size. This may result in lower quality results but avoid resizing images. \r\n- -s, --sort : The way used to sort images chronologically. Can be done either by using file names or EXIF metadata.\r\n Available modes :\r\n - name (default)\r\n - EXIF \r\n- -c, --crop : In this mode, final images are cropped so that only the desired part of the body is kept. This will remove parts of the input images, but will avoid addition of black borders in the output.\r\n- -d, --cropdims : Expects two floats here. Ignored if crop mode is not selected. This allows to choose the window to be cropped. The values are defined in \"number of face size\".\r\nThis means that for example -d 2 2 will output square images, of size 2 x the size of the subject face. \r\n\r\n## Libraries\r\n\r\nThe whole aplication is developed using [Python2.7.3](http://www.python.org/download/). Any Python2.7 should be enough though.\r\nTo run the application, you'll also need to install [Opencv](http://opencv.willowgarage.com/wiki/).See [the documentation](http://opencv.willowgarage.com/wiki/InstallGuide) for more information. \r\n\r\nI also used the excellent [exif library](http://sourceforge.net/projects/exif-py/) to enhance sorting capabilities. It is embedded in the code, and you will not need to install it.\r\n\r\nThis project is developed on a Windows (7) platform, but there should (and, as a fanatic Linux User, will) be no compatibility problems with UNIX. \r\nThe Linux application will be made available through a Python egg, available on [Pypi](http://pypi.python.org/pypi).\r\n\r\n## Work in progress\r\n\r\nFacemovie is still under development, and you should consider it as work in progress.\r\nLots of elements still have to be improved. \r\n\r\nHere is a list of my next objectives : \r\n\r\n - Implement a simple GUI to avoid this ugly command line interface\r\n - Allow manual interaction to help the algorithm. When no face is found, the software currently discard the image. I would allow the user to point the face himself.\r\n - Implement a feature that detects and corrects roations (for when the face is not always straight)\r\n - Enhance documentation and tests\r\n - **Any idea is welcome !**\r\n\r\n## Other ressources\r\n\r\nA complete documentation for the code is available as an archive [here]().\r\nSimply uncompress the archive and open the index.html in your browser to access it. \r\n\r\n## License\r\n\r\nThis project is released under the new BSD license (3 clauses version). You can read more about the license in the LICENSE file or direclty on [GNU's website](http://www.gnu.org/licenses/license-list.html#ModifiedBSD). \r\n\r\n## Acknowledgment\r\n\r\nThe idea of this project comes from an idea of Axel Catoire, currently [travelling around the world](http://ungrandtour.blogspot.com/) with his girlfriend.\r\nAs a starter for my code, I used an excellent example from JAPSKUA, that you can find [here](http://japskua.wordpress.com/2010/08/04/detecting-eyes-with-python-opencv/)\r\nAnd I used Gene Cash's library to extract information from EXIF metadata in the images.\r\n\r\n## DISCLAIMER\r\n\r\nFacemovie works with your images, so I feel like I need to write something about data usage. \r\nFacemovie is a work in progress, and I am not responsible for any corrpution it could cause to your data. \r\nI never experienced any problem using the software, but you should always back up your data before using it.\r\n\r\n## Contact\r\n\r\nI would enjoy having feedback if you like this idea, or even used it. Send me a link to your creations so that I can put them here !\r\nFeel free to mail me for any comment or request. \r\n\r\nYou can contact me at julien at lengrand dot fr, or on my [current website](http://www.lengrand.fr).\r\n\r\nVersion : 0.8.1","tagline":"Take one picture of yourself a day, automatically generate a movie!","google":"UA-32302207-1","note":"Don't delete this file! It's used internally to help with page regeneration."}