Darknet: How to install opencv to work with makefile?

Created on 5 May 2020  路  4Comments  路  Source: AlexeyAB/darknet

I see that opencv that I installed through "conda" could not be recognized by "make".
According to AlexeyAB"s guide, "use your preferred package manager (brew, apt), build from source using vcpkg or download from OpenCV official site".
Doesn't installing by a virtual env like conda do the same thing?
I am really confused how should make it work!
Screenshot from 2020-05-04 16-41-18
Screenshot from 2020-05-04 16-41-42

I also followed opencv guide (https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html) to install opencv inaide darknet-master directory but it didnt work at the last steps as below
Screenshot from 2020-05-04 19-26-25

Most helpful comment

opencv in conda is for python.

for darknet, you can use:

apt update
apt install libopencv-dev

All 4 comments

opencv in conda is for python.

for darknet, you can use:

apt update
apt install libopencv-dev

@WongKinYiu
Thanks for your response. I tried this way to install openscv:
sudo apt-get update
sudo apt-get install libopencv-dev
And it was installed successfully.
but then when I wanted to compile by "make"/ make -j4
I got this error:
1

try

make clean
make -j4

@WongKinYiu
Actually it finally worked. Those commands were correct. I did "make" inside "darknet-master" and I got opencv working :+1:
2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HilmiK picture HilmiK  路  3Comments

kebundsc picture kebundsc  路  3Comments

louisondumont picture louisondumont  路  3Comments

zihaozhang9 picture zihaozhang9  路  3Comments

rezaabdullah picture rezaabdullah  路  3Comments