Skip to main content
Version: 0.10.0

Function: quadSize()

quadSize(ordered): object

Defined in: extensions/cv/ops/quad.ts:105

Computes the width and height (in pixels) of an ordered TL,TR,BR,BL quad, taking the longer of each pair of opposite sides.

Parameters​

ordered​

Quad

The quad corners ordered TL, TR, BR, BL.

Returns​

object

The quad's width and height in pixels.

height​

height: number

width​

width: number