Update extractPaper documentation

This commit is contained in:
ColonelParrot 2023-05-10 15:53:00 -04:00
parent 0cc64a2fda
commit 8a0ec08de1
2 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ class jscanify {
* @param {*} image image to process
* @param {*} resultWidth desired result paper width
* @param {*} resultHeight desired result paper height
* @param {*} onComplete callback with `HTMLCanvasElement` passed - the unwarped paper
* @param {*} cornerPoints optional custom corner points, in case automatic corner points are incorrect
* @returns `HTMLCanvasElement` containing undistorted image
*/
extractPaper(image, resultWidth, resultHeight, cornerPoints) {
const canvas = createCanvas();

View File

@ -131,8 +131,8 @@
* @param {*} image image to process
* @param {*} resultWidth desired result paper width
* @param {*} resultHeight desired result paper height
* @param {*} onComplete callback with `HTMLCanvasElement` passed - the unwarped paper
* @param {*} cornerPoints optional custom corner points, in case automatic corner points are incorrect
* @returns `HTMLCanvasElement` containing undistorted image
*/
extractPaper(image, resultWidth, resultHeight, cornerPoints) {
const canvas = document.createElement("canvas");