diff --git a/src/jscanify.js b/src/jscanify.js index ef17fe0..2aab57f 100644 --- a/src/jscanify.js +++ b/src/jscanify.js @@ -95,6 +95,7 @@ const img = cv.imread(image); const maxContour = this.findPaperContour(img); + cv.imshow(canvas, img); if (maxContour) { const { topLeftCorner, @@ -103,8 +104,6 @@ bottomRightCorner, } = this.getCornerPoints(maxContour, img); - cv.imshow(canvas, img); - if ( topLeftCorner && topRightCorner &&