Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大神DLL怎么用 #2

Open
kuqzz opened this issue Oct 6, 2023 · 1 comment
Open

大神DLL怎么用 #2

kuqzz opened this issue Oct 6, 2023 · 1 comment

Comments

@kuqzz
Copy link

kuqzz commented Oct 6, 2023

dllfile = "E:\Desktop\PyScript\DdddOcr.dll"
lib = ctypes.windll.LoadLibrary(dllfile)

with open("test.jpg", 'rb') as img:
	img = img.read()
	img = base64.b64encode(img) 

lib.Init()
result = lib.Classification(img)
print(result)
lib.Close()

返回1912927456 一串数字

@HubaGitHub
Copy link

c_char_p(result).value.decode()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants