mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-30 22:31:52 +00:00
test: remove callback for extractPaper
This commit is contained in:
parent
03e7e6932a
commit
a4b91dabd2
@ -64,7 +64,7 @@ function test() {
|
||||
});
|
||||
|
||||
it("should extract paper", function (done) {
|
||||
scanner.extractPaper(testImage, 386, 500, function (extracted) {
|
||||
const extracted = scanner.extractPaper(testImage, 386, 500);
|
||||
writeFileSync(
|
||||
outputPaths.extracted,
|
||||
extracted.toBuffer("image/jpeg")
|
||||
@ -73,7 +73,6 @@ function test() {
|
||||
assert.ok(existsSync(outputPaths.extracted));
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("should label corner points", function (done) {
|
||||
const parsedImage = cv.imread(testImage);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user