CN106534607A - Image scanning method and device - Google Patents

Image scanning method and device Download PDF

Info

Publication number
CN106534607A
CN106534607A CN201610917417.3A CN201610917417A CN106534607A CN 106534607 A CN106534607 A CN 106534607A CN 201610917417 A CN201610917417 A CN 201610917417A CN 106534607 A CN106534607 A CN 106534607A
Authority
CN
China
Prior art keywords
scan operation
interface
line journey
scan
main thread
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.)
Pending
Application number
CN201610917417.3A
Other languages
Chinese (zh)
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.)
BEIJING ADVANCED DIGITAL TECHNOLOGY Co Ltd
Original Assignee
BEIJING ADVANCED DIGITAL TECHNOLOGY 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 BEIJING ADVANCED DIGITAL TECHNOLOGY Co Ltd filed Critical BEIJING ADVANCED DIGITAL TECHNOLOGY Co Ltd
Priority to CN201610917417.3A priority Critical patent/CN106534607A/en
Publication of CN106534607A publication Critical patent/CN106534607A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/0035User-machine interface; Control console
    • H04N1/00405Output means
    • H04N1/00408Display of information to the user, e.g. menus
    • H04N1/00411Display of information to the user, e.g. menus the display also being used for user input, e.g. touch screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00204Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server
    • H04N1/00209Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax
    • H04N1/00214Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax details of transmission
    • H04N1/00217Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax details of transmission only involving computer data transmission protocols, e.g. SMTP, WAP or HTTP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00912Arrangements for controlling a still picture apparatus or components thereof not otherwise provided for
    • H04N1/00938Software related arrangements, e.g. loading applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Embodiments of the present invention provide an image scanning method and a device. The method comprises the following steps of calling an interface main thread to create a scanning operation sub-thread for controlling a scanning operation control and having the message loop function, wherein the scanning operation control is applied to the scanning operation and the scanning operation sub-thread is in butt joint with a scanning operation interface through the message loop; during the scanning operation sub-thread, setting scanning operation parameters for the scanning operation interface, receiving a scanning startup request sent from the interface main thread, calling the scanning operation interface to start the scanning operation, and feeding back the status information of the scanning operation to the interface main thread according to a status acquisition request or a result acquisition request sent from the interface main thread. According to the technical scheme of the invention, the problem in the prior art that a user can only conduct other operations on a webpage or other application programs when the scanning operation is over can be solved. Therefore, the working efficiency of a computer is not influenced by the scanning operation.

Description

