mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-30 22:31:52 +00:00
Update extractPaper documentation
This commit is contained in:
parent
0cc64a2fda
commit
8a0ec08de1
@ -140,8 +140,8 @@ class jscanify {
|
|||||||
* @param {*} image image to process
|
* @param {*} image image to process
|
||||||
* @param {*} resultWidth desired result paper width
|
* @param {*} resultWidth desired result paper width
|
||||||
* @param {*} resultHeight desired result paper height
|
* @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
|
* @param {*} cornerPoints optional custom corner points, in case automatic corner points are incorrect
|
||||||
|
* @returns `HTMLCanvasElement` containing undistorted image
|
||||||
*/
|
*/
|
||||||
extractPaper(image, resultWidth, resultHeight, cornerPoints) {
|
extractPaper(image, resultWidth, resultHeight, cornerPoints) {
|
||||||
const canvas = createCanvas();
|
const canvas = createCanvas();
|
||||||
|
|||||||
@ -131,8 +131,8 @@
|
|||||||
* @param {*} image image to process
|
* @param {*} image image to process
|
||||||
* @param {*} resultWidth desired result paper width
|
* @param {*} resultWidth desired result paper width
|
||||||
* @param {*} resultHeight desired result paper height
|
* @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
|
* @param {*} cornerPoints optional custom corner points, in case automatic corner points are incorrect
|
||||||
|
* @returns `HTMLCanvasElement` containing undistorted image
|
||||||
*/
|
*/
|
||||||
extractPaper(image, resultWidth, resultHeight, cornerPoints) {
|
extractPaper(image, resultWidth, resultHeight, cornerPoints) {
|
||||||
const canvas = document.createElement("canvas");
|
const canvas = document.createElement("canvas");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user