Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@udarrr/template-matcher

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udarrr/template-matcher - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

dist/lib/image-processor.class.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc