This application claims priority to Taiwanese Patent Application No. 098141220 filed on Dec. 2, 2009.
The present invention relates to a scanning speed adjusting method, and more particularly to a scanning speed adjusting method for use in a scanning system.
A multifunction peripheral is widely used to generate image data corresponding to the contents of the original document. These image data are usually transmitted to and stored in the host side through an input/output (I/O) cable. For example, the image data are transmitted from the multifunction peripheral side to a computer side. The transmission speed of the image data is related to the communication protocol between the multifunction peripheral side and the host side. Ideally, the speed of generating the image data to be transmitted to the host side is the same as the speed of receiving the image data by the host side. In such circumstance, the scanning system does not need a memory buffer to accumulate and store the to-be-sent image data. In practice, the speed of generating the image data and the speed of receiving the image data by the host side are usually different. If the speed of receiving the image data by the host side is faster than the speed of generating the image data, the multifunction peripheral may generate the image data at a faster speed without the problem of causing data loss. On the other hand, if the speed of generating the image data is faster than the speed of receiving the image data by the host side, the scanning efficiency is impaired.
In addition to optical resolution, the scanning speed and the transmission speed are important factors influencing the scanning functions of the multifunction peripheral. As known, the scanning speed indicates the speed of generating the scanning data. Generally, the scanning speed is equal to the moving speed of the image reader of the scanner or the feeding speed of the automatic document feeder. The transmission speed is in reverse proportion to the time period for returning the image data to the host. If the transmission speed is slower than the scanning speed, the image data may be accumulated in the memory buffer of the scanner. The image data accumulated in the memory buffer possibly overflow even if a portion of the original document has been scanned. For avoiding the data loss problem resulted from overflow of the memory buffer, the scan driving unit (e.g. a motor) of the multifunction peripheral is usually disabled to stop the scanning operation. After the data accumulated in the memory buffer have been completely sent out or the memory buffer has space for storing additional data, the scanning operation of the scan driving unit will be performed again in order to process the remaindering data. In other words, the scanning operation is alternately stopped and performed until the image data have been completely processed.
Since the scanning operation is alternately stopped and performed, the image scanned by the multifunction peripheral is readily suffered from dithering because vibration is generated when the scanning operation is stopped or performed or a mechanical gap is existed. Under this circumstance, the imaging quality is deteriorated.
For solving the above drawbacks, another method is disclosed. After the motor is disabled and then activated again, the scanning operation is performed at a slower scanning speed. Since the scanning operation is alternately stopped and performed, the image scanned by the multifunction peripheral is also suffered from dithering because vibration is possibly generated when the canning operation is stopped or performed. In other words, the imaging quality is deteriorated. Moreover, since the scanning speed is reduced, the scanning efficiency is usually insufficient.
Therefore, there is a need of providing a scanning speed adjusting method for use in a scanning system, thereby obviating the drawbacks encountered from the prior art.
It is an object of the present invention to provide a scanning speed adjusting method for use in a scanning system so as to enhance the scanning quality.
In accordance with an aspect of the present invention, there is provided a scanning speed adjusting method for use in a scanning system of an electronic device. The scanning system includes a scanning module and a controller. Firstly, a document is scanned by the scanning module, thereby generating an image data. Then, the image data is received by the controller, and transmitted to an output device. An input speed of receiving the image data from the scanning module and an output speed of transmitting the image data to the output device are detected by the controller. If the input speed and the output speed are different, a scanning speed of the scanning module is adaptively adjusted according to a difference between the input speed and the output speed.
In accordance with another aspect of the present invention, there is provided a scanning system of an electronic device. The scanning system includes an output device, an input device and a controller. The input device includes a scanning module and a scan driving unit. The scanning module scans a document to generate an image data. The scan driving unit is connected to the scanning module for driving the scanning module to move at a scanning speed. The controller is connected to the scan driving unit and the output device for controlling operations of the scan driving unit, receiving the image data and transmitting the image data to the output device. An input speed of receiving the image data from the scanning module and an output speed of transmitting the image data to the output device are detected by the controller, and the scanning speed of the scanning module is adaptively adjusted if the input speed and the output speed are different.
The above contents of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
The present invention will now be described more specifically with reference to the following embodiments. It is to be noted that the following descriptions of preferred embodiments of this invention are presented herein for purpose of illustration and description only. It is not intended to be exhaustive or to be limited to the precise form disclosed.
Please refer to
Once the controller 12 discriminates that the input speed and the output speed are different, the controller 12 continuously discriminates whether the input speed is greater than the output speed (Step S27). Once the controller 12 discriminates that the input speed is greater than the output speed, the scanning speed of the scanning module 111 is decreased (Step S28). In this circumstance, the amount of image data transmitted from the scanning module 111 to the memory buffer 121 is reduced in order to avoid overflow of the memory buffer 121. Since the scanning speed is optimized, the scan driving unit 112 does not be disabled during the scanning period. On the other hand, once the controller 12 discriminates that the input speed is smaller than the output speed, the scanning speed of the scanning module 111 is increased (Step S29). In this circumstance, the speed of transmitting the image data from the scanning module 111 to the output device 13 is increased in order to reduce the scanning time and achieve an optimized scanning efficiency.
Then, the controller 12 discriminates whether the input speed is greater than the output speed or the input speed is greater than the image processing speed (Step S305). Once the controller 12 discriminates that the input speed is not greater than the output speed or the input speed is not greater than the image processing speed, the controller 12 continuously discriminates whether the current scanning speed is the maximum (Step S306). Once the controller 12 discriminates that the current scanning speed is the maximum, the scanning speed of the scanning module 111 is kept unchanged (Step S308). Once the controller 12 discriminates that the current scanning speed is not the maximum, the scanning speed of the scanning module 111 is increased to the maximum speed (Step S307). That is, when the scanning speed is decreased but the output speed is increased, the scanning speed will be increased to the optimized speed. In this circumstance, the speed of transmitting the image data from the scanning module 111 to the output device 13 is increased in order to reduce the scanning time and achieve an optimized scanning efficiency.
Once the controller 12 discriminates that the input speed is greater than the output speed or the input speed is greater than the image processing speed in Step S305, the controller 12 discriminates whether the residual storage space of the memory buffer 121 is lower than a threshold value (Step S309). For example, the maximum capacity of the memory buffer 121 is 16M, and the residual storage space of the memory buffer 121 is 1M. Once the controller 12 discriminates that the residual storage space of the memory buffer 121 is lower than the threshold value, the scanning speed of the scanning module 111 is decreased (Step S310). In this circumstance, the amount of image data transmitted from the scanning module 111 to the memory buffer 121 is reduced in order to avoid overflow of the of the memory buffer 121. Since the scanning speed is optimized, the scan driving unit 112 does not be disabled during the scanning period.
On the other hand, once the controller 12 discriminates that the residual storage space of the memory buffer 121 is not lower than the threshold value, the scanning speed is kept unchanged (Step S311) because the residual storage space of the memory buffer 121 is sufficient to store the image data.
From the above description, the scanning speed adjusting method of the present invention is capable of adaptively and dynamically adjusting the scanning speed by using the controller to detect the input speed and the output speed. In a case the output speed of the image data is fast, the optimized scanning speed is maintained. Whereas, in a case that the output speed of the image data is slow, the scanning speed is decreased in order to avoid the problems encountered from the prior art. In a case that the scanning speed is decreased but the output speed of the image data is increased, the scanning speed may be increased in order to enhance the transmission efficiency.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
098141220 | Dec 2009 | TW | national |