0
votes

I want to build YOLO in ubuntu 16.04 with opencv. I install opencv with

sudo apt-get install libopencv-dev

However when I run make I get

./src/image.c:509:29: error: unknown type name 'CvCapture'

image get_image_from_stream(CvCapture *cap)

Note that I can successfully build without opencv.(Sorry for my poor English).

How can I solve it?

1

1 Answers

0
votes

You'd better refer to this link. Add the following header file inside #ifdef OPENCV blocks of those files.

#include "opencv2/videoio/videoio_c.h"