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

大佬求助,你那个test_model.cpp怎么运行?弄了1天没弄出来 #2

Open
Lightwingy opened this issue May 22, 2019 · 8 comments

Comments

@Lightwingy
Copy link

No description provided.

@Feeyao
Copy link
Owner

Feeyao commented Jun 10, 2019

@Lightwingy 具体什么错误? 使用Windows还是linux?

@Feeyao
Copy link
Owner

Feeyao commented Jun 10, 2019

@Lightwingy 编译出yolo_cpp_lib对应工程的动态库.

@Lightwingy
Copy link
Author

windows下

@Lightwingy
Copy link
Author

test_model.cpp的103行编译时显示出错,std::vector<bbox_t> box = detect->detect(image, 0.7f),显示无法把Mat类型转换为image_t类型

@Lightwingy
Copy link
Author

image

@Feeyao
Copy link
Owner

Feeyao commented Jun 11, 2019

@Lightwingy 缺少OPENCV宏定义, 在yolo_v2_cpp.hpp里面可以看到需要宏定义.
image
image

@Lightwingy
Copy link
Author

Lightwingy commented Jun 12, 2019

谢谢大佬,现在编译成功了,但是在命令行运行显示打不开文件,各文件路径应该没问题,大佬再帮忙看看
image

@Feeyao
Copy link
Owner

Feeyao commented Jun 13, 2019

@Lightwingy 输出文件名乱码? 你试一下转成const char*打印一下路径.
std::cout << files[index].c_str() << std::endl;

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

2 participants