processing image in python code example
Example: image processing python
The OpenCV documentation itself is good to start with.
https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_table_of_contents_imgproc/py_table_of_contents_imgproc.html