1 | initial version |
I think the problem you give here is very broad and you need to start by narrowing it to some small problems. For example, are you talking about images or live video?
To find some known object in image you can try to implement some kind of features matching algorithm. The main idea is: - Extract useful features from images of people with helmet/mask - Learn what are the main features unique to person with helmet/mask - Find the same features in new image
Have a look at the feature2d
and objdetect
modules tutorials, there is a lot of information about features there.