A kind of image scan method and device
Technical field
The present invention relates to image scanning techniques field, more particularly to a kind of image scan method and device.
Background technology
On computers by by calling the control for scan operation carrying out interacting message with scan operation interface, The control to scanning device can be realized.
Control is component software or object, can be inserted it in webpage or other application program, but for scanning The control of operation does not design message loop.Control for scan operation needs to connect with scan operation by message loop Mouth carries out interacting message, so relying on the message loop of host process and scan operation interface carries out interacting message.
After scan operation is opened, the control for scan operation will take the message loop of host process.If be used for The forms of the control of scan operation lose focus, for scan operation control will exit message circulation, scan operation interface Just cannot feedback message to the control for scan operation, follow-up program cannot get the response of scan operation interface, so sweep Retouching operation will failure.Thus, the forms for being used for the control of scan operation in scanning process cannot lose focus, that is to say, that Webpage or other application program have to wait for scan operation and terminate, and user just can carry out other to webpage or other application program Operation, especially when batch scanning is operated, scan task is a lot, and scan operation is time-consuming for a long time, greatly have impact on computer Work efficiency.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State a kind of image scan method and device of problem.
According to one aspect of the present invention, there is provided a kind of image scan method, including:
Interface main thread is called to create the scanning behaviour for being used for controlling scan operation control and possessing message loop function Make sub-line journey, the scan operation control is used for scan operation, and the scan operation sub-line journey passes through the message loop and sweeps Retouch operate interface docking;
In the scan operation sub-line journey, it is that the scan operation interface arranges scan operation parameter;
In the scan operation sub-line journey, after the unlatching scan request that reception interface main thread sends, described sweeping is called Retouch operate interface and open scan operation;
In the scan operation sub-line journey, request is obtained according to the state that the interface main thread sends or result is obtained The status information of request feedback scan operation or object information give the interface main thread.
Preferably, the interface main thread has message loop function, and follows with the message of the scan operation sub-line journey Ring function is separate.
Preferably, it is described in the scan operation sub-line journey, it is that the scan operation interface arranges scan operation parameter Including:
In the scan operation sub-line journey, according to the scan operation for receiving user's setting that the interface main thread sends Parameter is that the scan operation interface arranges scan operation parameter;
Or, in the scan operation sub-line journey, being set for the scan operation interface according to the scan operation parameter of acquiescence Put scan operation parameter.
Preferably, described in the scan operation sub-line journey, receive the unlatching scanning that the interface main thread sends After request, after calling the scan operation interface to open scan operation, methods described also includes:
In the scan operation sub-line journey, after receiving the end scan request that the interface main thread sends, stop sweeping Retouch operation.
Preferably, described in the scan operation sub-line journey, receive the unlatching scanning that the interface main thread sends After request, before calling the scan operation interface to open scan operation, methods described also includes:
In the scan operation sub-line journey, the forms that the scan operation control is created are hidden.
Preferably, the status information of the scan operation includes the completed task quantity information of scan operation, described In the scan operation sub-line journey, request is obtained according to the state that the interface main thread sends or result obtains request feedback , to after the interface main thread, methods described also includes for the status information of scan operation or object information:
In the interface main thread, shown according to the progress bar in the completed task quantity information updating interface Information.
Preferably, the scan operation parameter includes scanning device source, acquisition modes, amount of images, scan mode, scanning As a result at least one of document location of file format, the resolution of scanning result and scanning result for preserving.
Preferably, the scan operation control is the ActiveX control based on TWAIN agreements.
According to a further aspect in the invention, there is provided a kind of image-scanning device, including:
Scan operation sub-line journey creation module, is used for controlling scan operation control for calling interface main thread to create one And possessing the scan operation sub-line journey of message loop function, the scan operation control is used for scan operation, the scan operation Sub-line journey is docked with scan operation interface by the message loop;
Scan operation parameter setting module, in the scan operation sub-line journey, being that the scan operation interface sets Put scan operation parameter;
Scan operation opening module, in the scan operation sub-line journey, the unlatching that reception interface main thread sends After scan request, the scan operation interface is called to open scan operation;
Information feedback module, in the scan operation sub-line journey, according to the state that the interface main thread sends Obtain request or result obtains the status information or object information of asking feedback scan operation to the interface main thread.
Preferably, the interface main thread has message loop function, and follows with the message of the scan operation sub-line journey Ring function is separate.
Preferably, the scan operation parameter setting module, specifically in the scan operation sub-line journey, according to connecing The scan operation parameter for receiving user's setting that the interface main thread sends is that the scan operation interface arranges scan operation ginseng Number;
Or, in the scan operation sub-line journey, being set for the scan operation interface according to the scan operation parameter of acquiescence Put scan operation parameter.
Preferably, described device also includes:
Scan operation stopping modular, receives the interface main thread for described in the scan operation sub-line journey After the unlatching scan request of transmission, after calling the scan operation interface to open scan operation, in the scan operation sub-line Cheng Zhong, after receiving the end scan request that the interface main thread sends, stops scan operation.
Preferably, described device also includes:
Forms hidden module, sends in the scan operation sub-line journey, receiving the interface main thread described Unlatching scan request after, before calling the scan operation interface to open scan operation, in the scan operation sub-line journey, Hide the forms that the scan operation control is created.
Preferably, the status information of the scan operation includes the completed task quantity information of scan operation, the dress Putting also includes:
Display information update module, for described in the scan operation sub-line journey, according to the interface main thread The state of transmission obtains request or result obtains the status information or object information of asking feedback scan operation to the interface master After thread, in the interface main thread, shown according to the progress bar in the completed task quantity information updating interface Show information.
Preferably, the scan operation parameter includes scanning device source, acquisition modes, amount of images, scan mode, scanning As a result at least one of document location of file format, the resolution of scanning result and scanning result for preserving.
Preferably, ActiveX control of the scan operation based on TWAIN agreements.
In sum, according to the embodiment of the present invention, it is used for controlling scan operation by calling interface main thread to create one Control and possesses the scan operation sub-line journey of message loop function, the scan operation sub-line journey passes through the message loop and sweeps Retouch operate interface docking so that scan operation control can be carried out by the message loop function of sub-line journey and scan operation interface Interacting message.Due to no longer needing the message loop for relying on host process to carry out interacting message with scan operation interface, so sweeping During retouching, the forms of scan operation control can just lose focus.Operation of the user to other positions in interface would not be caused Scan operation control exit message is circulated, it is to avoid scan operation interface cannot feedback message to scan operation control problem. Thus the present invention solves webpage or other application programs have to wait for scan operation and terminate, user just can to webpage or other Application program carries out the problem of other operations, it is to avoid scan operation affects the problem of work efficiency of computer.
Description of the drawings
The step of Fig. 1 shows a kind of embodiment of image scan method of the present invention flow chart;
The step of Fig. 2 shows another kind of embodiment of image scan method of the present invention flow chart;
Fig. 3 shows a kind of structured flowchart of embodiment of image-scanning device of the present invention.
Specific embodiment
It is understandable for enabling the above objects, features and advantages of the present invention to become apparent from, it is below in conjunction with the accompanying drawings and concrete real The present invention is further detailed explanation to apply mode.
With reference to Fig. 1, flow chart the step of show a kind of embodiment of image scan method of the present invention can specifically include Following steps:
Step 101, calling interface main thread to create one is used for controlling scan operation control and possessing message loop function Scan operation sub-line journey.
In embodiments of the present invention, what interface main thread was opened in referring to browser calls the interface of the webpage of scan operation The interface main thread of scan operation is called in main thread or other application programs, for loading various controls.Scan operation Thread is a sub-line journey created by interface main thread, is loaded by the sub-line journey and controls the control for scan operation.
Interface main thread, when the sub-line journey is created, is one message loop of the sub- thread constructing, scan operation sub-line journey Docked with scan operation interface by message loop, that is, retrieve the message of scan operation interface from message queue and it Be distributed in scan operation control.Scan operation interface is that computer is used for controlling the driving journey of the scanning devices such as scanner Sequence.
In actual applications, webpage or other application programs can be used to constitute a bill intelligent imaging system, is passed through Loading and control control for scan operation to realize image scanning function.
Step 102, in the scan operation sub-line journey, is that the scan operation interface arranges scan operation parameter.
In embodiments of the present invention, in scan operation sub-line journey, it is that scan operation interface arranges scan operation parameter, its In, scan operation parameter refer to scanning device be scanned operation institute must or parameter on demand, such as amount of images, scanning File format that mode, scanning result are preserved etc..
Specifically, what a kind of user for being achieved in that scan operation sub-line journey reception interface main thread sends was arranged sweeps Operating parameter is retouched, scan operation sub-line journey carries out interacting message, scan operation interface by message loop and scan operation interface It is configured according to the scan operation parameter that the user for receiving is arranged.Another kind is achieved in that in the scan operation sub-line Cheng Zhong, is that the scan operation interface arranges scan operation parameter according to the scan operation parameter of acquiescence.The concrete parameter for adopting Set-up mode can be designed according to actual needs, the invention is not limited in this regard.
Step 103, in the scan operation sub-line journey, after the unlatching scan request that reception interface main thread sends, adjusts Scan operation is opened with the scan operation interface.
In embodiments of the present invention, beginning scan operation of the user on webpage or in other application programs is by interface main line Journey is detected, and interface main thread sends to scan operation sub-line journey and opens scan request, and scan operation sub-line journey receives unlatching After scan request, scan operation sub-line journey carries out interacting message, scan operation interface by message loop and scan operation interface Scanning device is opened according to request and starts scan operation.
Step 104, in the scan operation sub-line journey, according to the interface main thread send state obtain request or As a result the status information or object information of asking feedback scan operation are obtained to the interface main thread.
In embodiments of the present invention, interface main thread can send state to scan operation sub-line journey and obtain request, scanning Operator thread carries out interacting message by message loop and scan operation interface, and scan operation interface obtains the shape of scanning device State information, then the status information of acquisition is sent to into scan operation sub-line journey, status information is sent by scan operation sub-line journey Give interface main thread.Wherein, the status information of scan operation includes the completed task quantity information of scan operation, scan operation Whether at least one of in running order information.
In embodiments of the present invention, interface main thread can send result to scan operation sub-line journey and obtain request, scanning Operator thread carries out interacting message by message loop and scan operation interface, and scan operation interface obtains sweeping for scanning device Object information is retouched, then the object information of acquisition is sent to into scan operation sub-line journey, by scan operation sub-line journey by object information It is sent to interface main thread.Wherein, the object information of scan operation includes at least one of document location, file name.
In sum, according to the embodiment of the present invention, it is used for controlling scan operation by calling interface main thread to create one Control and possesses the scan operation sub-line journey of message loop function, the scan operation sub-line journey passes through the message loop and sweeps Retouch operate interface docking so that scan operation control can be carried out by the message loop function of sub-line journey and scan operation interface Interacting message.Due to no longer needing the message loop for relying on host process to carry out interacting message with scan operation interface, so sweeping During retouching, the forms of scan operation control can just lose focus.Operation of the user to other positions in interface would not be caused Scan operation control exit message is circulated, it is to avoid scan operation interface cannot feedback message to scan operation control problem. Thus the present invention solves webpage or other application programs have to wait for scan operation and terminate, user just can to webpage or other Application program carries out the problem of other operations, it is to avoid scan operation affects the problem of work efficiency of computer.
In embodiments of the present invention, it is preferable that the interface main thread has message loop function, and grasps with the scanning The message loop function of making sub-line journey is separate.
Specifically, interface main thread constructs a message loop, the message loop and scan operation sub-line when creating The message loop of journey is separate, and interface main thread is independent of the message loop of scan operation sub-line journey, and the operation of user only can The message loop of interface main thread is affected, without affecting the message loop of scan operation sub-line journey.
In embodiments of the present invention, it is preferable that described in the scan operation sub-line journey, it is the scan operation interface The one kind for arranging scan operation parameter is achieved in that in the scan operation sub-line journey, according to the reception interface main thread The scan operation parameter that the user of transmission is arranged is that the scan operation interface arranges scan operation parameter.
Specifically, the scan operation parameter that the user that scan operation sub-line journey reception interface main thread sends is arranged, sweeps Retouching operator thread carries out interacting message by message loop and scan operation interface, and scan operation interface is according to the use for receiving The scan operation parameter that family is arranged is configured.
Another kind is achieved in that in the scan operation sub-line journey, is swept for described according to the scan operation parameter of acquiescence Retouch operate interface and scan operation parameter is set.
Specifically, the scan operation parameter of acquiescence is sent to scan operation interface, scanning behaviour by scan operation sub-line journey Make interface to be configured according to the scan operation parameter of acquiescence.
In embodiments of the present invention, it is preferable that the scan operation parameter includes scanning device source, acquisition modes, image In file format, the resolution of scanning result and the document location of scanning result that quantity, scan mode, scanning result are preserved extremely Few one kind.
Specifically, scanning device source refers to the data source that the scanning device that operating system can be called is produced, by matching somebody with somebody Scanning device source is put, scan operation interface selects corresponding scanning device to be operated.Acquisition modes refer to acquisition scanning device Scanning result mode, the mode of such as data flow, the mode of file.Amount of images refers to the figure to be scanned of user input The quantity of picture.Scan mode refers to the mode that scanning device is scanned, and can specifically include single-sweep or duplex scanning.Sweep The file format for retouching result preservation refers to the form of picture file that scanning is obtained, such as JPG forms, BMP forms etc..Scanning knot The resolution of fruit refers to the resolution of the picture file that scanning is obtained.The document location of scanning result refers to the picture that scanning is obtained The position of file storage.
In embodiments of the present invention, it is preferable that the scan operation control is the ActiveX control based on TWAIN agreements.
Specifically, TWAIN agreements (English full name:Toolkit Without An Interesting Name, Chinese Name:Without note name instrument packet protocol) it is international standard of the application software from computer peripheral equipment acquisition still image.Worked by TWAIN The responsible exploitation of group.It is to provide a unified specification between software developer and hardware device production firm, with effectively The incompatible problem between system and equipment is avoided, is that application software obtains still image from computer peripheral equipment (scanner etc.) International standard.By TWAIN agreements, scan operation is performed every time, application program will carry out multiple interacting message with data source.
ActiveX refers to the whole COM (full name of Microsoft in a broad sense:Component Object Model, Chinese Name:The Component Object Model) framework, but typically now it is used for calling based on standard com interface to realize Object link and embedded ActiveX control.The object link with OCX as extension name that the latter refers to towards the browser technology of Microsoft and designs with it is embedding The control for entering.By defining the interface specification between container and component, if having write a control for following specification, then can With easily used in various containers without change control code.
In embodiments of the present invention, the ActiveX control based on TWAIN agreements can be by browser or other application programs Call.When being called by browser, the interface main thread of the webpage that interface main thread is opened in referring to browser, for the page Render, and load various controls.Scan operation sub-line journey is a sub-line journey created by browser interface main thread, by this Sub-line journey is loaded and controls the ActiveX control for scan operation.When routine call is employed, interface main thread is referred to should With the interface main thread of program, for loading various controls.Scan operation sub-line journey is a son created by interface main thread Thread, is loaded by the sub-line journey and controls the ActiveX control for scan operation.
With reference to Fig. 2, flow chart the step of show another kind of embodiment of image scan method of the present invention can specifically be wrapped Include following steps:
Step 201, calling interface main thread to create one is used for controlling scan operation control and possessing message loop function Scan operation sub-line journey.
In embodiments of the present invention, the scan operation control is used for scan operation, and the scan operation sub-line journey passes through The message loop is docked with scan operation interface.
Step 202, in the scan operation sub-line journey, is that the scan operation interface arranges scan operation parameter.
Step 203, in the scan operation sub-line journey, hides the forms that the scan operation control is created.
In embodiments of the present invention, by the hiding forms pointer parameter of introducing scan operation control, realize in scanning behaviour Make automatic hidden when control runs.So that during scan operation, not drawing the corresponding forms of scan operation, not affecting interface Layout, it is possible to be scanned operation on backstage.
Step 204, in the scan operation sub-line journey, after the unlatching scan request that reception interface main thread sends, adjusts Scan operation is opened with the scan operation interface.
Step 205, in the scan operation sub-line journey, according to the interface main thread send state obtain request or As a result the status information or object information of asking feedback scan operation are obtained to the interface main thread.
Step 206, in the interface main thread, according to entering in the completed task quantity information updating interface Degree bar display information.
In embodiments of the present invention, the status information of scan operation includes the completed task quantity information of scan operation, Interface main thread sends state to scan operation sub-line journey and obtains request, and scan operation sub-line journey is according to request to scan operation interface Get completed task quantity information.Completed task quantity information is sent to interface main line by scan operation sub-line journey Journey, interface main thread draw progress on interface according to the total quantity of completed task quantity information and the image for needing scanning Bar, to show the progress for currently completing.
Step 207, in the scan operation sub-line journey, receives the end scan request that the interface main thread sends Afterwards, stop scan operation.
In embodiments of the present invention, the status information that scan operation sub-line journey gets show scan task completed or End scan operation of the user on webpage is detected by interface main thread, and interface main thread sends to scan operation sub-line journey and ties Beam scanning is asked, and after scan operation sub-line journey receives unlatching scan request, scan operation sub-line journey passes through message loop and sweeps Retouching operate interface carries out interacting message, and scan operation interface requests scanning device terminates scan operation.
In sum, according to the embodiment of the present invention, it is used for controlling scan operation by calling interface main thread to create one Control and possesses the scan operation sub-line journey of message loop function, the scan operation sub-line journey passes through the message loop and sweeps Retouch operate interface docking so that scan operation control can be carried out by the message loop function of sub-line journey and scan operation interface Interacting message.Due to no longer needing the message loop for relying on host process to carry out interacting message with scan operation interface, so sweeping During retouching, the forms of scan operation control can just lose focus.Operation of the user to other positions in interface would not be caused Scan operation control exit message is circulated, it is to avoid scan operation interface cannot feedback message to scan operation control problem. Thus the present invention solves webpage or other application programs have to wait for scan operation and terminate, user just can to webpage or other Application program carries out the problem of other operations, it is to avoid scan operation affects the problem of work efficiency of computer.
Further by hiding the forms that the scan operation control is created, believe further according to the completed task quantity Breath updates the progress bar display information in interface so that during scan operation, do not draw scan operation corresponding in interface Forms, do not affect the layout of the page, it is possible to be scanned operation on backstage.As completed task quantity information is by scanning Operator thread is obtained so that show that on interface scan progress obtains Jiao always also without the forms of scan operation control Point, after interface reacquires focus, progress bar can recover to update.
It should be noted that for embodiment of the method, in order to be briefly described, therefore which to be all expressed as a series of action group Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can adopt other orders or while carry out.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented Example is necessary.
With reference to Fig. 3, show a kind of structured flowchart of embodiment of image-scanning device of the present invention, can specifically include as Lower module:
Scan operation sub-line journey creation module 301, is used for controlling scan operation for calling interface main thread to create one Control and possesses the scan operation sub-line journey of message loop function;
The scan operation control is used for scan operation, and the scan operation sub-line journey is by the message loop and scanning Operate interface is docked;
Scan operation parameter setting module 302, in the scan operation sub-line journey, being the scan operation interface Scan operation parameter is set;
Scan operation opening module 303, for, in the scan operation sub-line journey, what reception interface main thread sent opens After opening scan request, the scan operation interface is called to open scan operation;
Information feedback module 304, in the scan operation sub-line journey, according to the shape that the interface main thread sends State obtains request or result obtains the status information or object information of asking feedback scan operation to the interface main thread.
In embodiments of the present invention, it is preferable that the interface main thread has message loop function, and grasps with the scanning The message loop function of making sub-line journey is separate.
In embodiments of the present invention, it is preferable that the scan operation parameter setting module, specifically in the scanning behaviour Make in sub-line journey, connect for the scan operation according to the scan operation parameter for receiving user's setting that the interface main thread sends Mouth arranges scan operation parameter;
Or, in the scan operation sub-line journey, being set for the scan operation interface according to the scan operation parameter of acquiescence Put scan operation parameter.
In embodiments of the present invention, it is preferable that described device also includes:
Scan operation stopping modular, receives the interface main thread for described in the scan operation sub-line journey After the unlatching scan request of transmission, after calling the scan operation interface to open scan operation, in the scan operation sub-line Cheng Zhong, after receiving the end scan request that the interface main thread sends, stops scan operation.
In embodiments of the present invention, it is preferable that described device also includes:
Forms hidden module, sends in the scan operation sub-line journey, receiving the interface main thread described Unlatching scan request after, before calling the scan operation interface to open scan operation, in the scan operation sub-line journey, Hide the forms that the scan operation control is created.
In embodiments of the present invention, it is preferable that the status information of the scan operation includes completed of scan operation Business quantity information, described device also include:
Display information update module, for described in the scan operation sub-line journey, according to the interface main thread The state of transmission obtains request or result obtains the status information or object information of asking feedback scan operation to the interface master After thread, in the interface main thread, shown according to the progress bar in the completed task quantity information updating interface Show information.
In embodiments of the present invention, it is preferable that the scan operation parameter includes scanning device source, acquisition modes, image In file format, the resolution of scanning result and the document location of scanning result that quantity, scan mode, scanning result are preserved extremely Few one kind.
In embodiments of the present invention, it is preferable that ActiveX control of the scan operation based on TWAIN agreements.
In sum, according to the embodiment of the present invention, it is used for controlling scan operation by calling interface main thread to create one Control and possesses the scan operation sub-line journey of message loop function, the scan operation sub-line journey passes through the message loop and sweeps Retouch operate interface docking so that scan operation control can be carried out by the message loop function of sub-line journey and scan operation interface Interacting message.Due to no longer needing the message loop for relying on host process to carry out interacting message with scan operation interface, so sweeping During retouching, the forms of scan operation control can just lose focus.Operation of the user to other positions in interface would not be caused Scan operation control exit message is circulated, it is to avoid scan operation interface cannot feedback message to scan operation control problem. Thus the present invention solves webpage or other application programs have to wait for scan operation and terminate, user just can to webpage or other Application program carries out the problem of other operations, it is to avoid scan operation affects the problem of work efficiency of computer.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using wherein include computer at one or more can With in the computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) of program code The form of the computer program of enforcement.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system), and computer program The flow chart and/or block diagram of product is describing.It should be understood that can be by computer program instructions flowchart and/or block diagram In each flow process and/or square frame and flow chart and/or the flow process in block diagram and/or square frame combination.These can be provided Computer program instructions are set to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is producing a machine so that held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames The device of the function of specifying.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipments In the computer-readable memory for working in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one side of one flow process of flow chart or multiple flow processs and/or block diagram The function of specifying in frame or multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing terminal equipments so that On computer or other programmable terminal equipments perform series of operation steps to produce computer implemented process, so as to The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow process of flow chart or multiple flow processs And/or specify in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to Including preferred embodiment and fall into the had altered of range of embodiment of the invention and change.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant are anticipated Covering including for nonexcludability, so that a series of process, method, article or terminal unit including key elements is not only wrapped Those key elements are included, but also including other key elements being not expressly set out, or also include for this process, method, article Or the key element that terminal unit is intrinsic.In the absence of more restrictions, by wanting that sentence "including a ..." is limited Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal unit.
Above to a kind of image scan method provided by the present invention and device, it is described in detail, it is used herein Specific case is set forth to the principle of the present invention and embodiment, and the explanation of above example is only intended to help and understands The method of the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, in tool Will change in body embodiment and range of application, in sum, this specification content is should not be construed as to the present invention Restriction.

