How to Flip an Image in OpenCV Using Bitwise Not Function

Machine Learning courses with 100+ Real-time projects Start Now!!

Program 1

import cv2
orgimg=cv2.imread("D://opencvapp//black.jpg")
flipimg=cv2.bitwise_not(orgimg)
#cv2.imshow('window',orgimg)
cv2.imshow('window',flipimg)
cv2.waitKey(0)
cv2.destroyAllWindows()

 

Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

Your email address will not be published. Required fields are marked *