mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-30 22:31:52 +00:00
port bugfix to node
This commit is contained in:
parent
f0428d79ca
commit
e2af210cf2
@ -80,7 +80,10 @@ class jscanify {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const maxContour = contours.get(maxContourIndex);
|
const maxContour =
|
||||||
|
maxContourIndex >= 0 ?
|
||||||
|
contours.get(maxContourIndex) :
|
||||||
|
null;
|
||||||
|
|
||||||
imgGray.delete();
|
imgGray.delete();
|
||||||
imgBlur.delete();
|
imgBlur.delete();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user