Claims (16)

1. a kind of image scan method, it is characterised in that include:
Interface main thread is called to create scan operation for being used for controlling scan operation control and possessing message loop function Thread, the scan operation control are used for scan operation, and the scan operation sub-line journey is by the message loop and scanning behaviour Make interface docking;
In the scan operation sub-line journey, it is that the scan operation interface arranges scan operation parameter;
In the scan operation sub-line journey, after the unlatching scan request that reception interface main thread sends, the scanning behaviour is called Make interface and open scan operation;
In the scan operation sub-line journey, request is obtained according to the state that the interface main thread sends or result obtains request The status information of feedback scan operation or object information give the interface main thread.
2. method according to claim 1, it is characterised in that the interface main thread has a message loop function, and with The message loop function of the scan operation sub-line journey is separate.
3. method according to claim 1, it is characterised in that described in the scan operation sub-line journey, is described sweeping Retouching operate interface setting scan operation parameter includes:
In the scan operation sub-line journey, according to the scan operation parameter for receiving user's setting that the interface main thread sends For the scan operation interface, scan operation parameter is set;
Or, in the scan operation sub-line journey, being that scan operation interface setting is swept according to the scan operation parameter of acquiescence Retouch operating parameter.
4. method according to claim 1, it is characterised in that described in the scan operation sub-line journey, receives institute After stating the unlatching scan request that interface main thread sends, after calling the scan operation interface to open scan operation, the side Method also includes:
In the scan operation sub-line journey, after receiving the end scan request that the interface main thread sends, stop scanning behaviour Make.
5. method according to claim 1, it is characterised in that described in the scan operation sub-line journey, receives institute After stating the unlatching scan request that interface main thread sends, before calling the scan operation interface to open scan operation, the side Method also includes:
In the scan operation sub-line journey, the forms that the scan operation control is created are hidden.
6. method according to claim 1 or 5, it is characterised in that the status information of the scan operation includes scanning behaviour Make completed task quantity information, described in the scan operation sub-line journey, sent according to the interface main thread State obtain request or result obtain request feedback scan operation status information or object information give the interface main thread it Afterwards, methods described also includes:
In the interface main thread, letter is shown according to the progress bar in the completed task quantity information updating interface Breath.
7. method according to claim 1, it is characterised in that the scan operation parameter includes scanning device source, acquisition The text of file format, the resolution of scanning result and scanning result that mode, amount of images, scan mode, scanning result are preserved At least one of part position.
8. method according to claim 1, it is characterised in that the scan operation control is based on TWAIN agreements ActiveX control.
9. a kind of image-scanning device, it is characterised in that include:
Scan operation sub-line journey creation module, is used for controlling scan operation control and tool for calling interface main thread to create one The scan operation sub-line journey of standby message loop function, the scan operation control are used for scan operation, the scan operation sub-line Journey is docked with scan operation interface by the message loop;
Scan operation parameter setting module, in the scan operation sub-line journey, being that the scan operation interface is arranged and swept Retouch operating parameter;
Scan operation opening module, for the unlatching scanning that in the scan operation sub-line journey, reception interface main thread sends After request, the scan operation interface is called to open scan operation;
Information feedback module, for, in the scan operation sub-line journey, obtaining according to the state that the interface main thread sends Request or result obtain the status information of request feedback scan operation or object information to the interface main thread.
10. device according to claim 9, it is characterised in that the interface main thread has a message loop function, and with The message loop function of the scan operation sub-line journey is separate.
11. devices according to claim 9, it is characterised in that the scan operation parameter setting module, specifically for In the scan operation sub-line journey, it is described according to the scan operation parameter that the user for receiving the interface main thread transmission is arranged Scan operation interface arranges scan operation parameter;
Or, in the scan operation sub-line journey, being that scan operation interface setting is swept according to the scan operation parameter of acquiescence Retouch operating parameter.
12. devices according to claim 9, it is characterised in that described device also includes:
Scan operation stopping modular, sends in the scan operation sub-line journey, receiving the interface main thread described Unlatching scan request after, after calling the scan operation interface to open scan operation, in the scan operation sub-line journey, After receiving the end scan request that the interface main thread sends, stop scan operation.
13. devices according to claim 9, it is characterised in that described device also includes:
Forms hidden module, receives opening for the interface main thread transmission for described in the scan operation sub-line journey After opening scan request, before calling the scan operation interface to open scan operation, in the scan operation sub-line journey, hide The forms that the scan operation control is created.
14. devices according to claim 9 or 13, it is characterised in that the status information of the scan operation includes scanning Completed task quantity information, described device is operated also to include:
Display information update module, sends according to the interface main thread for described in the scan operation sub-line journey State obtain request or result obtain request feedback scan operation status information or object information give the interface main thread Afterwards, in the interface main thread, letter is shown according to the progress bar in the completed task quantity information updating interface Breath.
15. devices according to claim 9, it is characterised in that the scan operation parameter includes scanning device source, acquisition The text of file format, the resolution of scanning result and scanning result that mode, amount of images, scan mode, scanning result are preserved At least one of part position.
16. devices according to claim 9, it is characterised in that ActiveX of the scan operation based on TWAIN agreements Control.
CN201610917417.3A 2016-10-20 2016-10-20 Image scanning method and device Pending CN106534607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610917417.3A CN106534607A (en) 2016-10-20 2016-10-20 Image scanning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610917417.3A CN106534607A (en) 2016-10-20 2016-10-20 Image scanning method and device

Publications (1)

Publication Number Publication Date
CN106534607A true CN106534607A (en) 2017-03-22

Family

ID=58332949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610917417.3A Pending CN106534607A (en) 2016-10-20 2016-10-20 Image scanning method and device

Country Status (1)

Country Link
CN (1) CN106534607A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924652A (en) * 2018-07-02 2018-11-30 四川长虹电器股份有限公司 A kind of method of TV signal variation detection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075243A (en) * 2007-06-26 2007-11-21 中国移动通信集团福建有限公司 Method for scanning files by webpage
CN101276296A (en) * 2007-03-29 2008-10-01 上海新跃仪表厂 Method for realizing message response mechanism on embedded computer system
CN102104553A (en) * 2009-12-16 2011-06-22 浙江省公众信息产业有限公司 Instant message response system and method based on ActiveX control
US20150156346A1 (en) * 2008-10-06 2015-06-04 Samsung Electronics Co., Ltd. Method of attaching and sending file through webmail from image forming apparatus, and image forming apparatus to perform the method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276296A (en) * 2007-03-29 2008-10-01 上海新跃仪表厂 Method for realizing message response mechanism on embedded computer system
CN101075243A (en) * 2007-06-26 2007-11-21 中国移动通信集团福建有限公司 Method for scanning files by webpage
US20150156346A1 (en) * 2008-10-06 2015-06-04 Samsung Electronics Co., Ltd. Method of attaching and sending file through webmail from image forming apparatus, and image forming apparatus to perform the method
CN102104553A (en) * 2009-12-16 2011-06-22 浙江省公众信息产业有限公司 Instant message response system and method based on ActiveX control

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924652A (en) * 2018-07-02 2018-11-30 四川长虹电器股份有限公司 A kind of method of TV signal variation detection
CN108924652B (en) * 2018-07-02 2020-04-28 四川长虹电器股份有限公司 Method for detecting television signal change

