An open API service indexing awesome lists of open source software.

https://github.com/donguyenanhtuan/skeletonization-document-scanner

A Python-based document scanner that uses image processing and skeletonization techniques to detect and extract documents from camera images.
https://github.com/donguyenanhtuan/skeletonization-document-scanner

computer-vision document-scanner image-processing opencv skeletonization

Last synced: 15 days ago
JSON representation

A Python-based document scanner that uses image processing and skeletonization techniques to detect and extract documents from camera images.

Awesome Lists containing this project

README

          

```markdown
# ๐Ÿงพ Skeletonization Document Scanner

This project implements a basic document scanning pipeline using OpenCV and image skeletonization techniques. It processes input images (e.g., photos of paper documents) and transforms them into clean, top-down scanned versions.

---

## ๐Ÿ“Œ Features

- ๐Ÿ–ผ๏ธ Automatic edge detection & contour finding
- ๐Ÿ“ Perspective transformation (warp)
- ๐Ÿง  Skeletonization for better structure identification
- ๐Ÿงพ Output of scanned-style documents

---

## ๐Ÿ“‚ Structure

```

Skeletonization-Document-Scanner/
โ”œโ”€โ”€ data/
โ”‚ โ””โ”€โ”€ sample\_input.jpg
โ”œโ”€โ”€ src/
โ”‚ โ””โ”€โ”€ scanner.py
โ”‚ โ””โ”€โ”€ skeletonize.py
โ”œโ”€โ”€ output/
โ”‚ โ””โ”€โ”€ scanned\_output.jpg
โ””โ”€โ”€ README.md

````

---

## ๐Ÿ”ง Requirements

Install dependencies:

```bash
pip install opencv-python numpy
````

---

## ๐Ÿš€ How to Run

```bash
python src/scanner.py --image data/sample_input.jpg
```

The script will display the scanning process step-by-step and output the result to the `output/` folder.

---

## ๐Ÿ“Š Example Results

| Input Photo | Scanned Output |
| ---------------------- | ------------------------ |
| ![raw](docs/input.jpg) | ![scan](docs/output.jpg) |

---

## ๐Ÿง  Applications

* Digitizing paper documents
* Mobile scanning tools
* Preprocessing for OCR systems

---

## ๐Ÿ‘จโ€๐Ÿ’ป Author

**Do Nguyen Anh Tuan**
๐ŸŽ“ MSc in Information Technology @ Lac Hong University
๐Ÿข FabLab @ EIU | Focused on AI, Computer Vision, and Robotics
๐ŸŒ [Portfolio Website](https://donguyenanhtuan.github.io/AnhTuan-Portfolio)