mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
优化神经网络,缩减模型大小
This commit is contained in:
@@ -2,7 +2,7 @@ import ctypes
|
||||
|
||||
|
||||
def shot(target, width, height):
|
||||
lib = ctypes.CDLL('../shotrdp.dll')
|
||||
lib = ctypes.CDLL('./shotrdp.dll')
|
||||
|
||||
lib.GetScreen.argtypes = [
|
||||
ctypes.c_char_p,
|
||||
@@ -21,7 +21,7 @@ def shot(target, width, height):
|
||||
print(ctypes.string_at(error_ptr).decode())
|
||||
else:
|
||||
result = ctypes.string_at(data, length.value)
|
||||
with open('test.png', 'wb') as f:
|
||||
with open('./screen/0.png', 'wb') as f:
|
||||
f.write(result)
|
||||
|
||||
lib.Free(data)
|
||||
|
||||
Reference in New Issue
Block a user