BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a scanning device, and more particularly, to a scanning device capable of switching image processing mode automatically.
2. Description of the Prior Art
As the digital technology developed, the image data are stored in the digital format. The scanning device not only converts the photo to the digital image, but also converts the negative (film) and positive (slide) to the digital image. Since the shapes of the negative and positive are different, the user needs to use the negative tray for loading the negative and the positive tray for loading the positive. Then the negative tray or positive tray is connected to the scanning device so that the scanning device can scan the negative or positive.
In addition, after the negative or positive is scanned to the digital image, the scanning device performs the image processing for the digital image from the negative and positive according to the different adjusting parameters. Currently, the user has to configure the adjusting parameters for the negative and positive manually, for switching the scanning operation of the negative and positive. The adjusting parameters include gamma adjustment, exposure adjustment, and white balance adjustment. Thus, the user needs to determine that the object to be scanned is the negative or positive, and switches the scanning mode for the negative or positive. If the user configures wrong scanning mode for the negative or positive, the scanning device cannot process the image properly resulting in abnormal color of the image.
In conclusion, the scanning device plays an important role in the image processing nowadays. The scanning device can convert the negative and positive to the digital image according to the prior art. Since the scanning device needs to use the different adjusting parameters to process the digital image of the negative and positive, the user has to configure the adjusting parameters for the negative and positive manually. However, most of the users are unfamiliar with operating the scanning device; moreover, it is inconvenient for the user to switch the scanning mode according the object to be scanned.
SUMMARY OF THE INVENTION
It is therefore an objective of the present invention to provide a scanning device capable of switching image processing mode automatically.
According to an embodiment of the present invention, a scanning device is provided. The scanning device comprises a first tray, a first identification element, a second tray, a detection module, a scanning module, and an image processing module. The first tray loads a first-type object. The first identification element is installed on the first tray. The second tray loads a second-type object. The detection module detects the first identification element, the detection module generating a first signal when detecting the first identification element, and generating a second signal when the first element is undetected. The scanning module scans the first-type object and the second-type object so as to generate original data. The image processing module is electrically connected to the detection module and the scanning module, for processing the original data, the image processing module using a first group of parameters to process the original data when receiving the first signal and using a second group of parameters to process the original data when receiving the second signal.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a scanning device according to the present invention.
FIG. 2 is a schematic view of a first embodiment of a scanning device according to the present invention.
FIG. 3 is a schematic view of the negative tray.
FIG. 4 is a schematic view of the positive tray.
FIG. 5 is a schematic view of a second embodiment of a scanning device of the present invention.
FIG. 6 is a schematic view of a third embodiment of a scanning device of the present invention.
DETAILED DESCRIPTION
Please refer to FIG. 1. FIG. 1 is a block diagram of a scanning device according to the present invention. The scanning device 100 comprises a tray interface 110, a detection module 120, a scanning module 130, an image processing module 140, and an output module 150. The tray interface 110 is capable of connecting a first tray 111 and a second tray 112. Since the shapes of the negative and positive are different, the negative and positive have to be loaded on the different types of the trays so that the scanning device 100 can read them from the tray interface 110. The first-type object loaded on the first tray 111 is the negative and the second-type object loaded on the second tray 112 is the positive. The first tray 111 and the second tray 112 cannot exchange. The scanning device 100 of the present invention can switch the image processing modes automatically according to the identification elements installed on the trays. When the negative is loaded on the first tray 111 and connected to the tray interface 110, the detection module 120 detects the first identification element so as to generate a first signal 51; meanwhile, the scanning module 130 scans the negative on the first tray 111 so as to generate original data 131. The image processing module 140 uses a first group of parameters 141 to process the original data 131 according to the first signal S1. The first group of parameters comprises the negative adjusting parameters for gamma adjustment, exposure adjustment, and white balance adjustment. On the other hand, when the positive is loaded on the second tray 112 and connected to the tray interface 110, the detection module 120 does not detect the first identification element so as to generate a second signal S2; meanwhile, the scanning module 130 scans the positive on the first tray 112 so as to generate original data 131. In another embodiment, the detection module 120 can detect a second identification element installed on the second tray 112 so as to generate the second signal S2. The image processing module 140 use a second group of parameters 142 to process the original data 131 according to the second signal S2. The second group of parameters comprises the positive adjusting parameters for gamma adjustment, exposure adjustment, and white balance adjustment. Then, the image processing module 140 temporarily stores the processed data in a capture buffer 151 and a display buffer 152 of the output module 150 for outputting to a storage device 161 and a display device 162.
Please refer to FIG. 2. FIG. 2 is a schematic view of a first embodiment of a scanning device according to the present invention. The scanning device 100 comprises a housing 210, a tray 220, a tray interface 110, an identification element 240, a control panel 250, a display device 162, and a storage interface 270. The tray interface 110 is installed in the bottom of the housing 210, for connecting the tray 220. The tray 220 comprises two types. The first tray 111 is the negative tray, and the second tray 112 is the positive tray. In the prior art, the user needs to switch the image processing mode of the scanning device 100 through the control panel 250 and the display device 162 according to the type of the object to be scanned. The tray 220 of the present invention has the identification element 240, so the scanning device 100 can detect the identification element 240 to determine that the tray 220 is the negative tray or the positive tray and then switch the image processing mode accordingly. In the embodiments of the present invention, the detection module 120 of the scanning device 100 can use a few ways to detect the identification 240 of the tray 220, including optical detection, magnetic detection, and electric detection. Each way has the corresponding identification element 240. However, no matter what kind of the way is used, the negative tray and the positive tray make the detection module 120 of the scanning device 100 generating different signals. Thus, the scanning device 100 can switch the image processing mode according to the different signals. When the scan is finished, the scanning device 100 can show the image on the display device 162 or store the image data in the storage device 161 through the storage interface 270.
Please refer to FIG. 3 and FIG. 4. FIG. 3 is a schematic view of the negative tray. FIG. 4 is a schematic view of the positive tray. The negative tray comprises a carrier 310, a cover 320, and an identification element 330. The carrier 310 has a negative guide 312 for loading the negative. The cover 320 is used to fix the negative after the negative is loaded on the carrier 310. The positive tray 400 comprises a carrier 410. The carrier 410 has a plurality of positive guides 412 and an identification element 430. Each positive guide 412 can load and fix one positive, so the carrier 410 can load a plurality of positives at the same time. The detection module 120 of the scanning device 100 can detect the identification element 330 of the negative tray 300 and the identification element 430 of the positive tray 400 by different ways, so the identification element 330 of the negative tray 300 and the identification element 430 of the positive tray 400 have corresponding embodiments for the detection module 120 of the scanning device 100 generating different signals. For optical detection, the identification element 330 of the negative tray 300 is a light reflector bar, the identification element 430 of the positive tray 400 is a dark reflector bar, and the detection module 120 of the scanning device 100 comprises a photo sensor. The photo sensor generates different signals when detecting the light reflector bar and the dark reflector bar, so the scanning device 100 can switch the image processing mode accordingly. For magnetic detection, the identification element 330 of the negative tray 300 is a magnetic bar, the identification element 430 of the positive tray 400 is a plastic bar, and the detection module 120 of the scanning device 100 comprises a magnetic sensor. The magnetic sensor generates different signals when detecting the magnetic bar and the plastic bar, so the scanning device 100 can switch the image processing mode accordingly. For electric detection, utilizing the RFID technology, the identification element 330 of the negative tray 300 is a first RFID tag, the identification element 430 of the positive tray 400 is a second RFID tag, and the detection module 120 of the scanning device 100 comprises an RFID reader. The RFID reader generates different signals when detecting the first RFID tag and the second RFID tag, so the scanning device 100 can switch the image processing mode accordingly.
Please refer to FIG. 5. FIG. 5 is a schematic view of a second embodiment of a scanning device of the present invention. The scanning device 500 comprises a raised button switch 560 installed in the tray interface 530. The scanning device 500 uses the negative adjusting parameters to process the scanned image when the button switch 560 is not pushed. The scanning device 500 uses the positive adjusting parameters to process the scanned image when the button switch 560 is pushed. Thus, the identification element of the negative tray 520 is a groove 540 for containing the button switch 560. The button switch 560 enters the groove 540 when the negative tray is connected to the scanning device 500, so the button switch 560 is not pushed and the scanning device 500 uses the negative adjusting parameters to process the scanned image. On the other hand, the identification element of the positive tray is flat, so the button switch 560 is pushed when the positive tray is connected to the scanning device 500, and the scanning device 500 uses the positive adjusting parameters to process the scanned image.
Please refer to FIG. 6. FIG. 6 is a schematic view of a third embodiment of a scanning device of the present invention. The scanning device 600 comprises a depressed button switch 660 installed in the tray interface 630. The scanning device 600 uses the negative adjusting parameters to process the scanned image when the button switch 660 is pushed. The scanning device 600 uses the positive adjusting parameters to process the scanned image when the button switch 660 is not pushed. Thus, the identification element of the negative tray 620 is a raised bar 640 for pressing the button switch 660. The raised bar 640 presses the button switch 660 when the negative tray is connected to the scanning device 600, so the scanning device 600 uses the negative adjusting parameters to process the scanned image. On the other hand, the identification element of the positive tray is flat, so the button switch 660 is not pushed and the scanning device 600 uses the positive adjusting parameters to process the scanned image.
In conclusion, the scanning device according to the present invention comprises a positive tray, a negative tray, a detection module, a scanning module, and an image processing module. One of the negative tray and the positive tray has an identification element, or both the negative tray and the positive tray have different identification elements. When the scanning device scans the negative tray, the detection module generates a first signal according to the identification element. When the scanning device scans the positive tray, the detection module generates a second signal according to the identification element. The image processing module uses negative adjusting parameters to process the scanned image when receiving the first signal. The image processing module uses positive adjusting parameters to process the scanned image when receiving the second signal. Thus, when the user uses the scanning device of the present invention, it is convenient that the user do not need to switch the image processing mode of the scanning device through the control panel according to the type of the object to be scanned.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.