Question: (PYTHON) Use coolcam.py as a starter refer to the OpenCV documentation at https://docs.opencv.org/3.4.3/ and https://docs.opencv.org/master/d9/df8/tutorial_root.html to add at least 3 special effects/filters/image processing effects to
(PYTHON) Use coolcam.py as a starter refer to the OpenCV documentation at https://docs.opencv.org/3.4.3/ and https://docs.opencv.org/master/d9/df8/tutorial_root.html to add at least 3 special effects/filters/image processing effects to live video using your laptop webcam.
You can show all three special effects in one window (overlay edge detection with median filtering and saturation/contrast enhancement to achieve a cartoon-style look, for example) or in separate windows (one or more effects per window).
Include at least three effects/enhancements/filters in addition to the blur/median.
# cool_cam.py import cv2 cap = cv2.VideoCapture(0) while True: ret, img = cap.read() if img is not None: #img = cv2.blur(img,(10,10)) img = cv2.resize(img,(320,180)) img2 = cv2.medianBlur(img,5) img3 = cv2.applyColorMap(img2, cv2.COLORMAP_AUTUMN) edges = cv2.Canny(img2,100,200) cv2.imshow('edges', img) cv2.imshow('color', img3) k = cv2.waitKey(30) & 0xff if k == 27: break cap.release() cv2.destroyAllWindows()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
