This is an automated archive made by the Lemmit Bot.

The original was posted on /r/opensource by /u/atypicalCookie on 2023-08-10 18:04:39.


Hey folks! I would appreciate any feedback on my current project – Quickdoc (QD). It is similar to a “image scanner”, like we used to have apps like CamScanner and such on our phones, the interesting part is that is uses WebAssembly to process image directly on the metal(*) through code written in C.

For the cropping process, Quickdoc uses the Sobel operator to create a edge buffer of the image. It “contours” the image to identify the “longest vertical edge,” allowing it to effectively detect the vertical edges of a paper. A similar technique is applied to identify horizontal edges. After this edge detection step, Quickdoc applies a threshold (currently hard-coded at 128), as I found that Otsu’s implementation wasn’t really satisfactory.

  • GitHub:
  • Quickdoc: