Here I would provide code for the Task on Digit Finding, focusing on generating vertices of the boundaryam
It is recommended to use bitmap to calculate the probabilities. Use unclip and other geometric tools to define the boundary of the bounding box