Comments (6)
Can you run the script 'examples/list_all.py' and post the output here please ?
from pyinsane.
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.
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.
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.
Thank you very much for your fast support.
from pyinsane.
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)
- Segfault when running tests HOT 7
- Mac OS X error pyinsane.get_devices() HOT 1
- Won't compile on Windows 8.1 (32 bits) Python 3.5.2 HOT 15
- Twain support HOT 4
- Assertion error getting/setting scanner options HOT 6
- Pyinsane doesn't complete scanning HOT 24
- Examples/ scan.py HOT 3
- Multi Threading scanning HOT 4
- Can't install pyinsane2 HOT 10
- Kyocera scanner - ECOSYS M2535dn HOT 2
- Getting a very long image in windows HOT 7
- Error while scanning. No paper to scan. [Epson DS-1660W Windows 10 driver] HOT 1
- Works only with sudo HOT 15
- No Module named pyinsane2 HOT 11
- WIADevMgr -> CreateDevice() failed HOT 18
- How to change the saving location of scanned document? HOT 6
- Epson DS-310 HOT 15
- Brother DCP-130C fails to scan HOT 7
- Cannot contribute with IronScanner HOT 2
- Fujitsu fi-7160 not working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinsane.