blace.ai
Loading...
Searching...
No Matches
blace::ops::DrawRectangles Class Reference

#include <public_ops.h>

Inheritance diagram for blace::ops::DrawRectangles:

Public Member Functions

 DrawRectangles (blace::ops::OpP img, blace::ops::OpP bounding_boxes, int r, int g, int b, int thickness)
 

Detailed Description

Constructs an operator to draw rectangles. Rectangles must come in format Bx4.

Constructor & Destructor Documentation

◆ DrawRectangles()

blace::ops::DrawRectangles::DrawRectangles ( blace::ops::OpP  img,
blace::ops::OpP  bounding_boxes,
int  r,
int  g,
int  b,
int  thickness 
)

Constructs a rectangle-drawing operator.

Parameters
imgThe img to draw the rectangles onto.
bounding_boxesNode containing the rectangles, shape Bx4.
rRed part of the color, 0-255.
gGreen part of the color, 0-255.
bBlue part of the color, 0-255.
thicknessThickness of the lines in pixels.