USB-сканер

Настройка

 * Установить sane
 * Подключить сканер к компьютеру

Определить имя устройства - из вывода usbdevs -v. Имя ugen взять из листинга директории /dev


 * Выставить права на файл устройства /dev/ugen0 (?)

Cканер Genius CP-Vivid 1200X (USB) Для работы SANE с этим сканером требуется скачать файл проприетарной прошивки (CCD569.fw).  Сканер Epson Perfection V700 Photo Scanner (USB, Firewire) (с Transparency Adapter) http://img-fotki.yandex.ru/get/3611/leksey.20/0_31ccb_708dc1c_M.jpg Добавить строку в файл epson.conf echo "usb 0x04b8 0x012c" > /usr/local/etc/sane.d/epson.conf
 * Скачать файл firmware http://narod.ru/disk/125777000/CCD569.fw.html
 * Поместить данный файл в директорию /usr/local/share/sane/gt68xx

Просмотр доступных ключей (зависящих от возможностей и функциональности) для конкретного типа сканера: Genius scanimage -d gt68xx:libusb:/dev/usb2:/dev/ugen0 -h Epson scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 -h

Если неверно указать имя usb, то в конце вывода команды будет подсказка List of available devices: epson:libusb:/dev/usb3:/dev/ugen0

Использование
scanimage -d gt68xx:libusb:/dev/usb2:/dev/ugen0 --format=tiff --mode Color > svidetelstvo-o-brake.tif "[gt68xx] Please wait for lamp warm-up" scanimage -d epson:libusb:/dev/usb3:/dev/ugen1 --format=tiff --mode Color --resolution 300 > svidetelstvo-o-brake-espon.tiff scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --source="Transparency Unit" --format=tiff --mode Color --resolution 300 > alexfilm01.tif
 * Сканирование на Genius
 * Сканирование на Epson:
 * Сканирование пленки

Битность указывается на каждый канал - либо 8 (т.е. 24) либо 16 (48).

Первый кадр в пленке scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --source="Transparency Unit" --format=tiff --mode Color --depth 16 --resolution 3200 -l 3 -t 16 -x 26 -y 38 > slide1_48bit_3200dpi.tif

Один фрагмента пленки (левый) scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --source="Transparency Unit" --format=tiff --mode Color --depth 16 --resolution 3200 -l 3 -t 16 -x 26 -y 297 > 1.tif

scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --source="Transparency Unit" --format=tiff --mode Color --depth 16 --resolution 3200 -l 39 -t 16 -x 26 -y 297 > filmpart02.tif

Отчет ведется от правого верхнего угла:
 * Сканирование фотографий на EPSON:
 * 1 полоса: -l 3 -t 16 -x 26 -y 297
 * 2 полоса: -l 39 -t 16 -x 26 -y 297
 * 3 полоса: -l 83 -t 16 -x 26 -y 297
 * 4 полоса: -l 120 -t 16 -x 26 -y 297

Проблемы
Если в систем больше одного USB-сканера, то одновременно он работать не могут, например, при запуске epson - перестает работать gt. Если это случилось во время сканирования, то изображение до конца заполняется теми данными что были на момент сканирования.

Epson Perfection V700 Photo не работает "из коробки", выдавая при попытке сканирования ошибку. Исправляется добавление строки в конфигурационный файл (см. раздел по настройке) "scanimage: open of device epson:libusb:/dev/usb3:/dev/ugen0 failed: Invalid argument"

Настройка (алгоритм)

 * 1) Посетить официальный сайт SANE, раздел Supported devices. В таблице найти модель сканера. Для более точного поиска можно использовать не название сканера, а ID устройства (отображаемое в выводе usbdevs, dmesg). В ней будет указано, поддерживает ли сканер и на каком уровне. В некоторых случаях для одной модели может быть больше одного backend(а).  Вместо посещения сайта, можно отыскать название backend, изучив man sane, а потом man sane-gt68xx, например.
 * 2) Установить SANE
 * 3) Если для настройки требуется дополнительно файл прошивки, то отыскать его в интернете либо из поставки драйверов (для MS Windows) к этому устройству
 * 4) По умолчанию файл устройства в /dev создается с правами суперпользователя. Произвести соответствующую настройку для обеспечения доступа обычных пользователей.
 * 5) Работать со сканером, используя название соответствующего backend(а). Они появляются в системе после установки SANE. Название устройства формируется (в значении ключа -d у scanimage) посредством добавления в начало названия backend(а), например, gt68xx. Не указанные явно параметры, например, разрешение, используются по умолчанию.

Выбор устройства для FreeBSD
У компании Epson есть официальная поддержка сканеров для Linux.

