How to use C # to find a round, square and triangular shape in the image?

At the entrance to the image, and at the exit selects these forms in the image

  • It is desirable to describe in more detail what exactly is the question, or what exactly is impossible to implement. In this form, the question is too general, getting a useful answer to it is very unlikely. - Qwertiy
  • Give an example of the image - SanŚ́́́́́́́́́́-
  • one
    With this wording of the question, you can only suggest to write the AI - Vladimir Paliukhovich
  • Surely there is an OpenCV port under .NET. Select the borders, and then you will have to determine by the border whether it is, for example, a triangle. No, there is no ready library for this. - VladD

1 answer 1

Purely in theory how to implement ... There are 2 ways:

  1. Using neural networks to search for the corresponding forms in the picture (to train the neural network to recognize them)

  2. Make a monochrome picture and analyze all the lines with a sharp difference in contrast. If several lines intersect-- check if the given figure is one of the listed. (check the angles between the intersection points and the number of angles)

No one will write the complete solution for you. The task is too nontrivial. Especially because it is asked in quite a blurred form.