salient-autofocus:基于显着性图的自动对焦功能

时间:2021-05-13 18:39:20
【文件属性】:
文件名称:salient-autofocus:基于显着性图的自动对焦功能
文件大小:604KB
文件格式:ZIP
更新时间:2021-05-13 18:39:20
JavaScript 显着自动对焦 基于显着性图的自动聚焦功能。 基本用法 使用显着自动对焦从1024x768图像中提取640x480区域 const autoFocus = require('salient-autofocus'); const salientMatrix = [[0, 0.25, 0.5], [0, 0, 0.25], [0, 0.25, 0.75]]; // custom 3x3 matrix const region = autoFocus.getRegionFromSalientMatrix(salientMatrix, { imageWidth: 1024, imageHeight: 768, regionWidth: 640, regionHeight: 480 }); // { left, top, right, bottom, width, height } OpenCV用法
【文件预览】:
salient-autofocus-master
----LICENSE.txt(1KB)
----src()
--------get-meta-from-salient-matrix.js(7KB)
--------constants.js(702B)
--------get-region-from-salient-matrix.js(343B)
--------get-region-from-meta.js(4KB)
--------index.js(260B)
----scripts()
--------launch-coverage-in-browser.js(710B)
----test()
--------get-meta-from-salient-matrix.js(1014B)
--------get-region-from-salient-matrix.js(748B)
--------get-region-from-meta.js(6KB)
----README.md(5KB)
----docs()
--------images()
----.gitignore(884B)
----package-lock.json(30KB)
----package.json(1KB)

网友评论