- Windows Image Acquisition (WIA) Driver Samples
- PRODUCTION SCANNING WIA 2.0 DRIVER
- EXTENDED WIA 2.0 MONSTER DRIVER
- Build the sample
- Building the sample using Visual Studio
- Windows Image Acquisition (WIA)
- Introduction
- Benefits of Windows Image Acquisition 2.0
- For Application Writers
- For Device Manufactures
- For Scanner Users
- Development of Windows Image Acquisition
- Overview of Windows Image Acquisition
- Facts about Windows Image Acquisition 2.0
- Developer Audience
- Run-Time Requirements
- WIA Topics
- WIA / TWAIN драйвер для сканера — где скачать?
- Скачивание драйвера WIA для сканеров HP
- Способ 2: Фирменное программное обеспечение
- Способ 3: Стороннее программное обеспечение
- Способ 4: Уникальный идентификатор сканера
- Способ 5: Штатные средства Windows
Windows Image Acquisition (WIA) Driver Samples
The Windows Image Acquisition driver sample set contains samples and test tools for Windows Image Acquisition (WIA), a driver architecture and user interface for acquiring images from still image devices such as scanners.
PRODUCTION SCANNING WIA 2.0 DRIVER
The ProdScan directory contains a sample WIA 2.0 mini-driver. This sample shows how to add Production Scanning features to a WIA 2.0 mini-driver.
EXTENDED WIA 2.0 MONSTER DRIVER
The Wiadriverex directory contains a sample WIA 2.0 mini-driver. This sample shows how to write a WIA 2.0 mini-driver that uses the stream-based WIA 2.0 transfer model. It also shows an implementation of a very simple segmentation filter, image processing filter, and error handling extension for the WIA 2.0 mini-driver.
For more information, see Introduction to WIA.
Build the sample
You can build the sample in two ways: using the Visual Studio Integrated Development Environment (IDE) or from the command line using the Visual Studio Command Prompt window and the Microsoft Build Engine (MSBuild.exe).
Building the sample using Visual Studio
Open Visual Studio. From the File menu, select Open Project/Solution. Within your WDK installation, navigate to src\wia and open the wia.sln project file.
Right-click the solution in the Solution Explorer and select Configuration Manager.
From the Configuration Manager, select the Active Solution Configuration (for example, Windows 8.1 Debug or Windows 8.1 Release) and the Active Solution Platform (for example, Win32) that correspond to the type of build you are interested in.
From the Build menu, click Build Solution (Ctrl+Shift+B).
Windows Image Acquisition (WIA)
Windows Image Acquisition (WIA) is the still image acquisition platform in the Windows family of operating systems starting with WindowsВ Millennium Edition (WindowsВ Me) and WindowsВ XP.
Introduction
The WIA platform enables imaging/graphics applications to interact with imaging hardware and standardizes the interaction between different applications and scanners. This allows those different applications to talk to and interact with those different scanners without requiring the application writers and scanner manufactures to customize their application or drivers for each application-device combination.
Benefits of Windows Image Acquisition 2.0
WIA provides benefits to application developers, device manufacturers, and scanner users who need to interact with imaging hardware.
For Application Writers
- Windows runs a certification process for WIA drivers so WIA applications are guaranteed to be base-level compatible with all WIA-based scanners.
- WIA drivers are loaded in the WIA service process, thus providing a more stable driver environment.
- Applications can be initiated from the scanner scan button via push events supported by the WIA subsystem.
- The WIA includes a default segmentation filter that all drivers can take advantage of; this way, applications do not have to write code for multi-region scanning for purposes such as separating out a large number of photos spread over a flatbed scanner.
For Device Manufactures
- WIA driver certification process helps driver developers in establishing that their driver is WIA-compliant.
- WIA drivers can take advantage of a built-in segmentation filter, image processing filter and error handler, if they choose to do so.
- WIA-based scanners work right out of the box on Windows with Windows scanning applications such as Windows Fax and Scan and Paint.
- WIA drivers offer better integration with Windows such as the full device experience.
- WindowsВ Vista release includes a WSD-WIA class driver that enables all devices compliant with Web Services for Scanner (WS-Scan) protocol to work with WIA applications without any additional driver or software.
For Scanner Users
- WIA-based scanners can be used from Windows applications such Windows Fax and Scan and Paint without the need for any additional software.
- WIA-based applications and scanners can also take advantage of WIA add-ons such as the segmentation filter which enables such features as processing a number of pictures on the scanner and scanning them all to individual files without user intervention.
- WIA-based devices offers a much better integration with other Windows features such as the Device Stage feature for WindowsВ 7.
- WIA provides a more robust, stable and reliable scanning experience by isolating the driver and the application.
Development of Windows Image Acquisition
The imaging architecture in WindowsВ 2000 and WindowsВ 95 or later consisted of a low-level hardware abstraction, Still Image Architecture (STI), and a high-level set of APIs known as TWAIN. In WindowsВ XP and WindowsВ MeВ WIA was introduced. WIA is an imaging architecture that builds on STI and does not require TWAIN, although TWAIN is still supported alongside WIA.
WIA 1.0 was introduced in WindowsВ Me and WindowsВ XP and supports scanners, digital cameras and digital video equipment. WIA 2.0 was released with WindowsВ Vista. WIA 2.0 is targeted towards scanners but continues to offer support for legacy WIA 1.0 applications and devices through a WIA 1.0 to WIA 2.0 compatibility layer provided by the WIA service. However, video content support was removed from WIA for WindowsВ Vista. We recommend Windows Portable Devices (WPD) API for digital cameras and digital video equipment in the future. WIA 1.0 as well as STI TWAIN drivers are still supported directly on WindowsВ Vista and WindowsВ 7 alongside native WIA 2.0 device drivers and imaging applications.
Overview of Windows Image Acquisition
WIA provides a framework that allows a device to present its unique capabilities to the operating system and allows imaging applications to invoke those unique capabilities.
The WIA platform includes a data acquisition protocol, a Device Driver Model and Interface (DDI), an API and a dedicated WIA service. The platform also includes a set of built-in kernel mode drivers that support communication with imaging devices locally connected through USB, serial/parallel, SCSI and FireWire interfaces. The WIA subsystem also includes a transparent compatibility layer which allows TWAIN compatible applications to employ and use WIA-driver-based devices.
Network connected imaging devices that support Web Services for Devices (WSD) protocol can also be used from WIA-compliant imaging applications on WindowsВ Vista and WindowsВ 7 out of the box via a WSD-WIA class driver that shipped as part of WindowsВ Vista. The class driver converts WIA calls to WSD calls and vice versa and makes already existing WIA applications work with WSD based scanners without any additional driver.
WIA drivers are made up of a user interface (UI) component and a core driver component, loaded into two different process spaces: UI in the application space and the driver core in the WIA service space. The service runs in Local System context in WindowsВ XP and runs in Local Service context starting with Windows ServerВ 2003 and WindowsВ Vista for enhanced security against buggy or malicious drivers.
The WIA API set exposes imaging applications to still image acquisition hardware functionality by providing support for:
- Enumeration of available image acquisition devices.
- Creating connections to multiple devices simultaneously.
- Querying properties of devices in a standard and expandable manner.
- Acquiring device data by using standard and high performance transfer mechanisms.
- Maintaining image properties across data transfers.
- Notification of device status and scan event handling.
Windows added scripting support to WIA by releasing the WIA Automation Library in 2002 that was incorporated in WindowsВ Vista as Windows Image Acquisition (WIA) Automation Layer and continues to be a part of WindowsВ 7. The WIA Automation Library provides end-to-end image acquisition capabilities to automation-enabled application development environments and programming languages such as Microsoft Visual Basic 6.0, Active Server Pages (ASP), VBScript and C#.
For WindowsВ 7, WIAВ APIs have additional support to complement the already existing push-scanning support.
- Auto-configured device initiated scanning with scan parameters configured at the scanner on the device front panel.
- Automatic source selection for device-initiated scan.
Facts about Windows Image Acquisition 2.0
- The data transfer mechanism in WIA 2.0 is stream based. The stream abstraction removes the distinction between different transfer types and also allows exchange of mutually agreed-upon metadata between device and application.
- WIA 2.0 subsystem also includes a basic image processing filter driver add-on that is optionally replaceable by the scanner driver, if the driver chooses to provide a customized image processing filter. The built-in filter enables post processing of images acquired through the scanner. Image processing filter also enables live software previews when small settings such as brightness and contrast are adjusted.
- The segmentation filter is another handy WIA component that can be replaced by a more customized filter by the scanner driver. The segmentation filter can be used for multi-region scanning. Multi-region scanning, as an example, allows an application to automatically detect different scan regions without any user intervention, such as identifying a bunch of photos lying randomly on the scanner flatbed.
- WIA 2.0 provides a replaceable/extensible error handler to gracefully handle, and possibly recover from, software, hardware and configuration errors and delays. The error handler is another WIA component that can be replaced with a more customized version by the scanner driver. This extension provides status and error messages during data acquisitions such as «Lamp warming up,» «Cover open,» «Paper jam,» and so on. This extension also allows cleaner support for «Cancel operations.»
Developer Audience
The WIA API is designed for use by C/C++ programmers. Familiarity with the WindowsВ GUI and Component Object Model (COM) interfaces is required.
For developers familiar with Microsoft Visual BasicВ 6.0, Active Server Pages (ASP), or scripting, WIA provides an automation layer for WindowsВ XPВ Service PackВ 1 (SP1) or later that builds upon and simplifies access to the foundation provided by C/C++. For information about the automation layer, see Windows Image Acquisition Automation Layer.
The WIA Automation Layer supersedes Windows Image Acquisition (WIA)В 1.0 scripting.
Run-Time Requirements
Applications that use the WIAВ API require WindowsВ XP or later.
WIA Topics
The WIA topics are organized as shown in the following table.
WIA / TWAIN драйвер для сканера — где скачать?
Модель драйверов WIA, или Windows Imaging Architecture, была разработана Майкрософт для ОС Windows. С помощью драйверов этого типа графические программы (Photoshop и другие) могут взаимодействовать со сканерами, видеокамерами и фотоаппаратами. А в 1992 году появилась технология TWAIN с целью дальнейшего развития стандартов взаимодействия между такими приложениями и устройствами.
Для любого устройства нужно скачивать свой оригинальный WIA или TWAIN драйвер, который разрабатывается производителем и позволяет операционной системе использовать все возможности техники. Однако благодаря тому, что стандарт открытый, в некоторых случаях сканеры, вебкамеры или другое оборудование для захвата изображения может работать и с программным обеспечением сторонних разработчиков.
Найдите в сопроводительных документах или на корпусе модель вашего устройства (сканера или МФУ) . В видео ролике после статьи подробный рассказ на английском языке (с субтитрами на русском) где смотреть название продукта HP, его модель, номер серии, и даже серийный номер, хотя для того, чтобы найти и скачать Wia или TWAIN драйверы для сканера он вряд ли будет нужен. Аналогичным образом поищите модель МФУ или сканера Canon, Sumsung, Brother или любого другого производителя.
Чтобы найти Wia или TWAIN драйвер на нашем сайте кликните по надписи Выберите рубрику в колонке справа и в выпадающем меню кликните производителя или серию вашего устройства. Например, у вас Canon, но не МФУ, а сканер серии CanoScan. Нажмите на соответствующую строку и откройте список, а затем и статью для вашей модели устройства. Выберите и скачайте драйвер с учетом версии и разрядности ОС Windows.
Для продукции Epson у нас есть отдельные статьи, где собраны все устройства этого производителя, для которых разработана утилита Epson Scan, в обязательном порядке включающая в себя также и драйвер для сканирования:
Если не находите на сайте статьи для вашей модели сканера или МФУ, сообщите об этом в комментарии к любому из материалов и мы постараемся разместить недостающую информацию в ближайшие дни. Если же у вас нет времени на ожидание, ищите устройство на сайте производителя. Наберите в поисковике, например, WIA драйвер для Xerox WorkCentre 5222 и выбирайте ссылку ведущую на официальный сайт. На странице продукта найдите нужную ОС с учетом разрядности, язык интерфейса, и скачайте предложенный драйвер.
Скачивание драйвера WIA для сканеров HP
Перед тем, как приступать к поиску и скачиванию драйвера WIA, убедитесь в том, что он действительно отсутствует в операционной системе. Для этого достаточно просто запустить сканирование документа и дождаться результата. Если сканер вовсе не обнаруживается, значит, драйвер точно не добавлен и требуется его инсталляция. Обратите внимание на то, что если в описании ПО указан тип драйвера TWAIN, это то же самое, что и WIA, только в более современном представлении, принцип инсталляции же остается идентичным.
h2>Способ 1: Официальный сайт HP
Основной метод поиска и загрузки драйвера WIA для сканера от HP — использование официального сайта. Там всегда находятся актуальные версии ПО и вы можете не беспокоиться о том, что после скачивания на компьютер попадут вирусы. Для определения необходимого файла нужно знать только модель сканера.
- Кликните по ссылке выше, чтобы попасть на главную страницу сайта компании, где сразу же откройте раздел «Поддержка».
В нем вас интересует категория «Программы и драйверы».
На странице определения продукта выберите «Принтер», поскольку сканеры относятся к этой же категории.
На странице поддержки сканера обязательно убедитесь в том, что автоматическое обнаружение операционной системы выполнено правильно. Если это не так, нажмите по кликабельному тексту «Выбрать другую ОС» и найдите используемую версию там.
Если присутствует пункт «Драйвер-Установочный комплект программного обеспечения устройства», разверните его. В противном случае откройте блок «Драйвер».
Из описания базового драйвера становится понятно, что он предназначен для основных функций WIA, следовательно, является как раз тем, который вы ищете.
Ожидайте окончания загрузки исполняемого файла и сразу же запустите его. Следуйте появившимся на экране инструкциям, завершая инсталляцию драйверов.
Компьютер можно не перезагружать, но рекомендуется переподключить сканер, а уже потом запускать первое копирование документа для проверки правильности выполненных действий.
Способ 2: Фирменное программное обеспечение
Компания HP создала несколько разных приложений для работы с фирменными устройствами. Для получения драйверов сканера можно использовать сразу несколько из них, однако возможные проблемы кроются в совместимости со старыми моделями. Мы рассмотрим принцип поиска всех доступных программ, а вы путем перебора, если есть желание заниматься подобным, сможете отыскать совместимое решение и не только загрузить файлы, но и получать регулярные обновления и дополнительные функции.
- Воспользуйтесь ссылкой из Способа 1, чтобы перейти на официальный сайт HP и выбрать раздел «Поддержка». Разверните меню «Продукты» и щелкните по кнопке «Поддержка принтеров».
Ознакомьтесь с описанием присутствующих приложений и начните загрузку подходящего. Используйте форму на этой же странице, чтобы проверить совместимость ПО с используемым сканером.
После скачивания исполняемого файла запустите стандартный процесс инсталляции.
Мы выбрали в качестве примера популярное решение HP Support Assistant, поддерживающее не только принтеры, но и всю компьютерную продукцию от данного производителя. После запуска софта запустите проверку обновлений, предварительно подсоединив сканер к компьютеру.
Ожидайте окончания проверки и получения соответствующих уведомлений.
Если обновления были обнаружены, понадобится перейти к ним через главное меню программы.
Отметьте галочками те обновления, которые хотите установить, и подтвердите загрузку.
По завершении вы получите сообщение о том, что все действия выполнены успешно, а вы можете приступать к полноценному взаимодействию со сканером.
Способ 3: Стороннее программное обеспечение
Метод подойдет тем пользователям, кто столкнулся с проблемами во время поиска драйверов при помощи предыдущих инструкций. Это может быть связано с тем, что HP прекратила поддержку определенных моделей сканеров, удалив их страницы на официальном сайте. Однако в библиотеках софта от сторонних разработчиков нужные файлы еще могут храниться, поэтому отличным вариантом станет скачивание такого решения и запуск сканирования после того, как сам сканер будет подключен к компьютеру.
Перейдя по ссылке выше, вы попадете на обзорную статью, где рассказано о самых популярных программах для установки драйверов. Все они работают примерно одинаково и даже имеют крайне похожий интерфейс, поэтому в качестве универсального руководства подойдет следующая статья, где разбирается процесс взаимодействия с DriverPack Solution.
Способ 4: Уникальный идентификатор сканера
Можно обойтись и без программ, выполняя загрузку драйверов на специализированных сайтах. В качестве критерия поиска в этом случае выступает не модель сканера, а его индивидуальный идентификатор. Он вводится в соответствующей строке на сайте, а уже после этого запускается подбор подходящих файлов. Развернутую информацию о том, как определить такой ID и использовать его в своих целях, читайте в статье по ссылке ниже.
Способ 5: Штатные средства Windows
Сейчас встроенные средства Windows часто автоматически находят и устанавливают драйвер для подключенной периферии, поэтому в начале статьи мы и рекомендовали проверить работоспособность сканера. Однако если этого не произошло, можно повторить попытку самостоятельно, перейдя к добавлению оборудования.