These are the codes I used in my youtube videos
The video series is meant to give you a step on using opencv. Several concepts are covered in these tutorials. The video tutorials can be found here: https://www.youtube.com/watch?v=9hb0gYCv3YI&list=PL-cS6ZwDCr6rnUfSO2Wc5iR-UPKyMHCsn
The videos start from installing opencv to detecting objects in images.