Guest User

Untitled

a guest
Jan 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. command = r"adb shell screencap -p"
  2. proc = subprocess.Popen(shlex.split(command),stdout=subprocess.PIPE)
  3. out = proc.stdout.read(30000000)
  4. img = cv2.imdecode(out,cv2.IMREAD_COLOR)
  5. if img is not None:
  6. cv2.imshow("",img)
  7. cv2.waitKey(0)
  8. cv2.destroyWindow("")
  9.  
  10. TypeError: buf is not a numpy array, neither a scalar
Add Comment
Please, Sign In to add comment