strong@foreverstrong:~/darknet_work/darknet_20190629/darknet$ python image_classification_darknet.py
Traceback (most recent call last):
File "image_classification_darknet.py", line 61, in
lib = CDLL("/libdarknet.so", RTLD_GLOBAL)
File "/usr/lib/python2.7/ctypes/__init__.py", line 362, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /libdarknet.so: cannot open shared object file: No such file or directory
strong@foreverstrong:~/darknet_work/darknet_20190629/darknet$
strong@foreverstrong:~/darknet_work/darknet_20190629/darknet$ ls -l libdarknet.so __init__.py
-rwxrwxrwx 1 strong strong 0 Jul 1 21:10 __init__.py
-rwxrwxr-x 1 strong strong 1757240 Jul 1 21:13 libdarknet.so
strong@foreverstrong:~/darknet_work/darknet_20190629/darknet$
source code
......
# lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
lib = CDLL("/libdarknet.so", RTLD_GLOBAL)
......
yongqiang cheng
......
# lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
lib = CDLL("./libdarknet.so", RTLD_GLOBAL)
......