airtest.core.android.cap_methods.adbcap module

class AdbCap(adb, *args, **kwargs)[源代码]

基类:BaseCap

get_frame_from_stream()[源代码]

Get a frame of the current screen from the mobile screen stream

从手机画面流中,获取一张当前屏幕截图

Returns: frame_data

snapshot(ensure_orientation=True)[源代码]

Take a screenshot and convert it into a cv2 image object

获取一张屏幕截图,并转化成cv2的图像对象

Returns: numpy.ndarray