With this short notebook I will try to explain you the basics of OpenCV which you can install using " pip install opencv-python " .We will provide an image path and a cascade path which is Haar Cascade- a machine learning object detection algorithm used to identify objects in an image or video provided by OpenCV.
You can find the XML files and also the images I have used here