Giter VIP home page Giter VIP logo

Comments (6)

jflesch avatar jflesch commented on June 17, 2024

Can you run the script 'examples/list_all.py' and post the output here please ?

from pyinsane.

KubikPixel avatar KubikPixel commented on June 17, 2024

Python 2.7 under Linux Mint 7.1

Scanner 'brother3:bus3;dev1' (Brother, MFC-J410, USB scanner)
  Option: brightness
    Title: Brightness
    Desc: Controls the brightness of the acquired image.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Fixed (2)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Percent (5)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Range (1)
    Constraint: (-3276800, 3276800, 65536)
    Value: Failed to get the value: Option 'brightness' is not active
  Option: tl-y
    Title: Top-left y
    Desc: Top-left y position of scan area.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Fixed (2)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Mm (3)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Range (1)
    Constraint: (0, 23304601, 6553)
    Value: 0
  Option: tl-x
    Title: Top-left x
    Desc: Top-left x position of scan area.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Fixed (2)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Mm (3)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Range (1)
    Constraint: (0, 14149222, 6553)
    Value: 0
  Option: br-y
    Title: Bottom-right y
    Desc: Bottom-right y position of scan area.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Fixed (2)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Mm (3)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Range (1)
    Constraint: (0, 23304601, 6553)
    Value: 23304601
  Option: br-x
    Title: Bottom-right x
    Desc: Bottom-right x position of scan area.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Fixed (2)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Mm (3)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Range (1)
    Constraint: (0, 14149222, 6553)
    Value: 14149222
  Option: source
    Title: Scan source
    Desc: Selects the scan source (such as a document-feeder).
    Type: <class 'pyinsane.rawapi.SaneValueType'> : String (3)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : None (0)
    Size: 64
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : String list (3)
    Constraint: ['FlatBed', 'Automatic Document Feeder(left aligned)', 'Automatic Document Feeder(centrally aligned)']
    Value: Automatic Document Feeder(left aligned)
  Option: mode
    Title: Scan mode
    Desc: Select the scan mode
    Type: <class 'pyinsane.rawapi.SaneValueType'> : String (3)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : None (0)
    Size: 30
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : String list (3)
    Constraint: ['Black & White', 'Gray[Error Diffusion]', 'True Gray', '24bit Color']
    Value: 24bit Color
  Option: resolution
    Title: Scan resolution
    Desc: Sets the resolution of the scanned image.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Integer (1)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Dpi (4)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Word list (2)
    Constraint: [100, 150, 200, 300, 400, 600, 1200, 2400, 4800, 9600]
    Value: 200
  Option: contrast
    Title: Contrast
    Desc: Controls the contrast of the acquired image.
    Type: <class 'pyinsane.rawapi.SaneValueType'> : Fixed (2)
    Unit: <class 'pyinsane.rawapi.SaneUnit'> : Percent (5)
    Size: 4
    Capabilities: <class 'pyinsane.rawapi.SaneCapabilities'> :[ Inactive, Soft_select, Soft_detect,]
    Constraint type: <class 'pyinsane.rawapi.SaneConstraintType'> : Range (1)
    Constraint: (-3276800, 3276800, 65536)
    Value: Failed to get the value: Option 'contrast' is not active

from pyinsane.

jflesch avatar jflesch commented on June 17, 2024
Option: mode
(...)
Constraint: ['Black & White', 'Gray[Error Diffusion]', 'True Gray', '24bit Color']

#%#$^#$ !! Because there is always an idiot somewhere to think they are smarter than the others and do things differently for no actual reason ! (not you of course, the guy who made your scanner driver)

from pyinsane.

jflesch avatar jflesch commented on June 17, 2024

So, what you need to do is actually:

device.options['mode'].value = '24bit Color'

and I, I will have to add another workaround in Paperwork ....

from pyinsane.

KubikPixel avatar KubikPixel commented on June 17, 2024

Thank you very much for your fast support.

from pyinsane.

jflesch avatar jflesch commented on June 17, 2024

I think it should solve your problem, so I'm going to close this ticket. Thank you for taking the time to report this issue.

If you still have a problem with the 'mode' option of your scanner, please fell free to reopen it.

from pyinsane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.