gengyanlei / fire-smoke-detect-yolov4

fire-smoke-detect-yolov4-yolov5 and fire-smoke-detection-dataset 火灾检测,烟雾检测
MIT License
1.21k stars 299 forks source link

OSError: libopencv_core.so.2.4: cannot open shared object file: No such file or directory #11

Closed lws6885 closed 3 years ago

lws6885 commented 3 years ago

当我调用latest_darknet_API.py进行推理时,报如下错误:OSError: libopencv_core.so.2.4: cannot open shared object file: No such file or directory.请问怎么解决

gengyanlei commented 3 years ago

@lws6885 apt-get install libopencv-dev 安装即可

April4lu commented 3 years ago

执行apt-get install libopencv-dev之后安装的是最新版本,并提示”libopencv-dev is already the newest version (3.2.0+dfsg-4ubuntu0.1).“

所以还是报错OSError: libopencv_core.so.2.4: cannot open shared object file: No such file or directory