Open caiyingchun opened 6 years ago
I just finished working through the photomosaic tutorial the other day. This is how I altered the code to account for the 'match' and it seems to work fine.
if not reuse_images: input_images.remove(input_images[match_index]) avgs.remove(avgs[match_index])
*Once you remove the image that is stored at match_index you have to also remove its average rbg value too otherwise you'll get an error.
Thank you very much! It works!
In project photomosaic.py, in line 180:
I wonder variable ‘match' is miswritten. it is never defined in codes. But I don't know what it should be replaced?