Avatar ·

Infinity symbol recognition

📁 Help, example, AI

How can I recognize the infinity symbol (specifically it) in a photo or video?

I would appreciate it if you could provide code in your answer.

UPD: Explain how, for example, using contour analysis, you can determine whether an infinity symbol is present in a photo. Example below (the center may be fully connected, a person may be visible - they may be holding a sheet, color does not matter).

Avatar ·

"

OpenCV provides many tools for pattern recognition, including through contour analysis. In the third version of the framework, almost everything related to contour comparison was moved to a separate module with the telling name .

The author of the question did not specify which shapes (sets of shapes) the infinity sign will be compared with, and only noted that only the fact of similarity between the candidate and the target object is of interest.

It is obvious that the concept of "infinity" itself means nothing to a machine, so we will have to offer it some kind of reference image. Let this image look like this (file model1.jpg):

Meanwhile, to make sure that the method described below can also distinguish other shapes, add

Log in to leave an answer

Blogs