MaaFw 2.1.0a2__py3-none-manylinux2014_aarch64.whl → 2.1.0b2__py3-none-manylinux2014_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of MaaFw might be problematic. Click here for more details.
- {MaaFw-2.1.0a2.dist-info → MaaFw-2.1.0b2.dist-info}/METADATA +1 -1
- {MaaFw-2.1.0a2.dist-info → MaaFw-2.1.0b2.dist-info}/RECORD +13 -13
- maa/bin/libMaaAdbControlUnit.so +0 -0
- maa/bin/libMaaDbgControlUnit.so +0 -0
- maa/bin/libMaaFramework.so +0 -0
- maa/bin/libMaaToolkit.so +0 -0
- maa/bin/libMaaUtils.so +0 -0
- maa/controller.py +3 -3
- maa/define.py +15 -3
- maa/resource.py +21 -12
- {MaaFw-2.1.0a2.dist-info → MaaFw-2.1.0b2.dist-info}/LICENSE.md +0 -0
- {MaaFw-2.1.0a2.dist-info → MaaFw-2.1.0b2.dist-info}/WHEEL +0 -0
- {MaaFw-2.1.0a2.dist-info → MaaFw-2.1.0b2.dist-info}/top_level.txt +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
maa/__init__.py,sha256=rBIC5X_VsfFXOMJRdKjgDyO428XHgeWAT3t6ZYmqO1M,207
|
|
2
2
|
maa/buffer.py,sha256=E0tuasXPm6A_4r22PGSwObgGXb2qCMJrT5yrAvcgk6I,17424
|
|
3
3
|
maa/context.py,sha256=Y71T92tIAGq6x8bJfYX8emUPEmPUA7nhnWgqOHh390E,5722
|
|
4
|
-
maa/controller.py,sha256=
|
|
4
|
+
maa/controller.py,sha256=BpAotY8qlxLSKU0ZO249YDhJWU35B5avnwCTE5PxItQ,22160
|
|
5
5
|
maa/custom_action.py,sha256=pqPjDK7nVkGL8fceJadwb7IkeGjYc2X8RaXZOnVZXQs,2527
|
|
6
6
|
maa/custom_recognition.py,sha256=Y3Asdgb19YZioOVZZVs_hLSW6uBg7WDZDQPR2XfZpFU,3087
|
|
7
|
-
maa/define.py,sha256=
|
|
7
|
+
maa/define.py,sha256=nFPEOa7asyf4UG9kkeQrQaarXWbN0w-tSHoQWdZi_4s,11032
|
|
8
8
|
maa/job.py,sha256=Vj6q3sFPlmo260mxJWBnPuO2oT2LdZ-92vdDvrqBZYU,1777
|
|
9
9
|
maa/library.py,sha256=nDTBUFC6_91gmyy8SfkTTccMZET9XGU8IxvuVUEwQ6E,2099
|
|
10
10
|
maa/notification_handler.py,sha256=HtGmTFgTj7ibTdAIVNr5-LBn38trv_j6beHvYXUVFeg,5172
|
|
11
|
-
maa/resource.py,sha256=
|
|
11
|
+
maa/resource.py,sha256=bvS02sCCS9DRw_zJZeyCk8_DrZry6KBlUIvcfpKoUIg,8243
|
|
12
12
|
maa/tasker.py,sha256=6FOzU-PxWSA0dK8vEmiPVaJThvUMwNDi6EC6V-TcQmM,14758
|
|
13
13
|
maa/toolkit.py,sha256=TlF8MoaGcWLklpISIlQNvc_rpTFBFrpDbLgctfQ_zqo,11325
|
|
14
|
-
maa/bin/libMaaAdbControlUnit.so,sha256=
|
|
15
|
-
maa/bin/libMaaDbgControlUnit.so,sha256=
|
|
16
|
-
maa/bin/libMaaFramework.so,sha256=
|
|
17
|
-
maa/bin/libMaaToolkit.so,sha256=
|
|
18
|
-
maa/bin/libMaaUtils.so,sha256=
|
|
14
|
+
maa/bin/libMaaAdbControlUnit.so,sha256=lWwm86l_WZK_CvDejJ5-Qpkj8GOYBzDt1TYF8EESY1E,1308640
|
|
15
|
+
maa/bin/libMaaDbgControlUnit.so,sha256=oWna5YVxgB-meH8FmXFWMn0ILiXwHUjB_SsddN_1P_g,527664
|
|
16
|
+
maa/bin/libMaaFramework.so,sha256=X8iAxflntXoxlMyOMXMNGw0Vggwvtt9_slnJSkxEVnU,2985408
|
|
17
|
+
maa/bin/libMaaToolkit.so,sha256=qxWFMcwtedlpUo3I9R5JXfvEjeuTT4O1JF2H5d8d2pU,1081408
|
|
18
|
+
maa/bin/libMaaUtils.so,sha256=m-drwXwo7OBSF5HOYpihfCMVDBAAyYuii2OChbqVjTg,757792
|
|
19
19
|
maa/bin/libfastdeploy_ppocr.so,sha256=e_cPI8eDzIBu7pWrReLiEHHMC-7Q6uPMpMQwJw99yQo,4731560
|
|
20
20
|
maa/bin/libonnxruntime.so.1.18.0,sha256=eePv9_XKAWTo6zlxPvKhBMRMwqFs4cN4AHlTLjCD4TQ,14959080
|
|
21
21
|
maa/bin/libopencv_world4.so.408,sha256=nrYHgovOjzzohoq-49mEmpzPDbFN_QpC26YiGVvenrg,15547304
|
|
22
|
-
MaaFw-2.1.
|
|
23
|
-
MaaFw-2.1.
|
|
24
|
-
MaaFw-2.1.
|
|
25
|
-
MaaFw-2.1.
|
|
26
|
-
MaaFw-2.1.
|
|
22
|
+
MaaFw-2.1.0b2.dist-info/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
|
|
23
|
+
MaaFw-2.1.0b2.dist-info/METADATA,sha256=Mjl4tQaNLNTD7mh1GiJaYHE_MgUcejnuzuutaN8tUNs,9430
|
|
24
|
+
MaaFw-2.1.0b2.dist-info/WHEEL,sha256=HxD_R31f9WqJb85hTzAIBJCkCnLjkdvoCB6zAidtCng,107
|
|
25
|
+
MaaFw-2.1.0b2.dist-info/top_level.txt,sha256=G8r2L__aYaMq4S3R70G6NsfEROiVp08kUcWvATzk2J8,4
|
|
26
|
+
MaaFw-2.1.0b2.dist-info/RECORD,,
|
maa/bin/libMaaAdbControlUnit.so
CHANGED
|
Binary file
|
maa/bin/libMaaDbgControlUnit.so
CHANGED
|
Binary file
|
maa/bin/libMaaFramework.so
CHANGED
|
Binary file
|
maa/bin/libMaaToolkit.so
CHANGED
|
Binary file
|
maa/bin/libMaaUtils.so
CHANGED
|
Binary file
|
maa/controller.py
CHANGED
|
@@ -76,9 +76,9 @@ class Controller:
|
|
|
76
76
|
)
|
|
77
77
|
return self._gen_ctrl_job(ctrl_id)
|
|
78
78
|
|
|
79
|
-
def post_stop_app(self,
|
|
79
|
+
def post_stop_app(self, intent: str) -> Job:
|
|
80
80
|
ctrl_id = Library.framework.MaaControllerPostStopApp(
|
|
81
|
-
self._handle,
|
|
81
|
+
self._handle, intent.encode()
|
|
82
82
|
)
|
|
83
83
|
return self._gen_ctrl_job(ctrl_id)
|
|
84
84
|
|
|
@@ -98,7 +98,7 @@ class Controller:
|
|
|
98
98
|
)
|
|
99
99
|
return self._gen_ctrl_job(ctrl_id)
|
|
100
100
|
|
|
101
|
-
def post_touch_up(self,
|
|
101
|
+
def post_touch_up(self, contact: int = 0) -> Job:
|
|
102
102
|
ctrl_id = Library.framework.MaaControllerPostTouchUp(self._handle, contact)
|
|
103
103
|
return self._gen_ctrl_job(ctrl_id)
|
|
104
104
|
|
maa/define.py
CHANGED
|
@@ -105,13 +105,25 @@ class MaaCtrlOptionEnum:
|
|
|
105
105
|
Recording = 5
|
|
106
106
|
|
|
107
107
|
|
|
108
|
+
# enum MaaInferenceDeviceEnum
|
|
109
|
+
# {
|
|
110
|
+
# MaaInferenceDevice_CPU = -2,
|
|
111
|
+
# MaaInferenceDevice_Auto = -1,
|
|
112
|
+
# MaaInferenceDevice_GPU0 = 0,
|
|
113
|
+
# MaaInferenceDevice_GPU1 = 1,
|
|
114
|
+
# // and more gpu id...
|
|
115
|
+
# };
|
|
116
|
+
MaaInferenceDevice = ctypes.c_int32
|
|
117
|
+
|
|
108
118
|
class MaaResOptionEnum:
|
|
109
119
|
Invalid = 0
|
|
110
120
|
|
|
111
|
-
# Use the specified inference device
|
|
121
|
+
# Use the specified inference device.
|
|
112
122
|
# Please set this option before loading the model.
|
|
113
|
-
#
|
|
114
|
-
|
|
123
|
+
#
|
|
124
|
+
# value: MaaInferenceDevice, eg: 0; val_size: sizeof(MaaInferenceDevice)
|
|
125
|
+
# default value is MaaInferenceDevice_Auto
|
|
126
|
+
InferenceDevice = 1
|
|
115
127
|
|
|
116
128
|
|
|
117
129
|
MaaAdbScreencapMethod = ctypes.c_uint64
|
maa/resource.py
CHANGED
|
@@ -60,20 +60,18 @@ class Resource:
|
|
|
60
60
|
def clear(self) -> bool:
|
|
61
61
|
return bool(Library.framework.MaaResourceClear(self._handle))
|
|
62
62
|
|
|
63
|
-
def set_gpu(self,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
self._handle,
|
|
68
|
-
MaaResOptionEnum.GpuId,
|
|
69
|
-
ctypes.pointer(cint),
|
|
70
|
-
ctypes.sizeof(ctypes.c_int32),
|
|
71
|
-
)
|
|
72
|
-
)
|
|
63
|
+
def set_gpu(self, gpu_id: int) -> bool:
|
|
64
|
+
if gpu_id < 0:
|
|
65
|
+
return False
|
|
66
|
+
return self.set_inference_device(gpu_id)
|
|
73
67
|
|
|
74
68
|
def set_cpu(self) -> bool:
|
|
75
|
-
|
|
76
|
-
return self.
|
|
69
|
+
MaaInferenceDevice_CPU = -2
|
|
70
|
+
return self.set_inference_device(MaaInferenceDevice_CPU)
|
|
71
|
+
|
|
72
|
+
def set_auto_device(self) -> bool:
|
|
73
|
+
MaaInferenceDevice_Auto = -1
|
|
74
|
+
return self.set_inference_device(MaaInferenceDevice_Auto)
|
|
77
75
|
|
|
78
76
|
def register_custom_recognition(
|
|
79
77
|
self, name: str, recognition: "CustomRecognition" # type: ignore
|
|
@@ -151,6 +149,17 @@ class Resource:
|
|
|
151
149
|
|
|
152
150
|
### private ###
|
|
153
151
|
|
|
152
|
+
def set_inference_device(self, device_id: int) -> bool:
|
|
153
|
+
cint = ctypes.c_int32(device_id)
|
|
154
|
+
return bool(
|
|
155
|
+
Library.framework.MaaResourceSetOption(
|
|
156
|
+
self._handle,
|
|
157
|
+
MaaResOptionEnum.InferenceDevice,
|
|
158
|
+
ctypes.pointer(cint),
|
|
159
|
+
ctypes.sizeof(ctypes.c_int32),
|
|
160
|
+
)
|
|
161
|
+
)
|
|
162
|
+
|
|
154
163
|
def _status(self, id: int) -> ctypes.c_int32:
|
|
155
164
|
return Library.framework.MaaResourceStatus(self._handle, id)
|
|
156
165
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|