v2026.2.1
All Bundles

Image

OpenCV image

Operations

Bytes

Gets image bytes

method : public : Bytes() ~ Byte[]

Return

TypeDescription
Byteimage bytes

Columns

Gets image columns

method : public : Columns() ~ Int

Return

TypeDescription
Intimage columns

Convert

Convert an image to a given byte format

method : public : Convert(format:Image->Format) ~ Byte[]

Parameters

NameTypeDescription
formatImage->Formatoutput format

Return

TypeDescription
Byteconverted image bytes

DrawCircle

Draws a bounding circle

method : public : DrawCircle(pt:Point, radius:Int, color:Scalar, thickness:Int, type:LineType) ~ API.OpenCV.Image

Parameters

NameTypeDescription
ptPointcircle center
radiusIntcircle radius
colorScalarbounding circle color
thicknessIntbounding circle thickness
typeLineTypebounding circle type

Return

TypeDescription
Imageupdated image

DrawRectangle

Draws a bounding rectangle

method : public : DrawRectangle(rect:Rect, color:Scalar, thickness:Int, type:LineType) ~ API.OpenCV.Image

Parameters

NameTypeDescription
rectRectbounding rectangle
colorScalarbounding rectangle color
thicknessIntbounding rectangle thickness
typeLineTypebounding rectangle type

Return

TypeDescription
Imageupdated image

DrawText

Draws text on an image

method : public : DrawText(text:String, font:Font, color:Scalar, thickness:Int, type:LineType) ~ API.OpenCV.Image

Parameters

NameTypeDescription
textStringtext to draw
fontFonttext font
colorScalarbounding circle color
thicknessIntbounding circle thickness
typeLineTypebounding circle type

Return

TypeDescription
Imageupdated image

IsEmpty

Determines if an image is empty

method : public : IsEmpty() ~ Bool

Return

TypeDescription
Booltrue if empty, false otherwise

Load

Load image from file

function : Load(image_path:String) ~ API.OpenCV.Image

Parameters

NameTypeDescription
image_pathStringimage file path

Return

TypeDescription
Imageloaded image

Load

Load image from bytes

function : Load() ~ API.OpenCV.Image

Parameters

NameTypeDescription

Return

TypeDescription
Imageloaded image

Resize

Resizes an image

method : public : Resize(sz:Size, fx:Float, fy:Float, interpolation:InterpolationFlags) ~ API.OpenCV.Image

Parameters

NameTypeDescription
szSizeimage size
fxFloatx-scale factor
fyFloaty-scale factor
interpolationInterpolationFlagsfilling missing pixels method

Return

TypeDescription
Imageupdated image

Resize

Resizes an image

method : public : Resize(fx:Float, fy:Float, interpolation:InterpolationFlags) ~ API.OpenCV.Image

Parameters

NameTypeDescription
fxFloatx-scale factor
fyFloaty-scale factor
interpolationInterpolationFlagsfilling missing pixels method

Return

TypeDescription
Imageupdated image

Resize

Resizes an image

method : public : Resize(f:Float, ) ~ API.OpenCV.Image

Parameters

NameTypeDescription
fFloatscale factor

Return

TypeDescription
Imageupdated image

Rows

Gets image rows

method : public : Rows() ~ Int

Return

TypeDescription
Intimage rows

Show

Shows an image

method : public : Show(title:String) ~ Nil

Parameters

NameTypeDescription
titleStringdialog title

Show

Shows an image

method : public : Show(title:String, scale:Float) ~ Nil

Parameters

NameTypeDescription
titleStringdialog title
scaleFloatscaling percentage

Show

Shows an image

method : public : Show(title:String, scale:Float, ) ~ Nil

Parameters

NameTypeDescription
titleStringdialog title
scaleFloatscaling percentage

Size

Gets image size

method : public : Size() ~ Int

Return

TypeDescription
Intimage size

Type

Gets image type

method : public : Type() ~ Int

Return

TypeDescription
Intimage type