dist/modules/extras/labels/factories.js
/**
     * Create a boundbox from topleft point and size of the box
     * @param topLeft top left point of the box
     * @param size width and height of the box
     */
Create a boundbox from topleft point and size of the box
@param topLeft top left point of the box
@param size width and height of the box
Create a boundbox from topleft point and size of the box @param topLeft top left point of the box @param size width and height of the box
static fromSize(topLeft, size) {
        return {
            type: labels_1.DEFAULT_LABEL_TYPES.boundbox,
            props: {
                xmin: topLeft.x,
                ymin: topLeft.y,
                xmax: topLeft.x + size.width,
                ymax: topLeft.y + size.height
            }
        };
    }
static fromSize ( topLeft , size ) { return { type : labels_1 . DEFAULT_LABEL_TYPES . boundbox , props : { xmin : topLeft . x , ymin : topLeft . y , xmax : topLeft . x + size . width , ymax : topLeft . y + size . height } } ; }
Create a boundbox from topleft point and size of the box
 @param topLeft top left point of the box
 @param size width and height of the box
Create a boundbox from topleft point and size of the box @param topLeft top left point of the box @param size width and height of the box