#python
*****************code******************
import cv2
import numpy as ranjithreddy
def sketch(image):
img_gray = cv2.cvtColor(image, cv2.COLOR_BGRA2RGBA)
img_gray_blur = cv2.GaussianBlur(img_gray, (5,5), 0)
canny_edges = cv2.Canny(img_gray_blur, 50, 68)
ret, mask = cv2.threshold(canny_edges, 80, 255, cv2.THRESH_BINARY_INV)
return mask
cap = cv2.VideoCapture(0)
while True:
ret, full_frame = cap.read()
cv2.imshow("Ranjith's Live Sketcher", sketch(full_frame))
if cv2.waitKey(1) == 13:
break
cap.release()
********************end*************************
On this page of the site you can watch the video online convert live video into sketch using python with code||learnlickpro|| with a duration of hours minute second in good quality, which was uploaded by the user learnlickpro 15 May 2022, share the link with friends and acquaintances, this video has already been watched 102 times on youtube and it was liked by 8 viewers. Enjoy your viewing!