philipperemy / yolo-9000

YOLO9000: Better, Faster, Stronger - Real-Time Object Detection. 9000 classes!
Apache License 2.0
1.18k stars 309 forks source link

make your own video on Mac OS #32

Closed sophia-wright-blue closed 5 years ago

sophia-wright-blue commented 5 years ago

I'm able to install and run the code and get the output for an image. I tried following the steps in the section "Make your own video! (Ubuntu/Linux)". I'm running the code on a Mac with no GPU support. I have OpenCV already installed (i'm in a conda environment). I changed the line OPENCV=0 to OPENCV=1 in Makefile. I get the following errors:

gcc  -DOPENCV `pkg-config --cflags opencv`  -Wall -Wfatal-errors  -Ofast -DOPENCV -c ./src/gemm.c -o obj/gemm.o
/bin/sh: pkg-config: command not found
gcc  -DOPENCV `pkg-config --cflags opencv`  -Wall -Wfatal-errors  -Ofast -DOPENCV -c ./src/utils.c -o obj/utils.o
/bin/sh: pkg-config: command not found
gcc  -DOPENCV `pkg-config --cflags opencv`  -Wall -Wfatal-errors  -Ofast -DOPENCV -c ./src/cuda.c -o obj/cuda.o
/bin/sh: pkg-config: command not found
gcc  -DOPENCV `pkg-config --cflags opencv`  -Wall -Wfatal-errors  -Ofast -DOPENCV -c ./src/convolutional_layer.c -o obj/convolutional_layer.o
/bin/sh: pkg-config: command not found
gcc  -DOPENCV `pkg-config --cflags opencv`  -Wall -Wfatal-errors  -Ofast -DOPENCV -c ./src/list.c -o obj/list.o
/bin/sh: pkg-config: command not found
gcc  -DOPENCV `pkg-config --cflags opencv`  -Wall -Wfatal-errors  -Ofast -DOPENCV -c ./src/image.c -o obj/image.o
/bin/sh: pkg-config: command not found
./src/image.c:14:10: fatal error: 'opencv2/highgui/highgui_c.h' file not found
#include "opencv2/highgui/highgui_c.h"

Could you please guide me to the correct steps to compile DarkNet with OpenCV support, so I can make my own video on a Mac.

Thanks,

philipperemy commented 5 years ago

@sophia-wright-blue seems to be related to: https://github.com/pjreddie/darknet/issues/265

sophia-wright-blue commented 5 years ago

thank you @philipperemy , that helped.

philipperemy commented 5 years ago

@sophia-wright-blue happy it did