优化神经网络,缩减模型大小

This commit is contained in:
2025-03-28 18:07:58 +08:00
parent 2ad08423ce
commit a587bd804e
13 changed files with 91 additions and 69 deletions

View File

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