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

Update detection.md #1613

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Update detection.md #1613

wants to merge 1 commit into from

Conversation

lilxmx
Copy link

@lilxmx lilxmx commented Oct 6, 2022

Update the API_predict's returned infomation. the returned box‘s should be Lower left coordinate

文档修改

文档修改:测试发现predict预测方法返回的预测框的坐标为左下角坐标,文档中为左上角坐标

Update the API_predict's returned infomation. the returned box‘s should be Lower left coordinate
@CLAassistant
Copy link

CLAassistant commented Oct 6, 2022

CLA assistant check
All committers have signed the CLA.

@jiangjiajun
Copy link
Collaborator

嗯?应该是左上角哦

@lilxmx
Copy link
Author

lilxmx commented Oct 8, 2022

ict预测方法返回的预测框的坐标为左下角坐标,文档中为左上角坐标

  1. 在百度松果菁英班的的安全帽检测实验中,要求返回 xmin ymin xmax ymax ,paddlex的result返回结果需要按照左下角坐标转换方式才正确
    image

  2. https://github.com/PaddlePaddle/PaddleX/blob/develop/paddlex/cv/models/utils/visualize.py#L25 paddlex自带绘图方法中也是按照左下角坐标做的转化吧?
    image

嗯?应该是左上角哦

@jiangjiajun
Copy link
Collaborator

在图像的坐标轴中,(0, 0)即为左上角左标, (w, h)即为右下角坐标

@lilxmx
Copy link
Author

lilxmx commented Oct 9, 2022

(0, 0)即为左上角左标, (w, h)即为右下角

可是在paddlex自带的绘图方法中,predict返回bbox的前两个为xmin,ymin,若这两个视为左上角坐标,右下角坐标应该是xmin+w,ymin-h。可是方法里好像不是这样写的吧

@jiangjiajun
Copy link
Collaborator

左上角为0, 0, 右下角坐标应该是 0 + w, 0 + h,也就是上面代码的写法

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

Successfully merging this pull request may close these issues.

None yet

4 participants