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