mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-30 22:31:52 +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.onload = function(){
|
||||
scanner.extractPaper(newImg, 386, 500, (resultCanvas) => {
|
||||
$('#demo-result').append(resultCanvas);
|
||||
const resultCanvas = scanner.extractPaper(newImg, 386, 500);
|
||||
$('#demo-result').append(resultCanvas);
|
||||
|
||||
const highlightedCanvas = scanner.highlightPaper(newImg)
|
||||
$('#demo-result').append(highlightedCanvas);
|
||||
});
|
||||
const highlightedCanvas = scanner.highlightPaper(newImg)
|
||||
$('#demo-result').append(highlightedCanvas);
|
||||
}
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user