Use of opencv in place of keras

can we use cv2 in place of keras preprocessing.image and which will be better

Hey @himanshu_raw, yes you can use both of them till the time they both give you the results that you are looking for. It’s just that opencv is a library developed specifically for computer vision algorithms. On the other hand , tensorflow/keras being a machine learning framework is widely adapted for deep learning tasks in research and industrial community.

Hope this resolved your doubt :slight_smile:
Happy Learning :slight_smile: