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

有没有什么办法把最后输出的box转换成VOC数据集里的xmax,ymax,ymin,xmin那样的格式? #85

Open
xudong321p opened this issue Apr 23, 2020 · 1 comment

Comments

@xudong321p
Copy link

xudong321p commented Apr 23, 2020

大佬好,本人新手,请问下有没有办法把detect_box resize图片后输出的box转换成训练用的VOC数据集的xmax,ymax,xin,ymin格式?

@xudong321p xudong321p changed the title 有没有什么办法得知detect_box resize图片后输出的box的xy值对应resize前的值? 有没有什么办法把最后输出的box转换成VOC数据集里的xmax,ymax,ymin,xmin那样的格式? Apr 24, 2020
@chenliang2014
Copy link

xmin = min(box[0::2])
xmax = max(box[0::2])
ymin = min(box[1::2])
ymax = max(box[1::2])

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