v2026.6.4
All Bundles
Bundle OpenCV computer vision library. Image supports loading, saving, resizing, color conversion, blurring, edge detection, cropping, and drawing. VideoCapture reads from files or camera streams. Compile with -lib opencv.

Rect

OpenCV rectangle

Inherits: Point

Operations

GetHeight #

Get height

method : public : GetHeight() ~ Int

Return

TypeDescription
Intheight

GetWidth #

Get width

method : public : GetWidth() ~ Int

Return

TypeDescription
Intwidth

New # constructor

Constructor

New(x:Int, y:Int, width:Int, height:Int)

Parameters

NameTypeDescription
xIntx-position
yInty-position
widthIntwidth
heightIntheight

ToJson #

JSON representation

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON representation