opencv github code example
Example 1: python opencv
pip install opencv-python
Example 2: Computer vision libraries C++
Don't Use Open CV .It's hard and it's not being used as widely.
I suggest you to learn computer vision with deep learning libraries like pytorch,keras,etc.