This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import numpy | |
import cv2 | |
def comic(img): | |
# do edge detection on a grayscale image | |
gray = cv2.cvtColor(img, cv2.COLOR_BGRA2GRAY) | |
edges = cv2.blur(gray, (3, 3)) # this blur gets rid of some noise |