Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #make a check to see if the median blurring should be done to remove noise
- elif args["preprocess" == "blur":
- gray = cv2.medianBlur(gray, 3)
- #write the grayscale image to disk as a temp file so we can
- #ocr it
- filename = "{}.png".format{os.getpid())
- cv2.imwrite(filename, gray)
Add Comment
Please, Sign In to add comment