Signed-off-by: kevin <wuwenfengmi@outlook.com>
This commit is contained in:
kevin
2023-09-20 11:22:07 +08:00
parent dda2ca4a6a
commit 3761ff8636
4 changed files with 54 additions and 4 deletions
+1
View File
@@ -2,3 +2,4 @@
build build
database database
dist dist
temp.png
+7 -3
View File
@@ -260,10 +260,14 @@ while while_loop:
text_draw = ImageDraw.Draw(image) text_draw = ImageDraw.Draw(image)
text_draw.text((x_position, y_position), FeatureByte, fill=text_color, font=font) text_draw.text((x_position, y_position), FeatureByte, fill=text_color, font=font)
# 保存生成的图像 # 保存生成的图像
image.save("database/"+sn+".png") filename="database/"+sn+".png"
image.save(filename)
#try print
pilfile=Image.open(filename)
pilfile.show()
# 显示图像(可选)
image.show()
except: except:
print("Data Error") print("Data Error")
+45
View File
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['begin.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='begin',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['logo.ico'],
)
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB