Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charles-m-knox/go-fltk-sane
A lightweight GUI application that scans your documents via a USB document scanner.
https://github.com/charles-m-knox/go-fltk-sane
Last synced: about 2 months ago
JSON representation
A lightweight GUI application that scans your documents via a USB document scanner.
- Host: GitHub
- URL: https://github.com/charles-m-knox/go-fltk-sane
- Owner: charles-m-knox
- License: agpl-3.0
- Created: 2024-09-10T00:17:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T00:19:26.000Z (4 months ago)
- Last Synced: 2024-09-10T04:09:58.803Z (4 months ago)
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-fltk-sane
Allows you to leverage the `sane` framework to scan documents with a scanner.
Runs an FLTK-based UI that is light on memory.
## Usage
Requires `CGO_ENABLED=1` because FLTK leverages C bindings.
```bash
go get -v
go build -v
./go-fltk-sane
```## About
This project was hacked together relatively quickly and was my first experiment with FLTK (fast light toolkit).
Originally, I leveraged another Go library that interfaces with `sane` but unfortunately there were memory management issues (memory would not be garbage collected properly on each document scan action). I had to rewrite much of the application to instead parse the CLI output of `scanimage` - this mean that you need to install the `sane` package on your system and ensure that `scanimage` is available.
Additionally, this program is not foolproof. It isn't going to detect every possible setting for your scanner, only a few defaults. I'm not trying to boil the ocean, I just wanted a barebones FLTK scanner application that worked for my use case.
## Screenshots
I will try to add screenshots in the future.