pylabrobot.micronic.code_reader.scanner.SaneScanner.__init__#
- SaneScanner.__init__(sane_device: str | None = None, scanimage_path: str | None = None, command_line: CommandLineTransport | None = None) None#
Initialize a SANE scanner.
- Parameters:
sane_device (str | None) – Optional SANE device identifier passed to
scanimage.scanimage_path (str | None) – Path to
scanimage. When omitted, resolve it fromPATH.command_line (CommandLineTransport | None) – Configured command-line transport. When supplied, its executable takes precedence over
scanimage_path.
- Raises:
MicronicError – If
scanimagecannot be resolved.- Return type:
None