Open anirudh164 opened 5 years ago
Yes it is. You are missing the insallation of opencv. Or the installation is not properly working. What istge output of
pkg-config --cflags opencv
Which linux distro are you using?
I am getting this output - -I/usr/local/include/opencv -I/usr/local/include
I am using Ubuntu 16.04
I've been working with darknet from this repo for the best part of this year with no major problems so far. Recently though I got a new machine and after my ubuntu 18.04 fresh install I could not get darknet to compile with OPENCV=1 (tried compiling opencv 3.4.0, 3.4.4 and 4.0.0 from source to no success).
So far I didn't really need to run it on video for a demo so it wasnt a problem. The solution I found after digging around a bunch was switching to AlexeyAB's repo (https://github.com/AlexeyAB/darknet) and compiling using cmake .
and make
. Problem solved, not a single error, and ./darknet detector demo
works like a charm on FHD and 4K video with opencv and cuda support. Just figured I'd comment on open issues since I finally found a solution that worked for me.
@guischmitd this is not a proper solution as the code here is still somehow broken.
@vfbsilva I agree, just wanted to register a possible alternative to anyone facing issues with this repo. If you believe this clutters the issues page I can delete my comment, maybe stackoverflow is a better channel for this sort of "solution".
@guischmitd I might have sounded pedant so I will rephrase. This is the original repo afaik, AlexeyAB is an amazing addon but if something is broken here we need to fix it here with the help from @pjreddie . @anirudh164 try opencv 3.4.7 to use this repo.
@vfbsilva not at all! I'm pretty new to github as a member of the community, still getting used to the etiquette. Thanks for the heads up anyway!
So I am new to deep learning and all but for now the issue I am encountering is when I open my darknet folder, and when I enter make in my terminal. I get this issue -
I am using darknet with OpenCV and not CUDA/GPU
Here is my Makefile -
Somewhere I read the error is due to some OpenCV issue? I am using OpenCV 4.1.0. I dont know what to do. I am using my own dataset.