Similar Documents

Publication Publication Date Title
US7266761B2 (en) Special API interface for interfacing an application with a TWAIN module, negotiating and presenting a user interface for inserting an image into a document
US7975231B2 (en) Image display updating system, server client system and drawing operation echo back script
US20190073350A1 (en) Non-Transitory Computer-Readable Medium, Data Processing Device and Data Processing Method
DE69727906T2 (en) Switched printer driver in Windows operating system
CN104899031B (en) Logistics data generation method and device and logistics client terminal configuring method and device
CN105630478B (en) A kind of method and apparatus for realizing page switching
US20130104102A1 (en) User Customization Method and System
US20070223068A1 (en) Image forming apparatus, image display apparatus, image forming method, image display method, image display system, and storage medium
CN108958881A (en) Data processing method, device and computer readable storage medium
CN103116503B (en) The implementation method of a kind of multiwindow and device
JP2023033496A (en) Information processing device, information processing program and information processing method
US6275866B1 (en) Manipulation and coupling of object oriented components
CN113486785A (en) Video face changing method, device, equipment and storage medium based on deep learning
JP2017525050A (en) Optimized rendering of shared documents on client devices with document raster representation
CN107656709A (en) Image forming apparatus and its control method and storage medium
CN113256095A (en) Draggable configured agile flow service construction method, system, device and medium
KR20150106846A (en) Improvements in and relating to rendering of graphics on a display device
CN106534607A (en) Image scanning method and device
US20080024521A1 (en) Method and editing processor for adding graphics object with simple manner
CN117036546B (en) Picture generation method and device, storage medium and computing equipment
US20240111502A1 (en) Systems and Methods for Defining and Automatically Executing 2D/3D Data Manipulation Workflows
CN108874392A (en) User's guideline interface generation method and device
US20180088938A1 (en) In-Editor Spritesheeting
US20070139446A1 (en) Systems and methods for manipulating high resolution scan images using web-based user interfaces
CN107977206A (en) A kind of batch service data file processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170322

RJ01 Rejection of invention patent application after publication