CN1417680A - Function expanding method for hung image capture equipment - Google Patents

Function expanding method for hung image capture equipment Download PDF

Info

Publication number
CN1417680A
CN1417680A CN 02159178 CN02159178A CN1417680A CN 1417680 A CN1417680 A CN 1417680A CN 02159178 CN02159178 CN 02159178 CN 02159178 A CN02159178 A CN 02159178A CN 1417680 A CN1417680 A CN 1417680A
Authority
CN
China
Prior art keywords
function
dll
image capturing
data source
equipments
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
Application number
CN 02159178
Other languages
Chinese (zh)
Other versions
CN1157656C (en
Inventor
吴宇雯
杨斌
张海东
南水鱼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inst Of Computer Science & Technology Peking University
Beijing Founder Electronics Co Ltd
Original Assignee
Inst Of Computer Science & Technology Peking University
Beijing Founder Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inst Of Computer Science & Technology Peking University, Beijing Founder Electronics Co Ltd filed Critical Inst Of Computer Science & Technology Peking University
Priority to CNB021591784A priority Critical patent/CN1157656C/en
Publication of CN1417680A publication Critical patent/CN1417680A/en
Application granted granted Critical
Publication of CN1157656C publication Critical patent/CN1157656C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Abstract

The present invention relates to function expanding method for hung image capture equipment. The present invention expands the function of image capture equipment through creating one new dynamic linkage library DLL to capture the communication message between the application program and data source and hanging the function to be added to available data source. The said method makes it possible to expand function conveniently on the basis of available TWAIN technology and avoid the tedious altering process to different equipment.

Description

A kind of external hanging type image capturing functions of the equipments extending method
Technical field
The invention belongs to image capturing equipment application, be specifically related to the function extending method that a kind of scanner, digital camera etc. are supported the image capturing equipment of Twain interface.
Background technology
Existing TWAIN (Technology Without An Interesting Name) is the specification that input equipment manufacturers such as scanner, digital camera follow jointly, is the software protocol and the API (application programming interfaces) of a standard of application software and image capturing communication between devices.As long as application program meets the basic demand of TWAIN standard, just can start the image capturing equipment that meets this specification.For example: just can start scanner or digital camera in Microsoft Word, method is " insertion " → " picture " → " from scanner or a camera " of opening menu bar.Utilize Adobe Photoshop also can accomplish this point, method is to open " File " → " Import " → " Select TWAIN_32 Source ".
According to the TWAIN standard, image capturing equipment vendors will provide corresponding data source DS (DataSource), application program is managed DSM (Data Source Manager) by data source and is communicated by letter with the data source (DS) of equipment vendors, thereby starts corresponding input equipment.The TWAIN interface connects application program and image capturing equipment well, as long as image capturing equipment vendors and application developers can both be observed the standard of TWAIN, their product just can call mutually.
But for a secondary development merchant who uses the image capturing equipment that original equipment manufacturer (OEM) provides, they really do not relate to the exploitation of bottom hardware equipment and device drives, can be on the basis of the device drives that equipment manufacturers provide but they wish again, use the technology of oneself, add new function, satisfy user's specific demand etc.They have just run into a difficult problem like this, because they will be in the face of a lot of original device provider, they will give the unified interpolation of the equipment of all these different vendor's different models a certain function, but they can not allow all original devices provide the commercial city to revise by their mode again, also can not be familiar with the bottom layer application program interface of the equipment of these different vendor's different models of grasp, and existing technology can only be done corresponding modification at the equipment of a certain model, can't well address this problem, so solve this problem with regard to a kind of new method of needs.
Summary of the invention
The objective of the invention is at the defective that exists in the prior art, a kind of external hanging type image capturing functions of the equipments extending method has been proposed, this method is added extended function on these image capturing equipment in plug-in mode on the basis of TWAIN interface, thereby has solved these above-mentioned problems.
For reaching above purpose, the technical solution used in the present invention is: a kind of external hanging type image capturing functions of the equipments extending method may further comprise the steps:
1) generate a dynamic link library (DLL) (Founder DLL) file, new data source DS just, its expansion ds by name or dll are placed under the Twain_32 catalogue of computer system, press the Twain standard, and its communication interface is DS_Entry ();
2) when DLL_PROCESS_ATTACH, original data source DS is transferred with the method for calling of dynamic link library (DLL);
3) in Founder DLL, intercept and capture the message that transmits between application program and data source DS, do corresponding handle the back by Founder DLL communication interface DS_Entry () and application program between communicate, Founder DLL both can get in touch with application program by its communication interface DS_Entry () like this, can get in touch by export function DS_Entry and the device drives of calling the data source DS that original image input equipment manufacturer provides again, realize application software and image capturing communication between devices, then, on original image capturing functions of the equipments basis, increase one or more new concrete functions;
4) when DLL_PROCESS_DETACH, discharge legacy data source DS.
In said method, the concrete function that increases newly can be to increase a new dialog box on the TWAIN interface of original scanner, also can be to add color management system to finish color correction function or the newly-increased net function of going on the basis of original image capturing functions of the equipments.In addition, the concrete function that increases newly can also be that the small breadth image that the image with large format is divided into the breadth size of several suitable scanners scans, then these small breadth pictures are pieced together the layout function of large format figure, or note is added on function on the ad-hoc location of the image that scans, or the like.When carrying out the function expansion, above-mentioned several functions can only expand a kind of, also can expand several as required simultaneously.
Effect of the present invention is that the technical matters that the equipment that provides for different image capturing equipment suppliers expands new function well has been provided this method, has significantly reduced workload, has shortened the construction cycle, has improved work efficiency.Be suitable for the image capturing equipment that all support the Twain interface, as: scanner, digital camera etc.Why being external hanging type image capturing functions of the equipments extending method, is because we can intercept and capture the communication information between application program and data source DS, concrete function is hung over outward on the existing data source DS, thus the function that expands corresponding image capturing equipment.Each supports the manufacturer of the image capturing equipment of TWAIN interface that the support to data source DS all can be provided in driving, and the data source DS that they provide has had basic functions, can realize normal image input service, go up and just can reach the purpose that shields bottom different application interface API to a certain extent so our function is hung over data source DS outward.
Description of drawings
Fig. 1 is application program, data source management DSM and the triangular synoptic diagram that concerns of data source DS;
Fig. 2 is the principle schematic that new function is hung over data source DS outward with the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done to describe further.
As shown in Figure 1, get in touch between application program, data source management DSM and data source DS three.
As shown in Figure 2, dynamic link library (DLL) is hung over outward on original data source DS, intercept and capture the communication information between application program and data source DS, thereby add new function.
Embodiment 1: a kind of external hanging type image capturing functions of the equipments extending method may further comprise the steps:
1) generate a dynamic link library (DLL) (Founder DLL) file, new data source DS just, its expansion ds by name or dll are placed under the Twain_32 catalogue of computer system, press the Twain standard, and its communication interface is DS_Entry ();
2) when DLL_PROCESS_ATTACH, original data source DS is transferred with the method for calling of dynamic link library (DLL);
3) in Founder DLL, intercept and capture the message that transmits between application program and data source DS, do corresponding the processing afterwards between communication interface DS_Entry () by Founder DLL and application program and communicate; Founder DLL both can get in touch with application program by its communication interface DS_Entry () like this, can get in touch by export function DS_Entry and the device drives of calling the data source DS that original image input equipment manufacturer provides again, can realize application software and image capturing communication between devices, then, on original image capturing functions of the equipments basis, increase one or more new concrete functions;
4) when DLL_PROCESS_DETACH, discharge legacy data source DS.
In the present embodiment, selected image capturing equipment is scanner, increases a new dialog box on our the TWAIN interface at original scanner when the 3rd step, and process is as follows:
At first when Founder DLL carries out DLL_PROCESS_ATTACH, the method for original data source DS utilization LoadIibrary is transferred, and the communication interface of Founder DLL is defined as:
DS_Entry(pTW_IDENTITY?pOrigin,
TW_UINT32 DG,
TW_UINT16 DAT,
TW_UINT16 MSG,
TW_MEMREF pData) then at the communication information of intercepting and capturing in this function between application program and data source DS, TWAIN is with the mode pass-along message of Triplet (triplets), transmitting (DG_CONTROL, DAT_USERINTERFACE, MSG_ENABLEDS) during message, just can use function C reateDialog to generate new dialog box, and the export function DS_Entry and the scanner that call the data source DS of former scanner are got in touch: twRC=1pDS_Entry (pOrigin, DG, DAT, MSG, pData), final twRC is as a result passed back, and data source management DSM just can import message into by the DS_Entry () of FounderDLL like this, and obtains the twRC as a result that returns.So application program will generate new dialog box in corresponding position after starting scanner.
Embodiment 2: we add color management system and finish the color correction function in the present embodiment on the basis of original image capturing functions of the equipments.
Realize this function, will transmit (DG_IMAGE at the communication information of intercepting and capturing in the Founder DLL between application program and data source DS, DAT_IMAGEMEMXFER, MSG_GET) during message, the color correction function that just can add color management system, other step is identical with embodiment 1.
Embodiment 3: add the layout function on the basis of original image capturing functions of the equipments.
The layout functional description: the small breadth image that the image of large format is divided into the breadth size of several suitable scanners scans, and for the small breadth image is marked, by the layout function image of these small breadths is combined into the image of a width of cloth large format, the loaded down with trivial details work of having saved artificial jigsaw again then.
Performing step is identical with embodiment 1, and difference is: when increasing concrete function, increase be the layout functional module.
Function expand finish after, concrete application mode can be: in the Option Box of layout function on the guidance panel, choose " jigsaw function " this, and the total several spaces of a whole page of input.Then the image of first space of a whole page being put into scanner scans.Scanner can add mark to image automatically when finishing first space of a whole page scanning, and this image is saved as temporary file.According to the space of a whole page number in the layout function choosing-item frame, scanner scans the corresponding space of a whole page respectively, and repeats a step.When carrying out last space of a whole page scanning, the image that scanner can scan out preceding several spaces of a whole page pieces together a big version by corresponding mark, and the image after this amalgamation is saved as image file, simultaneously the temporary file of several space of a whole page storages before the deletion.
Embodiment 4: add on the basis of original image capturing functions of the equipments and go the net function.
Go the net functional description: because printed matter has comprised the mesh decorative pattern when previous printing, so the interference pattern of corresponding mesh decorative pattern when the scanning printed matter, can occur.Going the net function is exactly well to eliminate the interference pattern of these mesh decorative patterns.
Performing step is identical with embodiment 1, and difference is: when increasing concrete function, increase be the net functional module.
Embodiment 5: add the picture annotation function on the basis of original image capturing functions of the equipments.
The picture annotation function is exactly to add corresponding literal note on the ad-hoc location of the image that scans.
Performing step is identical with embodiment 1, and difference is: when increasing concrete function, increase be picture annotation function module.
After the function expansion was finished, concrete application mode can be: choose " interpolation note " this option in the option of dialog box.The content of the note that input will be added in " interpolation note " corresponding edit box.The attribute of note literal is set, as: the position of font, font color, font size, interpolation etc.After finishing, setting begins formal scanning.Behind the end of scan, this note can be added on the ad-hoc location of the image that scans automatically, has saved the trouble that manually adds note.
Embodiment 6: expand layout function, color correction function simultaneously on the basis of original image capturing functions of the equipments, go the net function, add picture annotation function etc.
Certainly, when on the function basis that original scanner possessed, carrying out the function expansion, except expanding one or more functions described in the various embodiments described above, also can expand other functions simultaneously.

