pylabrobot.micronic.code_reader.scanner.TwainScanner.__init__#

TwainScanner.__init__(twain_scanner_path: str | None = None, twain_source: str = 'AVA6PlusG', command_line: CommandLineTransport | None = None) None#

Initialize a TWAIN scanner.

Parameters:
  • twain_scanner_path (str | None) – Path to the operator-installed TWAIN helper. When omitted, resolve it from MICRONIC_TWAIN_SCANNER_PATH or PATH.

  • twain_source (str) – TWAIN source name passed to the helper.

  • command_line (CommandLineTransport | None) – Configured command-line transport. When supplied, its executable takes precedence over twain_scanner_path.

Raises:

MicronicError – If no TWAIN helper can be resolved.

Return type:

None