Options
显示所有项
  • 仅显示公有项
  • 显示保护/公有项
  • 显示所有项
Menu

@autojs/opencv模块

Auto.js Pro 9将opencv4nodejs迁移到了内置模块@autojs/opencv。你可以像使用opencv4nodejs模块一样使用它而无需用npm i安装。

本模块比较重要的类有MatRect, Point等。

有关opencv4nodejs的更多文档参见:

  1. OpenCV 4.5.1文档OpenCV Mat
  2. opencv4nodejs Quick Start
  3. opencv4nodejs docs

由于OpenCV本身的内容比较庞大,不太可能将OpenCV的文档翻译并迁移到这里,因此OpenCV部分需要自行阅读和理解上述英文文档。以下的文档由.d.ts文件内容生成,仅标注了所有函数、常量、类的名称、类型等信息,没有详细注释。

示例
"nodejs";

const cv = require("@autojs/opencv");
const rows = 100; // height
const cols = 100; // width
const emptyMat = new cv.Mat(rows, cols, cv.CV_8UC3);
// fill the Mat with default value
const whiteMat = new cv.Mat(rows, cols, cv.CV_8UC1, 255);
const blueMat = new cv.Mat(rows, cols, cv.CV_8UC3, [255, 0, 0]);

索引

接口

类型别名

变量

函数

类型别名

DrawParams

DrawParams: { color?: Vec3; lineType?: number; thickness?: number }

Type declaration

  • 可选 color?: Vec3
  • 可选 lineType?: number
  • 可选 thickness?: number

变量

常量 ADAPTIVE_THRESH_GAUSSIAN_C

ADAPTIVE_THRESH_GAUSSIAN_C: number

常量 ADAPTIVE_THRESH_MEAN_C

ADAPTIVE_THRESH_MEAN_C: number

常量 BORDER_CONSTANT

BORDER_CONSTANT: number

常量 BORDER_DEFAULT

BORDER_DEFAULT: number

常量 BORDER_ISOLATED

BORDER_ISOLATED: number

常量 BORDER_REFLECT

BORDER_REFLECT: number

常量 BORDER_REFLECT_101

BORDER_REFLECT_101: number

常量 BORDER_REPLICATE

BORDER_REPLICATE: number

常量 BORDER_TRANSPARENT

BORDER_TRANSPARENT: number

常量 BORDER_WRAP

BORDER_WRAP: number

常量 CALIB_CB_ADAPTIVE_THRESH

CALIB_CB_ADAPTIVE_THRESH: number

常量 CALIB_CB_ASYMMETRIC_GRID

CALIB_CB_ASYMMETRIC_GRID: number

常量 CALIB_CB_CLUSTERING

CALIB_CB_CLUSTERING: number

常量 CALIB_CB_FAST_CHECK

CALIB_CB_FAST_CHECK: number

常量 CALIB_CB_FILTER_QUADS

CALIB_CB_FILTER_QUADS: number

常量 CALIB_CB_NORMALIZE_IMAGE

CALIB_CB_NORMALIZE_IMAGE: number

常量 CALIB_CB_SYMMETRIC_GRID

CALIB_CB_SYMMETRIC_GRID: number

常量 CALIB_FIX_ASPECT_RATIO

CALIB_FIX_ASPECT_RATIO: number

常量 CALIB_FIX_FOCAL_LENGTH

CALIB_FIX_FOCAL_LENGTH: number

常量 CALIB_FIX_INTRINSIC

CALIB_FIX_INTRINSIC: number

常量 CALIB_FIX_K1

CALIB_FIX_K1: number

常量 CALIB_FIX_K2

CALIB_FIX_K2: number

常量 CALIB_FIX_K3

CALIB_FIX_K3: number

常量 CALIB_FIX_K4

CALIB_FIX_K4: number

常量 CALIB_FIX_K5

CALIB_FIX_K5: number

常量 CALIB_FIX_K6

CALIB_FIX_K6: number

常量 CALIB_FIX_PRINCIPAL_POINT

CALIB_FIX_PRINCIPAL_POINT: number

常量 CALIB_FIX_S1_S2_S3_S4

CALIB_FIX_S1_S2_S3_S4: number

常量 CALIB_FIX_TANGENT_DIST

CALIB_FIX_TANGENT_DIST: number

常量 CALIB_FIX_TAUX_TAUY

CALIB_FIX_TAUX_TAUY: number

常量 CALIB_RATIONAL_MODEL

CALIB_RATIONAL_MODEL: number

常量 CALIB_SAME_FOCAL_LENGTH

CALIB_SAME_FOCAL_LENGTH: number

常量 CALIB_THIN_PRISM_MODEL

CALIB_THIN_PRISM_MODEL: number

常量 CALIB_TILTED_MODEL

CALIB_TILTED_MODEL: number

常量 CALIB_USE_INTRINSIC_GUESS

CALIB_USE_INTRINSIC_GUESS: number

常量 CALIB_USE_LU

CALIB_USE_LU: number

常量 CALIB_USE_QR

CALIB_USE_QR: number

常量 CALIB_ZERO_DISPARITY

CALIB_ZERO_DISPARITY: number

常量 CALIB_ZERO_TANGENT_DIST

CALIB_ZERO_TANGENT_DIST: number

常量 CAP_ANDROID

CAP_ANDROID: number

常量 CAP_ANY

CAP_ANY: number

常量 CAP_ARAVIS

CAP_ARAVIS: number

常量 CAP_AVFOUNDATION

CAP_AVFOUNDATION: number

常量 CAP_CMU1394

CAP_CMU1394: number

常量 CAP_DC1394

CAP_DC1394: number

常量 CAP_DSHOW

CAP_DSHOW: number

常量 CAP_FFMPEG

CAP_FFMPEG: number

常量 CAP_FIREWIRE

CAP_FIREWIRE: number

常量 CAP_GIGANETIX

CAP_GIGANETIX: number

常量 CAP_GPHOTO2

CAP_GPHOTO2: number

常量 CAP_GSTREAMER

CAP_GSTREAMER: number

常量 CAP_IEEE1394

CAP_IEEE1394: number

常量 CAP_IMAGES

CAP_IMAGES: number

常量 CAP_INTELPERC

CAP_INTELPERC: number

常量 CAP_MODE_BGR

CAP_MODE_BGR: number

常量 CAP_MODE_GRAY

CAP_MODE_GRAY: number

常量 CAP_MODE_RGB

CAP_MODE_RGB: number

常量 CAP_MODE_YUYV

CAP_MODE_YUYV: number

常量 CAP_MSMF

CAP_MSMF: number

常量 CAP_OPENNI

CAP_OPENNI: number

常量 CAP_OPENNI2

CAP_OPENNI2: number

常量 CAP_OPENNI2_ASUS

CAP_OPENNI2_ASUS: number

常量 CAP_OPENNI_ASUS

CAP_OPENNI_ASUS: number

常量 CAP_PROP_AUTOFOCUS

CAP_PROP_AUTOFOCUS: number

常量 CAP_PROP_AUTO_EXPOSURE

CAP_PROP_AUTO_EXPOSURE: number

常量 CAP_PROP_BACKLIGHT

CAP_PROP_BACKLIGHT: number

常量 CAP_PROP_BRIGHTNESS

CAP_PROP_BRIGHTNESS: number

常量 CAP_PROP_BUFFERSIZE

CAP_PROP_BUFFERSIZE: number

常量 CAP_PROP_CONTRAST

CAP_PROP_CONTRAST: number

常量 CAP_PROP_CONVERT_RGB

CAP_PROP_CONVERT_RGB: number

常量 CAP_PROP_EXPOSURE

CAP_PROP_EXPOSURE: number

常量 CAP_PROP_FOCUS

CAP_PROP_FOCUS: number

常量 CAP_PROP_FORMAT

CAP_PROP_FORMAT: number

常量 CAP_PROP_FOURCC

CAP_PROP_FOURCC: number

常量 CAP_PROP_FPS

CAP_PROP_FPS: number

常量 CAP_PROP_FRAME_COUNT

CAP_PROP_FRAME_COUNT: number

常量 CAP_PROP_FRAME_HEIGHT

CAP_PROP_FRAME_HEIGHT: number

常量 CAP_PROP_FRAME_WIDTH

CAP_PROP_FRAME_WIDTH: number

常量 CAP_PROP_GAIN

CAP_PROP_GAIN: number

常量 CAP_PROP_GAMMA

CAP_PROP_GAMMA: number

常量 CAP_PROP_GUID

CAP_PROP_GUID: number

常量 CAP_PROP_HUE

CAP_PROP_HUE: number

常量 CAP_PROP_IRIS

CAP_PROP_IRIS: number

常量 CAP_PROP_ISO_SPEED

CAP_PROP_ISO_SPEED: number

常量 CAP_PROP_MODE

CAP_PROP_MODE: number

常量 CAP_PROP_MONOCHROME

CAP_PROP_MONOCHROME: number

常量 CAP_PROP_PAN

CAP_PROP_PAN: number

常量 CAP_PROP_POS_AVI_RATIO

CAP_PROP_POS_AVI_RATIO: number

常量 CAP_PROP_POS_FRAMES

CAP_PROP_POS_FRAMES: number

常量 CAP_PROP_POS_MSEC

CAP_PROP_POS_MSEC: number

常量 CAP_PROP_RECTIFICATION

CAP_PROP_RECTIFICATION: number

常量 CAP_PROP_ROLL

CAP_PROP_ROLL: number

常量 CAP_PROP_SATURATION

CAP_PROP_SATURATION: number

常量 CAP_PROP_SETTINGS

CAP_PROP_SETTINGS: number

常量 CAP_PROP_SHARPNESS

CAP_PROP_SHARPNESS: number

常量 CAP_PROP_TEMPERATURE

CAP_PROP_TEMPERATURE: number

常量 CAP_PROP_TILT

CAP_PROP_TILT: number

常量 CAP_PROP_TRIGGER

CAP_PROP_TRIGGER: number

常量 CAP_PROP_TRIGGER_DELAY

CAP_PROP_TRIGGER_DELAY: number

常量 CAP_PROP_WHITE_BALANCE_BLUE_U

CAP_PROP_WHITE_BALANCE_BLUE_U: number

常量 CAP_PROP_WHITE_BALANCE_RED_V

CAP_PROP_WHITE_BALANCE_RED_V: number

常量 CAP_PROP_ZOOM

CAP_PROP_ZOOM: number

常量 CAP_PVAPI

CAP_PVAPI: number

常量 CAP_QT

CAP_QT: number

常量 CAP_UNICAP

CAP_UNICAP: number

常量 CAP_V4L

CAP_V4L: number

常量 CAP_V4L2

CAP_V4L2: number

常量 CAP_VFW

CAP_VFW: number

常量 CAP_WINRT

CAP_WINRT: number

常量 CAP_XIAPI

CAP_XIAPI: number

常量 CC_STAT_AREA

CC_STAT_AREA: number

常量 CC_STAT_HEIGHT

CC_STAT_HEIGHT: number

常量 CC_STAT_LEFT

CC_STAT_LEFT: number

常量 CC_STAT_MAX

CC_STAT_MAX: number

常量 CC_STAT_TOP

CC_STAT_TOP: number

常量 CC_STAT_WIDTH

CC_STAT_WIDTH: number

常量 CHAIN_APPROX_NONE

CHAIN_APPROX_NONE: number

常量 CHAIN_APPROX_SIMPLE

CHAIN_APPROX_SIMPLE: number

常量 CHAIN_APPROX_TC89_KCOS

CHAIN_APPROX_TC89_KCOS: number

常量 CHAIN_APPROX_TC89_L1

CHAIN_APPROX_TC89_L1: number

常量 COLORMAP_AUTUMN

COLORMAP_AUTUMN: number

常量 COLORMAP_BONE

COLORMAP_BONE: number

常量 COLORMAP_COOL

COLORMAP_COOL: number

常量 COLORMAP_HOT

COLORMAP_HOT: number

常量 COLORMAP_HSV

COLORMAP_HSV: number

常量 COLORMAP_JET

COLORMAP_JET: number

常量 COLORMAP_OCEAN

COLORMAP_OCEAN: number

常量 COLORMAP_PARULA

COLORMAP_PARULA: number

常量 COLORMAP_PINK

COLORMAP_PINK: number

常量 COLORMAP_RAINBOW

COLORMAP_RAINBOW: number

常量 COLORMAP_SPRING

COLORMAP_SPRING: number

常量 COLORMAP_SUMMER

COLORMAP_SUMMER: number

常量 COLORMAP_WINTER

COLORMAP_WINTER: number

常量 COLOR_BGR2BGR555

COLOR_BGR2BGR555: number

常量 COLOR_BGR2BGR565

COLOR_BGR2BGR565: number

常量 COLOR_BGR2BGRA

COLOR_BGR2BGRA: number

常量 COLOR_BGR2GRAY

COLOR_BGR2GRAY: number

常量 COLOR_BGR2HLS

COLOR_BGR2HLS: number

常量 COLOR_BGR2HLS_FULL

COLOR_BGR2HLS_FULL: number

常量 COLOR_BGR2HSV

COLOR_BGR2HSV: number

常量 COLOR_BGR2HSV_FULL

COLOR_BGR2HSV_FULL: number

常量 COLOR_BGR2Lab

COLOR_BGR2Lab: number

常量 COLOR_BGR2Luv

COLOR_BGR2Luv: number

常量 COLOR_BGR2RGB

COLOR_BGR2RGB: number

常量 COLOR_BGR2RGBA

COLOR_BGR2RGBA: number

常量 COLOR_BGR2XYZ

COLOR_BGR2XYZ: number

常量 COLOR_BGR2YCrCb

COLOR_BGR2YCrCb: number

常量 COLOR_BGR2YUV

COLOR_BGR2YUV: number

常量 COLOR_BGR2YUV_I420

COLOR_BGR2YUV_I420: number

常量 COLOR_BGR2YUV_IYUV

COLOR_BGR2YUV_IYUV: number

常量 COLOR_BGR2YUV_YV12

COLOR_BGR2YUV_YV12: number

常量 COLOR_BGR5552BGR

COLOR_BGR5552BGR: number

常量 COLOR_BGR5552BGRA

COLOR_BGR5552BGRA: number

常量 COLOR_BGR5552GRAY

COLOR_BGR5552GRAY: number

常量 COLOR_BGR5552RGB

COLOR_BGR5552RGB: number

常量 COLOR_BGR5552RGBA

COLOR_BGR5552RGBA: number

常量 COLOR_BGR5652BGR

COLOR_BGR5652BGR: number

常量 COLOR_BGR5652BGRA

COLOR_BGR5652BGRA: number

常量 COLOR_BGR5652GRAY

COLOR_BGR5652GRAY: number

常量 COLOR_BGR5652RGB

COLOR_BGR5652RGB: number

常量 COLOR_BGR5652RGBA

COLOR_BGR5652RGBA: number

常量 COLOR_BGRA2BGR

COLOR_BGRA2BGR: number

常量 COLOR_BGRA2BGR555

COLOR_BGRA2BGR555: number

常量 COLOR_BGRA2BGR565

COLOR_BGRA2BGR565: number

常量 COLOR_BGRA2GRAY

COLOR_BGRA2GRAY: number

常量 COLOR_BGRA2RGB

COLOR_BGRA2RGB: number

常量 COLOR_BGRA2RGBA

COLOR_BGRA2RGBA: number

常量 COLOR_BGRA2YUV_I420

COLOR_BGRA2YUV_I420: number

常量 COLOR_BGRA2YUV_IYUV

COLOR_BGRA2YUV_IYUV: number

常量 COLOR_BGRA2YUV_YV12

COLOR_BGRA2YUV_YV12: number

常量 COLOR_BayerBG2BGR

COLOR_BayerBG2BGR: number

常量 COLOR_BayerBG2BGR_EA

COLOR_BayerBG2BGR_EA: number

常量 COLOR_BayerBG2BGR_VNG

COLOR_BayerBG2BGR_VNG: number

常量 COLOR_BayerBG2GRAY

COLOR_BayerBG2GRAY: number

常量 COLOR_BayerBG2RGB

COLOR_BayerBG2RGB: number

常量 COLOR_BayerBG2RGB_EA

COLOR_BayerBG2RGB_EA: number

常量 COLOR_BayerBG2RGB_VNG

COLOR_BayerBG2RGB_VNG: number

常量 COLOR_BayerGB2BGR

COLOR_BayerGB2BGR: number

常量 COLOR_BayerGB2BGR_EA

COLOR_BayerGB2BGR_EA: number

常量 COLOR_BayerGB2BGR_VNG

COLOR_BayerGB2BGR_VNG: number

常量 COLOR_BayerGB2GRAY

COLOR_BayerGB2GRAY: number

常量 COLOR_BayerGB2RGB

COLOR_BayerGB2RGB: number

常量 COLOR_BayerGB2RGB_EA

COLOR_BayerGB2RGB_EA: number

常量 COLOR_BayerGB2RGB_VNG

COLOR_BayerGB2RGB_VNG: number

常量 COLOR_BayerGR2BGR

COLOR_BayerGR2BGR: number

常量 COLOR_BayerGR2BGR_EA

COLOR_BayerGR2BGR_EA: number

常量 COLOR_BayerGR2BGR_VNG

COLOR_BayerGR2BGR_VNG: number

常量 COLOR_BayerGR2GRAY

COLOR_BayerGR2GRAY: number

常量 COLOR_BayerGR2RGB

COLOR_BayerGR2RGB: number

常量 COLOR_BayerGR2RGB_EA

COLOR_BayerGR2RGB_EA: number

常量 COLOR_BayerGR2RGB_VNG

COLOR_BayerGR2RGB_VNG: number

常量 COLOR_BayerRG2BGR

COLOR_BayerRG2BGR: number

常量 COLOR_BayerRG2BGR_EA

COLOR_BayerRG2BGR_EA: number

常量 COLOR_BayerRG2BGR_VNG

COLOR_BayerRG2BGR_VNG: number

常量 COLOR_BayerRG2GRAY

COLOR_BayerRG2GRAY: number

常量 COLOR_BayerRG2RGB

COLOR_BayerRG2RGB: number

常量 COLOR_BayerRG2RGB_EA

COLOR_BayerRG2RGB_EA: number

常量 COLOR_BayerRG2RGB_VNG

COLOR_BayerRG2RGB_VNG: number

常量 COLOR_COLORCVT_MAX

COLOR_COLORCVT_MAX: number

常量 COLOR_GRAY2BGR

COLOR_GRAY2BGR: number

常量 COLOR_GRAY2BGR555

COLOR_GRAY2BGR555: number

常量 COLOR_GRAY2BGR565

COLOR_GRAY2BGR565: number

常量 COLOR_GRAY2BGRA

COLOR_GRAY2BGRA: number

常量 COLOR_GRAY2RGB

COLOR_GRAY2RGB: number

常量 COLOR_GRAY2RGBA

COLOR_GRAY2RGBA: number

常量 COLOR_HLS2BGR

COLOR_HLS2BGR: number

常量 COLOR_HLS2BGR_FULL

COLOR_HLS2BGR_FULL: number

常量 COLOR_HLS2RGB

COLOR_HLS2RGB: number

常量 COLOR_HLS2RGB_FULL

COLOR_HLS2RGB_FULL: number

常量 COLOR_HSV2BGR

COLOR_HSV2BGR: number

常量 COLOR_HSV2BGR_FULL

COLOR_HSV2BGR_FULL: number

常量 COLOR_HSV2RGB

COLOR_HSV2RGB: number

常量 COLOR_HSV2RGB_FULL

COLOR_HSV2RGB_FULL: number

常量 COLOR_LBGR2Lab

COLOR_LBGR2Lab: number

常量 COLOR_LBGR2Luv

COLOR_LBGR2Luv: number

常量 COLOR_LRGB2Lab

COLOR_LRGB2Lab: number

常量 COLOR_LRGB2Luv

COLOR_LRGB2Luv: number

常量 COLOR_Lab2BGR

COLOR_Lab2BGR: number

常量 COLOR_Lab2LBGR

COLOR_Lab2LBGR: number

常量 COLOR_Lab2LRGB

COLOR_Lab2LRGB: number

常量 COLOR_Lab2RGB

COLOR_Lab2RGB: number

常量 COLOR_Luv2BGR

COLOR_Luv2BGR: number

常量 COLOR_Luv2LBGR

COLOR_Luv2LBGR: number

常量 COLOR_Luv2LRGB

COLOR_Luv2LRGB: number

常量 COLOR_Luv2RGB

COLOR_Luv2RGB: number

常量 COLOR_RGB2BGR

COLOR_RGB2BGR: number

常量 COLOR_RGB2BGR555

COLOR_RGB2BGR555: number

常量 COLOR_RGB2BGR565

COLOR_RGB2BGR565: number

常量 COLOR_RGB2BGRA

COLOR_RGB2BGRA: number

常量 COLOR_RGB2GRAY

COLOR_RGB2GRAY: number

常量 COLOR_RGB2HLS

COLOR_RGB2HLS: number

常量 COLOR_RGB2HLS_FULL

COLOR_RGB2HLS_FULL: number

常量 COLOR_RGB2HSV

COLOR_RGB2HSV: number

常量 COLOR_RGB2HSV_FULL

COLOR_RGB2HSV_FULL: number

常量 COLOR_RGB2Lab

COLOR_RGB2Lab: number

常量 COLOR_RGB2Luv

COLOR_RGB2Luv: number

常量 COLOR_RGB2RGBA

COLOR_RGB2RGBA: number

常量 COLOR_RGB2XYZ

COLOR_RGB2XYZ: number

常量 COLOR_RGB2YCrCb

COLOR_RGB2YCrCb: number

常量 COLOR_RGB2YUV

COLOR_RGB2YUV: number

常量 COLOR_RGB2YUV_I420

COLOR_RGB2YUV_I420: number

常量 COLOR_RGB2YUV_IYUV

COLOR_RGB2YUV_IYUV: number

常量 COLOR_RGB2YUV_YV12

COLOR_RGB2YUV_YV12: number

常量 COLOR_RGBA2BGR

COLOR_RGBA2BGR: number

常量 COLOR_RGBA2BGR555

COLOR_RGBA2BGR555: number

常量 COLOR_RGBA2BGR565

COLOR_RGBA2BGR565: number

常量 COLOR_RGBA2BGRA

COLOR_RGBA2BGRA: number

常量 COLOR_RGBA2GRAY

COLOR_RGBA2GRAY: number

常量 COLOR_RGBA2RGB

COLOR_RGBA2RGB: number

常量 COLOR_RGBA2YUV_I420

COLOR_RGBA2YUV_I420: number

常量 COLOR_RGBA2YUV_IYUV

COLOR_RGBA2YUV_IYUV: number

常量 COLOR_RGBA2YUV_YV12

COLOR_RGBA2YUV_YV12: number

常量 COLOR_RGBA2mRGBA

COLOR_RGBA2mRGBA: number

常量 COLOR_XYZ2BGR

COLOR_XYZ2BGR: number

常量 COLOR_XYZ2RGB

COLOR_XYZ2RGB: number

常量 COLOR_YCrCb2BGR

COLOR_YCrCb2BGR: number

常量 COLOR_YCrCb2RGB

COLOR_YCrCb2RGB: number

常量 COLOR_YUV2BGR

COLOR_YUV2BGR: number

常量 COLOR_YUV2BGRA_I420

COLOR_YUV2BGRA_I420: number

常量 COLOR_YUV2BGRA_IYUV

COLOR_YUV2BGRA_IYUV: number

常量 COLOR_YUV2BGRA_NV12

COLOR_YUV2BGRA_NV12: number

常量 COLOR_YUV2BGRA_NV21

COLOR_YUV2BGRA_NV21: number

常量 COLOR_YUV2BGRA_UYNV

COLOR_YUV2BGRA_UYNV: number

常量 COLOR_YUV2BGRA_UYVY

COLOR_YUV2BGRA_UYVY: number

常量 COLOR_YUV2BGRA_Y422

COLOR_YUV2BGRA_Y422: number

常量 COLOR_YUV2BGRA_YUNV

COLOR_YUV2BGRA_YUNV: number

常量 COLOR_YUV2BGRA_YUY2

COLOR_YUV2BGRA_YUY2: number

常量 COLOR_YUV2BGRA_YUYV

COLOR_YUV2BGRA_YUYV: number

常量 COLOR_YUV2BGRA_YV12

COLOR_YUV2BGRA_YV12: number

常量 COLOR_YUV2BGRA_YVYU

COLOR_YUV2BGRA_YVYU: number

常量 COLOR_YUV2BGR_I420

COLOR_YUV2BGR_I420: number

常量 COLOR_YUV2BGR_IYUV

COLOR_YUV2BGR_IYUV: number

常量 COLOR_YUV2BGR_NV12

COLOR_YUV2BGR_NV12: number

常量 COLOR_YUV2BGR_NV21

COLOR_YUV2BGR_NV21: number

常量 COLOR_YUV2BGR_UYNV

COLOR_YUV2BGR_UYNV: number

常量 COLOR_YUV2BGR_UYVY

COLOR_YUV2BGR_UYVY: number

常量 COLOR_YUV2BGR_Y422

COLOR_YUV2BGR_Y422: number

常量 COLOR_YUV2BGR_YUNV

COLOR_YUV2BGR_YUNV: number

常量 COLOR_YUV2BGR_YUY2

COLOR_YUV2BGR_YUY2: number

常量 COLOR_YUV2BGR_YUYV

COLOR_YUV2BGR_YUYV: number

常量 COLOR_YUV2BGR_YV12

COLOR_YUV2BGR_YV12: number

常量 COLOR_YUV2BGR_YVYU

COLOR_YUV2BGR_YVYU: number

常量 COLOR_YUV2GRAY_420

COLOR_YUV2GRAY_420: number

常量 COLOR_YUV2GRAY_I420

COLOR_YUV2GRAY_I420: number

常量 COLOR_YUV2GRAY_IYUV

COLOR_YUV2GRAY_IYUV: number

常量 COLOR_YUV2GRAY_NV12

COLOR_YUV2GRAY_NV12: number

常量 COLOR_YUV2GRAY_NV21

COLOR_YUV2GRAY_NV21: number

常量 COLOR_YUV2GRAY_UYNV

COLOR_YUV2GRAY_UYNV: number

常量 COLOR_YUV2GRAY_UYVY

COLOR_YUV2GRAY_UYVY: number

常量 COLOR_YUV2GRAY_Y422

COLOR_YUV2GRAY_Y422: number

常量 COLOR_YUV2GRAY_YUNV

COLOR_YUV2GRAY_YUNV: number

常量 COLOR_YUV2GRAY_YUY2

COLOR_YUV2GRAY_YUY2: number

常量 COLOR_YUV2GRAY_YUYV

COLOR_YUV2GRAY_YUYV: number

常量 COLOR_YUV2GRAY_YV12

COLOR_YUV2GRAY_YV12: number

常量 COLOR_YUV2GRAY_YVYU

COLOR_YUV2GRAY_YVYU: number

常量 COLOR_YUV2RGB

COLOR_YUV2RGB: number

常量 COLOR_YUV2RGBA_I420

COLOR_YUV2RGBA_I420: number

常量 COLOR_YUV2RGBA_IYUV

COLOR_YUV2RGBA_IYUV: number

常量 COLOR_YUV2RGBA_NV12

COLOR_YUV2RGBA_NV12: number

常量 COLOR_YUV2RGBA_NV21

COLOR_YUV2RGBA_NV21: number

常量 COLOR_YUV2RGBA_UYNV

COLOR_YUV2RGBA_UYNV: number

常量 COLOR_YUV2RGBA_UYVY

COLOR_YUV2RGBA_UYVY: number

常量 COLOR_YUV2RGBA_Y422

COLOR_YUV2RGBA_Y422: number

常量 COLOR_YUV2RGBA_YUNV

COLOR_YUV2RGBA_YUNV: number

常量 COLOR_YUV2RGBA_YUY2

COLOR_YUV2RGBA_YUY2: number

常量 COLOR_YUV2RGBA_YUYV

COLOR_YUV2RGBA_YUYV: number

常量 COLOR_YUV2RGBA_YV12

COLOR_YUV2RGBA_YV12: number

常量 COLOR_YUV2RGBA_YVYU

COLOR_YUV2RGBA_YVYU: number

常量 COLOR_YUV2RGB_I420

COLOR_YUV2RGB_I420: number

常量 COLOR_YUV2RGB_IYUV

COLOR_YUV2RGB_IYUV: number

常量 COLOR_YUV2RGB_NV12

COLOR_YUV2RGB_NV12: number

常量 COLOR_YUV2RGB_NV21

COLOR_YUV2RGB_NV21: number

常量 COLOR_YUV2RGB_UYNV

COLOR_YUV2RGB_UYNV: number

常量 COLOR_YUV2RGB_UYVY

COLOR_YUV2RGB_UYVY: number

常量 COLOR_YUV2RGB_Y422

COLOR_YUV2RGB_Y422: number

常量 COLOR_YUV2RGB_YUNV

COLOR_YUV2RGB_YUNV: number

常量 COLOR_YUV2RGB_YUY2

COLOR_YUV2RGB_YUY2: number

常量 COLOR_YUV2RGB_YUYV

COLOR_YUV2RGB_YUYV: number

常量 COLOR_YUV2RGB_YV12

COLOR_YUV2RGB_YV12: number

常量 COLOR_YUV2RGB_YVYU

COLOR_YUV2RGB_YVYU: number

常量 COLOR_YUV420p2BGR

COLOR_YUV420p2BGR: number

常量 COLOR_YUV420p2BGRA

COLOR_YUV420p2BGRA: number

常量 COLOR_YUV420p2GRAY

COLOR_YUV420p2GRAY: number

常量 COLOR_YUV420p2RGB

COLOR_YUV420p2RGB: number

常量 COLOR_YUV420p2RGBA

COLOR_YUV420p2RGBA: number

常量 COLOR_YUV420sp2BGR

COLOR_YUV420sp2BGR: number

常量 COLOR_YUV420sp2BGRA

COLOR_YUV420sp2BGRA: number

常量 COLOR_YUV420sp2GRAY

COLOR_YUV420sp2GRAY: number

常量 COLOR_YUV420sp2RGB

COLOR_YUV420sp2RGB: number

常量 COLOR_YUV420sp2RGBA

COLOR_YUV420sp2RGBA: number

常量 COLOR_mRGBA2RGBA

COLOR_mRGBA2RGBA: number

常量 CV_16S

CV_16S: number

常量 CV_16SC1

CV_16SC1: number

常量 CV_16SC2

CV_16SC2: number

常量 CV_16SC3

CV_16SC3: number

常量 CV_16SC4

CV_16SC4: number

常量 CV_16U

CV_16U: number

常量 CV_16UC1

CV_16UC1: number

常量 CV_16UC2

CV_16UC2: number

常量 CV_16UC3

CV_16UC3: number

常量 CV_16UC4

CV_16UC4: number

常量 CV_32F

CV_32F: number

常量 CV_32FC1

CV_32FC1: number

常量 CV_32FC2

CV_32FC2: number

常量 CV_32FC3

CV_32FC3: number

常量 CV_32FC4

CV_32FC4: number

常量 CV_32S

CV_32S: number

常量 CV_32SC1

CV_32SC1: number

常量 CV_32SC2

CV_32SC2: number

常量 CV_32SC3

CV_32SC3: number

常量 CV_32SC4

CV_32SC4: number

常量 CV_64F

CV_64F: number

常量 CV_64FC1

CV_64FC1: number

常量 CV_64FC2

CV_64FC2: number

常量 CV_64FC3

CV_64FC3: number

常量 CV_64FC4

CV_64FC4: number

常量 CV_8S

CV_8S: number

常量 CV_8SC1

CV_8SC1: number

常量 CV_8SC2

CV_8SC2: number

常量 CV_8SC3

CV_8SC3: number

常量 CV_8SC4

CV_8SC4: number

常量 CV_8U

CV_8U: number

常量 CV_8UC1

CV_8UC1: number

常量 CV_8UC2

CV_8UC2: number

常量 CV_8UC3

CV_8UC3: number

常量 CV_8UC4

CV_8UC4: number

常量 CV_CONTOURS_MATCH_I1

CV_CONTOURS_MATCH_I1: number

常量 CV_CONTOURS_MATCH_I2

CV_CONTOURS_MATCH_I2: number

常量 CV_CONTOURS_MATCH_I3

CV_CONTOURS_MATCH_I3: number

常量 DCT_INVERSE

DCT_INVERSE: number

常量 DCT_ROWS

DCT_ROWS: number

常量 DFT_COMPLEX_OUTPUT

DFT_COMPLEX_OUTPUT: number

常量 DFT_INVERSE

DFT_INVERSE: number

常量 DFT_REAL_OUTPUT

DFT_REAL_OUTPUT: number

常量 DFT_ROWS

DFT_ROWS: number

常量 DFT_SCALE

DFT_SCALE: number

常量 DIST_C

DIST_C: number

常量 DIST_FAIR

DIST_FAIR: number

常量 DIST_HUBER

DIST_HUBER: number

常量 DIST_L1

DIST_L1: number

常量 DIST_L12

DIST_L12: number

常量 DIST_L2

DIST_L2: number

常量 DIST_LABEL_CCOMP

DIST_LABEL_CCOMP: number

常量 DIST_LABEL_PIXEL

DIST_LABEL_PIXEL: number

常量 DIST_MASK_3

DIST_MASK_3: number

常量 DIST_MASK_5

DIST_MASK_5: number

常量 DIST_MASK_PRECISE

DIST_MASK_PRECISE: number

常量 DIST_USER

DIST_USER: number

常量 DIST_WELSCH

DIST_WELSCH: number

常量 FILLED

FILLED: number

常量 FLOODFILL_FIXED_RANGE

FLOODFILL_FIXED_RANGE: number

常量 FLOODFILL_MASK_ONLY

FLOODFILL_MASK_ONLY: number

常量 FM_7POINT

FM_7POINT: number

常量 FM_8POINT

FM_8POINT: number

常量 FM_LMEDS

FM_LMEDS: number

常量 FM_RANSAC

FM_RANSAC: number

常量 FONT_HERSHEY_COMPLEX

FONT_HERSHEY_COMPLEX: number

常量 FONT_HERSHEY_COMPLEX_SMALL

FONT_HERSHEY_COMPLEX_SMALL: number

常量 FONT_HERSHEY_DUPLEX

FONT_HERSHEY_DUPLEX: number

常量 FONT_HERSHEY_PLAIN

FONT_HERSHEY_PLAIN: number

常量 FONT_HERSHEY_SCRIPT_COMPLEX

FONT_HERSHEY_SCRIPT_COMPLEX: number

常量 FONT_HERSHEY_SCRIPT_SIMPLEX

FONT_HERSHEY_SCRIPT_SIMPLEX: number

常量 FONT_HERSHEY_SIMPLEX

FONT_HERSHEY_SIMPLEX: number

常量 FONT_HERSHEY_TRIPLEX

FONT_HERSHEY_TRIPLEX: number

常量 FONT_ITALIC

FONT_ITALIC: number

常量 GC_BGD

GC_BGD: number

常量 GC_EVAL

GC_EVAL: number

常量 GC_FGD

GC_FGD: number

常量 GC_INIT_WITH_MASK

GC_INIT_WITH_MASK: number

常量 GC_INIT_WITH_RECT

GC_INIT_WITH_RECT: number

常量 GC_PR_BGD

GC_PR_BGD: number

常量 GC_PR_FGD

GC_PR_FGD: number

常量 HAAR_EYE

HAAR_EYE: string

常量 HAAR_EYE_TREE_EYEGLASSES

HAAR_EYE_TREE_EYEGLASSES: string

常量 HAAR_FRONTALCATFACE

HAAR_FRONTALCATFACE: string

常量 HAAR_FRONTALCATFACE_EXTENDED

HAAR_FRONTALCATFACE_EXTENDED: string

常量 HAAR_FRONTALFACE_ALT

HAAR_FRONTALFACE_ALT: string

常量 HAAR_FRONTALFACE_ALT2

HAAR_FRONTALFACE_ALT2: string

常量 HAAR_FRONTALFACE_ALT_TREE

HAAR_FRONTALFACE_ALT_TREE: string

常量 HAAR_FRONTALFACE_DEFAULT

HAAR_FRONTALFACE_DEFAULT: string

常量 HAAR_FULLBODY

HAAR_FULLBODY: string

常量 HAAR_LEFTEYE_2SPLITS

HAAR_LEFTEYE_2SPLITS: string

常量 HAAR_LICENCE_PLATE_RUS_16STAGES

HAAR_LICENCE_PLATE_RUS_16STAGES: string

常量 HAAR_LOWERBODY

HAAR_LOWERBODY: string

常量 HAAR_PROFILEFACE

HAAR_PROFILEFACE: string

常量 HAAR_RIGHTEYE_2SPLITS

HAAR_RIGHTEYE_2SPLITS: string

常量 HAAR_RUSSIAN_PLATE_NUMBER

HAAR_RUSSIAN_PLATE_NUMBER: string

常量 HAAR_SMILE

HAAR_SMILE: string

常量 HAAR_UPPERBODY

HAAR_UPPERBODY: string

常量 HISTCMP_BHATTACHARYYA

HISTCMP_BHATTACHARYYA: number

常量 HISTCMP_CHISQR

HISTCMP_CHISQR: number

常量 HISTCMP_CHISQR_ALT

HISTCMP_CHISQR_ALT: number

常量 HISTCMP_CORREL

HISTCMP_CORREL: number

常量 HISTCMP_HELLINGER

HISTCMP_HELLINGER: number

常量 HISTCMP_INTERSECT

HISTCMP_INTERSECT: number

常量 HISTCMP_KL_DIV

HISTCMP_KL_DIV: number

常量 HOUGH_GRADIENT

HOUGH_GRADIENT: number

常量 HOUGH_MULTI_SCALE

HOUGH_MULTI_SCALE: number

常量 HOUGH_PROBABILISTIC

HOUGH_PROBABILISTIC: number

常量 HOUGH_STANDARD

HOUGH_STANDARD: number

常量 IMREAD_ANYCOLOR

IMREAD_ANYCOLOR: number

常量 IMREAD_ANYDEPTH

IMREAD_ANYDEPTH: number

常量 IMREAD_COLOR

IMREAD_COLOR: number

常量 IMREAD_GRAYSCALE

IMREAD_GRAYSCALE: number

常量 IMREAD_IGNORE_ORIENTATION

IMREAD_IGNORE_ORIENTATION: number

常量 IMREAD_LOAD_GDAL

IMREAD_LOAD_GDAL: number

常量 IMREAD_REDUCED_COLOR_2

IMREAD_REDUCED_COLOR_2: number

常量 IMREAD_REDUCED_COLOR_4

IMREAD_REDUCED_COLOR_4: number

常量 IMREAD_REDUCED_COLOR_8

IMREAD_REDUCED_COLOR_8: number

常量 IMREAD_REDUCED_GRAYSCALE_2

IMREAD_REDUCED_GRAYSCALE_2: number

常量 IMREAD_REDUCED_GRAYSCALE_4

IMREAD_REDUCED_GRAYSCALE_4: number

常量 IMREAD_REDUCED_GRAYSCALE_8

IMREAD_REDUCED_GRAYSCALE_8: number

常量 IMREAD_UNCHANGED

IMREAD_UNCHANGED: number

常量 IMWRITE_JPEG_CHROMA_QUALITY

IMWRITE_JPEG_CHROMA_QUALITY: number

常量 IMWRITE_JPEG_LUMA_QUALITY

IMWRITE_JPEG_LUMA_QUALITY: number

常量 IMWRITE_JPEG_OPTIMIZE

IMWRITE_JPEG_OPTIMIZE: number

常量 IMWRITE_JPEG_PROGRESSIVE

IMWRITE_JPEG_PROGRESSIVE: number

常量 IMWRITE_JPEG_QUALITY

IMWRITE_JPEG_QUALITY: number

常量 IMWRITE_JPEG_RST_INTERVAL

IMWRITE_JPEG_RST_INTERVAL: number

常量 IMWRITE_PAM_FORMAT_BLACKANDWHITE

IMWRITE_PAM_FORMAT_BLACKANDWHITE: number

常量 IMWRITE_PAM_FORMAT_GRAYSCALE

IMWRITE_PAM_FORMAT_GRAYSCALE: number

常量 IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA

IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA: number

常量 IMWRITE_PAM_FORMAT_NULL

IMWRITE_PAM_FORMAT_NULL: number

常量 IMWRITE_PAM_FORMAT_RGB

IMWRITE_PAM_FORMAT_RGB: number

常量 IMWRITE_PAM_FORMAT_RGB_ALPHA

IMWRITE_PAM_FORMAT_RGB_ALPHA: number

常量 IMWRITE_PAM_TUPLETYPE

IMWRITE_PAM_TUPLETYPE: number

常量 IMWRITE_PNG_BILEVEL

IMWRITE_PNG_BILEVEL: number

常量 IMWRITE_PNG_COMPRESSION

IMWRITE_PNG_COMPRESSION: number

常量 IMWRITE_PNG_STRATEGY

IMWRITE_PNG_STRATEGY: number

常量 IMWRITE_PNG_STRATEGY_DEFAULT

IMWRITE_PNG_STRATEGY_DEFAULT: number

常量 IMWRITE_PNG_STRATEGY_FILTERED

IMWRITE_PNG_STRATEGY_FILTERED: number

常量 IMWRITE_PNG_STRATEGY_FIXED

IMWRITE_PNG_STRATEGY_FIXED: number

常量 IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY

IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY: number

常量 IMWRITE_PNG_STRATEGY_RLE

IMWRITE_PNG_STRATEGY_RLE: number

常量 IMWRITE_PXM_BINARY

IMWRITE_PXM_BINARY: number

常量 IMWRITE_WEBP_QUALITY

IMWRITE_WEBP_QUALITY: number

常量 INPAINT_NS

INPAINT_NS: number

常量 INPAINT_TELEA

INPAINT_TELEA: number

常量 INTER_AREA

INTER_AREA: number

常量 INTER_CUBIC

INTER_CUBIC: number

常量 INTER_LANCZOS4

INTER_LANCZOS4: number

常量 INTER_LINEAR

INTER_LINEAR: number

常量 INTER_MAX

INTER_MAX: number

常量 INTER_NEAREST

INTER_NEAREST: number

常量 KMEANS_PP_CENTERS

KMEANS_PP_CENTERS: number

常量 KMEANS_RANDOM_CENTERS

KMEANS_RANDOM_CENTERS: number

常量 KMEANS_USE_INITIAL_LABELS

KMEANS_USE_INITIAL_LABELS: number

常量 LBP_FRONTALCATFACE

LBP_FRONTALCATFACE: string

常量 LBP_FRONTALFACE

LBP_FRONTALFACE: string

常量 LBP_FRONTALFACE_IMPROVED

LBP_FRONTALFACE_IMPROVED: string

常量 LBP_PROFILEFACE

LBP_PROFILEFACE: string

常量 LBP_SILVERWARE

LBP_SILVERWARE: string

常量 LINE_4

LINE_4: number

常量 LINE_8

LINE_8: number

常量 LINE_AA

LINE_AA: number

常量 LMEDS

LMEDS: number

常量 MIXED_CLONE

MIXED_CLONE: number

常量 MONOCHROME_TRANSFER

MONOCHROME_TRANSFER: number

常量 MORPH_BLACKHAT

MORPH_BLACKHAT: number

常量 MORPH_CLOSE

MORPH_CLOSE: number

常量 MORPH_CROSS

MORPH_CROSS: number

常量 MORPH_DILATE

MORPH_DILATE: number

常量 MORPH_ELLIPSE

MORPH_ELLIPSE: number

常量 MORPH_ERODE

MORPH_ERODE: number

常量 MORPH_GRADIENT

MORPH_GRADIENT: number

常量 MORPH_HITMISS

MORPH_HITMISS: number

常量 MORPH_OPEN

MORPH_OPEN: number

常量 MORPH_RECT

MORPH_RECT: number

常量 MORPH_TOPHAT

MORPH_TOPHAT: number

常量 NORMAL_CLONE

NORMAL_CLONE: number

常量 NORM_HAMMING

NORM_HAMMING: number

常量 NORM_HAMMING2

NORM_HAMMING2: number

常量 NORM_INF

NORM_INF: number

常量 NORM_L1

NORM_L1: number

常量 NORM_L2

NORM_L2: number

常量 NORM_L2SQR

NORM_L2SQR: number

常量 NORM_MINMAX

NORM_MINMAX: number

常量 NORM_RELATIVE

NORM_RELATIVE: number

常量 NORM_const_MASK

NORM_const_MASK: number

常量 RANSAC

RANSAC: number

常量 REGULAR

REGULAR: number

常量 RETR_CCOMP

RETR_CCOMP: number

常量 RETR_EXTERNAL

RETR_EXTERNAL: number

常量 RETR_FLOODFILL

RETR_FLOODFILL: number

常量 RETR_LIST

RETR_LIST: number

常量 RETR_TREE

RETR_TREE: number

常量 RHO

RHO: number

常量 ROTATE_180

ROTATE_180: number

常量 ROTATE_90_CLOCKWISE

ROTATE_90_CLOCKWISE: number

常量 ROTATE_90_COUNTERCLOCKWISE

ROTATE_90_COUNTERCLOCKWISE: number

常量 SOLVEPNP_AP3P

SOLVEPNP_AP3P: number

常量 SOLVEPNP_DLS

SOLVEPNP_DLS: number

常量 SOLVEPNP_EPNP

SOLVEPNP_EPNP: number

常量 SOLVEPNP_ITERATIVE

SOLVEPNP_ITERATIVE: number

常量 SOLVEPNP_MAX_COUNT

SOLVEPNP_MAX_COUNT: number

常量 SOLVEPNP_P3P

SOLVEPNP_P3P: number

常量 SOLVEPNP_UPNP

SOLVEPNP_UPNP: number

常量 THRESH_BINARY

THRESH_BINARY: number

常量 THRESH_BINARY_INV

THRESH_BINARY_INV: number

常量 THRESH_MASK

THRESH_MASK: number

常量 THRESH_OTSU

THRESH_OTSU: number

常量 THRESH_TOZERO

THRESH_TOZERO: number

常量 THRESH_TOZERO_INV

THRESH_TOZERO_INV: number

常量 THRESH_TRIANGLE

THRESH_TRIANGLE: number

常量 THRESH_TRUNC

THRESH_TRUNC: number

常量 TM_CCOEFF

TM_CCOEFF: number

常量 TM_CCOEFF_NORMED

TM_CCOEFF_NORMED: number

常量 TM_CCORR

TM_CCORR: number

常量 TM_CCORR_NORMED

TM_CCORR_NORMED: number

常量 TM_SQDIFF

TM_SQDIFF: number

常量 TM_SQDIFF_NORMED

TM_SQDIFF_NORMED: number

常量 VIDEOWRITER_PROP_FRAMEBYTES

VIDEOWRITER_PROP_FRAMEBYTES: number

常量 VIDEOWRITER_PROP_NSTRIPES

VIDEOWRITER_PROP_NSTRIPES: number

常量 VIDEOWRITER_PROP_QUALITY

VIDEOWRITER_PROP_QUALITY: number

常量 WARP_FILL_OUTLIERS

WARP_FILL_OUTLIERS: number

常量 WARP_INVERSE_MAP

WARP_INVERSE_MAP: number

常量 ml

ml: { COL_SAMPLE: number; ROW_SAMPLE: number; SVM: { C: number; CHI2: number; COEF: number; CUSTOM: number; DEGREE: number; GAMMA: number; INTER: number; LINEAR: number; NU: number; P: number; POLY: number; RBF: number; SIGMOID: number }; VAR_CATEGORICAL: number; VAR_NUMERICAL: number; VAR_ORDERED: number }

Type declaration

  • COL_SAMPLE: number
  • ROW_SAMPLE: number
  • SVM: { C: number; CHI2: number; COEF: number; CUSTOM: number; DEGREE: number; GAMMA: number; INTER: number; LINEAR: number; NU: number; P: number; POLY: number; RBF: number; SIGMOID: number }
    • C: number
    • CHI2: number
    • COEF: number
    • CUSTOM: number
    • DEGREE: number
    • GAMMA: number
    • INTER: number
    • LINEAR: number
    • NU: number
    • P: number
    • POLY: number
    • RBF: number
    • SIGMOID: number
  • VAR_CATEGORICAL: number
  • VAR_NUMERICAL: number
  • VAR_ORDERED: number

常量 statModel

statModel: { COMPRESSED_INPUT: number; PREPROCESSED_INPUT: number; RAW_OUTPUT: number; UPDATE_MODEL: number }

Type declaration

  • COMPRESSED_INPUT: number
  • PREPROCESSED_INPUT: number
  • RAW_OUTPUT: number
  • UPDATE_MODEL: number

常量 termCriteria

termCriteria: { COUNT: number; EPS: number; MAX_ITER: number }

Type declaration

  • COUNT: number
  • EPS: number
  • MAX_ITER: number

常量 version

version: { major: number; minor: number }

Type declaration

  • major: number
  • minor: number

常量 xmodules

xmodules: { dnn: boolean; face: boolean; text: boolean; tracking: boolean; xfeatures2d: boolean; ximgproc: boolean }

Type declaration

  • dnn: boolean
  • face: boolean
  • text: boolean
  • tracking: boolean
  • xfeatures2d: boolean
  • ximgproc: boolean

函数

NMSBoxes

  • NMSBoxes(bboxes: Rect[], scores: number[], scoreThreshold: number, nmsThreshold: number): number[]
  • 参数

    • bboxes: Rect[]
    • scores: number[]
    • scoreThreshold: number
    • nmsThreshold: number

    返回 number[]

accumulate

  • accumulate(src: Mat, dst: Mat, mask?: Mat): void
  • 参数

    返回 void

accumulateAsync

  • accumulateAsync(src: Mat, dst: Mat, mask?: Mat): Promise<void>
  • 参数

    返回 Promise<void>

accumulateProduct

  • accumulateProduct(src1: Mat, src2: Mat, dst: Mat, mask?: Mat): void
  • 参数

    返回 void

accumulateProductAsync

  • accumulateProductAsync(src1: Mat, src2: Mat, dst: Mat, mask?: Mat): Promise<void>
  • 参数

    返回 Promise<void>

accumulateSquare

  • accumulateSquare(src: Mat, dst: Mat, mask?: Mat): void
  • 参数

    返回 void

accumulateSquareAsync

  • accumulateSquareAsync(src: Mat, dst: Mat, mask?: Mat): Promise<void>
  • 参数

    返回 Promise<void>

accumulateWeighted

  • accumulateWeighted(src: Mat, dst: Mat, alpha: number, mask?: Mat): void
  • 参数

    • src: Mat
    • dst: Mat
    • alpha: number
    • 可选 mask: Mat

    返回 void

accumulateWeightedAsync

  • accumulateWeightedAsync(src: Mat, dst: Mat, alpha: number, mask?: Mat): Promise<void>
  • 参数

    • src: Mat
    • dst: Mat
    • alpha: number
    • 可选 mask: Mat

    返回 Promise<void>

addWeighted

  • addWeighted(mat: Mat, alpha: number, mat2: Mat, beta: number, gamma: number, dtype?: number): Mat
  • 参数

    • mat: Mat
    • alpha: number
    • mat2: Mat
    • beta: number
    • gamma: number
    • 可选 dtype: number

    返回 Mat

addWeightedAsync

  • addWeightedAsync(mat: Mat, alpha: number, mat2: Mat, beta: number, gamma: number, dtype?: number): Promise<Mat>
  • 参数

    • mat: Mat
    • alpha: number
    • mat2: Mat
    • beta: number
    • gamma: number
    • 可选 dtype: number

    返回 Promise<Mat>

applyColorMap

  • applyColorMap(src: Mat, colormap: number | Mat): Mat
  • 参数

    • src: Mat
    • colormap: number | Mat

    返回 Mat

blobFromImage

  • blobFromImage(image: Mat, scaleFactor?: number, size?: Size, mean?: Vec3, swapRB?: boolean, crop?: boolean, ddepth?: number): Mat
  • 参数

    • image: Mat
    • 可选 scaleFactor: number
    • 可选 size: Size
    • 可选 mean: Vec3
    • 可选 swapRB: boolean
    • 可选 crop: boolean
    • 可选 ddepth: number

    返回 Mat

blobFromImageAsync

  • blobFromImageAsync(image: Mat, scaleFactor?: number, size?: Size, mean?: Vec3, swapRB?: boolean, crop?: boolean, ddepth?: number): Promise<Mat>
  • 参数

    • image: Mat
    • 可选 scaleFactor: number
    • 可选 size: Size
    • 可选 mean: Vec3
    • 可选 swapRB: boolean
    • 可选 crop: boolean
    • 可选 ddepth: number

    返回 Promise<Mat>

blobFromImages

  • blobFromImages(image: Mat[], scaleFactor?: number, size?: Size, mean?: Vec3, swapRB?: boolean, crop?: boolean, ddepth?: number): Mat
  • 参数

    • image: Mat[]
    • 可选 scaleFactor: number
    • 可选 size: Size
    • 可选 mean: Vec3
    • 可选 swapRB: boolean
    • 可选 crop: boolean
    • 可选 ddepth: number

    返回 Mat

blobFromImagesAsync

  • blobFromImagesAsync(image: Mat[], scaleFactor?: number, size?: Size, mean?: Vec3, swapRB?: boolean, crop?: boolean, ddepth?: number): Promise<Mat>
  • 参数

    • image: Mat[]
    • 可选 scaleFactor: number
    • 可选 size: Size
    • 可选 mean: Vec3
    • 可选 swapRB: boolean
    • 可选 crop: boolean
    • 可选 ddepth: number

    返回 Promise<Mat>

blur

  • 参数

    • mat: Mat
    • kSize: Size
    • 可选 anchor: Point2
    • 可选 borderType: number

    返回 Mat

blurAsync

  • blurAsync(mat: Mat, kSize: Size, anchor?: Point2, borderType?: number): Promise<Mat>
  • 参数

    • mat: Mat
    • kSize: Size
    • 可选 anchor: Point2
    • 可选 borderType: number

    返回 Promise<Mat>

calcHist

  • calcHist(img: Mat, histAxes: { bins: number; channel: number; ranges: [number, number] }[], mask?: Mat): Mat
  • calcHist(img: Mat, histAxes: HistAxes[], mask?: Mat): Mat
  • deprecated

    参数

    • img: Mat
    • histAxes: { bins: number; channel: number; ranges: [number, number] }[]
    • 可选 mask: Mat

    返回 Mat

  • 参数

    返回 Mat

calcHistAsync

calibrateCamera

  • calibrateCamera(objectPoints: Point3[], imagePoints: Point2[], imageSize: Size, cameraMatrix: Mat, distCoeffs: number[], flags?: number, criteria?: TermCriteria): { distCoeffs: number[]; returnValue: number; rvecs: Vec3[]; tvecs: Vec3[] }
  • 参数

    返回 { distCoeffs: number[]; returnValue: number; rvecs: Vec3[]; tvecs: Vec3[] }

    • distCoeffs: number[]
    • returnValue: number
    • rvecs: Vec3[]
    • tvecs: Vec3[]

calibrateCameraAsync

  • calibrateCameraAsync(objectPoints: Point3[], imagePoints: Point2[], imageSize: Size, cameraMatrix: Mat, distCoeffs: number[], flags?: number, criteria?: TermCriteria): Promise<{ distCoeffs: number[]; returnValue: number; rvecs: Vec3[]; tvecs: Vec3[] }>
  • 参数

    返回 Promise<{ distCoeffs: number[]; returnValue: number; rvecs: Vec3[]; tvecs: Vec3[] }>

calibrateCameraExtended

  • calibrateCameraExtended(objectPoints: Point3[], imagePoints: Point2[], imageSize: Size, cameraMatrix: Mat, distCoeffs: number[], flags?: number, criteria?: TermCriteria): { distCoeffs: number[]; perViewErrors: number[]; returnValue: number; rvecs: Vec3[]; stdDeviationsExtrinsics: Mat; stdDeviationsIntrinsics: Mat; tvecs: Vec3[] }
  • 参数

    返回 { distCoeffs: number[]; perViewErrors: number[]; returnValue: number; rvecs: Vec3[]; stdDeviationsExtrinsics: Mat; stdDeviationsIntrinsics: Mat; tvecs: Vec3[] }

    • distCoeffs: number[]
    • perViewErrors: number[]
    • returnValue: number
    • rvecs: Vec3[]
    • stdDeviationsExtrinsics: Mat
    • stdDeviationsIntrinsics: Mat
    • tvecs: Vec3[]

calibrateCameraExtendedAsync

  • calibrateCameraExtendedAsync(objectPoints: Point3[], imagePoints: Point2[], imageSize: Size, cameraMatrix: Mat, distCoeffs: number[], flags?: number, criteria?: TermCriteria): Promise<{ distCoeffs: number[]; perViewErrors: number[]; returnValue: number; rvecs: Vec3[]; stdDeviationsExtrinsics: Mat; stdDeviationsIntrinsics: Mat; tvecs: Vec3[] }>
  • 参数

    返回 Promise<{ distCoeffs: number[]; perViewErrors: number[]; returnValue: number; rvecs: Vec3[]; stdDeviationsExtrinsics: Mat; stdDeviationsIntrinsics: Mat; tvecs: Vec3[] }>

canny

  • canny(dx: Mat, dy: Mat, threshold1: number, threshold2: number, L2gradient?: boolean): Mat
  • 参数

    • dx: Mat
    • dy: Mat
    • threshold1: number
    • threshold2: number
    • 可选 L2gradient: boolean

    返回 Mat

cartToPolar

  • cartToPolar(x: Mat, y: Mat, angleInDegrees?: boolean): { angle: Mat; magnitude: Mat }
  • 参数

    • x: Mat
    • y: Mat
    • 可选 angleInDegrees: boolean

    返回 { angle: Mat; magnitude: Mat }

cartToPolarAsync

  • cartToPolarAsync(x: Mat, y: Mat, angleInDegrees?: boolean): Promise<{ angle: Mat; magnitude: Mat }>
  • 参数

    • x: Mat
    • y: Mat
    • 可选 angleInDegrees: boolean

    返回 Promise<{ angle: Mat; magnitude: Mat }>

composeRT

composeRTAsync

computeCorrespondEpilines

  • computeCorrespondEpilines(points: Point2[], whichImage: number, F: Mat): Vec3[]
  • 参数

    返回 Vec3[]

computeCorrespondEpilinesAsync

  • computeCorrespondEpilinesAsync(points: Point2[], whichImage: number, F: Mat): Promise<Vec3[]>
  • 参数

    返回 Promise<Vec3[]>

convertScaleAbs

  • convertScaleAbs(mat: Mat, alpha: number, beta: number): Mat
  • 参数

    • mat: Mat
    • alpha: number
    • beta: number

    返回 Mat

convertScaleAbsAsync

  • convertScaleAbsAsync(mat: Mat, alpha: number, beta: number): Promise<Mat>
  • 参数

    • mat: Mat
    • alpha: number
    • beta: number

    返回 Promise<Mat>

countNonZero

  • countNonZero(mat: Mat): number
  • 参数

    返回 number

countNonZeroAsync

  • countNonZeroAsync(mat: Mat): Promise<number>
  • 参数

    返回 Promise<number>

createOCRHMMTransitionsTable

  • createOCRHMMTransitionsTable(vocabulary: string, lexicon: string[]): Mat
  • 参数

    • vocabulary: string
    • lexicon: string[]

    返回 Mat

createOCRHMMTransitionsTableAsync

  • createOCRHMMTransitionsTableAsync(vocabulary: string, lexicon: string[]): Promise<Mat>
  • 参数

    • vocabulary: string
    • lexicon: string[]

    返回 Promise<Mat>

dangerousDisableCustomMatAllocator

  • dangerousDisableCustomMatAllocator(): boolean
  • 返回 boolean

dangerousEnableCustomMatAllocator

  • dangerousEnableCustomMatAllocator(): boolean
  • 返回 boolean

destroyAllWindows

  • destroyAllWindows(): void
  • 返回 void

destroyWindow

  • destroyWindow(winName: string): void
  • 参数

    • winName: string

    返回 void

drawDetection

drawKeyPoints

drawMatches

drawTextBox

  • drawTextBox(img: Mat, upperLeft: { x: number; y: number }, textLines: TextLine[], alpha: number): Mat
  • 参数

    • img: Mat
    • upperLeft: { x: number; y: number }
      • x: number
      • y: number
    • textLines: TextLine[]
    • alpha: number

    返回 Mat

eigen

eigenAsync

  • eigenAsync(mat: Mat): Promise<Mat>
  • 参数

    返回 Promise<Mat>

estimateAffine2D

  • estimateAffine2D(from: Point2[], to: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number, refineIters?: number): { inliers: Mat; out: Mat }
  • 参数

    • from: Point2[]
    • to: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number
    • 可选 refineIters: number

    返回 { inliers: Mat; out: Mat }

estimateAffine2DAsync

  • estimateAffine2DAsync(from: Point2[], to: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number, refineIters?: number): Promise<{ inliers: Mat; out: Mat }>
  • 参数

    • from: Point2[]
    • to: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number
    • 可选 refineIters: number

    返回 Promise<{ inliers: Mat; out: Mat }>

estimateAffine3D

  • estimateAffine3D(src: Point3[], dst: Point3[], ransacThreshold?: number, confidence?: number): { inliers: Mat; out: Mat; returnValue: number }
  • estimateAffine3D(from: Point2[], to: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number, refineIters?: number): { inliers: Mat; out: Mat }
  • 参数

    • src: Point3[]
    • dst: Point3[]
    • 可选 ransacThreshold: number
    • 可选 confidence: number

    返回 { inliers: Mat; out: Mat; returnValue: number }

    • inliers: Mat
    • out: Mat
    • returnValue: number
  • 参数

    • from: Point2[]
    • to: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number
    • 可选 refineIters: number

    返回 { inliers: Mat; out: Mat }

estimateAffine3DAsync

  • estimateAffine3DAsync(src: Point3[], dst: Point3[], ransacThreshold?: number, confidence?: number): Promise<{ inliers: Mat; out: Mat; returnValue: number }>
  • estimateAffine3DAsync(from: Point2[], to: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number, refineIters?: number): Promise<{ inliers: Mat; out: Mat }>
  • 参数

    • src: Point3[]
    • dst: Point3[]
    • 可选 ransacThreshold: number
    • 可选 confidence: number

    返回 Promise<{ inliers: Mat; out: Mat; returnValue: number }>

  • 参数

    • from: Point2[]
    • to: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number
    • 可选 refineIters: number

    返回 Promise<{ inliers: Mat; out: Mat }>

estimateAffinePartial2D

  • estimateAffinePartial2D(from: Point2[], to: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number, refineIters?: number): { inliers: Mat; out: Mat }
  • 参数

    • from: Point2[]
    • to: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number
    • 可选 refineIters: number

    返回 { inliers: Mat; out: Mat }

estimateAffinePartial2DAsync

  • estimateAffinePartial2DAsync(from: Point2[], to: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number, refineIters?: number): Promise<{ inliers: Mat; out: Mat }>
  • 参数

    • from: Point2[]
    • to: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number
    • 可选 refineIters: number

    返回 Promise<{ inliers: Mat; out: Mat }>

fastNlMeansDenoisingColored

  • fastNlMeansDenoisingColored(src: Mat, h?: number, hColor?: number, templateWindowSize?: number, searchWindowSize?: number): Mat
  • 参数

    • src: Mat
    • 可选 h: number
    • 可选 hColor: number
    • 可选 templateWindowSize: number
    • 可选 searchWindowSize: number

    返回 Mat

findEssentialMat

  • findEssentialMat(points1: Point2[], points2: Point2[], focal?: number, pp?: Point2, method?: number, prob?: number, threshold?: number): { E: Mat; mask: Mat }
  • 参数

    • points1: Point2[]
    • points2: Point2[]
    • 可选 focal: number
    • 可选 pp: Point2
    • 可选 method: number
    • 可选 prob: number
    • 可选 threshold: number

    返回 { E: Mat; mask: Mat }

findEssentialMatAsync

  • findEssentialMatAsync(points1: Point2[], points2: Point2[], focal?: number, pp?: Point2, method?: number, prob?: number, threshold?: number): Promise<{ E: Mat; mask: Mat }>
  • 参数

    • points1: Point2[]
    • points2: Point2[]
    • 可选 focal: number
    • 可选 pp: Point2
    • 可选 method: number
    • 可选 prob: number
    • 可选 threshold: number

    返回 Promise<{ E: Mat; mask: Mat }>

findFundamentalMat

  • findFundamentalMat(points1: Point2[], points2: Point2[], method?: number, param1?: number, param2?: number): { F: Mat; mask: Mat }
  • 参数

    • points1: Point2[]
    • points2: Point2[]
    • 可选 method: number
    • 可选 param1: number
    • 可选 param2: number

    返回 { F: Mat; mask: Mat }

findFundamentalMatAsync

  • findFundamentalMatAsync(points1: Point2[], points2: Point2[], method?: number, param1?: number, param2?: number): Promise<{ F: Mat; mask: Mat }>
  • 参数

    • points1: Point2[]
    • points2: Point2[]
    • 可选 method: number
    • 可选 param1: number
    • 可选 param2: number

    返回 Promise<{ F: Mat; mask: Mat }>

findHomography

  • findHomography(srcPoints: Point2[], dstPoints: Point2[], method?: number, ransacReprojThreshold?: number, maxIters?: number, confidence?: number): { homography: Mat; mask: Mat }
  • 参数

    • srcPoints: Point2[]
    • dstPoints: Point2[]
    • 可选 method: number
    • 可选 ransacReprojThreshold: number
    • 可选 maxIters: number
    • 可选 confidence: number

    返回 { homography: Mat; mask: Mat }

findNonZero

findNonZeroAsync

  • findNonZeroAsync(mat: Mat): Promise<Point2[]>

fitLine

  • fitLine(points: Point2[], distType: number, param: number, reps: number, aeps: number): number[]
  • fitLine(points: Point3[], distType: number, param: number, reps: number, aeps: number): number[]
  • 参数

    • points: Point2[]
    • distType: number
    • param: number
    • reps: number
    • aeps: number

    返回 number[]

  • 参数

    • points: Point3[]
    • distType: number
    • param: number
    • reps: number
    • aeps: number

    返回 number[]

gaussianBlur

  • gaussianBlur(mat: Mat, kSize: Size, sigmaX: number, sigmaY?: number, borderType?: number): Mat
  • 参数

    • mat: Mat
    • kSize: Size
    • sigmaX: number
    • 可选 sigmaY: number
    • 可选 borderType: number

    返回 Mat

gaussianBlurAsync

  • gaussianBlurAsync(mat: Mat, kSize: Size, sigmaX: number, sigmaY?: number, borderType?: number): Promise<Mat>
  • 参数

    • mat: Mat
    • kSize: Size
    • sigmaX: number
    • 可选 sigmaY: number
    • 可选 borderType: number

    返回 Promise<Mat>

getAffineTransform

getBuildInformation

  • getBuildInformation(): string
  • 返回 string

getMemMetrics

  • getMemMetrics(): { NumAllocations: number; NumDeAllocations: number; TotalAlloc: number; TotalKnownByJS: number }
  • 返回 { NumAllocations: number; NumDeAllocations: number; TotalAlloc: number; TotalKnownByJS: number }

    • NumAllocations: number
    • NumDeAllocations: number
    • TotalAlloc: number
    • TotalKnownByJS: number

getNumThreads

  • getNumThreads(): number
  • 返回 number

getPerspectiveTransform

getRotationMatrix2D

  • getRotationMatrix2D(center: Point2, angle: number, scale?: number): Mat
  • 参数

    • center: Point2
    • angle: number
    • 可选 scale: number

    返回 Mat

getStructuringElement

  • getStructuringElement(shape: number, kernelSize: Size, anchor?: Point2): Mat
  • 参数

    • shape: number
    • kernelSize: Size
    • 可选 anchor: Point2

    返回 Mat

getTextSize

  • getTextSize(text: string, fontFace: number, fontScale: number, thickness: number): { baseLine: number; size: Size }
  • 参数

    • text: string
    • fontFace: number
    • fontScale: number
    • thickness: number

    返回 { baseLine: number; size: Size }

    • baseLine: number
    • size: Size

getTextSizeAsync

  • getTextSizeAsync(text: string, fontFace: number, fontScale: number, thickness: number): Promise<{ baseLine: number; size: Size }>
  • 参数

    • text: string
    • fontFace: number
    • fontScale: number
    • thickness: number

    返回 Promise<{ baseLine: number; size: Size }>

getThreadNum

  • getThreadNum(): number
  • 返回 number

getValidDisparityROI

  • getValidDisparityROI(roi1: Rect[], roi2: Rect[], minDisparity: number, numberOfDisparities: number, SADWindowSize: number): Rect
  • 参数

    • roi1: Rect[]
    • roi2: Rect[]
    • minDisparity: number
    • numberOfDisparities: number
    • SADWindowSize: number

    返回 Rect

getValidDisparityROIAsync

  • getValidDisparityROIAsync(roi1: Rect[], roi2: Rect[], minDisparity: number, numberOfDisparities: number, SADWindowSize: number): Promise<Rect>
  • 参数

    • roi1: Rect[]
    • roi2: Rect[]
    • minDisparity: number
    • numberOfDisparities: number
    • SADWindowSize: number

    返回 Promise<Rect>

goodFeaturesToTrack

  • goodFeaturesToTrack(mat: Mat, maxCorners: number, qualityLevel: number, minDistance: number, mask?: Mat, blockSize?: number, gradientSize?: number, useHarrisDetector?: boolean, harrisK?: number): Point2[]
  • 参数

    • mat: Mat
    • maxCorners: number
    • qualityLevel: number
    • minDistance: number
    • 可选 mask: Mat
    • 可选 blockSize: number
    • 可选 gradientSize: number
    • 可选 useHarrisDetector: boolean
    • 可选 harrisK: number

    返回 Point2[]

goodFeaturesToTrackAsync

  • goodFeaturesToTrackAsync(mat: Mat, maxCorners: number, qualityLevel: number, minDistance: number, mask?: Mat, blockSize?: number, gradientSize?: number, useHarrisDetector?: boolean, harrisK?: number): Promise<Point2[]>
  • 参数

    • mat: Mat
    • maxCorners: number
    • qualityLevel: number
    • minDistance: number
    • 可选 mask: Mat
    • 可选 blockSize: number
    • 可选 gradientSize: number
    • 可选 useHarrisDetector: boolean
    • 可选 harrisK: number

    返回 Promise<Point2[]>

imdecode

  • imdecode(buffer: Buffer, flags?: number): Mat
  • 参数

    • buffer: Buffer
    • 可选 flags: number

    返回 Mat

imdecodeAsync

  • imdecodeAsync(buffer: Buffer, flags?: number): Promise<Mat>
  • 参数

    • buffer: Buffer
    • 可选 flags: number

    返回 Promise<Mat>

imencode

  • imencode(fileExt: string, img: Mat, flags?: number[]): Buffer
  • 参数

    • fileExt: string
    • img: Mat
    • 可选 flags: number[]

    返回 Buffer

imencodeAsync

  • imencodeAsync(fileExt: string, img: Mat, flags?: number[]): Promise<Buffer>
  • 参数

    • fileExt: string
    • img: Mat
    • 可选 flags: number[]

    返回 Promise<Buffer>

imread

  • imread(filePath: string, flags?: number): Mat
  • 参数

    • filePath: string
    • 可选 flags: number

    返回 Mat

imreadAsync

  • imreadAsync(filePath: string, flags?: number): Promise<Mat>
  • 参数

    • filePath: string
    • 可选 flags: number

    返回 Promise<Mat>

imshow

  • imshow(winName: string, img: Mat): void
  • 参数

    • winName: string
    • img: Mat

    返回 void

imshowWait

  • imshowWait(winName: string, img: Mat): void
  • 参数

    • winName: string
    • img: Mat

    返回 void

imwrite

  • imwrite(filePath: string, img: Mat, flags?: number[]): void
  • 参数

    • filePath: string
    • img: Mat
    • 可选 flags: number[]

    返回 void

imwriteAsync

  • imwriteAsync(filePath: string, img: Mat, flags?: number[]): Promise<void>
  • 参数

    • filePath: string
    • img: Mat
    • 可选 flags: number[]

    返回 Promise<void>

initCameraMatrix2D

  • initCameraMatrix2D(objectPoints: Point3[], imagePoints: Point2[], imageSize: Size, aspectRatio?: number): Mat
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • imageSize: Size
    • 可选 aspectRatio: number

    返回 Mat

initCameraMatrix2DAsync

  • initCameraMatrix2DAsync(objectPoints: Point3[], imagePoints: Point2[], imageSize: Size, aspectRatio?: number): Promise<Mat>
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • imageSize: Size
    • 可选 aspectRatio: number

    返回 Promise<Mat>

inpaint

  • inpaint(src: Mat, mask: Mat, inpaintRadius: number, flags: number): Mat
  • 参数

    • src: Mat
    • mask: Mat
    • inpaintRadius: number
    • flags: number

    返回 Mat

inpaintAsync

  • inpaintAsync(src: Mat, mask: Mat, inpaintRadius: number, flags: number): Promise<Mat>
  • 参数

    • src: Mat
    • mask: Mat
    • inpaintRadius: number
    • flags: number

    返回 Promise<Mat>

isCustomMatAllocatorEnabled

  • isCustomMatAllocatorEnabled(): boolean
  • 返回 boolean

kmeans

  • kmeans(data: Point2[], k: number, attempts: number, termCriteria: TermCriteria, flags: number): { centers: Point2[]; labels: number[] }
  • kmeans(data: Point3[], k: number, attempts: number, termCriteria: TermCriteria, flags: number): { centers: Point3[]; labels: number[] }
  • 参数

    返回 { centers: Point2[]; labels: number[] }

    • centers: Point2[]
    • labels: number[]
  • 参数

    返回 { centers: Point3[]; labels: number[] }

    • centers: Point3[]
    • labels: number[]

loadOCRHMMClassifierCNN

loadOCRHMMClassifierCNNAsync

loadOCRHMMClassifierNM

loadOCRHMMClassifierNMAsync

matchBruteForce

matchBruteForceAsync

matchBruteForceHamming

matchBruteForceHammingAsync

matchBruteForceHammingLut

matchBruteForceHammingLutAsync

matchBruteForceL1

matchBruteForceL1Async

matchBruteForceSL2

matchBruteForceSL2Async

matchFlannBased

matchFlannBasedAsync

matchKnnBruteForce

matchKnnBruteForceAsync

matchKnnBruteForceHamming

matchKnnBruteForceHammingAsync

  • matchKnnBruteForceHammingAsync(descriptors1: Mat, descriptors2: Mat, k: number): Promise<DescriptorMatch[][]>

matchKnnBruteForceHammingLut

matchKnnBruteForceHammingLutAsync

  • matchKnnBruteForceHammingLutAsync(descriptors1: Mat, descriptors2: Mat, k: number): Promise<DescriptorMatch[][]>

matchKnnBruteForceL1

matchKnnBruteForceL1Async

  • matchKnnBruteForceL1Async(descriptors1: Mat, descriptors2: Mat, k: number): Promise<DescriptorMatch[][]>

matchKnnBruteForceSL2

matchKnnBruteForceSL2Async

  • matchKnnBruteForceSL2Async(descriptors1: Mat, descriptors2: Mat, k: number): Promise<DescriptorMatch[][]>

matchKnnFlannBased

matchKnnFlannBasedAsync

mean

meanAsync

  • meanAsync(mat: Mat): Promise<Vec4>
  • 参数

    返回 Promise<Vec4>

meanStdDev

  • meanStdDev(mat: Mat, mask?: Mat): { mean: Mat; stddev: Mat }
  • 参数

    返回 { mean: Mat; stddev: Mat }

meanStdDevAsync

  • meanStdDevAsync(mat: Mat, mask?: Mat): Promise<{ mean: Mat; stddev: Mat }>
  • 参数

    返回 Promise<{ mean: Mat; stddev: Mat }>

medianBlur

  • medianBlur(mat: Mat, kSize: number): Mat
  • 参数

    • mat: Mat
    • kSize: number

    返回 Mat

medianBlurAsync

  • medianBlurAsync(mat: Mat, kSize: number): Promise<Mat>
  • 参数

    • mat: Mat
    • kSize: number

    返回 Promise<Mat>

minMaxLoc

  • minMaxLoc(mat: Mat, mask?: Mat): { maxLoc: Point2; maxVal: number; minLoc: Point2; minVal: number }
  • 参数

    返回 { maxLoc: Point2; maxVal: number; minLoc: Point2; minVal: number }

    • maxLoc: Point2
    • maxVal: number
    • minLoc: Point2
    • minVal: number

minMaxLocAsync

  • minMaxLocAsync(mat: Mat, mask?: Mat): Promise<{ maxLoc: Point2; maxVal: number; minLoc: Point2; minVal: number }>
  • 参数

    返回 Promise<{ maxLoc: Point2; maxVal: number; minLoc: Point2; minVal: number }>

moveWindow

  • moveWindow(winName: string, x: number, y: number): void
  • 参数

    • winName: string
    • x: number
    • y: number

    返回 void

mulSpectrums

  • mulSpectrums(mat: Mat, mat2: Mat, dftRows?: boolean, conjB?: boolean): Mat
  • 参数

    • mat: Mat
    • mat2: Mat
    • 可选 dftRows: boolean
    • 可选 conjB: boolean

    返回 Mat

mulSpectrumsAsync

  • mulSpectrumsAsync(mat: Mat, mat2: Mat, dftRows?: boolean, conjB?: boolean): Promise<Mat>
  • 参数

    • mat: Mat
    • mat2: Mat
    • 可选 dftRows: boolean
    • 可选 conjB: boolean

    返回 Promise<Mat>

partition

  • partition(data: Point2[], predicate: (pt1: Point2, pt2: Point2) => boolean): { labels: number[]; numLabels: number }
  • partition(data: Point3[], predicate: (pt1: Point3, pt2: Point3) => boolean): { labels: number[]; numLabels: number }
  • partition(data: Vec2[], predicate: (vec1: Vec2, vec2: Vec2) => boolean): { labels: number[]; numLabels: number }
  • partition(data: Vec3[], predicate: (vec1: Vec3, vec2: Vec3) => boolean): { labels: number[]; numLabels: number }
  • partition(data: Vec4[], predicate: (vec1: Vec4, vec2: Vec4) => boolean): { labels: number[]; numLabels: number }
  • partition(data: Vec6[], predicate: (vec1: Vec6, vec2: Vec6) => boolean): { labels: number[]; numLabels: number }
  • partition(data: Mat[], predicate: (mat1: Mat, mat2: Mat) => boolean): { labels: number[]; numLabels: number }
  • 参数

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number
  • 参数

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number
  • 参数

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number
  • 参数

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number
  • 参数

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number
  • 参数

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number
  • 参数

    • data: Mat[]
    • predicate: (mat1: Mat, mat2: Mat) => boolean
        • (mat1: Mat, mat2: Mat): boolean
        • 参数

          返回 boolean

    返回 { labels: number[]; numLabels: number }

    • labels: number[]
    • numLabels: number

perspectiveTransform

  • perspectiveTransform(mat: Mat, m: Mat): Mat

perspectiveTransformAsync

  • perspectiveTransformAsync(mat: Mat, m: Mat): Promise<Mat>

plot1DHist

  • plot1DHist(hist: Mat, plotImg: Mat, color: Vec3, lineType?: number, thickness?: number, shift?: number): Mat
  • 参数

    • hist: Mat
    • plotImg: Mat
    • color: Vec3
    • 可选 lineType: number
    • 可选 thickness: number
    • 可选 shift: number

    返回 Mat

polarToCart

  • polarToCart(magnitude: Mat, angle: Mat, angleInDegrees?: boolean): { x: Mat; y: Mat }
  • 参数

    • magnitude: Mat
    • angle: Mat
    • 可选 angleInDegrees: boolean

    返回 { x: Mat; y: Mat }

polarToCartAsync

  • polarToCartAsync(magnitude: Mat, angle: Mat, angleInDegrees?: boolean): Promise<{ x: Mat; y: Mat }>
  • 参数

    • magnitude: Mat
    • angle: Mat
    • 可选 angleInDegrees: boolean

    返回 Promise<{ x: Mat; y: Mat }>

projectPoints

  • projectPoints(objectPoints: Point3[], imagePoints: Point2[], rvec: Vec3, tvec: Vec3, cameraMatrix: Mat, distCoeffs: number[], aspectRatio?: number): { imagePoints: Point2[]; jacobian: Mat }
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • rvec: Vec3
    • tvec: Vec3
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 aspectRatio: number

    返回 { imagePoints: Point2[]; jacobian: Mat }

projectPointsAsync

  • projectPointsAsync(objectPoints: Point3[], imagePoints: Point2[], rvec: Vec3, tvec: Vec3, cameraMatrix: Mat, distCoeffs: number[], aspectRatio?: number): Promise<{ imagePoints: Point2[]; jacobian: Mat }>
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • rvec: Vec3
    • tvec: Vec3
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 aspectRatio: number

    返回 Promise<{ imagePoints: Point2[]; jacobian: Mat }>

readNetFromCaffe

  • readNetFromCaffe(prototxt: string, modelPath?: string): Net
  • 参数

    • prototxt: string
    • 可选 modelPath: string

    返回 Net

readNetFromCaffeAsync

  • readNetFromCaffeAsync(prototxt: string, modelPath?: string): Promise<Net>
  • 参数

    • prototxt: string
    • 可选 modelPath: string

    返回 Promise<Net>

readNetFromTensorflow

  • readNetFromTensorflow(modelPath: string): Net
  • 参数

    • modelPath: string

    返回 Net

readNetFromTensorflowAsync

  • readNetFromTensorflowAsync(modelPath: string): Promise<Net>
  • 参数

    • modelPath: string

    返回 Promise<Net>

recoverPose

  • 参数

    返回 { R: Mat; T: Vec3; returnValue: number }

    • R: Mat
    • T: Vec3
    • returnValue: number

recoverPoseAsync

  • recoverPoseAsync(E: Mat, points1: Point2[], points2: Point2[], focal?: number, pp?: Point2, mask?: Mat): Promise<{ R: Mat; T: Vec3; returnValue: number }>
  • 参数

    返回 Promise<{ R: Mat; T: Vec3; returnValue: number }>

reduce

  • reduce(mat: Mat, dim: number, rtype: number, dtype?: number): Mat
  • 参数

    • mat: Mat
    • dim: number
    • rtype: number
    • 可选 dtype: number

    返回 Mat

reduceAsync

  • reduceAsync(mat: Mat, dim: number, rtype: number, dtype?: number): Promise<Mat>
  • 参数

    • mat: Mat
    • dim: number
    • rtype: number
    • 可选 dtype: number

    返回 Promise<Mat>

sampsonDistance

  • sampsonDistance(pt1: Vec2, pt2: Vec2, F: Mat): number

sampsonDistanceAsync

  • sampsonDistanceAsync(pt1: Vec2, pt2: Vec2, F: Mat): Promise<number>
  • 参数

    返回 Promise<number>

seamlessClone

seamlessCloneAsync

  • seamlessCloneAsync(src: Mat, dst: Mat, mask: Mat, p: Point2, flags: number): Promise<Mat>

setNumThreads

  • setNumThreads(nthreads: number): void
  • 参数

    • nthreads: number

    返回 void

solve

  • solve(mat: Mat, mat2: Mat, flags?: number): Mat
  • 参数

    • mat: Mat
    • mat2: Mat
    • 可选 flags: number

    返回 Mat

solveAsync

  • solveAsync(mat: Mat, mat2: Mat, flags?: number): Promise<Mat>
  • 参数

    • mat: Mat
    • mat2: Mat
    • 可选 flags: number

    返回 Promise<Mat>

solveP3P

  • solveP3P(objectPoints: Point3[], imagePoints: Point2[], cameraMatrix: Mat, distCoeffs: number[], flags?: number): { returnValue: boolean; rvecs: Mat[]; tvecs: Mat[] }
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 flags: number

    返回 { returnValue: boolean; rvecs: Mat[]; tvecs: Mat[] }

    • returnValue: boolean
    • rvecs: Mat[]
    • tvecs: Mat[]

solveP3PAsync

  • solveP3PAsync(objectPoints: Point3[], imagePoints: Point2[], cameraMatrix: Mat, distCoeffs: number[], flags?: number): Promise<{ returnValue: boolean; rvecs: Mat[]; tvecs: Mat[] }>
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 flags: number

    返回 Promise<{ returnValue: boolean; rvecs: Mat[]; tvecs: Mat[] }>

solvePnP

  • solvePnP(objectPoints: Point3[], imagePoints: Point2[], cameraMatrix: Mat, distCoeffs: number[], useExtrinsicGuess?: boolean, flags?: number): { returnValue: boolean; rvec: Vec3; tvec: Vec3 }
  • solvePnP(objectPoints: Point3[], imagePoints: Point2[], cameraMatrix: Mat, distCoeffs: number[], useExtrinsicGuess?: boolean, iterationsCount?: number, reprojectionError?: number, confidence?: number, flags?: number): { inliers: number[]; returnValue: boolean; rvec: Vec3; tvec: Vec3 }
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 useExtrinsicGuess: boolean
    • 可选 flags: number

    返回 { returnValue: boolean; rvec: Vec3; tvec: Vec3 }

    • returnValue: boolean
    • rvec: Vec3
    • tvec: Vec3
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 useExtrinsicGuess: boolean
    • 可选 iterationsCount: number
    • 可选 reprojectionError: number
    • 可选 confidence: number
    • 可选 flags: number

    返回 { inliers: number[]; returnValue: boolean; rvec: Vec3; tvec: Vec3 }

    • inliers: number[]
    • returnValue: boolean
    • rvec: Vec3
    • tvec: Vec3

solvePnPAsync

  • solvePnPAsync(objectPoints: Point3[], imagePoints: Point2[], cameraMatrix: Mat, distCoeffs: number[], useExtrinsicGuess?: boolean, flags?: number): Promise<{ returnValue: boolean; rvec: Vec3; tvec: Vec3 }>
  • solvePnPAsync(objectPoints: Point3[], imagePoints: Point2[], cameraMatrix: Mat, distCoeffs: number[], useExtrinsicGuess?: boolean, iterationsCount?: number, reprojectionError?: number, confidence?: number, flags?: number): Promise<{ inliers: number[]; returnValue: boolean; rvec: Vec3; tvec: Vec3 }>
  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 useExtrinsicGuess: boolean
    • 可选 flags: number

    返回 Promise<{ returnValue: boolean; rvec: Vec3; tvec: Vec3 }>

  • 参数

    • objectPoints: Point3[]
    • imagePoints: Point2[]
    • cameraMatrix: Mat
    • distCoeffs: number[]
    • 可选 useExtrinsicGuess: boolean
    • 可选 iterationsCount: number
    • 可选 reprojectionError: number
    • 可选 confidence: number
    • 可选 flags: number

    返回 Promise<{ inliers: number[]; returnValue: boolean; rvec: Vec3; tvec: Vec3 }>

split

  • 参数

    返回 Mat[]

splitAsync

  • splitAsync(mat: Mat): Promise<Mat[]>
  • 参数

    返回 Promise<Mat[]>

stereoCalibrate

  • stereoCalibrate(objectPoints: Point3[], imagePoints1: Point2[], imagePoints2: Point2[], cameraMatrix1: Mat, distCoeffs1: number[], cameraMatrix2: Mat, distCoeffs2: number[], imageSize: Size, flags?: number, criteria?: TermCriteria): { E: Mat; F: Mat; R: Mat; T: Vec3[]; distCoeffs1: number[]; distCoeffs2: number[]; returnValue: number }
  • 参数

    • objectPoints: Point3[]
    • imagePoints1: Point2[]
    • imagePoints2: Point2[]
    • cameraMatrix1: Mat
    • distCoeffs1: number[]
    • cameraMatrix2: Mat
    • distCoeffs2: number[]
    • imageSize: Size
    • 可选 flags: number
    • 可选 criteria: TermCriteria

    返回 { E: Mat; F: Mat; R: Mat; T: Vec3[]; distCoeffs1: number[]; distCoeffs2: number[]; returnValue: number }

    • E: Mat
    • F: Mat
    • R: Mat
    • T: Vec3[]
    • distCoeffs1: number[]
    • distCoeffs2: number[]
    • returnValue: number

stereoCalibrateAsync

  • stereoCalibrateAsync(objectPoints: Point3[], imagePoints1: Point2[], imagePoints2: Point2[], cameraMatrix1: Mat, distCoeffs1: number[], cameraMatrix2: Mat, distCoeffs2: number[], imageSize: Size, flags?: number, criteria?: TermCriteria): Promise<{ E: Mat; F: Mat; R: Mat; T: Vec3[]; distCoeffs1: number[]; distCoeffs2: number[]; returnValue: number }>
  • 参数

    • objectPoints: Point3[]
    • imagePoints1: Point2[]
    • imagePoints2: Point2[]
    • cameraMatrix1: Mat
    • distCoeffs1: number[]
    • cameraMatrix2: Mat
    • distCoeffs2: number[]
    • imageSize: Size
    • 可选 flags: number
    • 可选 criteria: TermCriteria

    返回 Promise<{ E: Mat; F: Mat; R: Mat; T: Vec3[]; distCoeffs1: number[]; distCoeffs2: number[]; returnValue: number }>

stereoRectifyUncalibrated

  • stereoRectifyUncalibrated(points1: Point2[], points2: Point2[], F: Mat, imageSize: Size, threshold?: number): { H1: Mat; H2: Mat; returnValue: boolean }
  • 参数

    返回 { H1: Mat; H2: Mat; returnValue: boolean }

    • H1: Mat
    • H2: Mat
    • returnValue: boolean

stereoRectifyUncalibratedAsync

  • stereoRectifyUncalibratedAsync(points1: Point2[], points2: Point2[], F: Mat, imageSize: Size, threshold?: number): Promise<{ H1: Mat; H2: Mat; returnValue: boolean }>
  • 参数

    返回 Promise<{ H1: Mat; H2: Mat; returnValue: boolean }>

sum

sumAsync

  • sumAsync(mat: Mat): Promise<number>
  • sumAsync(mat: Mat): Promise<Vec2>
  • sumAsync(mat: Mat): Promise<Vec3>
  • sumAsync(mat: Mat): Promise<Vec4>
  • 参数

    返回 Promise<number>

  • 参数

    返回 Promise<Vec2>

  • 参数

    返回 Promise<Vec3>

  • 参数

    返回 Promise<Vec4>

transform

transformAsync

  • transformAsync(mat: Mat, m: Mat): Promise<Mat>

undistortPoints

undistortPointsAsync

  • undistortPointsAsync(srcPoints: Point2[], cameraMatrix: Mat, distCoeffs: Mat): Promise<Point2[]>

waitKey

  • waitKey(delay?: number): number
  • 参数

    • 可选 delay: number

    返回 number

waitKeyEx

  • waitKeyEx(delay?: number): number
  • 参数

    • 可选 delay: number

    返回 number