Claims (6)

1. external hanging type image capturing functions of the equipments extending method, it is characterized in that this method may further comprise the steps: 1) generate a dynamic link library (DLL) (Founder DLL) file, new data source DS just, its expansion ds by name or dll, be placed under the Twain_32 catalogue of computer system, press the Twain standard, its communication interface is DS_Entry ();
2) when DLL_PROCESS_ATTACH, original data source DS is transferred with the method for calling of dynamic link library (DLL);
3) in Founder DLL, intercept and capture the message that transmits between application program and data source DS, do corresponding handle the back by Founder DLL communication interface DS_Entry () and application program between communicate, Founder DLL both can get in touch with application program by its communication interface DS_Entry () like this, can get in touch by export function DS_Entry and the device drives of calling the data source DS that original image input equipment manufacturer provides again, realize application software and image capturing communication between devices, then, on original image capturing functions of the equipments basis, increase one or more new concrete functions;
4) when DLL_PROCESS_DETACH, discharge legacy data source DS.
2. a kind of external hanging type image capturing functions of the equipments extending method as claimed in claim 1 is characterized in that: the concrete function that increases newly can be to increase a new dialog box on the TWAIN interface of original scanner.
3. a kind of external hanging type image capturing functions of the equipments extending method as claimed in claim 1 is characterized in that: the concrete function that increases newly can be to add color management system to finish the color correction function.
4. as claim 1 and 3 described a kind of external hanging type image capturing functions of the equipments extending methods, it is characterized in that: the concrete function that increases newly can be that the small breadth image that the image with large format is divided into the breadth size of several suitable scanners scans, and then these small breadth pictures is pieced together the layout function of large format figure.
5. a kind of external hanging type image capturing functions of the equipments extending method as claimed in claim 4 is characterized in that: can also expand eliminate printed matter mesh decorative pattern go the net function.
6. a kind of external hanging type image capturing functions of the equipments extending method as claimed in claim 5 is characterized in that: can also expand note is added on function on the ad-hoc location of the image that scans.
CNB021591784A 2002-12-30 2002-12-30 Function expanding method for hung image capture equipment Expired - Fee Related CN1157656C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021591784A CN1157656C (en) 2002-12-30 2002-12-30 Function expanding method for hung image capture equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021591784A CN1157656C (en) 2002-12-30 2002-12-30 Function expanding method for hung image capture equipment

