opencv-python-tutorial icon indicating copy to clipboard operation
opencv-python-tutorial copied to clipboard

Update cv2_read_image_time.py

Open tanujdhiman opened this issue 3 years ago • 2 comments

Hey, It is a good practice for learner to know about the arguments of a method. cv2.imread( 'file_name' , flag)

Thanks

tanujdhiman avatar Oct 12 '20 13:10 tanujdhiman

cv2.IMREAD_COLOR(1) is the default flag. 🙂 Ref: Read Image

CodecWang avatar Oct 13 '20 02:10 CodecWang

Yeah. But if you want to read the image as Gray or whatever then you have to specify. Okay You know about this. But remember when someone is beginner then he is confused with how to read it as Gray or Color or Alpha Channels.

Hope you are understanding my point . Thanks

tanujdhiman avatar Oct 13 '20 08:10 tanujdhiman