Guest User

Untitled

a guest
Feb 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #make a check to see if the median blurring should be done to remove noise
  2. elif args["preprocess" == "blur":
  3. gray = cv2.medianBlur(gray, 3)
  4.  
  5. #write the grayscale image to disk as a temp file so we can
  6. #ocr it
  7. filename = "{}.png".format{os.getpid())
  8. cv2.imwrite(filename, gray)
Add Comment
Please, Sign In to add comment