@techstark/opencv-js 4.9.0-release.3 → 4.10.0-release.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1312
- package/dist/opencv.js +48 -5
- package/dist/opencv.js.patch +10 -8
- package/dist/src/types/_cv.d.ts +2 -2
- package/dist/src/types/opencv/Affine3.d.ts +1 -1
- package/dist/src/types/opencv/Algorithm.d.ts +1 -1
- package/dist/src/types/opencv/Algorithm.js +0 -1
- package/dist/src/types/opencv/Algorithm.js.map +1 -1
- package/dist/src/types/opencv/AutoBuffer.d.ts +1 -1
- package/dist/src/types/opencv/BFMatcher.d.ts +1 -1
- package/dist/src/types/opencv/BFMatcher.js +0 -1
- package/dist/src/types/opencv/BFMatcher.js.map +1 -1
- package/dist/src/types/opencv/BOWTrainer.d.ts +1 -1
- package/dist/src/types/opencv/CascadeClassifier.d.ts +1 -1
- package/dist/src/types/opencv/CascadeClassifier.js +0 -1
- package/dist/src/types/opencv/CascadeClassifier.js.map +1 -1
- package/dist/src/types/opencv/DescriptorMatcher.d.ts +1 -1
- package/dist/src/types/opencv/DescriptorMatcher.js +0 -1
- package/dist/src/types/opencv/DescriptorMatcher.js.map +1 -1
- package/dist/src/types/opencv/DynamicBitset.d.ts +1 -1
- package/dist/src/types/opencv/Exception.d.ts +1 -1
- package/dist/src/types/opencv/Feature2D.d.ts +2 -2
- package/dist/src/types/opencv/Feature2D.js +0 -1
- package/dist/src/types/opencv/Feature2D.js.map +1 -1
- package/dist/src/types/opencv/FlannBasedMatcher.d.ts +1 -1
- package/dist/src/types/opencv/FlannBasedMatcher.js +0 -1
- package/dist/src/types/opencv/FlannBasedMatcher.js.map +1 -1
- package/dist/src/types/opencv/HOGDescriptor.d.ts +1 -1
- package/dist/src/types/opencv/Logger.d.ts +1 -1
- package/dist/src/types/opencv/LshTable.d.ts +1 -1
- package/dist/src/types/opencv/Mat.d.ts +22 -4
- package/dist/src/types/opencv/Mat.js +0 -1
- package/dist/src/types/opencv/Mat.js.map +1 -1
- package/dist/src/types/opencv/MatExpr.d.ts +1 -1
- package/dist/src/types/opencv/MatExpr.js +0 -1
- package/dist/src/types/opencv/MatExpr.js.map +1 -1
- package/dist/src/types/opencv/MatOp.d.ts +1 -1
- package/dist/src/types/opencv/Matx.d.ts +1 -1
- package/dist/src/types/opencv/Node.d.ts +1 -1
- package/dist/src/types/opencv/ORB.d.ts +2 -2
- package/dist/src/types/opencv/ORB.js +0 -1
- package/dist/src/types/opencv/ORB.js.map +1 -1
- package/dist/src/types/opencv/PCA.d.ts +1 -1
- package/dist/src/types/opencv/RotatedRect.d.ts +1 -1
- package/dist/src/types/opencv/TrackerMIL.d.ts +1 -1
- package/dist/src/types/opencv/TrackerMIL.js +0 -1
- package/dist/src/types/opencv/TrackerMIL.js.map +1 -1
- package/dist/src/types/opencv/_hacks.d.ts +1 -1
- package/dist/src/types/opencv/_hacks.js.map +1 -1
- package/dist/src/types/opencv/calib3d.d.ts +1 -1
- package/dist/src/types/opencv/core_array.d.ts +1 -1
- package/dist/src/types/opencv/core_cluster.d.ts +1 -1
- package/dist/src/types/opencv/core_hal_interface.d.ts +1 -1
- package/dist/src/types/opencv/core_utils.d.ts +1 -1
- package/dist/src/types/opencv/dnn.d.ts +1 -1
- package/dist/src/types/opencv/features2d_draw.d.ts +1 -1
- package/dist/src/types/opencv/fisheye.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_color_conversions.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_draw.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_feature.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_filter.d.ts +2 -2
- package/dist/src/types/opencv/imgproc_hist.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_misc.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_object.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_shape.d.ts +1 -1
- package/dist/src/types/opencv/imgproc_transform.d.ts +1 -1
- package/dist/src/types/opencv/objdetect.d.ts +1 -1
- package/dist/src/types/opencv/photo_inpaint.d.ts +1 -1
- package/dist/src/types/opencv/softdouble.d.ts +1 -1
- package/dist/src/types/opencv/softfloat.d.ts +1 -1
- package/dist/src/types/opencv/video_track.d.ts +1 -1
- package/package.json +10 -10
- package/src/types/_cv.ts +2 -2
- package/src/types/opencv/Affine3.ts +1 -1
- package/src/types/opencv/Algorithm.ts +1 -1
- package/src/types/opencv/AutoBuffer.ts +1 -1
- package/src/types/opencv/BFMatcher.ts +1 -1
- package/src/types/opencv/BOWTrainer.ts +1 -1
- package/src/types/opencv/CascadeClassifier.ts +1 -1
- package/src/types/opencv/DescriptorMatcher.ts +1 -1
- package/src/types/opencv/DynamicBitset.ts +1 -1
- package/src/types/opencv/Exception.ts +1 -1
- package/src/types/opencv/Feature2D.ts +2 -2
- package/src/types/opencv/FlannBasedMatcher.ts +1 -1
- package/src/types/opencv/HOGDescriptor.ts +1 -1
- package/src/types/opencv/Logger.ts +1 -1
- package/src/types/opencv/LshTable.ts +1 -1
- package/src/types/opencv/Mat.ts +30 -4
- package/src/types/opencv/MatExpr.ts +1 -1
- package/src/types/opencv/MatOp.ts +1 -1
- package/src/types/opencv/Matx.ts +1 -1
- package/src/types/opencv/Node.ts +1 -1
- package/src/types/opencv/ORB.ts +2 -2
- package/src/types/opencv/PCA.ts +1 -1
- package/src/types/opencv/RotatedRect.ts +1 -1
- package/src/types/opencv/TrackerMIL.ts +1 -1
- package/src/types/opencv/_hacks.ts +1 -1
- package/src/types/opencv/calib3d.ts +1 -1
- package/src/types/opencv/core_array.ts +1 -1
- package/src/types/opencv/core_cluster.ts +1 -1
- package/src/types/opencv/core_hal_interface.ts +1 -1
- package/src/types/opencv/core_utils.ts +1 -1
- package/src/types/opencv/dnn.ts +1 -1
- package/src/types/opencv/features2d_draw.ts +1 -1
- package/src/types/opencv/fisheye.ts +1 -1
- package/src/types/opencv/imgproc_color_conversions.ts +1 -1
- package/src/types/opencv/imgproc_draw.ts +1 -1
- package/src/types/opencv/imgproc_feature.ts +1 -1
- package/src/types/opencv/imgproc_filter.ts +2 -2
- package/src/types/opencv/imgproc_hist.ts +1 -1
- package/src/types/opencv/imgproc_misc.ts +1 -1
- package/src/types/opencv/imgproc_object.ts +1 -1
- package/src/types/opencv/imgproc_shape.ts +1 -1
- package/src/types/opencv/imgproc_transform.ts +1 -1
- package/src/types/opencv/objdetect.ts +1 -1
- package/src/types/opencv/photo_inpaint.ts +1 -1
- package/src/types/opencv/softdouble.ts +1 -1
- package/src/types/opencv/softfloat.ts +1 -1
- package/src/types/opencv/video_track.ts +1 -1
package/dist/opencv.js.patch
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
diff --git a/dist/opencv.js b/dist/opencv.js
|
|
2
|
-
index
|
|
2
|
+
index 1be6d42..9971ab6 100644
|
|
3
3
|
--- a/dist/opencv.js
|
|
4
4
|
+++ b/dist/opencv.js
|
|
5
|
-
@@ -
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-Module={};
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
@@ -42,7 +42,7 @@ if (typeof exports === 'object' && typeof module === 'object')
|
|
6
|
+
exports["cv"] = cv;
|
|
7
|
+
|
|
8
|
+
if (typeof Module === 'undefined')
|
|
9
|
+
- Module = {};
|
|
10
|
+
+ var Module = {};
|
|
11
|
+
return cv(Module);
|
|
12
|
+
}));
|
|
13
|
+
|
|
12
14
|
|
package/dist/src/types/_cv.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, EmscriptenEmbindInstance, FileNode, FileStorage, Ptr } from "./_types";
|
|
1
|
+
import type { bool, EmscriptenEmbindInstance, FileNode, FileStorage, Ptr } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* especially for classes of algorithms, for which there can be multiple implementations. The examples
|
|
4
4
|
* are stereo correspondence (for which there are algorithms like block matching, semi-global block
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Algorithm.js","sourceRoot":"","sources":["../../../../src/types/opencv/Algorithm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Algorithm.js","sourceRoot":"","sources":["../../../../src/types/opencv/Algorithm.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { size_t } from "./_types";
|
|
1
|
+
import type { size_t } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The class is used for temporary buffers in functions and methods. If a temporary buffer is usually
|
|
4
4
|
* small (a few K's of memory), but its size depends on the parameters, it makes sense to create a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, DescriptorMatcher, int, Ptr } from "./_types";
|
|
1
|
+
import type { bool, DescriptorMatcher, int, Ptr } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* For each descriptor in the first set, this matcher finds the closest descriptor in the second set by
|
|
4
4
|
* trying each one. This descriptor matcher supports masking permissible matches of descriptor sets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BFMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/BFMatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BFMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/BFMatcher.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CascadeClassifier.js","sourceRoot":"","sources":["../../../../src/types/opencv/CascadeClassifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CascadeClassifier.js","sourceRoot":"","sources":["../../../../src/types/opencv/CascadeClassifier.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Algorithm, bool, FileNode, FileStorage, float, InputArray, InputArrayOfArrays, int, Mat, Ptr } from "./_types";
|
|
1
|
+
import type { Algorithm, bool, FileNode, FileStorage, float, InputArray, InputArrayOfArrays, int, Mat, Ptr } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* It has two groups of match methods: for matching descriptors of an image with another image or with
|
|
4
4
|
* an image set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptorMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/DescriptorMatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DescriptorMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/DescriptorMatcher.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { int } from "./_types";
|
|
1
|
+
import type { int } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* This class encapsulates all or almost all necessary information about the error happened in the
|
|
4
4
|
* program. The exception is usually constructed and thrown implicitly via CV_Error and CV_Error_
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Algorithm, KeyPointVector, Mat, OutputArray } from "./_types";
|
|
1
|
+
import type { Algorithm, KeyPointVector, Mat, OutputArray } from "./_types";
|
|
2
2
|
/**
|
|
3
|
-
* https://docs.opencv.org/4.
|
|
3
|
+
* https://docs.opencv.org/4.10.0/d0/d13/classcv_1_1Feature2D.html
|
|
4
4
|
*/
|
|
5
5
|
export declare class Feature2D extends Algorithm {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feature2D.js","sourceRoot":"","sources":["../../../../src/types/opencv/Feature2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Feature2D.js","sourceRoot":"","sources":["../../../../src/types/opencv/Feature2D.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, DescriptorMatcher, FileNode, FileStorage, InputArrayOfArrays, Ptr } from "./_types";
|
|
1
|
+
import type { bool, DescriptorMatcher, FileNode, FileStorage, InputArrayOfArrays, Ptr } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* This matcher trains [cv::flann::Index](#d1/db2/classcv_1_1flann_1_1Index}) on a train descriptor
|
|
4
4
|
* collection and calls its nearest search methods to find the best matches. So, this matcher may be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlannBasedMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/FlannBasedMatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlannBasedMatcher.js","sourceRoot":"","sources":["../../../../src/types/opencv/FlannBasedMatcher.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, FileNode, FileStorage, float, InputArray, InputOutputArray, int, Point, Size, size_t, UMat } from "./_types";
|
|
1
|
+
import type { bool, double, FileNode, FileStorage, float, InputArray, InputOutputArray, int, Point, Size, size_t, UMat } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* the HOG descriptor algorithm introduced by Navneet Dalal and Bill Triggs Dalal2005 .
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, BucketKey, LshStats, Matrix, size_t } from "./_types";
|
|
1
|
+
import type { Bucket, BucketKey, LshStats, Matrix, size_t } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* Lsh hash table. As its key is a sub-feature, and as usually the size of it is pretty small, we keep
|
|
4
4
|
* it as a continuous memory array. The value is an index in the corpus of features (we keep it as an
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessFlag, bool, double, EmscriptenEmbindInstance, InputArray, int, MatAllocator, MatCommaInitializer_, MatConstIterator_, MatExpr, MatIterator_, MatSize, MatStep, Matx, OutputArray, Point, Point3_, Point_, Rect, Scalar, Size, size_t, typename, uchar, UMat, UMatData, UMatUsageFlags, Vec } from "./_types";
|
|
1
|
+
import type { AccessFlag, bool, double, EmscriptenEmbindInstance, InputArray, int, MatAllocator, MatCommaInitializer_, MatConstIterator_, MatExpr, MatIterator_, MatSize, MatStep, Matx, OutputArray, Point, Point3_, Point_, Rect, Scalar, Size, size_t, typename, uchar, UMat, UMatData, UMatUsageFlags, Vec } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* <a name="d3/d63/classcv_1_1Mat_1CVMat_Details"></a> The class [Mat](#d3/d63/classcv_1_1Mat})
|
|
4
4
|
* represents an n-dimensional dense numerical single-channel or multi-channel array. It can be used to
|
|
@@ -1443,12 +1443,30 @@ export declare class Mat extends EmscriptenEmbindInstance {
|
|
|
1443
1443
|
shortPtr(i: any, j: any): any;
|
|
1444
1444
|
ushortPtr(i: any, j: any): any;
|
|
1445
1445
|
intPtr(i: any, j: any): any;
|
|
1446
|
-
ucharAt(i: any): any;
|
|
1447
|
-
charAt(i: any): any;
|
|
1448
1446
|
floatPtr(i: any, j: any): any;
|
|
1449
|
-
doubleAt(i: int, j: int): any;
|
|
1450
1447
|
doublePtr(i: any, j: any): any;
|
|
1451
1448
|
intPtr(i: any, j: any): any;
|
|
1449
|
+
charAt(i0: number): number;
|
|
1450
|
+
charAt(i0: number, i1: number): number;
|
|
1451
|
+
charAt(i0: number, i1: number, i2: number): number;
|
|
1452
|
+
ucharAt(i0: number): number;
|
|
1453
|
+
ucharAt(i0: number, i1: number): number;
|
|
1454
|
+
ucharAt(i0: number, i1: number, i2: number): number;
|
|
1455
|
+
shortAt(i0: number): number;
|
|
1456
|
+
shortAt(i0: number, i1: number): number;
|
|
1457
|
+
shortAt(i0: number, i1: number, i2: number): number;
|
|
1458
|
+
ushortAt(i0: number): number;
|
|
1459
|
+
ushortAt(i0: number, i1: number): number;
|
|
1460
|
+
ushortAt(i0: number, i1: number, i2: number): number;
|
|
1461
|
+
intAt(i0: number): number;
|
|
1462
|
+
intAt(i0: number, i1: number): number;
|
|
1463
|
+
intAt(i0: number, i1: number, i2: number): number;
|
|
1464
|
+
floatAt(i0: number): number;
|
|
1465
|
+
floatAt(i0: number, i1: number): number;
|
|
1466
|
+
floatAt(i0: number, i1: number, i2: number): number;
|
|
1467
|
+
doubleAt(i0: number): number;
|
|
1468
|
+
doubleAt(i0: number, i1: number): number;
|
|
1469
|
+
doubleAt(i0: number, i1: number, i2: number): number;
|
|
1452
1470
|
setTo(value: Mat | Scalar, mask?: Mat): Mat;
|
|
1453
1471
|
/**
|
|
1454
1472
|
* Sometimes, you will have to play with certain region of images.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mat.js","sourceRoot":"","sources":["../../../../src/types/opencv/Mat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Mat.js","sourceRoot":"","sources":["../../../../src/types/opencv/Mat.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { double, int, Mat, MatOp, Scalar } from "./_types";
|
|
1
|
+
import type { double, int, Mat, MatOp, Scalar } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* <a name="d1/d10/classcv_1_1MatExpr_1MatrixExpressions"></a>This is a list of implemented matrix
|
|
4
4
|
* operations that can be combined in arbitrary complex expressions (here A, B stand for matrices (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatExpr.js","sourceRoot":"","sources":["../../../../src/types/opencv/MatExpr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MatExpr.js","sourceRoot":"","sources":["../../../../src/types/opencv/MatExpr.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { diag_type, int, Matx_AddOp, Matx_DivOp, Matx_MatMulOp, Matx_MulOp, Matx_ScaleOp, Matx_SubOp, Matx_TOp, Vec, _T2, _Tp } from "./_types";
|
|
1
|
+
import type { diag_type, int, Matx_AddOp, Matx_DivOp, Matx_MatMulOp, Matx_MulOp, Matx_ScaleOp, Matx_SubOp, Matx_TOp, Vec, _T2, _Tp } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* If you need a more flexible type, use [Mat](#d3/d63/classcv_1_1Mat}) . The elements of the matrix M
|
|
4
4
|
* are accessible using the M(i,j) notation. Most of the common matrix operations (see also
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feature2D, float, int } from "./_types";
|
|
1
|
+
import type { Feature2D, float, int } from "./_types";
|
|
2
2
|
/**
|
|
3
|
-
* https://docs.opencv.org/4.
|
|
3
|
+
* https://docs.opencv.org/4.10.0/db/d95/classcv_1_1ORB.html
|
|
4
4
|
*/
|
|
5
5
|
export declare class ORB extends Feature2D {
|
|
6
6
|
constructor(nfeatures?: int, scaleFactor?: float, nlevels?: int, edgeThreshold?: int, firstLevel?: int, WTA_K?: int, scoreType?: ORBScoreType, patchSize?: int, fastThreshold?: int);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ORB.js","sourceRoot":"","sources":["../../../../src/types/opencv/ORB.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ORB.js","sourceRoot":"","sources":["../../../../src/types/opencv/ORB.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { double, FileNode, FileStorage, InputArray, int, Mat, OutputArray } from "./_types";
|
|
1
|
+
import type { double, FileNode, FileStorage, InputArray, int, Mat, OutputArray } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The class is used to calculate a special basis for a set of vectors. The basis will consist of
|
|
4
4
|
* eigenvectors of the covariance matrix calculated from the input set of vectors. The class PCA can
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { float, Point2f, Rect, Rect_, Size2f } from "./_types";
|
|
1
|
+
import type { float, Point2f, Rect, Rect_, Size2f } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* Each rectangle is specified by the center point (mass center), length of each side (represented by
|
|
4
4
|
* [Size2f](#dc/d84/group__core__basic_1gab34496d2466b5f69930ab74c70f117d4}) structure) and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrackerMIL.js","sourceRoot":"","sources":["../../../../src/types/opencv/TrackerMIL.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TrackerMIL.js","sourceRoot":"","sources":["../../../../src/types/opencv/TrackerMIL.ts"],"names":[],"mappings":""}
|
|
@@ -66,7 +66,7 @@ export declare class MinMaxLoc {
|
|
|
66
66
|
export declare function exceptionFromPtr(err: number): any;
|
|
67
67
|
export declare function onRuntimeInitialized(): any;
|
|
68
68
|
export declare function FS_createDataFile(arg0: string, path: string, data: Uint8Array, arg3: boolean, arg4: boolean, arg5: boolean): any;
|
|
69
|
-
import { Algorithm, LineTypes, Mat, NormTypes, RotatedRect } from ".";
|
|
69
|
+
import { Algorithm, type LineTypes, Mat, type NormTypes, RotatedRect } from ".";
|
|
70
70
|
import "../_cv";
|
|
71
71
|
/**
|
|
72
72
|
* Base class for Contrast Limited Adaptive Histogram Equalization.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_hacks.js","sourceRoot":"","sources":["../../../../src/types/opencv/_hacks.ts"],"names":[],"mappings":";AAAA,uGAAuG;;;AA8FvG,
|
|
1
|
+
{"version":3,"file":"_hacks.js","sourceRoot":"","sources":["../../../../src/types/opencv/_hacks.ts"],"names":[],"mappings":";AAAA,uGAAuG;;;AA8FvG,wBAAgF;AAlFhE,2FAkFoB,MAAG,OAlFb;AACV,iGAiFoB,MAAG,OAjFP;AAChB,4FAgFoB,MAAG,OAhFZ;AAiF3B,kBAAgB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, float, InputArray, InputArrayOfArrays, InputOutputArray, int, Mat, OutputArray, OutputArrayOfArrays, Point2d, Rect, Size, size_t, TermCriteria, Vec3d } from "./_types";
|
|
1
|
+
import type { bool, double, float, InputArray, InputArrayOfArrays, InputOutputArray, int, Mat, OutputArray, OutputArrayOfArrays, Point2d, Rect, Size, size_t, TermCriteria, Vec3d } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* the overall RMS re-projection error.
|
|
4
4
|
* The function estimates the intrinsic camera parameters and extrinsic parameters for each of the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, InputArrayOfArrays, InputOutputArray, InputOutputArrayOfArrays, int, Mat, MinMaxLoc, OutputArray, OutputArrayOfArrays, Scalar, size_t } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, InputArrayOfArrays, InputOutputArray, InputOutputArrayOfArrays, int, Mat, MinMaxLoc, OutputArray, OutputArrayOfArrays, Scalar, size_t } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function [cv::absdiff] calculates: Absolute difference between two arrays when they have the
|
|
4
4
|
* same size and type: `\\[\\texttt{dst}(I) = \\texttt{saturate} (| \\texttt{src1}(I) -
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { double, InputArray, InputOutputArray, int, OutputArray, TermCriteria, _EqPredicate } from "./_types";
|
|
1
|
+
import type { double, InputArray, InputOutputArray, int, OutputArray, TermCriteria, _EqPredicate } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function kmeans implements a k-means algorithm that finds the centers of cluster_count clusters
|
|
4
4
|
* and groups the input samples around the clusters. As an output, `$\\texttt{bestLabels}_i$` contains
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncArray, bool, double, ErrorCallback, float, float16_t, InputArray, InputArrayOfArrays, InputOutputArray, InputOutputArrayOfArrays, int, int64, schar, short, size_t, uchar, uint64, unsigned, ushort, _Tp } from "./_types";
|
|
1
|
+
import type { AsyncArray, bool, double, ErrorCallback, float, float16_t, InputArray, InputArrayOfArrays, InputOutputArray, InputOutputArrayOfArrays, int, int64, schar, short, size_t, uchar, uint64, unsigned, ushort, _Tp } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function returns the aligned pointer of the same type as the input pointer:
|
|
4
4
|
* `\\[\\texttt{(_Tp*)(((size_t)ptr + n-1) & -n)}\\]`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, InputArrayOfArrays, int, Mat, Net, OutputArray, OutputArrayOfArrays, Size, size_t, uchar } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, InputArrayOfArrays, int, Mat, Net, OutputArray, OutputArrayOfArrays, Size, size_t, uchar } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* if `crop` is true, input image is resized so one side after resize is equal to corresponding
|
|
4
4
|
* dimension in `size` and another one is equal or larger. Then, crop from the center is performed. If
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputArray, InputOutputArray } from "./_types";
|
|
1
|
+
import type { InputArray, InputOutputArray } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* For Python API, flags are modified as cv.DRAW_MATCHES_FLAGS_DEFAULT,
|
|
4
4
|
* cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS, cv.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputArray, OutputArray, int, Size } from "./_types";
|
|
1
|
+
import type { InputArray, OutputArray, int, Size } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* Computes the undistortion and rectification maps for the image transform using remap.
|
|
4
4
|
* If D is empty, zero distortion is used. If R or P is empty, identity matrices are used.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputArray, int, OutputArray } from "./_types";
|
|
1
|
+
import type { InputArray, int, OutputArray } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function converts an input image from one color space to another. In case of a transformation
|
|
4
4
|
* to-from RGB color space, the order of the channels should be specified explicitly (RGB or BGR). Note
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, InputArrayOfArrays, InputOutputArray, int, Point, Point2d, Rect, Scalar, Size, Size2d, Size2l } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, InputArrayOfArrays, InputOutputArray, int, Point, Point2d, Rect, Scalar, Size, Size2d, Size2l } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function [cv::arrowedLine] draws an arrow between pt1 and pt2 points in the image. See also
|
|
4
4
|
* [line].
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, InputOutputArray, int, OutputArray, Size, TermCriteria } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, InputOutputArray, int, OutputArray, Size, TermCriteria } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function finds edges in the input image and marks them in the output map edges using the Canny
|
|
4
4
|
* algorithm. The smallest value between threshold1 and threshold2 is used for edge linking. The
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, int, Mat, OutputArray, OutputArrayOfArrays, Point, Scalar, Size, TermCriteria } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, int, Mat, OutputArray, OutputArrayOfArrays, Point, Scalar, Size, TermCriteria } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function applies bilateral filtering to the input image, as described in bilateralFilter can
|
|
4
4
|
* reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared
|
|
@@ -388,7 +388,7 @@ export declare function morphologyDefaultBorderValue(): Scalar;
|
|
|
388
388
|
* @param borderValue Border value in case of a constant border. The default value has a special
|
|
389
389
|
* meaning.
|
|
390
390
|
*/
|
|
391
|
-
export declare function morphologyEx(src: InputArray, dst: OutputArray, op: int, kernel: InputArray, anchor?: Point, iterations?: int, borderType?: int, borderValue?: any): void;
|
|
391
|
+
export declare function morphologyEx(src: InputArray, dst: OutputArray, op: int | MorphTypes, kernel: InputArray, anchor?: Point, iterations?: int, borderType?: int, borderValue?: any): void;
|
|
392
392
|
/**
|
|
393
393
|
* By default, size of the output image is computed as `Size((src.cols+1)/2, (src.rows+1)/2)`, but in
|
|
394
394
|
* any case, the following conditions should be satisfied:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, float, InputArray, InputArrayOfArrays, int, OutputArray, Size } from "./_types";
|
|
1
|
+
import type { bool, double, float, InputArray, InputArrayOfArrays, int, OutputArray, Size } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function [cv::calcBackProject] calculates the back project of the histogram. That is, similarly
|
|
4
4
|
* to [calcHist] , at each location (x, y) the function collects the values from the selected channels
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { double, InputArray, InputOutputArray, int, OutputArray, Point, Rect, Scalar } from "./_types";
|
|
1
|
+
import type { double, InputArray, InputOutputArray, int, OutputArray, Point, Rect, Scalar } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function transforms a grayscale image to a binary image according to the formulae:
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputArray, int, OutputArray } from "./_types";
|
|
1
|
+
import type { InputArray, int, OutputArray } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function slides through image , compares the overlapped patches of size `$w \\times h$` against
|
|
4
4
|
* templ using the specified method and stores the comparison results in result . Here are the formulae
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, Circle, double, float, InputArray, int, Moments, OutputArray, OutputArrayOfArrays, Point, Point2f, Rect, RotatedRect } from "./_types";
|
|
1
|
+
import type { bool, Circle, double, float, InputArray, int, Moments, OutputArray, OutputArrayOfArrays, Point, Point2f, Rect, RotatedRect } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function [cv::approxPolyDP] approximates a curve or a polygon with another curve/polygon with
|
|
4
4
|
* less vertices so that the distance between them is less or equal to the specified precision. It uses
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, int, Mat, OutputArray, Point2f, Size } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, int, Mat, OutputArray, Point2f, Size } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function converts a pair of maps for remap from one representation to another. The following
|
|
4
4
|
* options ( (map1.type(), map2.type()) `$\\rightarrow$` (dstmap1.type(), dstmap2.type()) ) are
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { double, int, Size } from "./_types";
|
|
1
|
+
import type { double, int, Size } from "./_types";
|
|
2
2
|
export declare function createFaceDetectionMaskGenerator(): any;
|
|
3
3
|
/**
|
|
4
4
|
* The function is a wrapper for the generic function partition . It clusters all the input rectangles
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { double, InputArray, int, OutputArray } from "./_types";
|
|
1
|
+
import type { double, InputArray, int, OutputArray } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function reconstructs the selected image area from the pixel near the area boundary. The
|
|
4
4
|
* function may be used to remove dust and scratches from a scanned photo, or to remove undesirable
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, InputArray, InputOutputArray, int, Mat, OutputArray, OutputArrayOfArrays, RotatedRect, Size, TermCriteria } from "./_types";
|
|
1
|
+
import type { bool, double, InputArray, InputOutputArray, int, Mat, OutputArray, OutputArrayOfArrays, RotatedRect, Size, TermCriteria } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* number of levels in constructed pyramid. Can be less than maxLevel.
|
|
4
4
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techstark/opencv-js",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0-release.1",
|
|
4
4
|
"description": "OpenCV JavaScript version for node.js or browser",
|
|
5
5
|
"main": "dist/opencv.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
15
15
|
"test": "jest"
|
|
16
16
|
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/jest": "^29.5.12",
|
|
19
|
+
"jest": "^29.7.0",
|
|
20
|
+
"jimp": "^0.22.12",
|
|
21
|
+
"prettier": "^3.3.3",
|
|
22
|
+
"ts-jest": "^29.2.5",
|
|
23
|
+
"typescript": "^5.5.4"
|
|
24
|
+
},
|
|
17
25
|
"repository": {
|
|
18
26
|
"type": "git",
|
|
19
27
|
"url": "git+https://github.com/TechStark/opencv-js.git"
|
|
@@ -28,13 +36,5 @@
|
|
|
28
36
|
"bugs": {
|
|
29
37
|
"url": "https://github.com/TechStark/opencv-js/issues"
|
|
30
38
|
},
|
|
31
|
-
"homepage": "https://github.com/TechStark/opencv-js#readme"
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@types/jest": "^29.5.6",
|
|
34
|
-
"jest": "^29.7.0",
|
|
35
|
-
"jimp": "^0.22.10",
|
|
36
|
-
"prettier": "^3.0.3",
|
|
37
|
-
"ts-jest": "^29.1.1",
|
|
38
|
-
"typescript": "^5.1.6"
|
|
39
|
-
}
|
|
39
|
+
"homepage": "https://github.com/TechStark/opencv-js#readme"
|
|
40
40
|
}
|
package/src/types/_cv.ts
CHANGED