Dice grid from a photo with Python (III) – Creating the resulting picture
This post is part of the Project: Create a grid of dice from a photo with Python and PIL The logic behind the program Drawing the dice Create a grid of dice from a photo Design of the GUI Document and creation of the stand-alone executable Introduction In the first post of this project I mentioned the steps to create a dicing grid parting from a picture: Divide the picture into subsets Analyze each subset and replace it with the correspondent die based on its brightness I already defined the functions to draw the dice, so in this post I'm going to continue with the functions needed to transform the picture into a grid of dice, basically finishing the main purpose of this project. The steps to code the dicing grid are a bit different than the mentioned before, being like this: Get the constant values using the formula mentioned in the first post Validate or resize the size of the picture Divide the picture into subsets Analyze each subset and replace it with th