GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TeaUponTweed/JournalScanner: CLI tool for transforming natural pictures of documents into "scanned" images. Inspired by this blog post but without the DL https://dropbox.tech/machine-learning/fast-and-accurate-document-detection-for-scanning

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
src/scansnake
src/scansnake
 
 
test_images
test_images
 
 
.gitignore
.gitignore
 
 
.isort.cfg
.isort.cfg
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
dev-requirements.txt
dev-requirements.txt
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

Overview

Simple CLI to create scan-like images from pictures of documents. There are currently several issues with the algorithm but it works sometimes. The eventual goal is to implement this in golang and compile to WASM and run locally in the browser and allow for manual quadrilateral inputs when scanning non-isolated images such as a recipe book.

We take in a image like this: example input And ideally output an image like this: example output

Usage

Install by running make install Then run scan path/to/image.jpeg path/to/scan.jpeg

TODO

  • Use color (white-ish -> other) to improve edge detection
  • Track original corner orientation so that document is not flipped
  • More rigorous down-sampling for parts of the algorithm
  • Implement min-cut to remove areas of darkness
  • Can this be a pure DL algorithm? Perhaps using "SmartDoc-QA: A dataset for quality assessment of smartphone captured document images - single and multiple distortions"
  • Typehint / pylint / mypy

About

CLI tool for transforming natural pictures of documents into "scanned" images. Inspired by this blog post but without the DL https://dropbox.tech/machine-learning/fast-and-accurate-document-detection-for-scanning

Topics

command-linecomputer-visionmachine-learningpythonscanner

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.