Дополнительная информация
Подключение сканера Genius CP-Vivid 1200X: dmesg "ugen0:  on uhub8" sane-find-scanner "found USB scanner (vendor=0x0458, product=0x201d [Genius CP-Vivid 1200X], chip=GT-6816) at libusb:/dev/usb2:/dev/ugen0"

Специфичные для сканера Genius CP-Vivid 1200X параметры:  Options specific to device `gt68xx:libusb:/dev/usb2:/dev/ugen0': Scan Mode: --mode Color|Gray|Lineart [Gray] Selects the scan mode (e.g., lineart, monochrome, or color). --gray-mode-color Red|Green|Blue [Green] Selects which scan color is used gray mode (default: green). --source Flatbed|Transparency Adapter [inactive] Selects the scan source (such as a document-feeder). --preview[=(yes|no)] [no] Request a preview-quality scan. --depth 8|12 [8] Number of bits per sample, typical values are 1 for "line-art" and 8 for multibit scans. --resolution 50|100|200|300|600|1200dpi [300] Sets the resolution of the scanned image. --lamp-off-at-exit[=(yes|no)] [yes] Turn off lamp when program exits --backtrack[=(yes|no)] [no] Controls whether backtracking is forced. Debugging Options: --auto-warmup[=(yes|no)] [inactive] Warm-up until the lamp's brightness is constant instead of insisting on 60 seconds warm-up time. --full-scan[=(yes|no)] [inactive] Scan the complete scanning area including calibration strip. Be       careful. Don't select the full height. For testing only. --coarse-calibration[=(yes|no)] [inactive] Setup gain and offset for scanning automatically. If this option is       disabled, options for setting the analog frontend parameters manually are provided. This option is enabled by default. For testing only. --coarse-calibration-once[=(yes|no)] [inactive] Coarse calibration is only done for the first scan. Works with most scanners and can save scanning time. If the image brightness is       different with each scan, disable this option. For testing only. --quality-cal[=(yes|no)] [inactive] Quality calibration --backtrack-lines 0..255 [inactive] Number of lines the scan slider moves back when backtracking occurs. That happens when the scanner scans faster than the computer can receive the data. Low values cause faster scans but increase the risk of omitting lines. Enhancement: --gamma-value 0.00999451..5 (in steps of 0.00999451) [2] Sets the gamma value of all channels. --threshold 0..255 [inactive] Select minimum-brightness to get a white point Geometry: -l 0..218mm [0] Top-left x position of scan area. -t 0..299mm [0] Top-left y position of scan area. -x 0..218mm [218] Width of scan-area. -y 0..299mm [299] Height of scan-area.  Сканер Epson Perfection V700 Photo dmesg "ugen0:  on uhub8"

usbdevs addr 1: UHCI root hub, Intel addr 5: EPSON Scanner, EPSON

sane-find-scanner "found USB scanner (vendor=0x04b8 [EPSON], product=0x012c [EPSON Scanner]) at libusb:/dev/usb2:/dev/ugen0"

scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 -h Options specific to device `epson:libusb:/dev/usb3:/dev/ugen0':

Scan Mode: --mode Binary|Gray|Color [Binary] Selects the scan mode (e.g., lineart, monochrome, or color).  --depth 8|16 [inactive] Number of bits per sample, typical values are 1 for "line-art" and 8 for multibit scans.  --halftoning None|Halftone A (Hard Tone)|Halftone B (Soft Tone)|Halftone C (Net Screen)|Dither A (4x4 Bayer)|Dither B (4x4 Spiral)|Dither C (4x4 Net Screen)|Dither D (8x4 Net Screen)|Text Enhanced Technology|Download pattern A|Download pattern B [Halftone A (Hard Tone)] Selects the halftone.<BR> <BR> --dropout None|Red|Green|Blue [None]<BR> Selects the dropout.<BR> <BR> --brightness -4..3 [0]<BR> Selects the brightness.<BR> <BR> --sharpness -2..2 [0]<BR> <BR> --gamma-correction Default|User defined|High density printing|Low density printing|High contrast printing [Default]<BR> Selects the gamma correction value from a list of pre-defined devices or the user defined table, which can be downloaded to the scanner<BR> <BR> --color-correction No Correction|User defined|Impact-dot printers|Thermal printers|Ink-jet printers|CRT monitors [CRT monitors]<BR> Sets the color correction table for the selected output device.<BR> <BR> --resolution 50|60|72|75|80|90|100|120|133|144|150|160|175|180|200|216|240|266|300|320|350|360|400|480|600|720|800|900|1200|1600|1800|2400|3200dpi [50]<BR> Sets the resolution of the scanned image.<BR> <BR> --threshold 0..255 [inactive]<BR> Select minimum-brightness to get a white point<BR> <BR> Advanced:<BR> --mirror[=(yes|no)] [no]<BR> Mirror the image.<BR> <BR> --speed[=(yes|no)] [no]<BR> Determines the speed at which the scan proceeds.<BR> <BR> --auto-area-segmentation[=(yes|no)] [yes]<BR> <BR> --short-resolution[=(yes|no)] [no]<BR> Display short resolution list<BR> <BR> --zoom 50..200 [inactive]<BR> Defines the zoom factor the scanner will use<BR> <BR> --red-gamma-table 0..255,... [inactive]<BR> Gamma-correction table for the red band.<BR> --green-gamma-table 0..255,... [inactive]<BR> Gamma-correction table for the green band.<BR> --blue-gamma-table 0..255,... [inactive]<BR> Gamma-correction table for the blue band.<BR> <BR> --wait-for-button[=(yes|no)] [no]<BR> After sending the scan command, wait until the button on the scanner is pressed to actually start the scan process.<BR> <BR> Color correction coefficients:<BR> --cct-1 -127..127 [inactive]<BR> Controls green level<BR> --cct-2 -127..127 [inactive]<BR> Adds to red based on green level<BR> --cct-3 -127..127 [inactive]<BR> Adds to blue based on green level<BR> --cct-4 -127..127 [inactive]<BR> Adds to green based on red level<BR> --cct-5 -127..127 [inactive]<BR> Controls red level<BR> --cct-6 -127..127 [inactive]<BR> Adds to blue based on red level<BR> --cct-7 -127..127 [inactive]<BR> Adds to green based on blue level<BR> --cct-8 -127..127 [inactive]<BR> Adds to red based on blue level<BR> --cct-9 -127..127 [inactive]<BR> Controls blue level<BR> <BR> Preview:<BR> --preview[=(yes|no)] [no]<BR> Request a preview-quality scan.<BR> --preview-speed[=(yes|no)] [no]<BR> <BR> Geometry:<BR> -l 0..215.9mm [0]<BR> Top-left x position of scan area.<BR> <BR> -t 0..297.18mm [0]<BR> Top-left y position of scan area.<BR> <BR> -x 0..215.9mm [215.9]<BR> Width of scan-area.<BR> <BR> -y 0..297.18mm [297.18]<BR> Height of scan-area.<BR> <BR> --quick-format CD|A5 portrait|A5 landscape|Letter|A4|Max [Max]<BR> <BR> Optional equipment:<BR> --source Flatbed|Transparency Unit [Flatbed]<BR> Selects the scan source (such as a document-feeder).<BR> <BR> --auto-eject[=(yes|no)] [inactive]<BR> Eject document after scanning<BR> <BR> --film-type Positive Film|Negative Film [inactive]<BR> <BR> --focus-position Focus on glass|Focus 2.5mm above glass [Focus on glass]<BR> Sets the focus position to either the glass or 2.5mm above the glass<BR> <BR> --bay 1 | 2 | 3 | 4 | 5 | 6  [inactive]<BR> Select bay to scan<BR> <BR> --eject [inactive]<BR> Eject the sheet in the ADF<BR> <BR> --adf_mode Simplex|Duplex [inactive]<BR> Selects the ADF mode (simplex/duplex)<BR>

Замечания
На все что больше 1200 и полная область сканирования выдается scanimage: sane_start: Out of memory

Ctrl+C может отрабатываться некоррректно, приходится отдетачиваться от процесса по Ctrl+Z и его прибивать через kill

http://www.linuxquestions.org/questions/linux-hardware-18/epson-perfection-v700-fc11-sane-vs-iscan-818751/

<!-- Epson Perfection V700 + FC11: sane vs. iscan?

I'm about to buy a scanner - Epson perfection V700 and I'm running FC11 on AMD Phenom X4 and the major use will be scanning of color photos and negatives.

Looking at the list of supported scanners on SANE I saw this scanner is listed there with the status "good". I also saw at the Epson site in the "drivers download" section that there is "iscan" for this scanner under FC11+x86_64.

I would like to know from people with previous experience with this scanner under Fedora, how was it?

Should I choose to install either "sane-epson2" backend or the "iscan" or these two can coexist?

What apps use what driver and how well they utilize the hardware features of the scanner? I would very much like the ability to scan negatives, does "good" status of "sane" backend includes scanning negatives?

Are there any "traps" I should avoid in the process of installation of each of the two drivers?

TIA for any info, kaza. kaza View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by kaza Old 07-09-2010, 10:56 AM 	 #2 David the H. Senior Member Registered: Jun 2004 Location: Osaka, Japan Distribution: Debian sid + kde 3.5 & 4.4 Posts: 3,354

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301 All Epson scanners these days are supported at a basic level by the free sane drivers. They work great, but you're limited to a narrow choice of resolutions.

The avasys (formerly epkowa) driver will give you the whole range, but you have to use their iscan program to get full access--and it's a pretty lousy program, if I must say so (unless they've improved it in recent releases; I haven't updated it in some time). I have found that kooka does give me some extra resolution choices when I use the epkowa driver with it, however. Compiling it can be an adventure too.

The two drivers should be able to co-exist on your system. You just configure separate config files in /etc/sane.d for each one. Most front-ends will detect them both and give you a choice of which one to use. iscan only works with their proprietary one, of course.

I've only run a couple of film scan tests on mine (PM-A900==RX-700), so I can't say much about it. It worked well enough when using iscan, but the quality was rather low and fuzzy. Most of the blame may be due to my crappy negatives though. Don't expect to be able to do a lot of quick batch-processing using iscan. You have to select, scan, adjust & save everything manually. When using kooka, funnily enough I can't access the avasys driver negative scanner through epkowa, but I can through the epson2 driver. On the other hand, it only scans the negative as a negative, it won't invert the colors.

If you really want to get the most out of your scanner though, you might consider purchasing the vuescan program, which gives you many more advanced features and functions. Follow the link in my signature below. David the H. View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by David the H. Old 07-10-2010, 01:37 AM 	 #3 kaza LQ Newbie Registered: Apr 2010 Distribution: RH11 Posts: 26

Original Poster Rep: Reputation: 0 Thanks, David,

Yesterday I installed the "sane" drivers and tested the scanner with them and "xsane" (0.997). Ordinary scan works, although the scanner is detected as slightly different model and the top resolution is 3200dpi while the optical resolution of that scanner is 4800dpi. But that's at least "in the neighbourhood" so I can deal with it (anyway, at this resolutions I saw that the 15x10 cm printed photo resolution is much lower than the scanner resolution). There was an option in "xsane" to select btween ordinary scan and negatives scan.I replaced the print scans mat with a negatives adapter and tested scanning a negative. The scanner worked and this time, at 3200dpi I didn't see any "smearing" of the tiny objects (claw tip of 4cm shrimp shot with a macro lens). The colors where slightly different on a scan of the negative compared with a print scan - as if a red needs to be slightly more prominent. I attempted playing with various slides (gamma, brightness, contrast), saw some changes but not yet what I want. In the "medium" selection there were "Kodak film" and "standard negative" options but it even made the things worse - almost black result so I went back to "full color range". Then I clicked the "RGB default" button and the 3 slides of "gamma", "intensity", "contrast" turned into 12 slides: each slide became 4 slides: one "general" and 3 for each of the red, green, blue components. I guess I can find the correct point in this 12 dimentional space but I'll leave it to when I'll have more time. BTW, in the "settings" I had the "enable color management" disabled. An attempt o enable it, resulted in lots of errors of "could not open scanner ICM profile". From some "googling" I understand that there should be some file specific to the scanner with its color translation parameters. How can I obtain this file?

So far: scanning with xsane: good for prints, needs to find the correct setup for negatives scans. When I'll have some time, I'll try installing "iscan" and then see if I need to buy the "vuescan".

Thanks for the info, kaza. -->

Сканирование книги

 * Не решена проблема со сканированием от юзера. Хотя оператор имеет r и мой пользователь в группе operator.
 * Не останавливается по Ctrl+C - все подвисает. сам он мигает индикатором. помогает его включение и выключение

scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --format=tiff --mode Color --progress --resolution 300 --batch=page_%.3d.tiff --batch-increment=2 --batch-prompt --batch-count=20 --batch-start=002

 Scanning 20 pages, incrementing by 2, numbering from 2 Place document no. 2 on the scanner. Press <RETURN> to continue. Press Ctrl + D to terminate. </PRE>

С открытой крышкой можно

Только grayscale вмпсто Color scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --format=tiff --mode gray --progress --resolution 300 --batch=page_%.4d.tiff --batch-increment=2 --batch-prompt --batch-start=19

Можно использовать кнопку на сканере для запуска сканирования (вместо Enter), но будет проблема с остановкой сканирования. Хотяесли дождаться окончания сканирования текущего листа и выключить сканер кнопкой, то остановится scanimage: sane_start: Error during device I/O scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 --format=tiff --mode gray --progress --resolution 300 --batch=page_%.4d.tiff --batch-increment=2 --batch-start=196 --wait-for-button=yes

Ubuntu
Загрузить два файла с сайта Epson и двойным щелчком их поставить. Загружены на "Мой диск".