mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
no opencv bad opencv
This commit is contained in:
parent
0f110834f4
commit
e31c50127e
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
GPU=1
|
GPU=1
|
||||||
CUDNN=1
|
CUDNN=1
|
||||||
OPENCV=1
|
OPENCV=0
|
||||||
OPENMP=1
|
OPENMP=1
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user