Streams ADB's Screencap (useful for bots and video capturing)
Project description
Grab screenshots from ADB's screencap and process them right away
pip install adb-screencap-streaming
from adb_screencap_streaming import ADBScreenshot
import cv2
bilder = ADBScreenshot(
"C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",
"localhost:5735",
show_capture_keys="ctrl+alt+z", # starts cv2.imshow() - can be enabled/disabled by pressing ctrl+alt+z
show_fps_keys="ctrl+alt+f", # show the fps rate - can be enabled/disabled by pressing ctrl+alt+f
kill_screencap_keys="ctrl+alt+x", # kills the capture process
)
for ka in bilder.get_adb_screenshots(
sleeptime=None,
resize_width=None,
resize_height=None,
resize_percent=None,
interpolation=cv2.INTER_AREA,
):
print('Do some stuff here', end='\r')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for adb_screencap_streaming-0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2bf08955b12d0aa3d7dd9a3f067b80c9bdf574d1670dd1a02f0647d5fb6b766 |
|
MD5 | 9d70b5cb333b0e9cfd035db9c756703a |
|
BLAKE2b-256 | 1674e52244841c27df0aeec47274fd64789e551cad2b7c2319344f1517d19fa4 |
Close
Hashes for adb_screencap_streaming-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab7830a5e530f14fe470af2bbb54690527a3bc0c3115d6423db4e31a21c7ad16 |
|
MD5 | 0b6bcfbae8052e5319506fd05c27b4df |
|
BLAKE2b-256 | e582d2edb66272c04960de40bad7a70ab04433d0f2ed3638a4f296693dfe81e7 |