title: python - Split an image based on white space
body: <p>I am trying to split <a href="https://i.stack.imgur.com/T18Ux.png" rel="nofollow noreferrer">this image</a> into equal sections where the &quot;white space&quot; in between the rows of bubbles is, and then take all of those sub images and line them up in one long image, so that the questions are vertically ordered. How can I use python to split the image this way? I am doing this to use OpenCV to grade the bubble sheet. Please keep in mind that I am new to python(but not coding), so it would be good if you could explain what each block of code is intended to do.</p>