Skip to content

Instantly share code, notes, and snippets.

@jaesivsm
Created June 30, 2013 17:14
Show Gist options
  • Save jaesivsm/5896009 to your computer and use it in GitHub Desktop.
Save jaesivsm/5896009 to your computer and use it in GitHub Desktop.
./list_all.py
Scanner 'genesys:libusb:001:003' (Canon, LiDE 110, flatbed scanner)
Option: threshold-curve
Title: Threshold curve
Desc: Dynamic threshold curve, from light to dark, normally 50-65
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 127, 1)
Value: 50
Option: disable-dynamic-lineart
Title: Disable dynamic lineart
Desc: Disable use of a software adaptive algorithm to generate lineart relying instead on hardware lineart.
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: disable-interpolation
Title: Disable interpolation
Desc: When using high resolutions where the horizontal resolution is smaller than the vertical resolution this disables horizontal interpolation.
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: scan
Title: Scan button
Desc: Scan button
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Hard_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: tl-y
Title: Top-left y
Desc: Top-left y position of scan area.
Type: <class 'src.rawapi.SaneValueType'> : Fixed (2)
Unit: <class 'src.rawapi.SaneUnit'> : Mm (3)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 19660800, 0)
Value: 0
Option: tl-x
Title: Top-left x
Desc: Top-left x position of scan area.
Type: <class 'src.rawapi.SaneValueType'> : Fixed (2)
Unit: <class 'src.rawapi.SaneUnit'> : Mm (3)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 14011596, 0)
Value: 0
Option: ocr
Title: OCR button
Desc: OCR button
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: swdespeck
Title: Software despeck
Desc: Request backend to remove lone dots digitally
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: file
Title: File button
Desc: File button
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Hard_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: threshold
Title: Threshold
Desc: Select minimum-brightness to get a white point
Type: <class 'src.rawapi.SaneValueType'> : Fixed (2)
Unit: <class 'src.rawapi.SaneUnit'> : Percent (5)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 6553600, 65536)
Value: 3276800
Option: lamp-off-time
Title: Lamp off time
Desc: The lamp will be turned off after the given time (in minutes). A value of 0 means, that the lamp won't be turned off.
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 60, 0)
Value: 15
Option: color-filter
Title: Color Filter
Desc: When using gray or lineart this option selects the used color.
Type: <class 'src.rawapi.SaneValueType'> : String (3)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 6
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : String list (3)
Constraint: ['Red', 'Green', 'Blue', 'None']
Value: None
Option: swcrop
Title: Software crop
Desc: Request backend to remove border from pages digitally
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: source
Title: Scan source
Desc: Selects the scan source (such as a document-feeder).
Type: <class 'src.rawapi.SaneValueType'> : String (3)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 21
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : String list (3)
Constraint: ['Flatbed', 'Transparency Adapter']
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: page-loaded
Title: Page loaded
Desc: Page loaded
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: preview
Title: Preview
Desc: Request a preview-quality scan.
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: swdeskew
Title: Software deskew
Desc: Request backend to rotate skewed pages digitally
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: gamma-table
Title: Image intensity
Desc: Gamma-correction table. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table).
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 1024
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 65535, 0)
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: custom-gamma
Title: Use custom gamma table
Desc: Determines whether a builtin or a custom gamma-table should be used.
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: power
Title: Power button
Desc: Power button
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: green-gamma-table
Title: Green intensity
Desc: Gamma-correction table for the green band.
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 1024
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 65535, 0)
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: br-y
Title: Bottom-right y
Desc: Bottom-right y position of scan area.
Type: <class 'src.rawapi.SaneValueType'> : Fixed (2)
Unit: <class 'src.rawapi.SaneUnit'> : Mm (3)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 19660800, 0)
Value: 19660800
Option: br-x
Title: Bottom-right x
Desc: Bottom-right x position of scan area.
Type: <class 'src.rawapi.SaneValueType'> : Fixed (2)
Unit: <class 'src.rawapi.SaneUnit'> : Mm (3)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 14011596, 0)
Value: 14011596
Option: despeck
Title: Software despeckle diameter
Desc: Maximum diameter of lone dots to remove from scan
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (1, 9, 1)
Value: 1
Option: copy
Title: Copy button
Desc: Copy button
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Hard_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: blue-gamma-table
Title: Blue intensity
Desc: Gamma-correction table for the blue band.
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 1024
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 65535, 0)
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: email
Title: Email button
Desc: Email button
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Hard_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: 0
Option: depth
Title: Bit depth
Desc: Number of bits per sample, typical values are 1 for "line-art" and 8 for multibit scans.
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Word list (2)
Constraint: [8, 16]
Value: 8
Option: mode
Title: Scan mode
Desc: Selects the scan mode (e.g., lineart, monochrome, or color).
Type: <class 'src.rawapi.SaneValueType'> : String (3)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 8
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : String list (3)
Constraint: ['Color', 'Gray', 'Lineart']
Value: Gray
Option: red-gamma-table
Title: Red intensity
Desc: Gamma-correction table for the red band.
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 1024
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect, Advanced,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Range (1)
Constraint: (0, 65535, 0)
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: need-calibration
Title: Need calibration
Desc: The scanner needs calibration for the current settings
Type: <class 'src.rawapi.SaneValueType'> : Boolean (0)
Unit: <class 'src.rawapi.SaneUnit'> : None (0)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Inactive,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : None (0)
Constraint: None
Value: Failed to get the value: <class 'src.rawapi.SaneStatus'> : Data is invalid (4)
Option: resolution
Title: Scan resolution
Desc: Sets the resolution of the scanned image.
Type: <class 'src.rawapi.SaneValueType'> : Integer (1)
Unit: <class 'src.rawapi.SaneUnit'> : Dpi (4)
Size: 4
Capabilities: <class 'src.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
Constraint type: <class 'src.rawapi.SaneConstraintType'> : Word list (2)
Constraint: [2400, 1200, 600, 300, 150, 100, 75]
Value: 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment