JSPM

linkimage

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q16959F
  • License MIT

Find corresponding point between images

Package Exports

  • linkimage

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (linkimage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

linkimage

npm version Node.js CI JavaScript Style Guide codecov

Find corresponding points between images. Using OpenCV and TensorFlow.js.

linkimage

Install

npm install linkimage

or

yarn add linkimage

Usage

const fs = require('fs')
const { link } = require('linkimage')

const srcBuffer = fs.readFileSync('images/src.jpg')
const dstBuffer = fs.readFileSync('images/dst.jpg')

// Find point on the destination image which corresponds to the specific point on the source image.
// The source point is the center of the source image.
const point = link(srcBuffer, dstBuffer)
// You can also specify a source point:
// const point = link(srcBuffer, dstBuffer, [100, 100])

// Returns the cordinates of the corresponding point in format [x, y].
// If no point found, return [-1, -1].
console.log(point)

License

MIT