1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 14:27:00 +08:00

Fix: Locking scrcpy screenshot and control

This commit is contained in:
LmeSzinc
2022-12-29 18:20:09 +08:00
parent 89af9a60a8
commit b3d8fd4f1a
2 changed files with 40 additions and 37 deletions

View File

@@ -192,6 +192,7 @@ class ScrcpyCore(Connection):
for packet in packets:
frames = codec.decode(packet)
for frame in frames:
# logger.info('frame received')
frame = frame.to_ndarray(format="rgb24")
self._scrcpy_last_frame = frame
self._scrcpy_last_frame_time = time.time()