Publications (2)

Publication Number Publication Date
CN1417680A true CN1417680A (en) 2003-05-14
CN1157656C CN1157656C (en) 2004-07-14

Family

ID=4753255

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021591784A Expired - Fee Related CN1157656C (en) 2002-12-30 2002-12-30 Function expanding method for hung image capture equipment

Country Status (1)

Country Link
CN (1) CN1157656C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289416A (en) * 2011-07-12 2011-12-21 信雅达系统工程股份有限公司 Image collection method based on virtual hardware equipment
CN105472197A (en) * 2015-11-24 2016-04-06 华为技术有限公司 Image processing system, method and apparatus thereof
CN105320500B (en) * 2014-06-11 2018-08-03 先智云端数据股份有限公司 It is the method for application programming interface encapsulation function in environment beyond the clouds

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289416A (en) * 2011-07-12 2011-12-21 信雅达系统工程股份有限公司 Image collection method based on virtual hardware equipment
CN102289416B (en) * 2011-07-12 2015-03-04 信雅达系统工程股份有限公司 Image collection method based on virtual hardware equipment
CN105320500B (en) * 2014-06-11 2018-08-03 先智云端数据股份有限公司 It is the method for application programming interface encapsulation function in environment beyond the clouds
CN105472197A (en) * 2015-11-24 2016-04-06 华为技术有限公司 Image processing system, method and apparatus thereof
CN105472197B (en) * 2015-11-24 2019-01-18 华为技术有限公司 Image processing system, method and apparatus
US11829409B2 (en) 2015-11-24 2023-11-28 Huawei Cloud Computing Technologies Co., Ltd. Image processing system, method, and apparatus

