Metadata-Version: 2.1
Name: adb-screencap-streaming
Version: 0.12
Summary: Streams ADB's Screencap (useful for bots and video capturing)
Home-page: https://github.com/hansalemaos/adb_screencap_streaming
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: openCV,adb,screencap,android,bot,video,streaming
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst


### Grab screenshots from ADB's screencap and process them right away



```python

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')

    break #if you break out of the loop, stop capturing 

    

bilder.kill_screencap()



```



