Giter VIP home page Giter VIP logo

Comments (3)

ZeroE04 avatar ZeroE04 commented on July 21, 2024

Dear @ZeroE04 ,
Thank you for sharing your work.
I am not clear about the bbox annotation of your dataset. I guess it is in xc, yc, w, h, ang, but I do not know how w, h are measured, parallel to the image coordinates or from the cv2.minAreaRect?

def coco_box_to_bbox(box):

For my dataset

     rect = cv2.minAreaRect(hull)
     xc, yc = rect[0][0], rect[0][1]
     w, h = rect[1][0], rect[1][1]
     angle = rect[2]
     angle = ange_to_0_180(angle)
     rbbox = [xc, yc, w, h, angle]

So, with my bbox annotation, I do not have to use the coco_box_to_bbox function right?
Thank for your time.

I'm very sorry to hear from you so late.
For the concept of w and h, please refer to the original project of CenterNet:
https://github.com/xingyizhou/centernet

and, i am push the labelGenerator of this work, you can have a look, good luck for you!

from r-centernet.

gengyanlei avatar gengyanlei commented on July 21, 2024

这个和opencv版本有关,不同版本的opencv角度定义不一样,需要注意
https://blog.csdn.net/LEILEI18A/article/details/115006688

from r-centernet.

zhaozhiyi11 avatar zhaozhiyi11 commented on July 21, 2024

这个和opencv版本有关,不同版本的opencv角度定义不一样,需要注意
https://blog.csdn.net/LEILEI18A/article/details/115006688

请问博主知道怎样从minAreaRect函数标记的box转换到Rcenternet可用的box

from r-centernet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.