Also Published As

Publication number Publication date
CN1157656C (en) 2004-07-14

Similar Documents

Publication Publication Date Title
CN100339819C (en) Informaton processing device and print prebrowsing display device
JP2006087063A (en) Multiple exposure image composite system and multiple exposure image composite method
CN1704916A (en) External storage device, image acquisition device, and method and system to control a driver
CN1440000A (en) Image processing method, device, storage medium, program, colour image forming system
CN1393001A (en) Data communication system and method, computer program, and recording medium
US20060171005A1 (en) Document processor, image forming apparatus, document processing method, and computer program
CN108804197B (en) Dynamic componentization implementation method, device, equipment and storage medium
JP2006262078A (en) Image processor
CN1549130A (en) Method of document synchronization
CN103577554A (en) Method and device for triggering multimedia database scanning of Android equipment
US20090109471A1 (en) Image processing apparatus and application executing method
CN1157656C (en) Function expanding method for hung image capture equipment
CN1442996A (en) Digital camera, image processing device, image processing method, image processing system and program
CN113362477B (en) 3D data acquisition and monitoring control system and scene editing method thereof
CN1571566A (en) Multiplexing synthetic method for memberized electronic handset visiting card
JP2011041010A (en) Device, method and program for information processing
US20040174544A1 (en) Arranging images on a page
JP4960681B2 (en) Information processing apparatus, image processing apparatus, data conversion method, and data conversion program
US6286054B2 (en) Method and system for supporting multiple capture devices
JP2005250974A (en) Apparatus, method and program for software development, software, recording medium, image forming apparatus, and electric apparatus
CN106062781A (en) Image resolution modification
JPH07134733A (en) Method for managing electronic data for plate making components
KR20180117826A (en) Method and apparatus for production of webtoon movies
JP4319190B2 (en) Computer-readable recording medium and information processing apparatus for recording printer driver and print processing program
JP2007194939A (en) Thumbnail display of image data

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040714

Termination date: 20201230