Any library recommended for recognizing squares in an image?


What do you recommend for recognizing squares in an image?

The data needed to know is:

  • Identify concrete squares.

  • Identify the pixel coordinates of (the edges of) the squares in the image.

A couple of examples:

  • 20 squares identified.
  • For each square identify its pixel coordinates.

enter image description here

  • 2 squares identified.
  • First square coordinates: (38, 124, 86, 187).
  • Second square coordinates: (88, 124, 136, 187).

enter image description here

Lesair Valmont

Posted 2019-06-18T20:19:17.873

Reputation: 111

A literature search for “car plate recognition” brings some papers to daylight in which neural networks were utilized for a similar task. – Manuel Rodriguez – 2019-06-18T20:45:46.013

Hi @Lesair Valmont, is the square always white and have the same ratio (width : length)? – malioboro – 2019-06-18T22:28:10.050

Squares' fill color is always white. Squares' ratio may vary. – Lesair Valmont – 2019-06-19T17:22:40.983

Do you have any constraint on detection time? How much data do you have? – firion – 2019-06-21T14:58:18.773

No time constraints. About 1,000 images. – Lesair Valmont – 2019-06-29T11:58:50.283



You might want to look into building convolutional neural network (CNN) for object detection using Keras. With plain white squares, it should work pretty good.


Posted 2019-06-18T20:19:17.873

Reputation: 688

Can you elaborate a little more about Keras with Azure? – Lesair Valmont – 2019-06-24T16:36:34.380

I have very little experience with Azure. But if you are not familiar with CNNs in general, check the following coursera course

– serali – 2019-06-24T17:26:28.190