argman / EAST

A tensorflow implementation of EAST text detector
GNU General Public License v3.0
3.01k stars 1.05k forks source link

CV2.imread functionality #307

Open eravallirao opened 5 years ago

eravallirao commented 5 years ago

im = cv2.imread(im_fn)[:, :, ::-1] Can someone explain the difference between the normal imread function to the above one ?

mailcorahul commented 5 years ago

there is no difference in reading the image(cv2.imread). the only difference is that the color channels are flipped(from BGR to RGB) using [:, :, ::-1]. cv2 by default reads images in BGR order, so the image is explicitly converted to RGB above after cv2.imread.

eravallirao commented 5 years ago

Oh, thank you for that @mailcorahul