Fork of theothergrantdavidson/opencv-ts.
Notable changes:
Upgraded to OpenCV 4.9.0.- Reverted back to the original version, since the new version was not working
on the Photoshop plugin. But renamed
opencv.jstoopencv.cjsto make it work with Vite.
- Reverted back to the original version, since the new version was not working
on the Photoshop plugin. But renamed
- Fix wrong signatures.
- Added simple unit test opencv.test.ts to test usage.
Original README:
Package for opencvjs in typescript (WIP), adding class and function definiitons progresssively.
Compatible with OpenCV 4.5 version
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);
};- Modules
- Core
Basic StructuresOperations on Arrays
- Image Processing
Image FilteringGeometric Image TransformationsDrawing FunctionsColor Space ConversionsColorMaps in OpenCVPlanar SubdivisionHistogramsMiscellaneous Image TransformationsStructural Analysis and Shape DescriptorsFeature DetectionObject DetectionImage SegmentationVideo: Object Tracking- 2D Features Framework
- Computational Photography
- Inpainting
- Camera Calibration and 3D Reconstruction
- Fisheye camera model
- Core