@udarrr/template-matcher
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,2 +0,2 @@ | ||
import * as cv from "opencv4nodejs-prebuilt"; | ||
import * as cv from '@u4/opencv4nodejs'; | ||
import { Image, Region } from "@nut-tree/nut-js"; | ||
@@ -3,0 +3,0 @@ export declare function determineMatRectROI(img: Image, roi: Region): cv.Rect; |
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.fromImageWithoutAlphaChannel = exports.fromImageWithAlphaChannel = exports.validateSearchRegion = exports.determineRegionRectROI = exports.determineMatRectROI = void 0; | ||
const cv = __importStar(require("opencv4nodejs-prebuilt")); | ||
const cv = __importStar(require("@u4/opencv4nodejs")); | ||
const nut_js_1 = require("@nut-tree/nut-js"); | ||
@@ -26,0 +26,0 @@ function determineMatRectROI(img, roi) { |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cv = __importStar(require("opencv4nodejs-prebuilt")); | ||
const cv = __importStar(require("@u4/opencv4nodejs")); | ||
const nut_js_1 = require("@nut-tree/nut-js"); | ||
@@ -25,0 +25,0 @@ class default_1 { |
@@ -1,4 +0,4 @@ | ||
import * as cv from 'opencv4nodejs-prebuilt'; | ||
import * as cv from '@u4/opencv4nodejs'; | ||
import { MatchResult } from '@nut-tree/nut-js'; | ||
import { Mat, Vec3 } from 'opencv4nodejs-prebuilt'; | ||
import { Mat, Vec3 } from '@u4/opencv4nodejs'; | ||
export declare enum MethodEnum { | ||
@@ -5,0 +5,0 @@ TM_CCOEFF = "TM_CCOEFF", |
@@ -23,5 +23,5 @@ "use strict"; | ||
exports.MatchTemplate = exports.MethodEnum = void 0; | ||
const cv = __importStar(require("opencv4nodejs-prebuilt")); | ||
const cv = __importStar(require("@u4/opencv4nodejs")); | ||
const nut_js_1 = require("@nut-tree/nut-js"); | ||
const opencv4nodejs_prebuilt_1 = require("opencv4nodejs-prebuilt"); | ||
const opencv4nodejs_1 = require("@u4/opencv4nodejs"); | ||
var MethodEnum; | ||
@@ -96,4 +96,4 @@ (function (MethodEnum) { | ||
} | ||
static fillReginBlackColor(haystack, poligon, color = new opencv4nodejs_prebuilt_1.Vec3(0, 255, 0)) { | ||
haystack.drawFillPoly([[new opencv4nodejs_prebuilt_1.Point2(poligon.xL, poligon.yL), new opencv4nodejs_prebuilt_1.Point2(poligon.xR, poligon.yL), new opencv4nodejs_prebuilt_1.Point2(poligon.xR, poligon.yR), new opencv4nodejs_prebuilt_1.Point2(poligon.xL, poligon.yR)]], color); | ||
static fillReginBlackColor(haystack, poligon, color = new opencv4nodejs_1.Vec3(0, 255, 0)) { | ||
haystack.drawFillPoly([[new opencv4nodejs_1.Point2(poligon.xL, poligon.yL), new opencv4nodejs_1.Point2(poligon.xR, poligon.yL), new opencv4nodejs_1.Point2(poligon.xR, poligon.yR), new opencv4nodejs_1.Point2(poligon.xL, poligon.yR)]], color); | ||
return haystack; | ||
@@ -100,0 +100,0 @@ } |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cv = __importStar(require("opencv4nodejs-prebuilt")); | ||
const cv = __importStar(require("@u4/opencv4nodejs")); | ||
const sneer_1 = require("sneer"); | ||
@@ -25,0 +25,0 @@ const match_image_function_1 = require("./match-image.function"); |
@@ -1,3 +0,3 @@ | ||
import * as cv from "opencv4nodejs-prebuilt"; | ||
import * as cv from '@u4/opencv4nodejs'; | ||
export declare function scaleImage(image: cv.Mat, scaleFactor: number): Promise<cv.Mat>; | ||
//# sourceMappingURL=scale-image.function.d.ts.map |
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.scaleImage = void 0; | ||
const cv = __importStar(require("opencv4nodejs-prebuilt")); | ||
const cv = __importStar(require("@u4/opencv4nodejs")); | ||
const bound_value_function_1 = require("./bound-value.function"); | ||
@@ -26,0 +26,0 @@ async function scaleImage(image, scaleFactor) { |
{ | ||
"name": "@udarrr/template-matcher", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "dist/index", | ||
@@ -52,3 +52,3 @@ "typings": "dist/index", | ||
"@nut-tree/nut-js": "^2.3.0", | ||
"opencv4nodejs-prebuilt": "5.3.4" | ||
"@u4/opencv4nodejs": "6.2.5" | ||
}, | ||
@@ -58,3 +58,2 @@ "devDependencies": { | ||
"@types/node": "16.7.10", | ||
"@types/screenshot-desktop": "^1.12.0", | ||
"jest": "27.1.0", | ||
@@ -61,0 +60,0 @@ "rimraf": "3.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
110397
63
1045
+ Added@u4/opencv4nodejs@6.2.5
+ Added@gar/promisify@1.1.3(transitive)
+ Added@npmcli/fs@2.1.2(transitive)
+ Added@npmcli/move-file@2.0.1(transitive)
+ Added@tootallnate/once@2.0.0(transitive)
+ Added@u4/opencv-build@0.5.13(transitive)
+ Added@u4/opencv4nodejs@6.2.5(transitive)
+ Added@u4/tiny-glob@0.2.100.3.2(transitive)
+ Addedabbrev@1.1.1(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedagentkeepalive@4.5.0(transitive)
+ Addedaggregate-error@3.1.0(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedaproba@2.0.0(transitive)
+ Addedare-we-there-yet@3.0.14.0.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedcacache@16.1.3(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addederr-code@2.0.3(transitive)
+ Addedexponential-backoff@3.1.1(transitive)
+ Addedfs-minipass@2.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgauge@4.0.45.0.2(transitive)
+ Addedglob@7.2.38.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp-proxy-agent@5.0.0(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedhumanize-ms@1.2.1(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedinfer-owner@1.0.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedis-lambda@1.0.1(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedlru-cache@7.18.3(transitive)
+ Addedmake-fetch-happen@10.2.1(transitive)
+ Addedminimatch@3.1.25.1.6(transitive)
+ Addedminipass@3.3.65.0.0(transitive)
+ Addedminipass-collect@1.0.2(transitive)
+ Addedminipass-fetch@2.1.2(transitive)
+ Addedminipass-flush@1.0.5(transitive)
+ Addedminipass-pipeline@1.2.4(transitive)
+ Addedminipass-sized@1.0.3(transitive)
+ Addedminizlib@2.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedms@2.1.3(transitive)
+ Addednegotiator@0.6.4(transitive)
+ Addednode-gyp@9.4.1(transitive)
+ Addednopt@6.0.0(transitive)
+ Addednpmlog@6.0.27.0.1(transitive)
+ Addedp-map@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpromise-inflight@1.0.1(transitive)
+ Addedpromise-retry@2.0.1(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@7.0.0(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedssri@9.0.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedtar@6.2.1(transitive)
+ Addedunique-filename@2.0.1(transitive)
+ Addedunique-slug@3.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedyallist@4.0.0(transitive)
- Removedopencv4nodejs-prebuilt@5.3.4
- Removed@types/node@22.10.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@1.2.0(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbl@4.1.0(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedchownr@1.1.4(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddecompress-response@4.2.1(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddetect-libc@1.0.3(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexpand-template@2.0.3(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedgauge@2.7.4(transitive)
- Removedgithub-from-package@0.0.0(transitive)
- Removedieee754@1.2.1(transitive)
- Removedini@1.3.8(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmimic-response@2.1.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp-classic@0.5.3(transitive)
- Removednapi-build-utils@1.0.2(transitive)
- Removednode-abi@2.30.1(transitive)
- Removednpmlog@4.1.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedopencv4nodejs-prebuilt@5.3.4(transitive)
- Removedprebuild-install@6.1.4(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedrc@1.2.8(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsimple-get@3.1.1(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedtar-fs@2.1.1(transitive)
- Removedtar-stream@2.2.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedundici-types@6.20.0(transitive)