Skip to content

RotatedRect

Core and matricestypeOpenCV 5.0.0
import type { RotatedRect } from '@banou/opencv-wasm'

namespace RotatedRect ///////////////////////////// The class represents rotated (i.e. not up-right) rectangles on a plane.

Each rectangle is specified by the center point (mass center), length of each side (represented by #Size2f structure) and the rotation angle in degrees.

The sample below demonstrates how to use RotatedRect:

image

See: CamShift, fitEllipse, minAreaRect, CvBox2D

export type RotatedRect = {
  center: Point2f,
  size: Size2f,
  angle: number
};

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.