Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.