title: Simple shape detection in a 1bpp image
body: <p>I am trying to learn about simple shape detection for a project I'm working on.</p>
  
  <p>I have an image that is made of only black and white pixels and I need to detect shapes within the image, such as squares and ellipses. I also need to find the bounding boxes of the shapes.</p>
  
  <p>I have been searching online and reading articles but I can't find any good explanations of where to start.</p>
  
  <p>I am also looking for some partial/complete code examples preferably in Java or C++.</p>
  
  <p>Thanks!</p>