no opencv bad opencv

This commit is contained in:
Joseph Redmon 2018-03-15 15:40:09 -07:00
parent 0f110834f4
commit e31c50127e
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
GPU=1 GPU=1
CUDNN=1 CUDNN=1
OPENCV=1 OPENCV=0
OPENMP=1 OPENMP=1
DEBUG=0 DEBUG=0

View File

@ -624,6 +624,7 @@ void test_detector(char *datacfg, char *cfgfile, char *weightfile, char *filenam
void censor_detector(char *datacfg, char *cfgfile, char *weightfile, int cam_index, const char *filename, int class, float thresh, int skip) void censor_detector(char *datacfg, char *cfgfile, char *weightfile, int cam_index, const char *filename, int class, float thresh, int skip)
{ {
#ifdef OPENCV
image **alphabet = load_alphabet(); image **alphabet = load_alphabet();
char *base = basecfg(cfgfile); char *base = basecfg(cfgfile);
network *net = load_network(cfgfile, weightfile, 0); network *net = load_network(cfgfile, weightfile, 0);
@ -702,10 +703,12 @@ void censor_detector(char *datacfg, char *cfgfile, char *weightfile, int cam_ind
free_image(in); free_image(in);
} }
} }
#endif
} }
void extract_detector(char *datacfg, char *cfgfile, char *weightfile, int cam_index, const char *filename, int class, float thresh, int skip) void extract_detector(char *datacfg, char *cfgfile, char *weightfile, int cam_index, const char *filename, int class, float thresh, int skip)
{ {
#ifdef OPENCV
image **alphabet = load_alphabet(); image **alphabet = load_alphabet();
char *base = basecfg(cfgfile); char *base = basecfg(cfgfile);
network *net = load_network(cfgfile, weightfile, 0); network *net = load_network(cfgfile, weightfile, 0);
@ -790,6 +793,7 @@ void extract_detector(char *datacfg, char *cfgfile, char *weightfile, int cam_in
free_image(in); free_image(in);
} }
} }
#endif
} }
/* /*

View File

@ -94,7 +94,6 @@ void test_super(char *cfgfile, char *weightfile, char *filename)
printf("%s: Predicted in %f seconds.\n", input, sec(clock()-time)); printf("%s: Predicted in %f seconds.\n", input, sec(clock()-time));
save_image(out, "out"); save_image(out, "out");
show_image(out, "out"); show_image(out, "out");
cvWaitKey(0);
free_image(im); free_image(im);
if (filename) break; if (filename) break;