ubuntu-flutter-community / sane.dart

Dart bindings for the SANE library.
3 stars 2 forks source link

Create scanner package #32

Open Jupi007 opened 3 weeks ago

Jupi007 commented 3 weeks ago

This package should totally abstract SANE.

final finder = ScannerFinder();
final scanner = finder.lookup().first;

scanner.configure(
  ScanOptions(
    mode: ScanMode.color,
    resolution: 600,
    ...
  )
);
final scanStream = scanner.scan();
Craftplacer commented 3 weeks ago

What about other scanning libraries like Windows Image Acquisition, etc.? Is it also in the scope of that library?

Jupi007 commented 3 weeks ago

The goal is to provide a generic interface, on which other scanning library can be plugged on.

Craftplacer commented 3 weeks ago

We maybe should specify/design the API first before we start implementing/working on it.

Maybe do a bit of research: how do the APIs of other OS scanning libraries look like?