Open liuchenchn opened 6 years ago
main in the sample is looking for command-line arguments. if you want to set the path via code and remove the arguments you can can modify the following code section...
original
int main(int argc, char** argv) {
if (argc < 3) {
cout << "Usage: " << argv[0]
<< " image_path model_path"
<< endl;
return -1;
}
const char* img_path = argv[1];
seeta::FaceDetection detector(argv[2]);
modified
int main() {
const char* img_path = "C:/0_1_1.jpg";
const char* model_path = "C:/seeta_fd_frontal_v1.0.bin";
seeta::FaceDetection detector(model_path);
根据github上下载的源代码,里面有个seetaface配置的word文档, 里面有个步骤:修改实际情况模型地址和图片地址 const char model_path"J:/seetface/FaceDetection/Models/seeta_fd_frontal_v1.0.bin" const char img_path"J:/seetface/FaceDetection/data/0-1_1.jpg" 我在face_detection_test不清楚该怎么修改 烦请指导下