Python OpenCV examples for some machine learning classifiers and detectors, based on haarcascade classifier and deep neuronal network.
In order to train naively some models to the dnn classifier you will need to access this web: https://teachablemachine.withgoogle.com/train
In order to train naively some models to the haar classifier you will need to explore the app accesible in this web: https://amin-ahmadi.com/cascade-trainer-gui/