CN102289416A - Image collection method based on virtual hardware equipment - Google Patents
Image collection method based on virtual hardware equipment Download PDFInfo
- Publication number
- CN102289416A CN102289416A CN2011101946746A CN201110194674A CN102289416A CN 102289416 A CN102289416 A CN 102289416A CN 2011101946746 A CN2011101946746 A CN 2011101946746A CN 201110194674 A CN201110194674 A CN 201110194674A CN 102289416 A CN102289416 A CN 102289416A
- Authority
- CN
- China
- Prior art keywords
- interface protocol
- interface
- encapsulated layer
- image collection
- virtual hardware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention relates to an image collection method based on virtual hardware equipment, which comprises the following steps of: creating an interface protocol encapsulating module; loading image collection hardware equipment; configuring the attributes of the image collection hardware equipment; using program for driving the image collection hardware equipment through invoking the interface protocol in the interface protocol encapsulating module through invoking functions; and carrying out scanning actions. The method of the invention has the advantages that the hardware interface differences of the bottom layer are shielded in the image collection process, a unified processing mode and interfaces are provided for users, various kinds of collection equipment in different types, different brands and different models are managed in a unified way, the dynamic switching between various kinds of collection equipment is realized in the application, in addition, the virtual hardware encapsulating layer memory function is realized, and the independence between the collection hardware equipment and the software is really realized.
Description
Technical field
The present invention relates to the image communication technology field, relate in particular to a kind of image collecting method based on virtual hardware equipment.
Background technology
Image collection is under the control of image business application system, obtains the image acquisition process of image data by the image recording device.Image modalities commonly used generally comprises scanner, camera and digital camera, and this type of image modalities generally has different types, model and brand, and the interface mode that uses has nothing in common with each other.General in the world image collection standard interface technology mainly comprises TWAIN interfacing, KOFAX interfacing, ISIS interfacing and DirectShow technology.The TWAIN interfacing is to be used for extracting image from still image equipment, and the scanner and the digital camera of the overwhelming majority all provide the TWAIN driver, utilize unified TWAIN interface, and application program can be obtained image easily from these equipment; The KOFAX interfacing is based on the driving of ISIS standard, except basic Image Acquisition, demonstration etc., also provides image to remove black surround, removes shade, image processing function such as bar-code identification, complement code identification; The ISIS interfacing is image and scanner interface standard, by the graphic software standard of Pixel company exploitation, belongs to the Input Software category, is a software module system.Wherein every part is carried out a concrete image processing function, and the ISIS module is may command scanner and printer also, the conversion of assist process image, compression and image file format, and file reads and writes data; The DirectShow technology is that a kind of software developer that can allow by Microsoft's exploitation carries out the application programming interface of various different disposal to media file, constitute the object model framework based on the Windows of Microsoft, DirectShow provides the general interface of medium for most Microsoft programming language, and be one extendible, can under user or developer's order, play or the recording medium file, based on the framework of Filter, adopt the output that the DirectShow technology can control of video equipment.
Image modalities is in scanning typing process, because its different interface definition makes image modalities exist very big difference on control mode and driver, general image modalities is supported one or more in the above-mentioned interface standard technology.When the user states image modalities in the use, the driver ability operate as normal that meets the image modalities interface standard must be equipped with, the general device driver is the specific image modalities configuration that is, they connect and data communication on have speed soon, data transmission advantage accurately, but this driver can only drive the image modalities of this type, when using many image modalities that on type, model, brand and interface mode, have nothing in common with each other, just must the corresponding a plurality of drivers of configuration, bring trouble in the use to the user.
Summary of the invention
Technical matters to be solved by this invention is the problems referred to above that exist in the existing image collection process, provides that a kind of compatibility is dissimilar, the image collecting method based on virtual hardware equipment of different brands, different model, distinct interface mode.
For addressing the above problem, technical scheme of the present invention is:
A kind of image collecting method based on virtual hardware equipment may further comprise the steps:
(1) creates the interface protocol package module, and provide the call function corresponding with interface protocol to application program;
(2) load the image collection hardware device, create corresponding virtual hardware enclosure layer according to the image collection hardware device attribute that is loaded into;
(3) configuration image collection hardware device attribute, and obtain the interface protocol configuration information of image collection hardware device, according to the interface protocol of interface protocol configuration information configuration virtual hardware enclosure layer, and import the call function of hardware device interface protocol correspondence into to the virtual hardware encapsulated layer;
(4) application program drives the image collection hardware device by the interface protocol in the call function calling interface protocol encapsulation module, the line scanning of going forward side by side action.
Preferably, the establishment interface protocol package module in the described step (1) be with Kofax interface protocol, TWAI N interface protocol, Folder interface protocol, interface protocol, ISIS interface protocol and api interface protocol encapsulation based on the DirectShow technology in the interface protocol package module; Described interface protocol is called by call function corresponding with interface protocol in the application program.
Preferably, described step (2) also comprises the detection of virtual hardware encapsulated layer, the detection of virtual hardware encapsulated layer is carried out after loading the image collection hardware device, the detection of described virtual hardware encapsulated layer is to detect to be in whether connection status image collection hardware device corresponding virtual encapsulated layer has existed and correctly configuration, if configuration is finished, then load image collection hardware corresponding virtual hardware enclosure layer, and jump to step (4); Then do not create virtual hardware encapsulated layer and follow-up step (3) and step (4) if do not exist.
Preferably, the configuration virtual hardware enclosure layer in the described step (3) also comprises configuration packages layer loading interface, encapsulated layer unloading interface, encapsulated layer query interface, encapsulated layer another name management interface, encapsulated layer adjustment interface and encapsulated layer state interface.
Preferably, creating image collection hardware device corresponding virtual hardware enclosure layer in the described step (2) is that the attribute of the image collection hardware device that will be loaded into imports in the virtual hardware encapsulated layer.
Image collecting method based on virtual hardware equipment of the present invention, integrated various document and image data digital collection have been realized, created and hardware device corresponding virtual hardware enclosure layer, multiple interface protocol standard commonly used is provided, comprised support to ISIS, TWAIN, KOFAX interface protocol, go for almost any a scanner on the market, both supported high speed scanner, also support common flatbed scanner; Comprised support to DirectShow, can be suitable for market on any a video heads equipment; Simultaneously, this method is supported the visit of api interface, is convenient to the communication of some nonstandard protocol interfaces.The present invention shields the hardware interface difference of bottom in the image collection process, for the user provides unified processing mode and interface, unified management the collecting device of various dissimilar, different brands, different model, in application, realize the dynamic switching between the various collecting devices, and realize virtual hardware encapsulated layer memory function, accomplish that really hardware device and the software gathered are irrelevant; Moreover the user can be according to the business demand of oneself, and template and Scan Architecture that configuration is fit to carry out image collection work.
Description of drawings
Fig. 1 is the image collection process flow diagram that the present invention is based on the image collecting method of virtual hardware equipment.
Embodiment
Further describe the present invention below in conjunction with drawings and Examples, but protection scope of the present invention is not limited to this.
Image collecting method based on virtual hardware equipment of the present invention, the hardware interface difference of shielding bottom in the image collection process, unified processing mode and interface are provided, unified management the collecting device of various dissimilar, different brands, different model, in application, realize virtual hardware encapsulated layer memory function, illustrate below by specific embodiment.
Embodiment 1: image collection hardware device of the present invention is that name is called the scanner of KODAK i4600, supports the TWAIN interface protocol, is called SV_KODAK4600 with the name of hardware device corresponding virtual encapsulated layer.
With reference to Fig. 1, the image collecting method based on virtual hardware equipment of the present invention may further comprise the steps:
With Kofax interface protocol, TWAIN interface protocol, Folder interface protocol, interface protocol, ISIS interface protocol and api interface protocol encapsulation based on the DirectShow technology in the interface protocol package module; Interface protocol information according to the encapsulation of interface protocol package module provides the call function corresponding with each interface protocol to application program;
Load the image collection hardware device, and carry out the detection of virtual hardware encapsulated layer; The detection of described virtual hardware encapsulated layer is to detect whether the scanner KODAK i4600 corresponding virtual encapsulated layer SV_KODAK4600 that is in connection status has existed and correctly configuration, seek in the profile information storage directory, carry out in two steps according to situation about seeking:
First kind of situation: scanner KODAK i4600 corresponding virtual encapsulated layer SV_KODAK4600 does not exist, and needs to be undertaken by following step:
1. call newly-built encapsulated layer program, import encapsulated layer name SV_KODAK4600 into, create corresponding virtual hardware enclosure layer SV_KODAK4600, and the attribute of the scanner KODAK i4600 that is loaded into is imported in the virtual hardware encapsulated layer;
2. the user disposes the attribute of scanner KODAK i4600 by hardware device attribute interface, and it is the default scan parameter that sweep parameter can be set, and KODAK i4600 dedicated scan attribute also can be set; The interface protocol configuration information that obtains scanner is the TWAIN interface protocol, selects encapsulated layer SV_KODAK4600, and the standard protocol interface of configuration packages layer is the TWAIN interface protocol, and imports the call function of TWAIN interface into to encapsulated layer SV_KODAK4600; Configuration virtual hardware enclosure layer also comprises the configuration of encapsulated layer loading interface LoadWrapper (), encapsulated layer unloading interface UnloadWrapper (), encapsulated layer query interface QueryWrapper (), encapsulated layer another name management interface NewWrapperAlias (), encapsulated layer being adjusted interface ConfigAttribute () and encapsulated layer state interface CheckDeviceConnect ();
3. the TWAIN interface interchange function in application call scan interface function and the interface protocol package module, driven sweep instrument KODAK i4600, the line scanning of going forward side by side action.
Second kind of situation: scanner KODAK i4600 corresponding virtual encapsulated layer SV_KODAK4600 has existed and correctly configuration, needs to be undertaken by following step:
1. application call encapsulated layer loading interface LoadWrapper (), load the virtual hardware encapsulated layer, import encapsulated layer name SV_KODAK4600 into, the virtual enclosures layer reads the configuration information of KODAK i4600 automatically, by TWAIN agreement loaded with hardware equipment, and sweep parameter is set;
2. the TWAIN interface interchange function in application call scan interface function and the interface protocol package module, driven sweep instrument KODAK i4600, the line scanning of going forward side by side action.
By above-mentioned steps, finish the foundation of scanner KODAKi4600 corresponding virtual hardware enclosure layer SV_KODAK4600, carry out scanning motion by virtual hardware encapsulated layer driven sweep instrument KODAK i4600; The user just need not to worry software-driven and image collection hardware device incompatible problem on transport communication.
Embodiment 2: image collection hardware device of the present invention is that name is called the scanner of BANTEC S-185, does not support TWAI N interface protocol, belongs to the nonstandard protocol interface, is called SV_BANTEC with the name of hardware device corresponding virtual encapsulated layer.The BANTEC series scanner can scan by the ISIS interface protocol, and for non-standard mode is described, the interface that adopting direct invocation facility api interface to drive in the present embodiment provides encapsulates.The process of gathering by virtual enclosures layer driven sweep instrument BANTEC S-185 equipment is with similar by the TWAIN protocol mode, just the interface difference that provides of virtual enclosures layer.
With reference to Fig. 1, the image collecting method based on virtual hardware equipment of the present invention may further comprise the steps:
With Kofax interface protocol, TWAIN interface protocol, Folder interface protocol, interface protocol, ISIS interface protocol and api interface protocol encapsulation based on the DirectShow technology in the interface protocol package module; Interface protocol information according to the encapsulation of interface protocol package module provides the call function corresponding with each interface protocol to application program;
Load the image collection hardware device, and carry out the detection of virtual hardware encapsulated layer; The detection of described virtual hardware encapsulated layer is to detect whether the scanner BANTEC S-185 corresponding virtual encapsulated layer SV_BANTEC that is in connection status has existed and correctly configuration, seek in the profile information storage directory, carry out in two steps according to situation about seeking:
First kind of situation: scanner BANTEC S-185 corresponding virtual encapsulated layer SV_BANTEC does not exist, and needs to be undertaken by following step:
1. call newly-built encapsulated layer program, import encapsulated layer name SV_BANTEC into, create corresponding virtual hardware enclosure layer SV_BANTEC, and the attribute of the scanner BANTEC S-185 that is loaded into is imported in the virtual hardware encapsulated layer;
2. the user disposes the attribute of scanner BANTEC S-185 by hardware device attribute interface, and it is the default scan parameter that sweep parameter can be set, and BANTEC S-185 dedicated scan attribute also can be set; The interface protocol configuration information that obtains scanner is the api interface agreement, selects encapsulated layer SV_BANTEC, and the nonstandard protocol interface of configuration packages layer is the api interface agreement, and imports the call function of api interface into to encapsulated layer SV_BANTEC; Configuration virtual hardware enclosure layer also comprises the configuration of encapsulated layer loading interface LoadWrapper (), encapsulated layer unloading interface UnloadWrapper (), encapsulated layer query interface QueryWrapper (), encapsulated layer another name management interface NewWrapperAlias (), encapsulated layer being adjusted interface ConfigAttribute () and encapsulated layer state interface CheckDeviceConnect ();
3. the api interface call function in application call scan interface function and the interface protocol package module, driven sweep instrument BANTEC S-185, the line scanning of going forward side by side action.
Second kind of situation: scanner BANTEC S-185 corresponding virtual encapsulated layer SV_BANTEC has existed and correctly configuration, needs to be undertaken by following step:
1. application call encapsulated layer loading interface LoadWrapper (), load the virtual hardware encapsulated layer, import encapsulated layer name SV_BANTEC into, the virtual enclosures layer reads the configuration information of BANTEC S-185 automatically, by api interface agreement loaded with hardware equipment, and sweep parameter is set;
2. the api interface call function in application call scan interface function and the interface protocol package module, driven sweep instrument BANTEC S-185, the line scanning of going forward side by side action.
By above-mentioned steps, finish the foundation of scanner BANTEC S-185 corresponding virtual hardware enclosure layer SV_BANTEC, carry out scanning motion by virtual hardware encapsulated layer driven sweep instrument BANTEC S-185; Do not support standard protocol interface for some but be provided with the image collection hardware device of api interface, can use aforesaid way to drive equally.
Claims (5)
1. the image collecting method based on virtual hardware equipment is characterized in that, may further comprise the steps:
(1) creates the interface protocol package module, and provide the call function corresponding with interface protocol to application program;
(2) load the image collection hardware device, create corresponding virtual hardware enclosure layer according to the image collection hardware device attribute that is loaded into;
(3) configuration image collection hardware device attribute, and obtain the interface protocol configuration information of image collection hardware device, according to the interface protocol of interface protocol configuration information configuration virtual hardware enclosure layer, and import the call function of hardware device interface protocol correspondence into to the virtual hardware encapsulated layer;
(4) application program drives the image collection hardware device by the interface protocol in the call function calling interface protocol encapsulation module, the line scanning of going forward side by side action.
2. the image collecting method based on virtual hardware equipment according to claim 1, it is characterized in that, the establishment interface protocol package module in the described step (1) be with Kofax interface protocol, TWAIN interface protocol, Folder interface protocol, interface protocol, ISIS interface protocol and api interface protocol encapsulation based on the DirectShow technology in the interface protocol package module; Described interface protocol is called by call function corresponding with interface protocol in the application program.
3. the image collecting method based on virtual hardware equipment according to claim 1, it is characterized in that, described step (2) also comprises the detection of virtual hardware encapsulated layer, the detection of virtual hardware encapsulated layer is carried out after loading the image collection hardware device, the detection of described virtual hardware encapsulated layer is to detect to be in whether connection status image collection hardware device corresponding virtual encapsulated layer has existed and correctly configuration, if configuration is finished, then load image collection hardware corresponding virtual hardware enclosure layer, and jump to step (4); Then do not create virtual hardware encapsulated layer and follow-up step (3) and step (4) if do not exist.
4. the image collecting method based on virtual hardware equipment according to claim 1, it is characterized in that the configuration virtual hardware enclosure layer in the described step (3) also comprises configuration packages layer loading interface, encapsulated layer unloading interface, encapsulated layer query interface, encapsulated layer another name management interface, encapsulated layer adjustment interface and encapsulated layer state interface.
5. the image collecting method based on virtual hardware equipment according to claim 1, it is characterized in that the attribute of creating image collection hardware device corresponding virtual hardware enclosure layer in the described step (2) and be the image collection hardware device that will be loaded into imports in the virtual hardware encapsulated layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110194674.6A CN102289416B (en) | 2011-07-12 | 2011-07-12 | Image collection method based on virtual hardware equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110194674.6A CN102289416B (en) | 2011-07-12 | 2011-07-12 | Image collection method based on virtual hardware equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102289416A true CN102289416A (en) | 2011-12-21 |
CN102289416B CN102289416B (en) | 2015-03-04 |
Family
ID=45335857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110194674.6A Active CN102289416B (en) | 2011-07-12 | 2011-07-12 | Image collection method based on virtual hardware equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102289416B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108662981A (en) * | 2018-06-14 | 2018-10-16 | 苏州富莱智能科技有限公司 | Customize micrometering system and measurement method |
CN108830914A (en) * | 2018-06-12 | 2018-11-16 | 苏州富莱智能科技有限公司 | Multi-platform micrometering system based on straight line measurement |
CN109029247A (en) * | 2018-06-12 | 2018-12-18 | 苏州富莱智能科技有限公司 | Efficient multi-platform microscopic measuring method |
CN109460244A (en) * | 2018-10-26 | 2019-03-12 | 苏州浪潮智能软件有限公司 | A kind of software approach shielding hardware differences |
CN110995486A (en) * | 2019-11-28 | 2020-04-10 | 广州助蜂网络科技有限公司 | Intelligent hardware equipment monitoring system based on Internet of things |
CN112394714A (en) * | 2020-12-09 | 2021-02-23 | 中国船舶工业系统工程研究院 | Unmanned ship software system based on equipment virtualization |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6275869B1 (en) * | 1994-11-22 | 2001-08-14 | Eastman Kodak Company | System for network communication of image information between imaging devices according to multiple protocols |
CN1417680A (en) * | 2002-12-30 | 2003-05-14 | 北京北大方正电子有限公司 | Function expanding method for hung image capture equipment |
CN1737779A (en) * | 2005-09-08 | 2006-02-22 | 中国工商银行 | Method and system for expanding peripherals |
US20060133878A1 (en) * | 2000-03-17 | 2006-06-22 | Microsoft Corporation | Simplified Device Drivers For Hardware Devices of a Computer System |
CN101944033A (en) * | 2009-07-09 | 2011-01-12 | 中兴通讯股份有限公司 | Device and method for dynamically supporting multiple protocols in embedded system |
CN102111597A (en) * | 2009-12-24 | 2011-06-29 | 上海威乾视频技术有限公司 | Common packaging system compatible with digital video record (DVR) hardware |
-
2011
- 2011-07-12 CN CN201110194674.6A patent/CN102289416B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6275869B1 (en) * | 1994-11-22 | 2001-08-14 | Eastman Kodak Company | System for network communication of image information between imaging devices according to multiple protocols |
US20060133878A1 (en) * | 2000-03-17 | 2006-06-22 | Microsoft Corporation | Simplified Device Drivers For Hardware Devices of a Computer System |
US20060147234A1 (en) * | 2000-03-17 | 2006-07-06 | Microsoft Corporation | Simplified Device Drivers for Hardware Devices of a Computer System |
CN1417680A (en) * | 2002-12-30 | 2003-05-14 | 北京北大方正电子有限公司 | Function expanding method for hung image capture equipment |
CN1737779A (en) * | 2005-09-08 | 2006-02-22 | 中国工商银行 | Method and system for expanding peripherals |
CN101944033A (en) * | 2009-07-09 | 2011-01-12 | 中兴通讯股份有限公司 | Device and method for dynamically supporting multiple protocols in embedded system |
CN102111597A (en) * | 2009-12-24 | 2011-06-29 | 上海威乾视频技术有限公司 | Common packaging system compatible with digital video record (DVR) hardware |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108830914A (en) * | 2018-06-12 | 2018-11-16 | 苏州富莱智能科技有限公司 | Multi-platform micrometering system based on straight line measurement |
CN109029247A (en) * | 2018-06-12 | 2018-12-18 | 苏州富莱智能科技有限公司 | Efficient multi-platform microscopic measuring method |
CN108662981A (en) * | 2018-06-14 | 2018-10-16 | 苏州富莱智能科技有限公司 | Customize micrometering system and measurement method |
CN109460244A (en) * | 2018-10-26 | 2019-03-12 | 苏州浪潮智能软件有限公司 | A kind of software approach shielding hardware differences |
CN110995486A (en) * | 2019-11-28 | 2020-04-10 | 广州助蜂网络科技有限公司 | Intelligent hardware equipment monitoring system based on Internet of things |
CN112394714A (en) * | 2020-12-09 | 2021-02-23 | 中国船舶工业系统工程研究院 | Unmanned ship software system based on equipment virtualization |
Also Published As
Publication number | Publication date |
---|---|
CN102289416B (en) | 2015-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102289416B (en) | Image collection method based on virtual hardware equipment | |
CN101739363B (en) | Apparatus and methods for controlling image sensors | |
US11947781B2 (en) | Automatically adjusting a layout of a visual element on a to-be-generated interface and quickly generating an interface | |
US10303445B2 (en) | Network service providing method and network service station using same | |
EP2566289B1 (en) | Wireless Internet access module and method for synchronizing data | |
CN103051947B (en) | A kind of electron album sharing method and system based on set-top box | |
CN105282372A (en) | Camera command set host command translation | |
EP2854348B1 (en) | Interface display method and system of home gateway applicable to multiple display types | |
CN104484181B (en) | The method, apparatus of Android camera and mobile equipment are controlled under glibc environment | |
CN106104476A (en) | Image processing system and image forming method | |
CN101135966A (en) | Graphical interfaces development method and system based on command lines | |
CN102404633A (en) | Monitoring module, intelligent television system and television | |
CN108388461A (en) | A kind of screen picture intercept method and device for firmware | |
CN109815766B (en) | Bar code scanning method and device, mobile terminal and readable storage medium | |
CN102508673B (en) | The system and method for fast Development and configuration platform class software | |
WO2023246486A1 (en) | Method and apparatus for creating connector | |
CN109086087A (en) | A kind of apparatus scanning method and device based on TWAIN agreement | |
CN104182220A (en) | Image acquisition method based on domestic CPU and domestic OS | |
CN112235628B (en) | Multi-window opening method, device, equipment and medium for television operating system | |
CN102902504B (en) | Connection system and connection method for computer base map signal of embedded image control platform | |
CN111736887A (en) | Access system, method, device and storage medium of waste equipment | |
KR100407083B1 (en) | Meeting system and information storage medium | |
CN102438021B (en) | Processing method and device for telecommunications service development | |
CN115118719B (en) | Method and system for connecting camera equipment of cloud desktop | |
CN204795253U (en) | Standardized encapsulation system of microscopy images |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310051 Patentee after: Sinyada Technology Co.,Ltd. Address before: Sunyard Technology Building No. 3888 Hangzhou City, Zhejiang province Binjiang District Jiangnan Road 310053 Patentee before: SUNYARD SYSTEM ENGINEERING Co.,Ltd. |
|
CP03 | Change of name, title or address |