I want to check if a person is not worn Gloves, Hard Hat or Reflective Vest, etc. For example, at the construction site, if a person did not wear any of the above things then I want to detect.
Basically, you will need two models for this task.
For model 1:
You can use anomaly detection for this. This means that you train a model on images of various subjects which are wearing the required gear. Now, when the model is shown an image of a person not wearing the required gear, it will produce a huge loss value.
The model hasn't learnt to reconstruct images which do not possess the required gear and hence the loss is larger.
References :
https://www.quora.com/What-are-the-best-anomaly-detection-methods-for-images https://towardsdatascience.com/anomaly-detection-in-images-777534980aeb
For model 2:
This is a simple classification problem. The model needs to classify whether the image contains Gloves, Hard Hat or Reflective Vest. You can try hands-on Convolutional Neural Networks ( CNNs ) which excel image classification.
References:
https://towardsdatascience.com/building-a-convolutional-neural-network-cnn-in-keras-329fbbadc5f5 https://adventuresinmachinelearning.com/keras-tutorial-cnn-11-lines/ https://www.learnopencv.com/image-classification-using-convolutional-neural-networks-in-keras/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With