pylabrobot.micronic.code_reader.scanner.SaneScanner#

class pylabrobot.micronic.code_reader.scanner.SaneScanner(sane_device: str | None = None, scanimage_path: str | None = None, command_line: CommandLineTransport | None = None)#

Bases: Scanner

Linux SANE scanner driven through the scanimage CLI.

Attributes

Methods

__init__([sane_device, scanimage_path, ...])

Initialize a SANE scanner.

acquire(output_path, timeout)

Acquire a TIFF image through scanimage.

setup()

Resolve and prepare the scanimage executable.

stop()

Stop the SANE command-line transport.

Parameters:
  • sane_device (Optional[str])

  • scanimage_path (Optional[str])

  • command_line (Optional[CommandLineTransport])