Python argument types did not match C++ signature
问题
我佛了,我的博客访问也太慢了吧。
dlib在windows下兼容性不好,不过也不是不能用。
1 | Boost.Python.ArgumentError: Python argument types in |
一路定位
1 | def _css_to_rect(css): |
把return dlib.rectangle(css[3], css[0], css[1], css[2])
改成return dlib.rectangle(int(css[3]), int(css[0]), int(css[1]), int(css[2]))
问题解决
Python argument types did not match C++ signature