Montages image opencv build montage image using opencv, this program required --image arguments towards the directory of the image --sample arguments optional (to take lots of pictures to make a montage), default=4 run the program python montages.py --image img --sample 4 sample output source and full explanation pyimagesearh