Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改实际情况模型地址和图片地址的路径问题 #193

Open
liuchenchn opened this issue Apr 16, 2018 · 1 comment
Open

修改实际情况模型地址和图片地址的路径问题 #193

liuchenchn opened this issue Apr 16, 2018 · 1 comment

Comments

@liuchenchn
Copy link

根据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不清楚该怎么修改
烦请指导下

@ghost
Copy link

ghost commented Aug 5, 2018

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant