From 98a10bafafbc9118fa279ad07fe7749f2f723d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Ca=C3=B1as?= Date: Fri, 13 Aug 2021 11:39:33 +0200 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d71b372..d2a2d7a 100644 --- a/README.md +++ b/README.md @@ -14,30 +14,29 @@ ## Install -Via npm for Node.js (Node module): - -```js -$ npm install homography -... -import { Homography, loadImage } from "homography"; -``` - To use as a module in the browser (Recommended): ```html ``` If you don't need to perform Piecewise Affine Transforms, you can also use a very lightweight UMD build that will expose the homography global variable and will charge faster: ```js - + ... // And then in your script const myHomography = new homography.Homography(); // Remember to don't override the homography variable by naming your object "homography" ``` +Via npm for Node.js (Node module): + +```js +$ npm install homography +... +import { Homography, loadImage } from "homography"; +``` ## Usage ### In the Browser @@ -191,7 +190,7 @@ Sets the source reference points ([[x1, y1], [x2, y2], ..., [xn, yn