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

有没有好的,简单的办法保证打印出来的结果也是有序的? #45

Open
UApocalypse opened this issue May 9, 2024 · 3 comments

Comments

@UApocalypse
Copy link

作者用队列来管理后处理后的img,但是如果要将处理结果打印出来,无法保证结果和图片顺序一致

@leafqycc
Copy link
Owner

作者用队列来管理后处理后的img,但是如果要将处理结果打印出来,无法保证结果和图片顺序一致

您可以修改返回值,把处理结果和图片写进一个struct里面,然后在主线程打印就好了

@UApocalypse
Copy link
Author

UApocalypse commented May 13, 2024

我的做法是

struct trans
{
    cv::Mat img;
    int x1,x2,y1,y2;
}
 rknnPool<rkYolov5,trans,trans>testPool;

@wycrystal
Copy link

我的做法是

struct trans
{
    cv::Mat img;
    int x1,x2,y1,y2;
}
 rknnPool<rkYolov5,trans,trans>testPool;

请问你这样修改后满足需求了吗?程序性能会有影响吗?

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

3 participants