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

wrong bbox height and width values on coco kp export for single keypoints #8098

Closed
2 tasks done
CourchesneA opened this issue Jun 27, 2024 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@CourchesneA
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

  1. Create a project
  2. Setup a skeleton with 1 keypoint
  3. Annotate one image with any amount of objects
  4. Export to COCO keypoints 1.0

Expected Behavior

The annotation file should contain bbox information computed from the keypoints. I.e.:

{"id":10,"image_id":1,"category_id":21,"segmentation":[],"area":0.0,"bbox":[1279.65,185.18,111.53,112.85],"iscrowd":0,"attributes":{"occluded":false,"keyframe":false},"keypoints":[1279.65,185.18,2],"num_keypoints":1}

What I get is 0.0,0.0 for bbox width and height

Possible Solution

No response

Context

On CVAT, a bbox is properly displayed around the keypoint. I would expect it to be exported as well, as it is the case when num_keypoints > 1

Environment

- cvat cloud
@CourchesneA CourchesneA added the bug Something isn't working label Jun 27, 2024
@bsekachev
Copy link
Member

Please, refer to my answer in existing issue #6158

@bsekachev
Copy link
Member

A point itself is infinitely small object, it does not have width and height. So, everything is correct in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants