opencv-ts
TypeScript icon, indicating that this package has built-in type declarations

1.3.6 • Public • Published

opencv-ts

Package for opencvjs in typescript (WIP), adding class and function definiitons progresssively.

compatibility

Compatible with OpenCV 4.5 version

example use

import cv, { Mat, Rect } from "opencv-ts";

cv.onRuntimeInitialized = () => {
    const src = cv.imread("inputCanvas");
    const dst: Mat = new cv.Mat(src.cols, src.rows, cv.CV_8UC4);

    cv.resize(src, dst, new cv.Size(500, 500), 0, 0, cv.INTER_AREA);

    const roiRect: Rect = new cv.Rect(0, 0, 200, 200);

    const roi = dst.roi(roiRect);

    cv.imshow('outputCanvas', roi);
};

Typings Progress

  • Modules
    • Core
      • Basic Structures
      • Operations on Arrays
    • Image Processing
      • Image Filtering
      • Geometric Image Transformations
      • Drawing Functions
      • Color Space Conversions
      • ColorMaps in OpenCV
      • Planar Subdivision
      • Histograms
      • Miscellaneous Image Transformations
      • Structural Analysis and Shape Descriptors
      • Feature Detection
      • Object Detection
      • Image Segmentation
      • Video: Object Tracking
      • 2D Features Framework
      • Computational Photography
        • Inpainting
      • Camera Calibration and 3D Reconstruction
        • Fisheye camera model

Package Sidebar

Install

npm i opencv-ts

Weekly Downloads

622

Version

1.3.6

License

MIT

Unpacked Size

8.9 MB

Total Files

40

Last publish

Collaborators

  • theothergrantdavidson