<jupyter_start><jupyter_text>Live Sketcher<jupyter_code>def sketch(image):
    gray_img = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
    img_blur = cv2.GaussianBlur(gray_img,(3,3),0)
    canny = cv2.Canny(img_blur,10,70)
    ret, mask = cv2.threshold(canny,30,255,cv2.THRESH_BINARY_INV)
    return mask
cap = cv2.VideoCapture(0)
while True:
    ret,frame = cap.read()
    cv2.imshow("LIVE",sketch(frame))
    if cv2.waitKey(1) == 13: #press enter to close the live sketch window
        break
cap.release()
cv2.destroyAllWindows()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13285457809694792, 'fraction_numerical': 0.04847396768402154, 'mean_word_length': 4.873684210526315, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '190397', 'license': 'MIT', 'n_tokens_mistral': 238, 'n_tokens_neox': 227, 'n_words': 36, 'path': 'Opencv Assignments/Tanya/Live Sketch.ipynb', 'repo_name': 'hp77-creator/CalNet', 'size': '557'}