mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-31 06:31:54 +00:00
script.js: remove callback for extractPaper
This commit is contained in:
parent
a4b91dabd2
commit
6bd6001cf4
@ -32,12 +32,11 @@ $('#demo-images .image-container').click(function () {
|
|||||||
newImg.src = imageSrc
|
newImg.src = imageSrc
|
||||||
|
|
||||||
newImg.onload = function(){
|
newImg.onload = function(){
|
||||||
scanner.extractPaper(newImg, 386, 500, (resultCanvas) => {
|
const resultCanvas = scanner.extractPaper(newImg, 386, 500);
|
||||||
$('#demo-result').append(resultCanvas);
|
$('#demo-result').append(resultCanvas);
|
||||||
|
|
||||||
const highlightedCanvas = scanner.highlightPaper(newImg)
|
const highlightedCanvas = scanner.highlightPaper(newImg)
|
||||||
$('#demo-result').append(highlightedCanvas);
|
$('#demo-result').append(highlightedCanvas);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user