mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Merge branch 'yolov3' of https://github.com/danielgordon10/darknet into yolov3
This commit is contained in:
commit
2e251da027
@ -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)
|
||||
{
|
||||
#ifdef OPENCV
|
||||
image **alphabet = load_alphabet();
|
||||
char *base = basecfg(cfgfile);
|
||||
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);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
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();
|
||||
char *base = basecfg(cfgfile);
|
||||
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);
|
||||
}
|
||||
}
|
||||
#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));
|
||||
save_image(out, "out");
|
||||
show_image(out, "out");
|
||||
cvWaitKey(0);
|
||||
|
||||
free_image(im);
|
||||
if (filename) break;
|
||||
|
Loading…
Reference in New Issue
Block a user