MO Photo Album project
Relative to the first version project which contains client interface. This second version is created to improve performance using c++ ParadisEO library and found best AOS (adaptive operators strategy) for this real problem.
So, some statistics will be generated in order to compare the different AOS known and perhaps propose a new one.
This project is a cmake project. So you need to install all dependencies before build it:
Some python scripts are used to run application or create new photo album. You also need some python dependencies :
Clarifai dependency used for getting some information about your photo in order to compare them.
pip install clarifai==2.0.20
Some others dependencies required :
pip install imagehash pacman -S grahpicsmagick
And finally :
mkdir build && cd build cmake ..
First of all, you need to respect this folder template architecture :
Template folder structure :
1. Clarifai API data
Generate tags information from an template folder :
cd application/resources/photo-album python tag-clarifay.py <template-folder> <YOUR_CLARIFAI_API_KEY>
cd application/resources/photo-album python tag-clarifay.py templates/FirstTemplate <YOUR_CLARIFAI_API_KEY>
2. Generate info photo file
In order to generate json file information about photos template, you need to run this command line :
python extractInfo.py <template-folder>
3. Generate disposition info file
python disposition.py <template-folder> <output-filename> <x-axis-number-photos> <y-axis-number-photos> <number-of-pages>
4. Generate photo album
python buildAlbum.py <template-folder> <disposition-file> <solution-file> (<solution-line>)
python buildAlbum.py templates/FirstTemplate/ album-6-2per3.json chronologic-order.sol