abidrahmank / OpenCV2-Python-Tutorials

This repo contains tutorials on OpenCV-Python library using new cv2 interface
1.25k stars 893 forks source link

Use imread flag instead of integer as parameter #308

Closed felixvd closed 3 years ago

felixvd commented 3 years ago

I think that not using the flag makes the code less readable, and contradicts the reason why the flags exist in the first place. New users do not profit from having to remember the raw integer.

I also took the liberty of fixing some language issues and make some style changes, but feel free to revert them.

felixvd commented 3 years ago

I just noticed that this seems to be the official documentation, and this repository is just the first hit on Google for certain search terms (thus the constant flood of attention). That was unnecessary.