Skip to content

raisim::CocoImage ​

struct · #include <raisim/sensors/GroundTruthIo.hpp>

One image of a COCO detection file with its annotations.

Public attributes ​

id ​

cpp
int64_t id

Image id.

fileName ​

cpp
std::string fileName

Image file name.

width ​

cpp
int width

Image width in pixels.

height ​

cpp
int height

Image height in pixels.

boxes ​

cpp
std::vector<BoundingBox2D> boxes

One annotation per box: bbox [xMin, yMin, xMax - xMin, yMax - yMin], area = visiblePixels, category_id = label, iscrowd 0, plus raisim_object_id and raisim_body_id.

masks ​

cpp
std::vector<CocoRle> masks

Instance masks, one per box (the annotation's segmentation), or empty for none.

RaiSim — physics for robotics and AI.