Python 3, OpenCV 4(pip install opencv-python
), Numpypip install numpy
, tqdm (pip install tqdm
)
- Clone or Download Repo
- Prepare images to create mosaic [and add to the folder called images] (about 20,30 works. More images of different color leads to better mosaics).
- (https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video)
- Open CMD in the repo location and run mosaic.py
python mosaic.py
(https://www.thewindowsclub.com/how-to-open-command-prompt-from-right-click-menu/)
python mosaic.py -i dicaprio.jpg -r 50 -o diCaprio_mosaic.jpg
OR
python mosaic_multiThreaded.py -i dicaprio.jpg -r 50 -o diCaprio_mosaic.jpg
python mosaic.py -i me.jpg -r 64 -d ./images -s 600 600 -o ./output.jpg
(Original video)(https://www.youtube.com/watch?v=_uqm-Ans1rU) See output.avi for processed video, using default settings.