Cuboid3D¶
-
class
scenebox.models.annotation.
Cuboid3D
(label=None, uid=None, confidence=None, attributes=None, tl1=None, bl1=None, tr1=None, br1=None, tl2=None, bl2=None, tr2=None, br2=None, category_id=None)¶ Holds the coordinates and metadata of a Cuboid in three-dimension.
Several Cuboids can be compiled together to form a Cuboid3DAnnotation. Cuboids are made of two squares specifying the front and back of the object. Connecting lines are drawn between the vertices of the squares to form a cuboid.
(tl2)———o(tr2)
/.|…………/.|
o(tl1)———o(tr1) |..o(bl2)------|–o(br2) |./............|./ |/.............|/ o(bl1)——–o(br1)
- Variables:
tl1 – Top left coordinate of the front square.
bl1 – Bottom left coordinate of the front square.
tr1 – Top right coordinate of the front square.
br1 – Bottom right coordinate of the front square.
tl2 – Top left coordinate of the back square.
bl2 – Bottom left coordinate of the back square.
tr2 – Top right coordinate of the back square.
br2 – Bottom right coordinate of the back square.
label – Name of the cuboid.
category_id – Label category ID.
confidence – Labelling confidence. Must be between 0 and 1.
attributes – Additional cuboid metadata.