mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-31 06:31:54 +00:00
README: update extractPaper doc
This commit is contained in:
parent
6bd6001cf4
commit
2ca70c5c9d
@ -73,9 +73,8 @@ const scanner = new jscanify();
|
|||||||
const paperWidth = 500;
|
const paperWidth = 500;
|
||||||
const paperHeight = 1000;
|
const paperHeight = 1000;
|
||||||
image.onload = function () {
|
image.onload = function () {
|
||||||
scanner.extractPaper(image, paperWidth, paperHeight, (resultCanvas) => {
|
const resultCanvas = scanner.extractPaper(image, paperWidth, paperHeight);
|
||||||
document.body.appendChild(resultCanvas);
|
document.body.appendChild(resultCanvas);
|
||||||
});
|
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user