ms-types 0.9.34 → 0.9.36
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/package.json +1 -1
- package/types/hid.d.ts +7 -0
- package/types/lua/action.lua +4 -1
- package/types/lua/cloud.lua +2 -2
- package/types/lua/cv.lua +1404 -577
- package/types/lua/dotocr.lua +30 -11
- package/types/lua/global.lua +3 -3
- package/types/lua/hid.lua +12 -5
- package/types/lua/hotupdate.lua +31 -13
- package/types/lua/image.lua +7 -1
- package/types/lua/mysql.lua +3 -1
- package/types/lua/yolocls.lua +22 -10
- package/types/opencv.d.ts +1 -1
- package/types/zh/HID/346/250/241/345/235/227.d.ts +7 -0
package/types/lua/cv.lua
CHANGED
|
@@ -1,728 +1,1555 @@
|
|
|
1
1
|
---@meta
|
|
2
|
+
--- OpenCV 精简绑定;全局 `cv`。Mat 是字符串句柄。方法与常量对齐 JS `cv`。
|
|
3
|
+
---@alias OpenCV.Mat string
|
|
4
|
+
|
|
5
|
+
---@class OpenCV.Point
|
|
6
|
+
---@field x number
|
|
7
|
+
---@field y number
|
|
8
|
+
|
|
9
|
+
---@class OpenCV.Size
|
|
10
|
+
---@field width number
|
|
11
|
+
---@field height number
|
|
12
|
+
|
|
13
|
+
---@class OpenCV.Rect
|
|
14
|
+
---@field x number
|
|
15
|
+
---@field y number
|
|
16
|
+
---@field width number
|
|
17
|
+
---@field height number
|
|
18
|
+
|
|
19
|
+
---@class OpenCV.MatInfo
|
|
20
|
+
---@field width number
|
|
21
|
+
---@field height number
|
|
22
|
+
---@field channels number
|
|
23
|
+
---@field type number
|
|
24
|
+
---@field rows number
|
|
25
|
+
---@field cols number
|
|
26
|
+
|
|
27
|
+
---@class OpenCV.MinMaxLocResult
|
|
28
|
+
---@field minVal number
|
|
29
|
+
---@field maxVal number
|
|
30
|
+
---@field minLoc OpenCV.Point
|
|
31
|
+
---@field maxLoc OpenCV.Point
|
|
32
|
+
|
|
33
|
+
---@class OpenCV.MatchLocResult
|
|
34
|
+
---@field x number
|
|
35
|
+
---@field y number
|
|
36
|
+
---@field minVal number
|
|
37
|
+
---@field maxVal number
|
|
38
|
+
|
|
39
|
+
---@class OpenCV.RotatedRect
|
|
40
|
+
---@field center OpenCV.Point
|
|
41
|
+
---@field size OpenCV.Size
|
|
42
|
+
---@field angle number
|
|
43
|
+
|
|
44
|
+
---@class OpenCV.ThresholdOptions
|
|
45
|
+
---@field thresh number|nil
|
|
46
|
+
---@field maxval number|nil
|
|
47
|
+
---@field type number|nil
|
|
48
|
+
|
|
49
|
+
---@class OpenCV.AdaptiveThresholdOptions
|
|
50
|
+
---@field maxValue number|nil
|
|
51
|
+
---@field adaptiveMethod number|nil
|
|
52
|
+
---@field thresholdType number|nil
|
|
53
|
+
---@field blockSize number|nil
|
|
54
|
+
---@field C number|nil
|
|
55
|
+
|
|
56
|
+
---@class OpenCV.InRangeOptions
|
|
57
|
+
---@field lowerb number[]
|
|
58
|
+
---@field upperb number[]
|
|
59
|
+
|
|
60
|
+
---@class OpenCV.BitwiseOptions
|
|
61
|
+
---@field src2 OpenCV.Mat
|
|
62
|
+
---@field mask OpenCV.Mat|nil
|
|
63
|
+
|
|
64
|
+
---@class OpenCV.BlurOptions
|
|
65
|
+
---@field ksize number|number[]|OpenCV.Size
|
|
66
|
+
---@field sigmaX number|nil
|
|
67
|
+
---@field sigmaY number|nil
|
|
68
|
+
|
|
69
|
+
---@class OpenCV.CannyOptions
|
|
70
|
+
---@field threshold1 number|nil
|
|
71
|
+
---@field threshold2 number|nil
|
|
72
|
+
---@field apertureSize number|nil
|
|
73
|
+
---@field L2gradient boolean|nil
|
|
74
|
+
|
|
75
|
+
---@class OpenCV.ResizeOptions
|
|
76
|
+
---@field width number|nil
|
|
77
|
+
---@field height number|nil
|
|
78
|
+
---@field fx number|nil
|
|
79
|
+
---@field fy number|nil
|
|
80
|
+
---@field interpolation number|nil
|
|
81
|
+
|
|
82
|
+
---@class OpenCV.CropOptions
|
|
83
|
+
---@field x number|nil
|
|
84
|
+
---@field y number|nil
|
|
85
|
+
---@field ex number|nil
|
|
86
|
+
---@field ey number|nil
|
|
87
|
+
|
|
88
|
+
---@class OpenCV.DrawColorOptions
|
|
89
|
+
---@field color number[]|string|nil
|
|
90
|
+
---@field thickness number|nil
|
|
91
|
+
|
|
92
|
+
---@class OpenCV.RectangleOptions
|
|
93
|
+
---@field color number[]|string|nil
|
|
94
|
+
---@field thickness number|nil
|
|
95
|
+
---@field pt1 OpenCV.Point|number[]
|
|
96
|
+
---@field pt2 OpenCV.Point|number[]
|
|
97
|
+
|
|
98
|
+
---@class OpenCV.CircleOptions
|
|
99
|
+
---@field color number[]|string|nil
|
|
100
|
+
---@field thickness number|nil
|
|
101
|
+
---@field center OpenCV.Point|number[]
|
|
102
|
+
---@field radius number
|
|
103
|
+
|
|
104
|
+
---@class OpenCV.LineOptions
|
|
105
|
+
---@field color number[]|string|nil
|
|
106
|
+
---@field thickness number|nil
|
|
107
|
+
---@field pt1 OpenCV.Point|number[]
|
|
108
|
+
---@field pt2 OpenCV.Point|number[]
|
|
109
|
+
|
|
110
|
+
---@class OpenCV.PutTextOptions
|
|
111
|
+
---@field color number[]|string|nil
|
|
112
|
+
---@field thickness number|nil
|
|
113
|
+
---@field text string
|
|
114
|
+
---@field org OpenCV.Point|number[]
|
|
115
|
+
---@field fontFace number|nil
|
|
116
|
+
---@field fontScale number|nil
|
|
117
|
+
|
|
118
|
+
---@class OpenCV.MatchTemplateOptions
|
|
119
|
+
---@field method number|nil
|
|
120
|
+
---@field mask OpenCV.Mat|nil
|
|
121
|
+
|
|
122
|
+
---@class OpenCV.FindContoursOptions
|
|
123
|
+
---@field mode number|nil
|
|
124
|
+
---@field method number|nil
|
|
125
|
+
|
|
126
|
+
---@class OpenCV.MorphOptions
|
|
127
|
+
---@field kernel OpenCV.Mat
|
|
128
|
+
---@field iterations number|nil
|
|
129
|
+
|
|
130
|
+
---@class OpenCV.MorphologyExOptions
|
|
131
|
+
---@field kernel OpenCV.Mat
|
|
132
|
+
---@field iterations number|nil
|
|
133
|
+
---@field op number
|
|
134
|
+
|
|
135
|
+
---@class OpenCV.StructuringElementOptions
|
|
136
|
+
---@field shape number|nil
|
|
137
|
+
---@field ksize number|number[]|OpenCV.Size
|
|
138
|
+
|
|
139
|
+
---@class OpenCV.KeyPoint
|
|
140
|
+
---@field x number
|
|
141
|
+
---@field y number
|
|
142
|
+
---@field size number
|
|
143
|
+
---@field angle number
|
|
144
|
+
---@field response number
|
|
145
|
+
---@field octave number
|
|
146
|
+
---@field class_id number
|
|
147
|
+
|
|
148
|
+
---@class OpenCV.DMatch
|
|
149
|
+
---@field queryIdx number
|
|
150
|
+
---@field trainIdx number
|
|
151
|
+
---@field distance number
|
|
152
|
+
|
|
153
|
+
---@class OpenCV.FeatureResult
|
|
154
|
+
---@field keypoints OpenCV.KeyPoint[]
|
|
155
|
+
---@field descriptors OpenCV.Mat|nil
|
|
156
|
+
|
|
157
|
+
---@class OpenCV.SIFTOptions
|
|
158
|
+
---@field nfeatures number|nil
|
|
159
|
+
---@field nOctaveLayers number|nil
|
|
160
|
+
---@field contrastThreshold number|nil
|
|
161
|
+
---@field edgeThreshold number|nil
|
|
162
|
+
---@field sigma number|nil
|
|
163
|
+
---@field mask OpenCV.Mat|nil
|
|
164
|
+
|
|
165
|
+
---@class OpenCV.ORBOptions
|
|
166
|
+
---@field nfeatures number|nil
|
|
167
|
+
---@field scaleFactor number|nil
|
|
168
|
+
---@field nlevels number|nil
|
|
169
|
+
---@field mask OpenCV.Mat|nil
|
|
170
|
+
|
|
171
|
+
---@class OpenCV.FASTOptions
|
|
172
|
+
---@field threshold number|nil
|
|
173
|
+
---@field nonmaxSuppression boolean|nil
|
|
174
|
+
---@field mask OpenCV.Mat|nil
|
|
175
|
+
|
|
176
|
+
---@class OpenCV.MatcherOptions
|
|
177
|
+
---@field queryDescriptors OpenCV.Mat|nil
|
|
178
|
+
---@field trainDescriptors OpenCV.Mat|nil
|
|
179
|
+
---@field normType number|nil
|
|
180
|
+
---@field crossCheck boolean|nil
|
|
181
|
+
|
|
182
|
+
---@class OpenCV.KnnMatchOptions
|
|
183
|
+
---@field queryDescriptors OpenCV.Mat|nil
|
|
184
|
+
---@field trainDescriptors OpenCV.Mat|nil
|
|
185
|
+
---@field normType number|nil
|
|
186
|
+
---@field crossCheck boolean|nil
|
|
187
|
+
---@field k number|nil
|
|
188
|
+
---@field ratio number|nil
|
|
189
|
+
|
|
190
|
+
---@class OpenCV.DrawKeypointsOptions
|
|
191
|
+
---@field keypoints OpenCV.KeyPoint[]
|
|
192
|
+
---@field color number[]|string|nil
|
|
193
|
+
|
|
194
|
+
---@class OpenCV.DrawMatchesOptions
|
|
195
|
+
---@field img2 OpenCV.Mat
|
|
196
|
+
---@field keypoints1 OpenCV.KeyPoint[]
|
|
197
|
+
---@field keypoints2 OpenCV.KeyPoint[]
|
|
198
|
+
---@field matches1to2 OpenCV.DMatch[]
|
|
199
|
+
|
|
200
|
+
---@class OpenCV.FindHomographyOptions
|
|
201
|
+
---@field srcPoints OpenCV.Point[]
|
|
202
|
+
---@field dstPoints OpenCV.Point[]
|
|
203
|
+
---@field method number|nil
|
|
204
|
+
---@field ransacReprojThreshold number|nil
|
|
205
|
+
|
|
206
|
+
---@class OpenCV.WarpPerspectiveOptions
|
|
207
|
+
---@field M OpenCV.Mat
|
|
208
|
+
---@field width number|nil
|
|
209
|
+
---@field height number|nil
|
|
210
|
+
---@field flags number|nil
|
|
211
|
+
|
|
212
|
+
---@class OpenCV.GoodFeaturesOptions
|
|
213
|
+
---@field maxCorners number|nil
|
|
214
|
+
---@field qualityLevel number|nil
|
|
215
|
+
---@field minDistance number|nil
|
|
216
|
+
---@field mask OpenCV.Mat|nil
|
|
217
|
+
|
|
218
|
+
---@class OpenCV.HoughLinesPOptions
|
|
219
|
+
---@field rho number|nil
|
|
220
|
+
---@field theta number|nil
|
|
221
|
+
---@field threshold number|nil
|
|
222
|
+
---@field minLineLength number|nil
|
|
223
|
+
---@field maxLineGap number|nil
|
|
224
|
+
|
|
225
|
+
---@class OpenCV.HoughCirclesOptions
|
|
226
|
+
---@field method number|nil
|
|
227
|
+
---@field dp number|nil
|
|
228
|
+
---@field minDist number|nil
|
|
229
|
+
---@field param1 number|nil
|
|
230
|
+
---@field param2 number|nil
|
|
231
|
+
---@field minRadius number|nil
|
|
232
|
+
---@field maxRadius number|nil
|
|
233
|
+
|
|
234
|
+
---@class OpenCV.CLAHEOptions
|
|
235
|
+
---@field clipLimit number|nil
|
|
236
|
+
---@field tileGridSize number|number[]|OpenCV.Size|nil
|
|
237
|
+
|
|
238
|
+
---@class OpenCV.FloodFillOptions
|
|
239
|
+
---@field seedPoint OpenCV.Point|number[]
|
|
240
|
+
---@field newVal number[]|string
|
|
241
|
+
---@field loDiff number[]|string|nil
|
|
242
|
+
---@field upDiff number[]|string|nil
|
|
243
|
+
|
|
244
|
+
---@class OpenCV.MomentsResult
|
|
245
|
+
---@field m00 number
|
|
246
|
+
---@field m10 number
|
|
247
|
+
---@field m01 number
|
|
248
|
+
---@field m20 number
|
|
249
|
+
---@field m11 number
|
|
250
|
+
---@field m02 number
|
|
251
|
+
---@field mu20 number
|
|
252
|
+
---@field mu11 number
|
|
253
|
+
---@field mu02 number
|
|
254
|
+
---@field nu20 number
|
|
255
|
+
---@field nu11 number
|
|
256
|
+
---@field nu02 number
|
|
257
|
+
|
|
258
|
+
---@class OpenCV.ConnectedComponentsResult
|
|
259
|
+
---@field count number
|
|
260
|
+
---@field labels OpenCV.Mat|nil
|
|
261
|
+
---@field stats OpenCV.Mat|nil
|
|
262
|
+
---@field centroids OpenCV.Mat|nil
|
|
263
|
+
|
|
264
|
+
---@class OpenCV.MatCreateOptions
|
|
265
|
+
---@field rows number
|
|
266
|
+
---@field cols number
|
|
267
|
+
---@field type number|nil
|
|
268
|
+
---@field scalar number[]|nil
|
|
269
|
+
|
|
270
|
+
---@class OpenCV.MatSizeOptions
|
|
271
|
+
---@field rows number
|
|
272
|
+
---@field cols number
|
|
273
|
+
---@field type number|nil
|
|
274
|
+
|
|
275
|
+
---@class OpenCV.SetOptions
|
|
276
|
+
---@field row number
|
|
277
|
+
---@field col number
|
|
278
|
+
---@field value number[]
|
|
279
|
+
|
|
280
|
+
---@class OpenCV.MaskOptions
|
|
281
|
+
---@field mask OpenCV.Mat|nil
|
|
282
|
+
|
|
283
|
+
---@class OpenCV.Src2Options
|
|
284
|
+
---@field src2 OpenCV.Mat
|
|
285
|
+
|
|
286
|
+
---@class OpenCV.AddWeightedOptions
|
|
287
|
+
---@field src2 OpenCV.Mat
|
|
288
|
+
---@field alpha number|nil
|
|
289
|
+
---@field beta number|nil
|
|
290
|
+
---@field gamma number|nil
|
|
291
|
+
|
|
292
|
+
---@class OpenCV.ScaleOptions
|
|
293
|
+
---@field alpha number|nil
|
|
294
|
+
---@field beta number|nil
|
|
295
|
+
|
|
296
|
+
---@class OpenCV.KSizeOptions
|
|
297
|
+
---@field ksize number|number[]|OpenCV.Size
|
|
298
|
+
|
|
299
|
+
---@class OpenCV.MedianBlurOptions
|
|
300
|
+
---@field ksize number
|
|
301
|
+
|
|
302
|
+
---@class OpenCV.BilateralFilterOptions
|
|
303
|
+
---@field d number|nil
|
|
304
|
+
---@field sigmaColor number|nil
|
|
305
|
+
---@field sigmaSpace number|nil
|
|
306
|
+
|
|
307
|
+
---@class OpenCV.SobelOptions
|
|
308
|
+
---@field ddepth number|nil
|
|
309
|
+
---@field dx number|nil
|
|
310
|
+
---@field dy number|nil
|
|
311
|
+
---@field ksize number|nil
|
|
312
|
+
---@field scale number|nil
|
|
313
|
+
---@field delta number|nil
|
|
314
|
+
|
|
315
|
+
---@class OpenCV.LaplacianOptions
|
|
316
|
+
---@field ddepth number|nil
|
|
317
|
+
---@field ksize number|nil
|
|
318
|
+
---@field scale number|nil
|
|
319
|
+
---@field delta number|nil
|
|
320
|
+
|
|
321
|
+
---@class OpenCV.CopyMakeBorderOptions
|
|
322
|
+
---@field top number|nil
|
|
323
|
+
---@field bottom number|nil
|
|
324
|
+
---@field left number|nil
|
|
325
|
+
---@field right number|nil
|
|
326
|
+
---@field borderType number|nil
|
|
327
|
+
---@field value number[]|nil
|
|
328
|
+
|
|
329
|
+
---@class OpenCV.GetRotationMatrix2DOptions
|
|
330
|
+
---@field center OpenCV.Point|number[]
|
|
331
|
+
---@field angle number|nil
|
|
332
|
+
---@field scale number|nil
|
|
333
|
+
|
|
334
|
+
---@class OpenCV.WarpAffineOptions
|
|
335
|
+
---@field M OpenCV.Mat
|
|
336
|
+
---@field width number|nil
|
|
337
|
+
---@field height number|nil
|
|
338
|
+
---@field flags number|nil
|
|
339
|
+
|
|
340
|
+
---@class OpenCV.FillPolyOptions
|
|
341
|
+
---@field pts OpenCV.Point[][]|OpenCV.Point[]
|
|
342
|
+
---@field color number[]|string|nil
|
|
343
|
+
|
|
344
|
+
---@class OpenCV.PolylinesOptions
|
|
345
|
+
---@field pts OpenCV.Point[][]|OpenCV.Point[]
|
|
346
|
+
---@field isClosed boolean|nil
|
|
347
|
+
---@field color number[]|string|nil
|
|
348
|
+
---@field thickness number|nil
|
|
349
|
+
|
|
350
|
+
---@class OpenCV.DrawContoursOptions
|
|
351
|
+
---@field contours OpenCV.Point[][]
|
|
352
|
+
---@field contourIdx number|nil
|
|
353
|
+
---@field color number[]|string|nil
|
|
354
|
+
---@field thickness number|nil
|
|
355
|
+
|
|
356
|
+
---@class OpenCV.FindContoursResult
|
|
357
|
+
---@field contours OpenCV.Point[][]
|
|
358
|
+
---@field hierarchy number[][]
|
|
359
|
+
|
|
360
|
+
---@class OpenCV.ApproxPolyOptions
|
|
361
|
+
---@field epsilon number|nil
|
|
362
|
+
---@field closed boolean|nil
|
|
363
|
+
|
|
364
|
+
---@class OpenCV.FASTResult
|
|
365
|
+
---@field keypoints OpenCV.KeyPoint[]
|
|
366
|
+
|
|
367
|
+
---@class OpenCV.MatrixOptions
|
|
368
|
+
---@field M OpenCV.Mat
|
|
369
|
+
|
|
370
|
+
---@class OpenCV.HoughLine
|
|
371
|
+
---@field x1 number
|
|
372
|
+
---@field y1 number
|
|
373
|
+
---@field x2 number
|
|
374
|
+
---@field y2 number
|
|
375
|
+
|
|
376
|
+
---@class OpenCV.HoughCircle
|
|
377
|
+
---@field x number
|
|
378
|
+
---@field y number
|
|
379
|
+
---@field radius number
|
|
380
|
+
|
|
381
|
+
---@class OpenCV.ScharrOptions
|
|
382
|
+
---@field ddepth number|nil
|
|
383
|
+
---@field dx number|nil
|
|
384
|
+
---@field dy number|nil
|
|
385
|
+
---@field scale number|nil
|
|
386
|
+
---@field delta number|nil
|
|
387
|
+
|
|
388
|
+
---@class OpenCV.BoxFilterOptions
|
|
389
|
+
---@field ksize number|number[]|OpenCV.Size
|
|
390
|
+
---@field ddepth number|nil
|
|
391
|
+
|
|
392
|
+
---@class OpenCV.FloodFillResult
|
|
393
|
+
---@field filled number
|
|
394
|
+
---@field rect OpenCV.Rect
|
|
395
|
+
|
|
396
|
+
---@class OpenCV.ConvexHullOptions
|
|
397
|
+
---@field clockwise boolean|nil
|
|
398
|
+
|
|
399
|
+
---@class OpenCV.MomentsOptions
|
|
400
|
+
---@field binaryImage boolean|nil
|
|
401
|
+
|
|
402
|
+
---@class OpenCV.MatchShapesOptions
|
|
403
|
+
---@field method number|nil
|
|
404
|
+
---@field parameter number|nil
|
|
405
|
+
|
|
406
|
+
---@class OpenCV.DistanceTransformOptions
|
|
407
|
+
---@field distanceType number|nil
|
|
408
|
+
---@field maskSize number|nil
|
|
409
|
+
|
|
410
|
+
---@class OpenCV.ArithMaskOptions
|
|
411
|
+
---@field src2 OpenCV.Mat
|
|
412
|
+
---@field mask OpenCV.Mat|nil
|
|
413
|
+
|
|
414
|
+
---@class OpenCV.ArithScaleOptions
|
|
415
|
+
---@field src2 OpenCV.Mat
|
|
416
|
+
---@field scale number|nil
|
|
417
|
+
|
|
418
|
+
---@class OpenCV.NormalizeOptions
|
|
419
|
+
---@field alpha number|nil
|
|
420
|
+
---@field beta number|nil
|
|
421
|
+
---@field normType number|nil
|
|
422
|
+
|
|
423
|
+
---@class OpenCV.NormOptions
|
|
424
|
+
---@field normType number|nil
|
|
425
|
+
---@field mask OpenCV.Mat|nil
|
|
426
|
+
---@field src2 OpenCV.Mat|nil
|
|
427
|
+
|
|
428
|
+
---@class OpenCV.MeanStdDevResult
|
|
429
|
+
---@field mean number[]
|
|
430
|
+
---@field stddev number[]
|
|
431
|
+
|
|
432
|
+
---@class OpenCV.PointPairOptions
|
|
433
|
+
---@field srcPoints OpenCV.Point[]
|
|
434
|
+
---@field dstPoints OpenCV.Point[]
|
|
435
|
+
|
|
436
|
+
---@class OpenCV.FlannKnnOptions
|
|
437
|
+
---@field k number|nil
|
|
438
|
+
---@field ratio number|nil
|
|
439
|
+
|
|
440
|
+
---@class OpenCV.CalcHistOptions
|
|
441
|
+
---@field channels number[]|nil
|
|
442
|
+
---@field histSize number[]|nil
|
|
443
|
+
---@field ranges number[]|nil
|
|
444
|
+
---@field mask OpenCV.Mat|nil
|
|
445
|
+
---@field accumulate boolean|nil
|
|
446
|
+
|
|
447
|
+
---@class OpenCV.MethodOptions
|
|
448
|
+
---@field method number|nil
|
|
449
|
+
|
|
450
|
+
---@class OpenCV.BoxPointsOptions
|
|
451
|
+
---@field center OpenCV.Point
|
|
452
|
+
---@field size OpenCV.Size|number[]
|
|
453
|
+
---@field angle number|nil
|
|
454
|
+
|
|
455
|
+
---@class OpenCV.PointPolygonTestOptions
|
|
456
|
+
---@field pt OpenCV.Point
|
|
457
|
+
---@field measureDist boolean|nil
|
|
458
|
+
|
|
459
|
+
---@class OpenCV.MinEnclosingCircleResult
|
|
460
|
+
---@field center OpenCV.Point
|
|
461
|
+
---@field radius number
|
|
462
|
+
|
|
463
|
+
---@class OpenCV.Filter2DOptions
|
|
464
|
+
---@field kernel OpenCV.Mat
|
|
465
|
+
---@field ddepth number|nil
|
|
466
|
+
---@field delta number|nil
|
|
467
|
+
|
|
468
|
+
---@class OpenCV.EllipseOptions
|
|
469
|
+
---@field center OpenCV.Point
|
|
470
|
+
---@field axes OpenCV.Size|number[]
|
|
471
|
+
---@field angle number|nil
|
|
472
|
+
---@field startAngle number|nil
|
|
473
|
+
---@field endAngle number|nil
|
|
474
|
+
---@field color number[]|string|nil
|
|
475
|
+
---@field thickness number|nil
|
|
476
|
+
|
|
477
|
+
---@class OpenCV.GetTextSizeOptions
|
|
478
|
+
---@field text string
|
|
479
|
+
---@field fontFace number|nil
|
|
480
|
+
---@field fontScale number|nil
|
|
481
|
+
---@field thickness number|nil
|
|
482
|
+
|
|
483
|
+
---@class OpenCV.TextSizeResult
|
|
484
|
+
---@field width number
|
|
485
|
+
---@field height number
|
|
486
|
+
---@field baseLine number
|
|
487
|
+
|
|
488
|
+
---@class OpenCV.QRCodeResult
|
|
489
|
+
---@field decoded string
|
|
490
|
+
---@field points OpenCV.Point[]
|
|
491
|
+
|
|
492
|
+
---@class OpenCV.BarcodeResult
|
|
493
|
+
---@field decoded string[]
|
|
494
|
+
---@field types string[]
|
|
495
|
+
---@field points OpenCV.Point[]
|
|
496
|
+
|
|
497
|
+
---@class OpenCV.InpaintOptions
|
|
498
|
+
---@field mask OpenCV.Mat
|
|
499
|
+
---@field inpaintRadius number|nil
|
|
500
|
+
---@field flags number|nil
|
|
501
|
+
|
|
502
|
+
---@class OpenCV.DenoiseOptions
|
|
503
|
+
---@field h number|nil
|
|
504
|
+
---@field templateWindowSize number|nil
|
|
505
|
+
---@field searchWindowSize number|nil
|
|
506
|
+
|
|
507
|
+
---@class OpenCV.DenoiseColoredOptions
|
|
508
|
+
---@field h number|nil
|
|
509
|
+
---@field hColor number|nil
|
|
510
|
+
---@field templateWindowSize number|nil
|
|
511
|
+
---@field searchWindowSize number|nil
|
|
512
|
+
|
|
513
|
+
---@class OpenCV.LUTOptions
|
|
514
|
+
---@field lut OpenCV.Mat
|
|
515
|
+
|
|
516
|
+
---@class OpenCV.CompareOptions
|
|
517
|
+
---@field src2 OpenCV.Mat
|
|
518
|
+
---@field cmpop number
|
|
519
|
+
|
|
520
|
+
---@class OpenCV.ExtractChannelOptions
|
|
521
|
+
---@field coi number
|
|
522
|
+
|
|
523
|
+
---@class OpenCV.GetRectSubPixOptions
|
|
524
|
+
---@field patchSize OpenCV.Size|number[]
|
|
525
|
+
---@field center OpenCV.Point
|
|
526
|
+
|
|
527
|
+
---@class OpenCV.PhaseCorrelateOptions
|
|
528
|
+
---@field src2 OpenCV.Mat
|
|
529
|
+
---@field window OpenCV.Mat|nil
|
|
530
|
+
|
|
531
|
+
---@class OpenCV.PhaseCorrelateResult
|
|
532
|
+
---@field x number
|
|
533
|
+
---@field y number
|
|
534
|
+
---@field response number|nil
|
|
535
|
+
|
|
536
|
+
---@class OpenCV.CornerHarrisOptions
|
|
537
|
+
---@field blockSize number|nil
|
|
538
|
+
---@field ksize number|nil
|
|
539
|
+
---@field k number|nil
|
|
540
|
+
|
|
541
|
+
---@class OpenCV.CornerSubPixOptions
|
|
542
|
+
---@field corners OpenCV.Point[]
|
|
543
|
+
---@field winSize OpenCV.Size|number[]|nil
|
|
544
|
+
---@field zeroZone OpenCV.Size|number[]|nil
|
|
545
|
+
---@field criteria OpenCV.TermCriteria|nil
|
|
546
|
+
|
|
547
|
+
---@class OpenCV.CalcBackProjectOptions
|
|
548
|
+
---@field hist OpenCV.Mat
|
|
549
|
+
---@field channels number[]|nil
|
|
550
|
+
---@field ranges number[]|nil
|
|
551
|
+
---@field scale number|nil
|
|
552
|
+
|
|
553
|
+
---@class OpenCV.ConnectedComponentsOptions
|
|
554
|
+
---@field connectivity number|nil
|
|
555
|
+
|
|
556
|
+
---@class OpenCV.ConnectedComponentsCountResult
|
|
557
|
+
---@field count number
|
|
558
|
+
---@field labels OpenCV.Mat
|
|
559
|
+
|
|
560
|
+
---@class OpenCV.ConvexityDefectsOptions
|
|
561
|
+
---@field hull number[]|OpenCV.Point[]
|
|
562
|
+
|
|
563
|
+
---@class OpenCV.ConvexityDefect
|
|
564
|
+
---@field start number
|
|
565
|
+
---@field end number
|
|
566
|
+
---@field farthest number
|
|
567
|
+
---@field depth number
|
|
568
|
+
|
|
569
|
+
---@class OpenCV.FitLineOptions
|
|
570
|
+
---@field distType number|nil
|
|
571
|
+
---@field param number|nil
|
|
572
|
+
---@field reps number|nil
|
|
573
|
+
---@field aeps number|nil
|
|
574
|
+
|
|
575
|
+
---@class OpenCV.DrawMarkerOptions
|
|
576
|
+
---@field position OpenCV.Point
|
|
577
|
+
---@field color number[]|string|nil
|
|
578
|
+
---@field markerType number|nil
|
|
579
|
+
---@field markerSize number|nil
|
|
580
|
+
---@field thickness number|nil
|
|
581
|
+
|
|
582
|
+
---@class OpenCV.ArrowedLineOptions
|
|
583
|
+
---@field pt1 OpenCV.Point
|
|
584
|
+
---@field pt2 OpenCV.Point
|
|
585
|
+
---@field color number[]|string|nil
|
|
586
|
+
---@field thickness number|nil
|
|
587
|
+
---@field tipLength number|nil
|
|
588
|
+
|
|
589
|
+
---@class OpenCV.FillConvexPolyOptions
|
|
590
|
+
---@field pts OpenCV.Point[]
|
|
591
|
+
---@field color number[]|string|nil
|
|
592
|
+
|
|
593
|
+
---@class OpenCV.EstimateAffineOptions
|
|
594
|
+
---@field srcPoints OpenCV.Point[]
|
|
595
|
+
---@field dstPoints OpenCV.Point[]
|
|
596
|
+
---@field method number|nil
|
|
597
|
+
---@field ransacReprojThreshold number|nil
|
|
598
|
+
|
|
599
|
+
---@class OpenCV.TermCriteria
|
|
600
|
+
---@field type number|nil
|
|
601
|
+
---@field maxCount number|nil
|
|
602
|
+
---@field epsilon number|nil
|
|
603
|
+
|
|
2
604
|
---@class OpenCV
|
|
605
|
+
---@field COLOR_BGR2GRAY integer
|
|
606
|
+
---@field COLOR_GRAY2BGR integer
|
|
607
|
+
---@field COLOR_BGR2RGB integer
|
|
608
|
+
---@field COLOR_RGB2BGR integer
|
|
609
|
+
---@field COLOR_BGR2HSV integer
|
|
610
|
+
---@field COLOR_HSV2BGR integer
|
|
611
|
+
---@field COLOR_BGRA2BGR integer
|
|
612
|
+
---@field COLOR_BGR2BGRA integer
|
|
613
|
+
---@field COLOR_BGRA2GRAY integer
|
|
614
|
+
---@field COLOR_BGR2Lab integer
|
|
615
|
+
---@field COLOR_Lab2BGR integer
|
|
616
|
+
---@field THRESH_BINARY integer
|
|
617
|
+
---@field THRESH_BINARY_INV integer
|
|
618
|
+
---@field THRESH_OTSU integer
|
|
619
|
+
---@field THRESH_TRUNC integer
|
|
620
|
+
---@field THRESH_TOZERO integer
|
|
621
|
+
---@field THRESH_TOZERO_INV integer
|
|
622
|
+
---@field ADAPTIVE_THRESH_MEAN_C integer
|
|
623
|
+
---@field ADAPTIVE_THRESH_GAUSSIAN_C integer
|
|
624
|
+
---@field TM_SQDIFF integer
|
|
625
|
+
---@field TM_SQDIFF_NORMED integer
|
|
626
|
+
---@field TM_CCORR integer
|
|
627
|
+
---@field TM_CCORR_NORMED integer
|
|
628
|
+
---@field TM_CCOEFF integer
|
|
629
|
+
---@field TM_CCOEFF_NORMED integer
|
|
630
|
+
---@field RETR_EXTERNAL integer
|
|
631
|
+
---@field RETR_LIST integer
|
|
632
|
+
---@field RETR_CCOMP integer
|
|
633
|
+
---@field RETR_TREE integer
|
|
634
|
+
---@field CHAIN_APPROX_NONE integer
|
|
635
|
+
---@field CHAIN_APPROX_SIMPLE integer
|
|
636
|
+
---@field MORPH_RECT integer
|
|
637
|
+
---@field MORPH_CROSS integer
|
|
638
|
+
---@field MORPH_ELLIPSE integer
|
|
639
|
+
---@field MORPH_ERODE integer
|
|
640
|
+
---@field MORPH_DILATE integer
|
|
641
|
+
---@field MORPH_OPEN integer
|
|
642
|
+
---@field MORPH_CLOSE integer
|
|
643
|
+
---@field MORPH_GRADIENT integer
|
|
644
|
+
---@field MORPH_TOPHAT integer
|
|
645
|
+
---@field MORPH_BLACKHAT integer
|
|
646
|
+
---@field INTER_NEAREST integer
|
|
647
|
+
---@field INTER_LINEAR integer
|
|
648
|
+
---@field INTER_CUBIC integer
|
|
649
|
+
---@field INTER_AREA integer
|
|
650
|
+
---@field INTER_LANCZOS4 integer
|
|
651
|
+
---@field ROTATE_90_CLOCKWISE integer
|
|
652
|
+
---@field ROTATE_180 integer
|
|
653
|
+
---@field ROTATE_90_COUNTERCLOCKWISE integer
|
|
654
|
+
---@field BORDER_CONSTANT integer
|
|
655
|
+
---@field BORDER_REPLICATE integer
|
|
656
|
+
---@field BORDER_REFLECT integer
|
|
657
|
+
---@field BORDER_REFLECT_101 integer
|
|
658
|
+
---@field BORDER_DEFAULT integer
|
|
659
|
+
---@field IMREAD_COLOR integer
|
|
660
|
+
---@field IMREAD_GRAYSCALE integer
|
|
661
|
+
---@field IMREAD_UNCHANGED integer
|
|
662
|
+
---@field FONT_HERSHEY_SIMPLEX integer
|
|
663
|
+
---@field FONT_HERSHEY_PLAIN integer
|
|
664
|
+
---@field FONT_HERSHEY_DUPLEX integer
|
|
665
|
+
---@field FONT_HERSHEY_COMPLEX integer
|
|
666
|
+
---@field CV_8UC1 integer
|
|
667
|
+
---@field CV_8UC3 integer
|
|
668
|
+
---@field CV_8UC4 integer
|
|
669
|
+
---@field CV_32FC1 integer
|
|
670
|
+
---@field CV_32FC3 integer
|
|
671
|
+
---@field NORM_L1 integer
|
|
672
|
+
---@field NORM_L2 integer
|
|
673
|
+
---@field NORM_HAMMING integer
|
|
674
|
+
---@field NORM_HAMMING2 integer
|
|
675
|
+
---@field RANSAC integer
|
|
676
|
+
---@field LMEDS integer
|
|
677
|
+
---@field RHO integer
|
|
678
|
+
---@field HOUGH_GRADIENT integer
|
|
679
|
+
---@field HOUGH_GRADIENT_ALT integer
|
|
680
|
+
---@field DIST_L1 integer
|
|
681
|
+
---@field DIST_L2 integer
|
|
682
|
+
---@field DIST_C integer
|
|
683
|
+
---@field DIST_MASK_3 integer
|
|
684
|
+
---@field DIST_MASK_5 integer
|
|
685
|
+
---@field CONTOURS_MATCH_I1 integer
|
|
686
|
+
---@field CONTOURS_MATCH_I2 integer
|
|
687
|
+
---@field CONTOURS_MATCH_I3 integer
|
|
688
|
+
---@field CC_STAT_LEFT integer
|
|
689
|
+
---@field CC_STAT_TOP integer
|
|
690
|
+
---@field CC_STAT_WIDTH integer
|
|
691
|
+
---@field CC_STAT_HEIGHT integer
|
|
692
|
+
---@field CC_STAT_AREA integer
|
|
693
|
+
---@field COLOR_RGB2GRAY integer
|
|
694
|
+
---@field COLOR_RGBA2GRAY integer
|
|
695
|
+
---@field LINE_4 integer
|
|
696
|
+
---@field LINE_8 integer
|
|
697
|
+
---@field LINE_AA integer
|
|
698
|
+
---@field FILLED integer
|
|
699
|
+
---@field HISTCMP_CORREL integer
|
|
700
|
+
---@field HISTCMP_CHISQR integer
|
|
701
|
+
---@field HISTCMP_INTERSECT integer
|
|
702
|
+
---@field HISTCMP_BHATTACHARYYA integer
|
|
703
|
+
---@field HISTCMP_CHISQR_ALT integer
|
|
704
|
+
---@field HISTCMP_KL_DIV integer
|
|
705
|
+
---@field NORM_INF integer
|
|
706
|
+
---@field NORM_MINMAX integer
|
|
707
|
+
---@field INPAINT_NS integer
|
|
708
|
+
---@field INPAINT_TELEA integer
|
|
709
|
+
---@field CMP_EQ integer
|
|
710
|
+
---@field CMP_GT integer
|
|
711
|
+
---@field CMP_GE integer
|
|
712
|
+
---@field CMP_LT integer
|
|
713
|
+
---@field CMP_LE integer
|
|
714
|
+
---@field CMP_NE integer
|
|
715
|
+
---@field MORPH_HITMISS integer
|
|
716
|
+
---@field MARKER_CROSS integer
|
|
717
|
+
---@field MARKER_TILTED_CROSS integer
|
|
718
|
+
---@field MARKER_STAR integer
|
|
719
|
+
---@field MARKER_DIAMOND integer
|
|
720
|
+
---@field MARKER_SQUARE integer
|
|
721
|
+
---@field MARKER_TRIANGLE_UP integer
|
|
722
|
+
---@field MARKER_TRIANGLE_DOWN integer
|
|
3
723
|
local _OpenCV = {}
|
|
4
724
|
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
---@param
|
|
9
|
-
---@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
--- adaptiveThreshold
|
|
13
|
-
---@param ... any
|
|
14
|
-
---@return any
|
|
15
|
-
function _OpenCV.adaptiveThreshold(...) return nil end
|
|
725
|
+
--- capture
|
|
726
|
+
---@param x number|nil
|
|
727
|
+
---@param y number|nil
|
|
728
|
+
---@param ex number|nil
|
|
729
|
+
---@param ey number|nil
|
|
730
|
+
---@return OpenCV.Mat|nil
|
|
731
|
+
function _OpenCV.capture(x, y, ex, ey) return nil end
|
|
16
732
|
|
|
17
|
-
---
|
|
18
|
-
---@param
|
|
19
|
-
---@return
|
|
20
|
-
function _OpenCV.
|
|
733
|
+
--- imread
|
|
734
|
+
---@param path string
|
|
735
|
+
---@return OpenCV.Mat|nil
|
|
736
|
+
function _OpenCV.imread(path) return nil end
|
|
21
737
|
|
|
22
|
-
---
|
|
23
|
-
---@param
|
|
24
|
-
---@return
|
|
25
|
-
function _OpenCV.
|
|
738
|
+
--- imdecode
|
|
739
|
+
---@param data string
|
|
740
|
+
---@return OpenCV.Mat|nil
|
|
741
|
+
function _OpenCV.imdecode(data) return nil end
|
|
26
742
|
|
|
27
|
-
---
|
|
28
|
-
---@param
|
|
29
|
-
---@
|
|
30
|
-
|
|
743
|
+
--- imwrite
|
|
744
|
+
---@param path string
|
|
745
|
+
---@param mat OpenCV.Mat
|
|
746
|
+
---@return boolean
|
|
747
|
+
function _OpenCV.imwrite(path, mat) return false end
|
|
31
748
|
|
|
32
|
-
---
|
|
33
|
-
---@param
|
|
34
|
-
---@
|
|
35
|
-
|
|
749
|
+
--- imencode
|
|
750
|
+
---@param ext string
|
|
751
|
+
---@param mat OpenCV.Mat
|
|
752
|
+
---@param quality number|nil
|
|
753
|
+
---@return string|nil
|
|
754
|
+
function _OpenCV.imencode(ext, mat, quality) return nil end
|
|
36
755
|
|
|
37
|
-
---
|
|
38
|
-
---@param
|
|
39
|
-
---@return
|
|
40
|
-
function _OpenCV.
|
|
756
|
+
--- fromImageId
|
|
757
|
+
---@param imageId string
|
|
758
|
+
---@return OpenCV.Mat|nil
|
|
759
|
+
function _OpenCV.fromImageId(imageId) return nil end
|
|
41
760
|
|
|
42
|
-
---
|
|
43
|
-
---@param
|
|
44
|
-
---@return
|
|
45
|
-
function _OpenCV.
|
|
761
|
+
--- toImageId
|
|
762
|
+
---@param mat OpenCV.Mat
|
|
763
|
+
---@return string|nil
|
|
764
|
+
function _OpenCV.toImageId(mat) return nil end
|
|
46
765
|
|
|
47
|
-
---
|
|
48
|
-
---@param
|
|
49
|
-
---@return
|
|
50
|
-
function _OpenCV.
|
|
766
|
+
--- Mat
|
|
767
|
+
---@param options OpenCV.MatCreateOptions
|
|
768
|
+
---@return OpenCV.Mat|nil
|
|
769
|
+
function _OpenCV.Mat(options) return nil end
|
|
51
770
|
|
|
52
|
-
---
|
|
53
|
-
---@param
|
|
54
|
-
---@return
|
|
55
|
-
function _OpenCV.
|
|
771
|
+
--- zeros
|
|
772
|
+
---@param options OpenCV.MatSizeOptions
|
|
773
|
+
---@return OpenCV.Mat|nil
|
|
774
|
+
function _OpenCV.zeros(options) return nil end
|
|
56
775
|
|
|
57
|
-
---
|
|
58
|
-
---@param
|
|
59
|
-
---@return
|
|
60
|
-
function _OpenCV.
|
|
776
|
+
--- ones
|
|
777
|
+
---@param options OpenCV.MatSizeOptions
|
|
778
|
+
---@return OpenCV.Mat|nil
|
|
779
|
+
function _OpenCV.ones(options) return nil end
|
|
61
780
|
|
|
62
|
-
---
|
|
63
|
-
---@param
|
|
64
|
-
---@return
|
|
65
|
-
function _OpenCV.
|
|
781
|
+
--- clone
|
|
782
|
+
---@param mat OpenCV.Mat
|
|
783
|
+
---@return OpenCV.Mat|nil
|
|
784
|
+
function _OpenCV.clone(mat) return nil end
|
|
66
785
|
|
|
67
|
-
---
|
|
68
|
-
---@param
|
|
69
|
-
---@return
|
|
70
|
-
function _OpenCV.
|
|
786
|
+
--- empty
|
|
787
|
+
---@param mat OpenCV.Mat
|
|
788
|
+
---@return boolean
|
|
789
|
+
function _OpenCV.empty(mat) return false end
|
|
71
790
|
|
|
72
|
-
---
|
|
73
|
-
---@param
|
|
74
|
-
---@return
|
|
75
|
-
function _OpenCV.
|
|
791
|
+
--- isRelease
|
|
792
|
+
---@param mat OpenCV.Mat
|
|
793
|
+
---@return boolean
|
|
794
|
+
function _OpenCV.isRelease(mat) return false end
|
|
76
795
|
|
|
77
|
-
---
|
|
78
|
-
---@param
|
|
79
|
-
|
|
80
|
-
function _OpenCV.blur(...) return nil end
|
|
796
|
+
--- release
|
|
797
|
+
---@param mat OpenCV.Mat
|
|
798
|
+
function _OpenCV.release(mat) end
|
|
81
799
|
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
---@return any
|
|
85
|
-
function _OpenCV.boundingRect(...) return nil end
|
|
800
|
+
--- releaseAll
|
|
801
|
+
function _OpenCV.releaseAll() end
|
|
86
802
|
|
|
87
|
-
---
|
|
88
|
-
---@param
|
|
89
|
-
---@return
|
|
90
|
-
function _OpenCV.
|
|
803
|
+
--- getSize
|
|
804
|
+
---@param mat OpenCV.Mat
|
|
805
|
+
---@return OpenCV.MatInfo|nil
|
|
806
|
+
function _OpenCV.getSize(mat) return nil end
|
|
91
807
|
|
|
92
|
-
---
|
|
93
|
-
---@param
|
|
94
|
-
---@
|
|
95
|
-
|
|
808
|
+
--- at
|
|
809
|
+
---@param mat OpenCV.Mat
|
|
810
|
+
---@param row number
|
|
811
|
+
---@param col number
|
|
812
|
+
---@return number[]|nil
|
|
813
|
+
function _OpenCV.at(mat, row, col) return nil end
|
|
96
814
|
|
|
97
|
-
---
|
|
98
|
-
---@param
|
|
99
|
-
---@
|
|
100
|
-
|
|
815
|
+
--- set
|
|
816
|
+
---@param mat OpenCV.Mat
|
|
817
|
+
---@param options OpenCV.SetOptions
|
|
818
|
+
---@return boolean
|
|
819
|
+
function _OpenCV.set(mat, options) return false end
|
|
101
820
|
|
|
102
|
-
---
|
|
103
|
-
---@param
|
|
104
|
-
---@
|
|
105
|
-
|
|
821
|
+
--- copyTo
|
|
822
|
+
---@param mat OpenCV.Mat
|
|
823
|
+
---@param mask OpenCV.Mat|nil
|
|
824
|
+
---@return OpenCV.Mat|nil
|
|
825
|
+
function _OpenCV.copyTo(mat, mask) return nil end
|
|
106
826
|
|
|
107
|
-
---
|
|
108
|
-
---@param
|
|
109
|
-
---@
|
|
110
|
-
|
|
827
|
+
--- cvtColor
|
|
828
|
+
---@param mat OpenCV.Mat
|
|
829
|
+
---@param code number
|
|
830
|
+
---@return OpenCV.Mat|nil
|
|
831
|
+
function _OpenCV.cvtColor(mat, code) return nil end
|
|
111
832
|
|
|
112
|
-
---
|
|
113
|
-
---@param
|
|
114
|
-
---@
|
|
115
|
-
|
|
833
|
+
--- threshold
|
|
834
|
+
---@param mat OpenCV.Mat
|
|
835
|
+
---@param options OpenCV.ThresholdOptions
|
|
836
|
+
---@return OpenCV.Mat|nil
|
|
837
|
+
function _OpenCV.threshold(mat, options) return nil end
|
|
116
838
|
|
|
117
|
-
---
|
|
118
|
-
---@param
|
|
119
|
-
---@
|
|
120
|
-
|
|
839
|
+
--- adaptiveThreshold
|
|
840
|
+
---@param mat OpenCV.Mat
|
|
841
|
+
---@param options OpenCV.AdaptiveThresholdOptions
|
|
842
|
+
---@return OpenCV.Mat|nil
|
|
843
|
+
function _OpenCV.adaptiveThreshold(mat, options) return nil end
|
|
121
844
|
|
|
122
|
-
---
|
|
123
|
-
---@param
|
|
124
|
-
---@
|
|
125
|
-
|
|
845
|
+
--- inRange
|
|
846
|
+
---@param mat OpenCV.Mat
|
|
847
|
+
---@param options OpenCV.InRangeOptions
|
|
848
|
+
---@return OpenCV.Mat|nil
|
|
849
|
+
function _OpenCV.inRange(mat, options) return nil end
|
|
126
850
|
|
|
127
|
-
---
|
|
128
|
-
---@param
|
|
129
|
-
---@
|
|
130
|
-
|
|
851
|
+
--- bitwise_and
|
|
852
|
+
---@param src1 OpenCV.Mat
|
|
853
|
+
---@param options OpenCV.BitwiseOptions
|
|
854
|
+
---@return OpenCV.Mat|nil
|
|
855
|
+
function _OpenCV.bitwise_and(src1, options) return nil end
|
|
131
856
|
|
|
132
|
-
---
|
|
133
|
-
---@param
|
|
134
|
-
---@
|
|
135
|
-
|
|
857
|
+
--- bitwise_or
|
|
858
|
+
---@param src1 OpenCV.Mat
|
|
859
|
+
---@param options OpenCV.BitwiseOptions
|
|
860
|
+
---@return OpenCV.Mat|nil
|
|
861
|
+
function _OpenCV.bitwise_or(src1, options) return nil end
|
|
136
862
|
|
|
137
|
-
---
|
|
138
|
-
---@param
|
|
139
|
-
---@
|
|
140
|
-
|
|
863
|
+
--- bitwise_xor
|
|
864
|
+
---@param src1 OpenCV.Mat
|
|
865
|
+
---@param options OpenCV.BitwiseOptions
|
|
866
|
+
---@return OpenCV.Mat|nil
|
|
867
|
+
function _OpenCV.bitwise_xor(src1, options) return nil end
|
|
141
868
|
|
|
142
|
-
---
|
|
143
|
-
---@param
|
|
144
|
-
---@
|
|
145
|
-
|
|
869
|
+
--- bitwise_not
|
|
870
|
+
---@param mat OpenCV.Mat
|
|
871
|
+
---@param options OpenCV.MaskOptions|nil
|
|
872
|
+
---@return OpenCV.Mat|nil
|
|
873
|
+
function _OpenCV.bitwise_not(mat, options) return nil end
|
|
146
874
|
|
|
147
|
-
---
|
|
148
|
-
---@param
|
|
149
|
-
---@
|
|
150
|
-
|
|
875
|
+
--- absdiff
|
|
876
|
+
---@param src1 OpenCV.Mat
|
|
877
|
+
---@param options OpenCV.Src2Options
|
|
878
|
+
---@return OpenCV.Mat|nil
|
|
879
|
+
function _OpenCV.absdiff(src1, options) return nil end
|
|
151
880
|
|
|
152
|
-
---
|
|
153
|
-
---@param
|
|
154
|
-
---@
|
|
155
|
-
|
|
881
|
+
--- addWeighted
|
|
882
|
+
---@param src1 OpenCV.Mat
|
|
883
|
+
---@param options OpenCV.AddWeightedOptions
|
|
884
|
+
---@return OpenCV.Mat|nil
|
|
885
|
+
function _OpenCV.addWeighted(src1, options) return nil end
|
|
156
886
|
|
|
157
887
|
--- convertScaleAbs
|
|
158
|
-
---@param
|
|
159
|
-
---@
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
--- convexHull
|
|
163
|
-
---@param ... any
|
|
164
|
-
---@return any
|
|
165
|
-
function _OpenCV.convexHull(...) return nil end
|
|
888
|
+
---@param mat OpenCV.Mat
|
|
889
|
+
---@param options OpenCV.ScaleOptions|nil
|
|
890
|
+
---@return OpenCV.Mat|nil
|
|
891
|
+
function _OpenCV.convertScaleAbs(mat, options) return nil end
|
|
166
892
|
|
|
167
|
-
---
|
|
168
|
-
---@param
|
|
169
|
-
---@return
|
|
170
|
-
function _OpenCV.
|
|
893
|
+
--- countNonZero
|
|
894
|
+
---@param mat OpenCV.Mat
|
|
895
|
+
---@return number
|
|
896
|
+
function _OpenCV.countNonZero(mat) return 0 end
|
|
171
897
|
|
|
172
|
-
---
|
|
173
|
-
---@param
|
|
174
|
-
---@
|
|
175
|
-
|
|
898
|
+
--- minMaxLoc
|
|
899
|
+
---@param mat OpenCV.Mat
|
|
900
|
+
---@param options OpenCV.MaskOptions|nil
|
|
901
|
+
---@return OpenCV.MinMaxLocResult|nil
|
|
902
|
+
function _OpenCV.minMaxLoc(mat, options) return nil end
|
|
176
903
|
|
|
177
|
-
---
|
|
178
|
-
---@param
|
|
179
|
-
---@
|
|
180
|
-
|
|
904
|
+
--- mean
|
|
905
|
+
---@param mat OpenCV.Mat
|
|
906
|
+
---@param options OpenCV.MaskOptions|nil
|
|
907
|
+
---@return number[]|nil
|
|
908
|
+
function _OpenCV.mean(mat, options) return nil end
|
|
181
909
|
|
|
182
|
-
---
|
|
183
|
-
---@param
|
|
184
|
-
---@return
|
|
185
|
-
function _OpenCV.
|
|
910
|
+
--- split
|
|
911
|
+
---@param mat OpenCV.Mat
|
|
912
|
+
---@return OpenCV.Mat[]|nil
|
|
913
|
+
function _OpenCV.split(mat) return nil end
|
|
186
914
|
|
|
187
|
-
---
|
|
188
|
-
---@param
|
|
189
|
-
---@return
|
|
190
|
-
function _OpenCV.
|
|
915
|
+
--- merge
|
|
916
|
+
---@param channels OpenCV.Mat[]
|
|
917
|
+
---@return OpenCV.Mat|nil
|
|
918
|
+
function _OpenCV.merge(channels) return nil end
|
|
191
919
|
|
|
192
|
-
---
|
|
193
|
-
---@param
|
|
194
|
-
---@
|
|
195
|
-
|
|
920
|
+
--- GaussianBlur
|
|
921
|
+
---@param mat OpenCV.Mat
|
|
922
|
+
---@param options OpenCV.BlurOptions
|
|
923
|
+
---@return OpenCV.Mat|nil
|
|
924
|
+
function _OpenCV.GaussianBlur(mat, options) return nil end
|
|
196
925
|
|
|
197
|
-
---
|
|
198
|
-
---@param
|
|
199
|
-
---@
|
|
200
|
-
|
|
926
|
+
--- blur
|
|
927
|
+
---@param mat OpenCV.Mat
|
|
928
|
+
---@param options OpenCV.KSizeOptions
|
|
929
|
+
---@return OpenCV.Mat|nil
|
|
930
|
+
function _OpenCV.blur(mat, options) return nil end
|
|
201
931
|
|
|
202
|
-
---
|
|
203
|
-
---@param
|
|
204
|
-
---@
|
|
205
|
-
|
|
932
|
+
--- medianBlur
|
|
933
|
+
---@param mat OpenCV.Mat
|
|
934
|
+
---@param options OpenCV.MedianBlurOptions
|
|
935
|
+
---@return OpenCV.Mat|nil
|
|
936
|
+
function _OpenCV.medianBlur(mat, options) return nil end
|
|
206
937
|
|
|
207
|
-
---
|
|
208
|
-
---@param
|
|
209
|
-
---@
|
|
210
|
-
|
|
938
|
+
--- bilateralFilter
|
|
939
|
+
---@param mat OpenCV.Mat
|
|
940
|
+
---@param options OpenCV.BilateralFilterOptions
|
|
941
|
+
---@return OpenCV.Mat|nil
|
|
942
|
+
function _OpenCV.bilateralFilter(mat, options) return nil end
|
|
211
943
|
|
|
212
|
-
---
|
|
213
|
-
---@param
|
|
214
|
-
---@
|
|
215
|
-
|
|
944
|
+
--- Canny
|
|
945
|
+
---@param mat OpenCV.Mat
|
|
946
|
+
---@param options OpenCV.CannyOptions
|
|
947
|
+
---@return OpenCV.Mat|nil
|
|
948
|
+
function _OpenCV.Canny(mat, options) return nil end
|
|
216
949
|
|
|
217
|
-
---
|
|
218
|
-
---@param
|
|
219
|
-
---@
|
|
220
|
-
|
|
950
|
+
--- Sobel
|
|
951
|
+
---@param mat OpenCV.Mat
|
|
952
|
+
---@param options OpenCV.SobelOptions
|
|
953
|
+
---@return OpenCV.Mat|nil
|
|
954
|
+
function _OpenCV.Sobel(mat, options) return nil end
|
|
221
955
|
|
|
222
|
-
---
|
|
223
|
-
---@param
|
|
224
|
-
---@
|
|
225
|
-
|
|
956
|
+
--- Laplacian
|
|
957
|
+
---@param mat OpenCV.Mat
|
|
958
|
+
---@param options OpenCV.LaplacianOptions
|
|
959
|
+
---@return OpenCV.Mat|nil
|
|
960
|
+
function _OpenCV.Laplacian(mat, options) return nil end
|
|
226
961
|
|
|
227
|
-
---
|
|
228
|
-
---@param
|
|
229
|
-
---@return
|
|
230
|
-
function _OpenCV.
|
|
962
|
+
--- equalizeHist
|
|
963
|
+
---@param mat OpenCV.Mat
|
|
964
|
+
---@return OpenCV.Mat|nil
|
|
965
|
+
function _OpenCV.equalizeHist(mat) return nil end
|
|
231
966
|
|
|
232
|
-
---
|
|
233
|
-
---@param
|
|
234
|
-
---@
|
|
235
|
-
|
|
967
|
+
--- resize
|
|
968
|
+
---@param mat OpenCV.Mat
|
|
969
|
+
---@param options OpenCV.ResizeOptions
|
|
970
|
+
---@return OpenCV.Mat|nil
|
|
971
|
+
function _OpenCV.resize(mat, options) return nil end
|
|
236
972
|
|
|
237
|
-
---
|
|
238
|
-
---@param
|
|
239
|
-
---@
|
|
240
|
-
|
|
973
|
+
--- crop
|
|
974
|
+
---@param mat OpenCV.Mat
|
|
975
|
+
---@param options OpenCV.CropOptions
|
|
976
|
+
---@return OpenCV.Mat|nil
|
|
977
|
+
function _OpenCV.crop(mat, options) return nil end
|
|
241
978
|
|
|
242
|
-
---
|
|
243
|
-
---@param
|
|
244
|
-
---@
|
|
245
|
-
|
|
979
|
+
--- rotate
|
|
980
|
+
---@param mat OpenCV.Mat
|
|
981
|
+
---@param rotateCode number
|
|
982
|
+
---@return OpenCV.Mat|nil
|
|
983
|
+
function _OpenCV.rotate(mat, rotateCode) return nil end
|
|
246
984
|
|
|
247
|
-
---
|
|
248
|
-
---@param
|
|
249
|
-
---@
|
|
250
|
-
|
|
985
|
+
--- flip
|
|
986
|
+
---@param mat OpenCV.Mat
|
|
987
|
+
---@param flipCode number
|
|
988
|
+
---@return OpenCV.Mat|nil
|
|
989
|
+
function _OpenCV.flip(mat, flipCode) return nil end
|
|
251
990
|
|
|
252
|
-
---
|
|
253
|
-
---@param
|
|
254
|
-
---@
|
|
255
|
-
|
|
991
|
+
--- copyMakeBorder
|
|
992
|
+
---@param mat OpenCV.Mat
|
|
993
|
+
---@param options OpenCV.CopyMakeBorderOptions
|
|
994
|
+
---@return OpenCV.Mat|nil
|
|
995
|
+
function _OpenCV.copyMakeBorder(mat, options) return nil end
|
|
256
996
|
|
|
257
|
-
---
|
|
258
|
-
---@param
|
|
259
|
-
---@return
|
|
260
|
-
function _OpenCV.
|
|
997
|
+
--- getRotationMatrix2D
|
|
998
|
+
---@param options OpenCV.GetRotationMatrix2DOptions
|
|
999
|
+
---@return OpenCV.Mat|nil
|
|
1000
|
+
function _OpenCV.getRotationMatrix2D(options) return nil end
|
|
261
1001
|
|
|
262
|
-
---
|
|
263
|
-
---@param
|
|
264
|
-
---@
|
|
265
|
-
|
|
1002
|
+
--- warpAffine
|
|
1003
|
+
---@param mat OpenCV.Mat
|
|
1004
|
+
---@param options OpenCV.WarpAffineOptions
|
|
1005
|
+
---@return OpenCV.Mat|nil
|
|
1006
|
+
function _OpenCV.warpAffine(mat, options) return nil end
|
|
266
1007
|
|
|
267
|
-
---
|
|
268
|
-
---@param
|
|
269
|
-
---@
|
|
270
|
-
|
|
1008
|
+
--- rectangle
|
|
1009
|
+
---@param mat OpenCV.Mat
|
|
1010
|
+
---@param options OpenCV.RectangleOptions
|
|
1011
|
+
---@return OpenCV.Mat|nil
|
|
1012
|
+
function _OpenCV.rectangle(mat, options) return nil end
|
|
271
1013
|
|
|
272
|
-
---
|
|
273
|
-
---@param
|
|
274
|
-
---@
|
|
275
|
-
|
|
1014
|
+
--- circle
|
|
1015
|
+
---@param mat OpenCV.Mat
|
|
1016
|
+
---@param options OpenCV.CircleOptions
|
|
1017
|
+
---@return OpenCV.Mat|nil
|
|
1018
|
+
function _OpenCV.circle(mat, options) return nil end
|
|
276
1019
|
|
|
277
|
-
---
|
|
278
|
-
---@param
|
|
279
|
-
---@
|
|
280
|
-
|
|
1020
|
+
--- line
|
|
1021
|
+
---@param mat OpenCV.Mat
|
|
1022
|
+
---@param options OpenCV.LineOptions
|
|
1023
|
+
---@return OpenCV.Mat|nil
|
|
1024
|
+
function _OpenCV.line(mat, options) return nil end
|
|
281
1025
|
|
|
282
|
-
---
|
|
283
|
-
---@param
|
|
284
|
-
---@
|
|
285
|
-
|
|
1026
|
+
--- putText
|
|
1027
|
+
---@param mat OpenCV.Mat
|
|
1028
|
+
---@param options OpenCV.PutTextOptions
|
|
1029
|
+
---@return OpenCV.Mat|nil
|
|
1030
|
+
function _OpenCV.putText(mat, options) return nil end
|
|
286
1031
|
|
|
287
|
-
---
|
|
288
|
-
---@param
|
|
289
|
-
---@
|
|
290
|
-
|
|
1032
|
+
--- fillPoly
|
|
1033
|
+
---@param mat OpenCV.Mat
|
|
1034
|
+
---@param options OpenCV.FillPolyOptions
|
|
1035
|
+
---@return OpenCV.Mat|nil
|
|
1036
|
+
function _OpenCV.fillPoly(mat, options) return nil end
|
|
291
1037
|
|
|
292
|
-
---
|
|
293
|
-
---@param
|
|
294
|
-
---@
|
|
295
|
-
|
|
1038
|
+
--- polylines
|
|
1039
|
+
---@param mat OpenCV.Mat
|
|
1040
|
+
---@param options OpenCV.PolylinesOptions
|
|
1041
|
+
---@return OpenCV.Mat|nil
|
|
1042
|
+
function _OpenCV.polylines(mat, options) return nil end
|
|
296
1043
|
|
|
297
|
-
---
|
|
298
|
-
---@param
|
|
299
|
-
---@
|
|
300
|
-
|
|
1044
|
+
--- drawContours
|
|
1045
|
+
---@param mat OpenCV.Mat
|
|
1046
|
+
---@param options OpenCV.DrawContoursOptions
|
|
1047
|
+
---@return OpenCV.Mat|nil
|
|
1048
|
+
function _OpenCV.drawContours(mat, options) return nil end
|
|
301
1049
|
|
|
302
|
-
---
|
|
303
|
-
---@param
|
|
304
|
-
---@
|
|
305
|
-
|
|
1050
|
+
--- matchTemplate
|
|
1051
|
+
---@param image OpenCV.Mat
|
|
1052
|
+
---@param templ OpenCV.Mat
|
|
1053
|
+
---@param options OpenCV.MatchTemplateOptions|nil
|
|
1054
|
+
---@return OpenCV.Mat|nil
|
|
1055
|
+
function _OpenCV.matchTemplate(image, templ, options) return nil end
|
|
306
1056
|
|
|
307
|
-
---
|
|
308
|
-
---@param
|
|
309
|
-
---@
|
|
310
|
-
|
|
1057
|
+
--- matchTemplateLoc
|
|
1058
|
+
---@param image OpenCV.Mat
|
|
1059
|
+
---@param templ OpenCV.Mat
|
|
1060
|
+
---@param options OpenCV.MatchTemplateOptions|nil
|
|
1061
|
+
---@return OpenCV.MatchLocResult|nil
|
|
1062
|
+
function _OpenCV.matchTemplateLoc(image, templ, options) return nil end
|
|
311
1063
|
|
|
312
|
-
---
|
|
313
|
-
---@param
|
|
314
|
-
---@
|
|
315
|
-
|
|
1064
|
+
--- findContours
|
|
1065
|
+
---@param mat OpenCV.Mat
|
|
1066
|
+
---@param options OpenCV.FindContoursOptions|nil
|
|
1067
|
+
---@return OpenCV.FindContoursResult|nil
|
|
1068
|
+
function _OpenCV.findContours(mat, options) return nil end
|
|
316
1069
|
|
|
317
|
-
---
|
|
318
|
-
---@param
|
|
319
|
-
---@return
|
|
320
|
-
function _OpenCV.
|
|
1070
|
+
--- boundingRect
|
|
1071
|
+
---@param matOrPoints OpenCV.Mat|OpenCV.Point[]
|
|
1072
|
+
---@return OpenCV.Rect|nil
|
|
1073
|
+
function _OpenCV.boundingRect(matOrPoints) return nil end
|
|
321
1074
|
|
|
322
|
-
---
|
|
323
|
-
---@param
|
|
324
|
-
---@return
|
|
325
|
-
function _OpenCV.
|
|
1075
|
+
--- minAreaRect
|
|
1076
|
+
---@param points OpenCV.Point[]
|
|
1077
|
+
---@return OpenCV.RotatedRect|nil
|
|
1078
|
+
function _OpenCV.minAreaRect(points) return nil end
|
|
326
1079
|
|
|
327
|
-
---
|
|
328
|
-
---@param
|
|
329
|
-
---@
|
|
330
|
-
|
|
1080
|
+
--- contourArea
|
|
1081
|
+
---@param matOrPoints OpenCV.Mat|OpenCV.Point[]
|
|
1082
|
+
---@param oriented boolean|nil
|
|
1083
|
+
---@return number
|
|
1084
|
+
function _OpenCV.contourArea(matOrPoints, oriented) return 0 end
|
|
331
1085
|
|
|
332
|
-
---
|
|
333
|
-
---@param
|
|
334
|
-
---@
|
|
335
|
-
|
|
1086
|
+
--- arcLength
|
|
1087
|
+
---@param points OpenCV.Point[]
|
|
1088
|
+
---@param closed boolean|nil
|
|
1089
|
+
---@return number
|
|
1090
|
+
function _OpenCV.arcLength(points, closed) return 0 end
|
|
336
1091
|
|
|
337
|
-
---
|
|
338
|
-
---@param
|
|
339
|
-
---@
|
|
340
|
-
|
|
1092
|
+
--- approxPolyDP
|
|
1093
|
+
---@param points OpenCV.Point[]
|
|
1094
|
+
---@param options OpenCV.ApproxPolyOptions
|
|
1095
|
+
---@return OpenCV.Point[]|nil
|
|
1096
|
+
function _OpenCV.approxPolyDP(points, options) return nil end
|
|
341
1097
|
|
|
342
|
-
---
|
|
343
|
-
---@param
|
|
344
|
-
---@
|
|
345
|
-
|
|
1098
|
+
--- erode
|
|
1099
|
+
---@param mat OpenCV.Mat
|
|
1100
|
+
---@param options OpenCV.MorphOptions
|
|
1101
|
+
---@return OpenCV.Mat|nil
|
|
1102
|
+
function _OpenCV.erode(mat, options) return nil end
|
|
346
1103
|
|
|
347
|
-
---
|
|
348
|
-
---@param
|
|
349
|
-
---@
|
|
350
|
-
|
|
1104
|
+
--- dilate
|
|
1105
|
+
---@param mat OpenCV.Mat
|
|
1106
|
+
---@param options OpenCV.MorphOptions
|
|
1107
|
+
---@return OpenCV.Mat|nil
|
|
1108
|
+
function _OpenCV.dilate(mat, options) return nil end
|
|
351
1109
|
|
|
352
|
-
---
|
|
353
|
-
---@param
|
|
354
|
-
---@
|
|
355
|
-
|
|
1110
|
+
--- morphologyEx
|
|
1111
|
+
---@param mat OpenCV.Mat
|
|
1112
|
+
---@param options OpenCV.MorphologyExOptions
|
|
1113
|
+
---@return OpenCV.Mat|nil
|
|
1114
|
+
function _OpenCV.morphologyEx(mat, options) return nil end
|
|
356
1115
|
|
|
357
|
-
---
|
|
358
|
-
---@param
|
|
359
|
-
---@return
|
|
360
|
-
function _OpenCV.
|
|
1116
|
+
--- getStructuringElement
|
|
1117
|
+
---@param options OpenCV.StructuringElementOptions
|
|
1118
|
+
---@return OpenCV.Mat|nil
|
|
1119
|
+
function _OpenCV.getStructuringElement(options) return nil end
|
|
361
1120
|
|
|
362
|
-
---
|
|
363
|
-
---@param
|
|
364
|
-
---@
|
|
365
|
-
|
|
1121
|
+
--- SIFT
|
|
1122
|
+
---@param mat OpenCV.Mat
|
|
1123
|
+
---@param options OpenCV.SIFTOptions|nil
|
|
1124
|
+
---@return OpenCV.FeatureResult|nil
|
|
1125
|
+
function _OpenCV.SIFT(mat, options) return nil end
|
|
366
1126
|
|
|
367
|
-
---
|
|
368
|
-
---@param
|
|
369
|
-
---@
|
|
370
|
-
|
|
1127
|
+
--- ORB
|
|
1128
|
+
---@param mat OpenCV.Mat
|
|
1129
|
+
---@param options OpenCV.ORBOptions|nil
|
|
1130
|
+
---@return OpenCV.FeatureResult|nil
|
|
1131
|
+
function _OpenCV.ORB(mat, options) return nil end
|
|
371
1132
|
|
|
372
|
-
---
|
|
373
|
-
---@param
|
|
374
|
-
---@
|
|
375
|
-
|
|
1133
|
+
--- FAST
|
|
1134
|
+
---@param mat OpenCV.Mat
|
|
1135
|
+
---@param options OpenCV.FASTOptions|nil
|
|
1136
|
+
---@return OpenCV.FASTResult|nil
|
|
1137
|
+
function _OpenCV.FAST(mat, options) return nil end
|
|
376
1138
|
|
|
377
|
-
---
|
|
378
|
-
---@param
|
|
379
|
-
---@
|
|
380
|
-
|
|
1139
|
+
--- BFMatcher
|
|
1140
|
+
---@param queryDescriptors OpenCV.Mat
|
|
1141
|
+
---@param trainDescriptors OpenCV.Mat
|
|
1142
|
+
---@param options OpenCV.MatcherOptions|nil
|
|
1143
|
+
---@return OpenCV.DMatch[]|nil
|
|
1144
|
+
function _OpenCV.BFMatcher(queryDescriptors, trainDescriptors, options) return nil end
|
|
381
1145
|
|
|
382
|
-
---
|
|
383
|
-
---@param
|
|
384
|
-
---@
|
|
385
|
-
|
|
1146
|
+
--- knnMatch
|
|
1147
|
+
---@param queryDescriptors OpenCV.Mat
|
|
1148
|
+
---@param trainDescriptors OpenCV.Mat
|
|
1149
|
+
---@param options OpenCV.KnnMatchOptions|nil
|
|
1150
|
+
---@return OpenCV.DMatch[][]|nil
|
|
1151
|
+
function _OpenCV.knnMatch(queryDescriptors, trainDescriptors, options) return nil end
|
|
386
1152
|
|
|
387
|
-
---
|
|
388
|
-
---@param
|
|
389
|
-
---@
|
|
390
|
-
|
|
1153
|
+
--- drawKeypoints
|
|
1154
|
+
---@param mat OpenCV.Mat
|
|
1155
|
+
---@param options OpenCV.DrawKeypointsOptions
|
|
1156
|
+
---@return OpenCV.Mat|nil
|
|
1157
|
+
function _OpenCV.drawKeypoints(mat, options) return nil end
|
|
391
1158
|
|
|
392
|
-
---
|
|
393
|
-
---@param
|
|
394
|
-
---@
|
|
395
|
-
|
|
1159
|
+
--- drawMatches
|
|
1160
|
+
---@param mat OpenCV.Mat
|
|
1161
|
+
---@param options OpenCV.DrawMatchesOptions
|
|
1162
|
+
---@return OpenCV.Mat|nil
|
|
1163
|
+
function _OpenCV.drawMatches(mat, options) return nil end
|
|
396
1164
|
|
|
397
|
-
---
|
|
398
|
-
---@param
|
|
399
|
-
---@return
|
|
400
|
-
function _OpenCV.
|
|
1165
|
+
--- findHomography
|
|
1166
|
+
---@param options OpenCV.FindHomographyOptions
|
|
1167
|
+
---@return OpenCV.Mat|nil
|
|
1168
|
+
function _OpenCV.findHomography(options) return nil end
|
|
401
1169
|
|
|
402
|
-
---
|
|
403
|
-
---@param
|
|
404
|
-
---@
|
|
405
|
-
|
|
1170
|
+
--- warpPerspective
|
|
1171
|
+
---@param mat OpenCV.Mat
|
|
1172
|
+
---@param options OpenCV.WarpPerspectiveOptions
|
|
1173
|
+
---@return OpenCV.Mat|nil
|
|
1174
|
+
function _OpenCV.warpPerspective(mat, options) return nil end
|
|
406
1175
|
|
|
407
|
-
---
|
|
408
|
-
---@param
|
|
409
|
-
---@
|
|
410
|
-
|
|
1176
|
+
--- perspectiveTransform
|
|
1177
|
+
---@param points OpenCV.Point[]
|
|
1178
|
+
---@param options OpenCV.MatrixOptions
|
|
1179
|
+
---@return OpenCV.Point[]|nil
|
|
1180
|
+
function _OpenCV.perspectiveTransform(points, options) return nil end
|
|
411
1181
|
|
|
412
1182
|
--- goodFeaturesToTrack
|
|
413
|
-
---@param
|
|
414
|
-
---@
|
|
415
|
-
|
|
1183
|
+
---@param mat OpenCV.Mat
|
|
1184
|
+
---@param options OpenCV.GoodFeaturesOptions
|
|
1185
|
+
---@return OpenCV.Point[]|nil
|
|
1186
|
+
function _OpenCV.goodFeaturesToTrack(mat, options) return nil end
|
|
416
1187
|
|
|
417
|
-
---
|
|
418
|
-
---@param
|
|
419
|
-
---@
|
|
420
|
-
|
|
1188
|
+
--- HoughLinesP
|
|
1189
|
+
---@param mat OpenCV.Mat
|
|
1190
|
+
---@param options OpenCV.HoughLinesPOptions
|
|
1191
|
+
---@return OpenCV.HoughLine[]|nil
|
|
1192
|
+
function _OpenCV.HoughLinesP(mat, options) return nil end
|
|
421
1193
|
|
|
422
1194
|
--- HoughCircles
|
|
423
|
-
---@param
|
|
424
|
-
---@
|
|
425
|
-
|
|
1195
|
+
---@param mat OpenCV.Mat
|
|
1196
|
+
---@param options OpenCV.HoughCirclesOptions
|
|
1197
|
+
---@return OpenCV.HoughCircle[]|nil
|
|
1198
|
+
function _OpenCV.HoughCircles(mat, options) return nil end
|
|
426
1199
|
|
|
427
|
-
---
|
|
428
|
-
---@param
|
|
429
|
-
---@
|
|
430
|
-
|
|
1200
|
+
--- CLAHE
|
|
1201
|
+
---@param mat OpenCV.Mat
|
|
1202
|
+
---@param options OpenCV.CLAHEOptions|nil
|
|
1203
|
+
---@return OpenCV.Mat|nil
|
|
1204
|
+
function _OpenCV.CLAHE(mat, options) return nil end
|
|
431
1205
|
|
|
432
|
-
---
|
|
433
|
-
---@param
|
|
434
|
-
---@return
|
|
435
|
-
function _OpenCV.
|
|
1206
|
+
--- pyrDown
|
|
1207
|
+
---@param mat OpenCV.Mat
|
|
1208
|
+
---@return OpenCV.Mat|nil
|
|
1209
|
+
function _OpenCV.pyrDown(mat) return nil end
|
|
436
1210
|
|
|
437
|
-
---
|
|
438
|
-
---@param
|
|
439
|
-
---@return
|
|
440
|
-
function _OpenCV.
|
|
1211
|
+
--- pyrUp
|
|
1212
|
+
---@param mat OpenCV.Mat
|
|
1213
|
+
---@return OpenCV.Mat|nil
|
|
1214
|
+
function _OpenCV.pyrUp(mat) return nil end
|
|
441
1215
|
|
|
442
|
-
---
|
|
443
|
-
---@param
|
|
444
|
-
---@
|
|
445
|
-
|
|
1216
|
+
--- Scharr
|
|
1217
|
+
---@param mat OpenCV.Mat
|
|
1218
|
+
---@param options OpenCV.ScharrOptions
|
|
1219
|
+
---@return OpenCV.Mat|nil
|
|
1220
|
+
function _OpenCV.Scharr(mat, options) return nil end
|
|
446
1221
|
|
|
447
|
-
---
|
|
448
|
-
---@param
|
|
449
|
-
---@
|
|
450
|
-
|
|
1222
|
+
--- boxFilter
|
|
1223
|
+
---@param mat OpenCV.Mat
|
|
1224
|
+
---@param options OpenCV.BoxFilterOptions
|
|
1225
|
+
---@return OpenCV.Mat|nil
|
|
1226
|
+
function _OpenCV.boxFilter(mat, options) return nil end
|
|
451
1227
|
|
|
452
|
-
---
|
|
453
|
-
---@param
|
|
454
|
-
---@
|
|
455
|
-
|
|
1228
|
+
--- floodFill
|
|
1229
|
+
---@param mat OpenCV.Mat
|
|
1230
|
+
---@param options OpenCV.FloodFillOptions
|
|
1231
|
+
---@return OpenCV.FloodFillResult|nil
|
|
1232
|
+
function _OpenCV.floodFill(mat, options) return nil end
|
|
456
1233
|
|
|
457
|
-
---
|
|
458
|
-
---@param
|
|
459
|
-
---@
|
|
460
|
-
|
|
1234
|
+
--- convexHull
|
|
1235
|
+
---@param points OpenCV.Point[]
|
|
1236
|
+
---@param options OpenCV.ConvexHullOptions|nil
|
|
1237
|
+
---@return OpenCV.Point[]|nil
|
|
1238
|
+
function _OpenCV.convexHull(points, options) return nil end
|
|
461
1239
|
|
|
462
|
-
---
|
|
463
|
-
---@param
|
|
464
|
-
---@
|
|
465
|
-
|
|
1240
|
+
--- moments
|
|
1241
|
+
---@param matOrPoints OpenCV.Mat|OpenCV.Point[]
|
|
1242
|
+
---@param options OpenCV.MomentsOptions|nil
|
|
1243
|
+
---@return OpenCV.MomentsResult|nil
|
|
1244
|
+
function _OpenCV.moments(matOrPoints, options) return nil end
|
|
466
1245
|
|
|
467
|
-
---
|
|
468
|
-
---@param
|
|
469
|
-
---@
|
|
470
|
-
|
|
1246
|
+
--- matchShapes
|
|
1247
|
+
---@param contour1 OpenCV.Mat|OpenCV.Point[]
|
|
1248
|
+
---@param contour2 OpenCV.Mat|OpenCV.Point[]
|
|
1249
|
+
---@param options OpenCV.MatchShapesOptions|nil
|
|
1250
|
+
---@return number
|
|
1251
|
+
function _OpenCV.matchShapes(contour1, contour2, options) return 0 end
|
|
471
1252
|
|
|
472
|
-
---
|
|
473
|
-
---@param
|
|
474
|
-
---@return
|
|
475
|
-
function _OpenCV.
|
|
1253
|
+
--- connectedComponentsWithStats
|
|
1254
|
+
---@param mat OpenCV.Mat
|
|
1255
|
+
---@return OpenCV.ConnectedComponentsResult|nil
|
|
1256
|
+
function _OpenCV.connectedComponentsWithStats(mat) return nil end
|
|
476
1257
|
|
|
477
|
-
---
|
|
478
|
-
---@param
|
|
479
|
-
---@
|
|
480
|
-
|
|
1258
|
+
--- distanceTransform
|
|
1259
|
+
---@param mat OpenCV.Mat
|
|
1260
|
+
---@param options OpenCV.DistanceTransformOptions|nil
|
|
1261
|
+
---@return OpenCV.Mat|nil
|
|
1262
|
+
function _OpenCV.distanceTransform(mat, options) return nil end
|
|
481
1263
|
|
|
482
|
-
---
|
|
483
|
-
---@param
|
|
484
|
-
---@
|
|
485
|
-
|
|
1264
|
+
--- add
|
|
1265
|
+
---@param src1 OpenCV.Mat
|
|
1266
|
+
---@param options OpenCV.ArithMaskOptions
|
|
1267
|
+
---@return OpenCV.Mat|nil
|
|
1268
|
+
function _OpenCV.add(src1, options) return nil end
|
|
486
1269
|
|
|
487
|
-
---
|
|
488
|
-
---@param
|
|
489
|
-
---@
|
|
490
|
-
|
|
1270
|
+
--- subtract
|
|
1271
|
+
---@param src1 OpenCV.Mat
|
|
1272
|
+
---@param options OpenCV.ArithMaskOptions
|
|
1273
|
+
---@return OpenCV.Mat|nil
|
|
1274
|
+
function _OpenCV.subtract(src1, options) return nil end
|
|
491
1275
|
|
|
492
|
-
---
|
|
493
|
-
---@param
|
|
494
|
-
---@
|
|
495
|
-
|
|
1276
|
+
--- multiply
|
|
1277
|
+
---@param src1 OpenCV.Mat
|
|
1278
|
+
---@param options OpenCV.ArithScaleOptions
|
|
1279
|
+
---@return OpenCV.Mat|nil
|
|
1280
|
+
function _OpenCV.multiply(src1, options) return nil end
|
|
496
1281
|
|
|
497
|
-
---
|
|
498
|
-
---@param
|
|
499
|
-
---@
|
|
500
|
-
|
|
1282
|
+
--- divide
|
|
1283
|
+
---@param src1 OpenCV.Mat
|
|
1284
|
+
---@param options OpenCV.ArithScaleOptions
|
|
1285
|
+
---@return OpenCV.Mat|nil
|
|
1286
|
+
function _OpenCV.divide(src1, options) return nil end
|
|
501
1287
|
|
|
502
|
-
---
|
|
503
|
-
---@param
|
|
504
|
-
---@
|
|
505
|
-
|
|
1288
|
+
--- normalize
|
|
1289
|
+
---@param mat OpenCV.Mat
|
|
1290
|
+
---@param options OpenCV.NormalizeOptions|nil
|
|
1291
|
+
---@return OpenCV.Mat|nil
|
|
1292
|
+
function _OpenCV.normalize(mat, options) return nil end
|
|
506
1293
|
|
|
507
|
-
---
|
|
508
|
-
---@param
|
|
509
|
-
---@
|
|
510
|
-
|
|
1294
|
+
--- norm
|
|
1295
|
+
---@param mat OpenCV.Mat
|
|
1296
|
+
---@param options OpenCV.NormOptions|nil
|
|
1297
|
+
---@return number
|
|
1298
|
+
function _OpenCV.norm(mat, options) return 0 end
|
|
511
1299
|
|
|
512
|
-
---
|
|
513
|
-
---@param
|
|
514
|
-
---@
|
|
515
|
-
|
|
1300
|
+
--- meanStdDev
|
|
1301
|
+
---@param mat OpenCV.Mat
|
|
1302
|
+
---@param options OpenCV.MaskOptions|nil
|
|
1303
|
+
---@return OpenCV.MeanStdDevResult|nil
|
|
1304
|
+
function _OpenCV.meanStdDev(mat, options) return nil end
|
|
516
1305
|
|
|
517
|
-
---
|
|
518
|
-
---@param
|
|
519
|
-
---@return
|
|
520
|
-
function _OpenCV.
|
|
1306
|
+
--- findNonZero
|
|
1307
|
+
---@param mat OpenCV.Mat
|
|
1308
|
+
---@return OpenCV.Point[]|nil
|
|
1309
|
+
function _OpenCV.findNonZero(mat) return nil end
|
|
521
1310
|
|
|
522
|
-
---
|
|
523
|
-
---@param
|
|
524
|
-
---@return
|
|
525
|
-
function _OpenCV.
|
|
1311
|
+
--- hconcat
|
|
1312
|
+
---@param mats OpenCV.Mat[]
|
|
1313
|
+
---@return OpenCV.Mat|nil
|
|
1314
|
+
function _OpenCV.hconcat(mats) return nil end
|
|
526
1315
|
|
|
527
|
-
---
|
|
528
|
-
---@param
|
|
529
|
-
---@return
|
|
530
|
-
function _OpenCV.
|
|
1316
|
+
--- vconcat
|
|
1317
|
+
---@param mats OpenCV.Mat[]
|
|
1318
|
+
---@return OpenCV.Mat|nil
|
|
1319
|
+
function _OpenCV.vconcat(mats) return nil end
|
|
531
1320
|
|
|
532
|
-
---
|
|
533
|
-
---@param
|
|
534
|
-
---@return
|
|
535
|
-
function _OpenCV.
|
|
1321
|
+
--- getPerspectiveTransform
|
|
1322
|
+
---@param options OpenCV.PointPairOptions
|
|
1323
|
+
---@return OpenCV.Mat|nil
|
|
1324
|
+
function _OpenCV.getPerspectiveTransform(options) return nil end
|
|
536
1325
|
|
|
537
|
-
---
|
|
538
|
-
---@param
|
|
539
|
-
---@return
|
|
540
|
-
function _OpenCV.
|
|
1326
|
+
--- getAffineTransform
|
|
1327
|
+
---@param options OpenCV.PointPairOptions
|
|
1328
|
+
---@return OpenCV.Mat|nil
|
|
1329
|
+
function _OpenCV.getAffineTransform(options) return nil end
|
|
541
1330
|
|
|
542
|
-
---
|
|
543
|
-
---@param
|
|
544
|
-
---@
|
|
545
|
-
|
|
1331
|
+
--- FlannBasedMatcher
|
|
1332
|
+
---@param queryDescriptors OpenCV.Mat
|
|
1333
|
+
---@param trainDescriptors OpenCV.Mat
|
|
1334
|
+
---@return OpenCV.DMatch[]|nil
|
|
1335
|
+
function _OpenCV.FlannBasedMatcher(queryDescriptors, trainDescriptors) return nil end
|
|
546
1336
|
|
|
547
|
-
---
|
|
548
|
-
---@param
|
|
549
|
-
---@
|
|
550
|
-
|
|
1337
|
+
--- flannKnnMatch
|
|
1338
|
+
---@param queryDescriptors OpenCV.Mat
|
|
1339
|
+
---@param trainDescriptors OpenCV.Mat
|
|
1340
|
+
---@param options OpenCV.FlannKnnOptions|nil
|
|
1341
|
+
---@return OpenCV.DMatch[][]|nil
|
|
1342
|
+
function _OpenCV.flannKnnMatch(queryDescriptors, trainDescriptors, options) return nil end
|
|
551
1343
|
|
|
552
|
-
---
|
|
553
|
-
---@param
|
|
554
|
-
---@
|
|
555
|
-
|
|
1344
|
+
--- calcHist
|
|
1345
|
+
---@param mat OpenCV.Mat
|
|
1346
|
+
---@param options OpenCV.CalcHistOptions|nil
|
|
1347
|
+
---@return OpenCV.Mat|nil
|
|
1348
|
+
function _OpenCV.calcHist(mat, options) return nil end
|
|
556
1349
|
|
|
557
|
-
---
|
|
558
|
-
---@param
|
|
559
|
-
---@
|
|
560
|
-
|
|
1350
|
+
--- compareHist
|
|
1351
|
+
---@param H1 OpenCV.Mat
|
|
1352
|
+
---@param H2 OpenCV.Mat
|
|
1353
|
+
---@param options OpenCV.MethodOptions|nil
|
|
1354
|
+
---@return number
|
|
1355
|
+
function _OpenCV.compareHist(H1, H2, options) return 0 end
|
|
561
1356
|
|
|
562
|
-
---
|
|
563
|
-
---@param
|
|
564
|
-
---@return
|
|
565
|
-
function _OpenCV.
|
|
1357
|
+
--- boxPoints
|
|
1358
|
+
---@param options OpenCV.BoxPointsOptions
|
|
1359
|
+
---@return OpenCV.Point[]|nil
|
|
1360
|
+
function _OpenCV.boxPoints(options) return nil end
|
|
566
1361
|
|
|
567
|
-
---
|
|
568
|
-
---@param
|
|
569
|
-
---@
|
|
570
|
-
|
|
1362
|
+
--- pointPolygonTest
|
|
1363
|
+
---@param contour OpenCV.Point[]
|
|
1364
|
+
---@param ptOrOptions OpenCV.Point|OpenCV.PointPolygonTestOptions
|
|
1365
|
+
---@return number
|
|
1366
|
+
function _OpenCV.pointPolygonTest(contour, ptOrOptions) return 0 end
|
|
571
1367
|
|
|
572
|
-
---
|
|
573
|
-
---@param
|
|
574
|
-
---@return
|
|
575
|
-
function _OpenCV.
|
|
1368
|
+
--- minEnclosingCircle
|
|
1369
|
+
---@param points OpenCV.Point[]
|
|
1370
|
+
---@return OpenCV.MinEnclosingCircleResult|nil
|
|
1371
|
+
function _OpenCV.minEnclosingCircle(points) return nil end
|
|
576
1372
|
|
|
577
|
-
---
|
|
578
|
-
---@param
|
|
579
|
-
---@return
|
|
580
|
-
function _OpenCV.
|
|
1373
|
+
--- fitEllipse
|
|
1374
|
+
---@param points OpenCV.Point[]
|
|
1375
|
+
---@return OpenCV.RotatedRect|nil
|
|
1376
|
+
function _OpenCV.fitEllipse(points) return nil end
|
|
581
1377
|
|
|
582
|
-
---
|
|
583
|
-
---@param
|
|
584
|
-
---@
|
|
585
|
-
|
|
1378
|
+
--- filter2D
|
|
1379
|
+
---@param mat OpenCV.Mat
|
|
1380
|
+
---@param options OpenCV.Filter2DOptions
|
|
1381
|
+
---@return OpenCV.Mat|nil
|
|
1382
|
+
function _OpenCV.filter2D(mat, options) return nil end
|
|
586
1383
|
|
|
587
|
-
---
|
|
588
|
-
---@param
|
|
589
|
-
---@
|
|
590
|
-
|
|
1384
|
+
--- ellipse
|
|
1385
|
+
---@param mat OpenCV.Mat
|
|
1386
|
+
---@param options OpenCV.EllipseOptions
|
|
1387
|
+
---@return OpenCV.Mat|nil
|
|
1388
|
+
function _OpenCV.ellipse(mat, options) return nil end
|
|
591
1389
|
|
|
592
|
-
---
|
|
593
|
-
---@param
|
|
594
|
-
---@return
|
|
595
|
-
function _OpenCV.
|
|
1390
|
+
--- getTextSize
|
|
1391
|
+
---@param options OpenCV.GetTextSizeOptions
|
|
1392
|
+
---@return OpenCV.TextSizeResult|nil
|
|
1393
|
+
function _OpenCV.getTextSize(options) return nil end
|
|
596
1394
|
|
|
597
|
-
---
|
|
598
|
-
---@param
|
|
599
|
-
---@return
|
|
600
|
-
function _OpenCV.
|
|
1395
|
+
--- encodeQRCode
|
|
1396
|
+
---@param text string
|
|
1397
|
+
---@return OpenCV.Mat|nil
|
|
1398
|
+
function _OpenCV.encodeQRCode(text) return nil end
|
|
601
1399
|
|
|
602
|
-
---
|
|
603
|
-
---@param
|
|
604
|
-
---@return
|
|
605
|
-
function _OpenCV.
|
|
1400
|
+
--- detectQRCode
|
|
1401
|
+
---@param mat OpenCV.Mat
|
|
1402
|
+
---@return OpenCV.QRCodeResult|nil
|
|
1403
|
+
function _OpenCV.detectQRCode(mat) return nil end
|
|
606
1404
|
|
|
607
|
-
---
|
|
608
|
-
---@param
|
|
609
|
-
---@return
|
|
610
|
-
function _OpenCV.
|
|
1405
|
+
--- detectBarcode
|
|
1406
|
+
---@param mat OpenCV.Mat
|
|
1407
|
+
---@return OpenCV.BarcodeResult|nil
|
|
1408
|
+
function _OpenCV.detectBarcode(mat) return nil end
|
|
611
1409
|
|
|
612
|
-
---
|
|
613
|
-
---@param
|
|
614
|
-
---@
|
|
615
|
-
|
|
1410
|
+
--- inpaint
|
|
1411
|
+
---@param mat OpenCV.Mat
|
|
1412
|
+
---@param options OpenCV.InpaintOptions
|
|
1413
|
+
---@return OpenCV.Mat|nil
|
|
1414
|
+
function _OpenCV.inpaint(mat, options) return nil end
|
|
616
1415
|
|
|
617
|
-
---
|
|
618
|
-
---@param
|
|
619
|
-
---@
|
|
620
|
-
|
|
1416
|
+
--- fastNlMeansDenoising
|
|
1417
|
+
---@param mat OpenCV.Mat
|
|
1418
|
+
---@param options OpenCV.DenoiseOptions|nil
|
|
1419
|
+
---@return OpenCV.Mat|nil
|
|
1420
|
+
function _OpenCV.fastNlMeansDenoising(mat, options) return nil end
|
|
621
1421
|
|
|
622
|
-
---
|
|
623
|
-
---@param
|
|
624
|
-
---@
|
|
625
|
-
|
|
1422
|
+
--- fastNlMeansDenoisingColored
|
|
1423
|
+
---@param mat OpenCV.Mat
|
|
1424
|
+
---@param options OpenCV.DenoiseColoredOptions|nil
|
|
1425
|
+
---@return OpenCV.Mat|nil
|
|
1426
|
+
function _OpenCV.fastNlMeansDenoisingColored(mat, options) return nil end
|
|
626
1427
|
|
|
627
|
-
---
|
|
628
|
-
---@param
|
|
629
|
-
---@
|
|
630
|
-
|
|
1428
|
+
--- LUT
|
|
1429
|
+
---@param mat OpenCV.Mat
|
|
1430
|
+
---@param options OpenCV.LUTOptions
|
|
1431
|
+
---@return OpenCV.Mat|nil
|
|
1432
|
+
function _OpenCV.LUT(mat, options) return nil end
|
|
631
1433
|
|
|
632
|
-
---
|
|
633
|
-
---@param
|
|
634
|
-
---@
|
|
635
|
-
|
|
1434
|
+
--- compare
|
|
1435
|
+
---@param src1 OpenCV.Mat
|
|
1436
|
+
---@param options OpenCV.CompareOptions
|
|
1437
|
+
---@return OpenCV.Mat|nil
|
|
1438
|
+
function _OpenCV.compare(src1, options) return nil end
|
|
636
1439
|
|
|
637
|
-
---
|
|
638
|
-
---@param
|
|
639
|
-
---@
|
|
640
|
-
|
|
1440
|
+
--- min
|
|
1441
|
+
---@param src1 OpenCV.Mat
|
|
1442
|
+
---@param options OpenCV.Src2Options
|
|
1443
|
+
---@return OpenCV.Mat|nil
|
|
1444
|
+
function _OpenCV.min(src1, options) return nil end
|
|
641
1445
|
|
|
642
|
-
---
|
|
643
|
-
---@param
|
|
644
|
-
---@
|
|
645
|
-
|
|
1446
|
+
--- max
|
|
1447
|
+
---@param src1 OpenCV.Mat
|
|
1448
|
+
---@param options OpenCV.Src2Options
|
|
1449
|
+
---@return OpenCV.Mat|nil
|
|
1450
|
+
function _OpenCV.max(src1, options) return nil end
|
|
646
1451
|
|
|
647
|
-
---
|
|
648
|
-
---@param
|
|
649
|
-
---@
|
|
650
|
-
|
|
1452
|
+
--- extractChannel
|
|
1453
|
+
---@param mat OpenCV.Mat
|
|
1454
|
+
---@param options OpenCV.ExtractChannelOptions
|
|
1455
|
+
---@return OpenCV.Mat|nil
|
|
1456
|
+
function _OpenCV.extractChannel(mat, options) return nil end
|
|
651
1457
|
|
|
652
|
-
---
|
|
653
|
-
---@param
|
|
654
|
-
---@return
|
|
655
|
-
function _OpenCV.
|
|
1458
|
+
--- sum
|
|
1459
|
+
---@param mat OpenCV.Mat
|
|
1460
|
+
---@return number[]|nil
|
|
1461
|
+
function _OpenCV.sum(mat) return nil end
|
|
656
1462
|
|
|
657
|
-
---
|
|
658
|
-
---@param
|
|
659
|
-
---@return
|
|
660
|
-
function _OpenCV.
|
|
1463
|
+
--- invertAffineTransform
|
|
1464
|
+
---@param M OpenCV.Mat
|
|
1465
|
+
---@return OpenCV.Mat|nil
|
|
1466
|
+
function _OpenCV.invertAffineTransform(M) return nil end
|
|
661
1467
|
|
|
662
|
-
---
|
|
663
|
-
---@param
|
|
664
|
-
---@
|
|
665
|
-
|
|
1468
|
+
--- getRectSubPix
|
|
1469
|
+
---@param mat OpenCV.Mat
|
|
1470
|
+
---@param options OpenCV.GetRectSubPixOptions
|
|
1471
|
+
---@return OpenCV.Mat|nil
|
|
1472
|
+
function _OpenCV.getRectSubPix(mat, options) return nil end
|
|
666
1473
|
|
|
667
|
-
---
|
|
668
|
-
---@param
|
|
669
|
-
---@
|
|
670
|
-
|
|
1474
|
+
--- phaseCorrelate
|
|
1475
|
+
---@param src1 OpenCV.Mat
|
|
1476
|
+
---@param options OpenCV.PhaseCorrelateOptions
|
|
1477
|
+
---@return OpenCV.PhaseCorrelateResult|nil
|
|
1478
|
+
function _OpenCV.phaseCorrelate(src1, options) return nil end
|
|
671
1479
|
|
|
672
|
-
---
|
|
673
|
-
---@param
|
|
674
|
-
---@
|
|
675
|
-
|
|
1480
|
+
--- cornerHarris
|
|
1481
|
+
---@param mat OpenCV.Mat
|
|
1482
|
+
---@param options OpenCV.CornerHarrisOptions|nil
|
|
1483
|
+
---@return OpenCV.Mat|nil
|
|
1484
|
+
function _OpenCV.cornerHarris(mat, options) return nil end
|
|
676
1485
|
|
|
677
|
-
---
|
|
678
|
-
---@param
|
|
679
|
-
---@
|
|
680
|
-
|
|
1486
|
+
--- cornerSubPix
|
|
1487
|
+
---@param mat OpenCV.Mat
|
|
1488
|
+
---@param options OpenCV.CornerSubPixOptions
|
|
1489
|
+
---@return OpenCV.Point[]|nil
|
|
1490
|
+
function _OpenCV.cornerSubPix(mat, options) return nil end
|
|
681
1491
|
|
|
682
|
-
---
|
|
683
|
-
---@param
|
|
684
|
-
---@
|
|
685
|
-
|
|
1492
|
+
--- calcBackProject
|
|
1493
|
+
---@param mat OpenCV.Mat
|
|
1494
|
+
---@param options OpenCV.CalcBackProjectOptions
|
|
1495
|
+
---@return OpenCV.Mat|nil
|
|
1496
|
+
function _OpenCV.calcBackProject(mat, options) return nil end
|
|
686
1497
|
|
|
687
|
-
---
|
|
688
|
-
---@param
|
|
689
|
-
---@return
|
|
690
|
-
function _OpenCV.
|
|
1498
|
+
--- HuMoments
|
|
1499
|
+
---@param contourOrMoments OpenCV.Point[]|OpenCV.MomentsResult
|
|
1500
|
+
---@return number[]|nil
|
|
1501
|
+
function _OpenCV.HuMoments(contourOrMoments) return nil end
|
|
691
1502
|
|
|
692
|
-
---
|
|
693
|
-
---@param
|
|
694
|
-
---@
|
|
695
|
-
|
|
1503
|
+
--- connectedComponents
|
|
1504
|
+
---@param mat OpenCV.Mat
|
|
1505
|
+
---@param options OpenCV.ConnectedComponentsOptions|nil
|
|
1506
|
+
---@return OpenCV.ConnectedComponentsCountResult|nil
|
|
1507
|
+
function _OpenCV.connectedComponents(mat, options) return nil end
|
|
696
1508
|
|
|
697
|
-
---
|
|
698
|
-
---@param
|
|
699
|
-
---@
|
|
700
|
-
|
|
1509
|
+
--- convexityDefects
|
|
1510
|
+
---@param contour OpenCV.Point[]
|
|
1511
|
+
---@param options OpenCV.ConvexityDefectsOptions
|
|
1512
|
+
---@return OpenCV.ConvexityDefect[]|nil
|
|
1513
|
+
function _OpenCV.convexityDefects(contour, options) return nil end
|
|
701
1514
|
|
|
702
|
-
---
|
|
703
|
-
---@param
|
|
704
|
-
---@return
|
|
705
|
-
function _OpenCV.
|
|
1515
|
+
--- isContourConvex
|
|
1516
|
+
---@param contour OpenCV.Point[]
|
|
1517
|
+
---@return boolean
|
|
1518
|
+
function _OpenCV.isContourConvex(contour) return false end
|
|
706
1519
|
|
|
707
|
-
---
|
|
708
|
-
---@param
|
|
709
|
-
---@
|
|
710
|
-
|
|
1520
|
+
--- fitLine
|
|
1521
|
+
---@param points OpenCV.Point[]
|
|
1522
|
+
---@param options OpenCV.FitLineOptions|nil
|
|
1523
|
+
---@return number[]|nil
|
|
1524
|
+
function _OpenCV.fitLine(points, options) return nil end
|
|
711
1525
|
|
|
712
|
-
---
|
|
713
|
-
---@param
|
|
714
|
-
---@
|
|
715
|
-
|
|
1526
|
+
--- drawMarker
|
|
1527
|
+
---@param mat OpenCV.Mat
|
|
1528
|
+
---@param options OpenCV.DrawMarkerOptions
|
|
1529
|
+
---@return OpenCV.Mat|nil
|
|
1530
|
+
function _OpenCV.drawMarker(mat, options) return nil end
|
|
716
1531
|
|
|
717
|
-
---
|
|
718
|
-
---@param
|
|
719
|
-
---@
|
|
720
|
-
|
|
1532
|
+
--- arrowedLine
|
|
1533
|
+
---@param mat OpenCV.Mat
|
|
1534
|
+
---@param options OpenCV.ArrowedLineOptions
|
|
1535
|
+
---@return OpenCV.Mat|nil
|
|
1536
|
+
function _OpenCV.arrowedLine(mat, options) return nil end
|
|
721
1537
|
|
|
722
|
-
---
|
|
723
|
-
---@param
|
|
724
|
-
---@
|
|
725
|
-
|
|
1538
|
+
--- fillConvexPoly
|
|
1539
|
+
---@param mat OpenCV.Mat
|
|
1540
|
+
---@param options OpenCV.FillConvexPolyOptions
|
|
1541
|
+
---@return OpenCV.Mat|nil
|
|
1542
|
+
function _OpenCV.fillConvexPoly(mat, options) return nil end
|
|
1543
|
+
|
|
1544
|
+
--- estimateAffine2D
|
|
1545
|
+
---@param options OpenCV.EstimateAffineOptions
|
|
1546
|
+
---@return OpenCV.Mat|nil
|
|
1547
|
+
function _OpenCV.estimateAffine2D(options) return nil end
|
|
1548
|
+
|
|
1549
|
+
--- estimateAffinePartial2D
|
|
1550
|
+
---@param options OpenCV.EstimateAffineOptions
|
|
1551
|
+
---@return OpenCV.Mat|nil
|
|
1552
|
+
function _OpenCV.estimateAffinePartial2D(options) return nil end
|
|
726
1553
|
|
|
727
1554
|
---@type OpenCV
|
|
728
1555
|
cv = _OpenCV
|