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

Win10下使用32-bit python出现ctypes错误 #6

Open
zjuxumang opened this issue Apr 8, 2020 · 0 comments
Open

Win10下使用32-bit python出现ctypes错误 #6

zjuxumang opened this issue Apr 8, 2020 · 0 comments

Comments

@zjuxumang
Copy link

调用cfacedetect_cnn时出现:
ValueError: Procedure probably called with too many arguments (20 bytes in excess)
参考了https://stackoverflow.com/questions/41760830/ctypes-procedure-probably-called-with-too-many-arguments-92-bytes-in-excess
将下面代码中的ctypes.WinDLL改为ctypes.cdll.LoadLibrary可以正常运行

if platform.system() == 'Windows':
    # load .dll for Windows
    LoadDLL = ctypes.WinDLL
else:
    # load lib for Linux, Darwin, etc
    LoadDLL = ctypes.cdll.LoadLibrary

建议增加一个对python环境的检查

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

1 participant