CN1691736A - A method for scanning photographs - Google Patents

A method for scanning photographs Download PDF

Info

Publication number
CN1691736A
CN1691736A CN 200410034170 CN200410034170A CN1691736A CN 1691736 A CN1691736 A CN 1691736A CN 200410034170 CN200410034170 CN 200410034170 CN 200410034170 A CN200410034170 A CN 200410034170A CN 1691736 A CN1691736 A CN 1691736A
Authority
CN
China
Prior art keywords
photo
image file
scanning
pixel
scanned photograph
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 200410034170
Other languages
Chinese (zh)
Other versions
CN100375497C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2004100341708A priority Critical patent/CN100375497C/en
Publication of CN1691736A publication Critical patent/CN1691736A/en
Application granted granted Critical
Publication of CN100375497C publication Critical patent/CN100375497C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses method to scan photo. The method comprises: prestore mask information determined by scan mask; scan entire zone by user's scan parameter and obtain an image document; according to mask information and user's parameter, divide the single image document into image document of at least one corresponding to every photo. By the method of this invention, user can scan many photos during one process, divide of auto multiple photos into some image documents simultaneously, need not user's hand work; avoid fussy image processing work after scanning, increase divide rate of photo and scan efficiency of multiple photos; finally, as putting the photos following scan mask, the method not only increase putting efficiency, but also avoid photo scanned oblique for putting photo position.

Description

A kind of method of scanned photograph
Technical field
The present invention relates to computer digit image input technology, particularly relate to a kind of method of scanned photograph.
Background technology
Along with the continuous development of IT technology, the price of computer peripherals such as scanner and all-in-one multifunctional machine constantly reduces, and is more and more universal in the personal user.The personal user is after having bought the said equipment, and the papery photo that mostly has hope to take before will be own is imported computer by scan mode, deposits, appreciates, processes with the calculating organizational security then or send to other people.
For using flat bed scanner or having the user of the all-in-one multifunctional machine of flat-bed scanning unit, when the scanning multiple pictures, in order to raise the efficiency, usually multiple pictures is placed on the flat board of scanning device simultaneously, is same image file with scanning software with all photo scannings, uses then such as image editing software, as PHOTOSHOP etc., photo content in the original picture file is sheared out one by one, save as the independently image file of single photo content at last.
This process has many shortcomings: as require the user must learn to use image editing softwares such as PHOTOSHOP; From the original picture file that comprises all photos unique file is sheared out and saved as to every photos one by one, this repetitive operation is very loaded down with trivial details; The user is difficult to put photo horizontal vertically flatly on smooth scanning flat board, can increase the operation of rotary fine adjustment like this when the successive image editor, and this operation is also very loaded down with trivial details; When the user puts photo on the scanning flat board, differ each time and put the photo of maximum quantity surely, thereby reduced the efficient of scan operation.
Just because of above reason, there is considerable user to be unwilling to adopt the method for single pass multiple pictures, but would rather scan one by one, and photo of every like this scanning all to open scanner cover plate, put photo, cover cover plate, start preview function, choose image border, formally scan, open cover plate, change photo, its operation is equally very loaded down with trivial details, and efficient is very low.
In United States Patent (USP) 5483325, once mentioned a kind of convenient annex framework that uses photocopier to duplicate (or scan with flat bed scanner) multiple name cards.But this invention only can make things convenient for the user to put business card, do not mention the size and the positional information of additional empty frame on template, the problem of plurality of pictures being divided out automatically from original scanning result with the dedicated program that has the empty frame size positions of template information when also not mentioning scanning, the user still needs own each image content of dividing from original picture.This framework is adsorbed on the photocopier glass plate with electrostatic film in addition, need make hypotenuse at the edge of hollow out frame, makes complicated; This invention is not mentioned and how to be made things convenient for the user to pick and place the method for template; The problem that optimizes the arrangement of of frame is not proposed yet.
In United States Patent (USP) 6177982, once mentioned a kind of dentist of convenience and used flat bed scanner to carry out the template of dentistry X-ray film scanning.The method of plurality of pictures being divided out from original scanning result with the Automatic Program that has the empty frame size positions of template information when but scanning is not mentioned in this invention, the user still needs own each image content of dividing from original picture.In addition, do not mention the problem that optimizes the arrangement of of frame yet; Do not mention and make things convenient for the user to pick and place the design of template.
In United States Patent (USP) 6292596, once mentioned a kind of method of utilizing dedicated templates scanning small-size film and scanning result being made digitized processing.But the method for plurality of pictures being divided out from original scanning result with the Automatic Program that has the empty frame size positions of template information when this patent is not mentioned scanning, the user still needs own each image content of dividing from original picture.
Present some scanner lays claim to the photo scanning pattern on the market, under this pattern, the user can be scanned dull and stereotyped enterprising line scanning to multiple pictures with arbitrarily angled being placed in, software comes out each photo boundary demarcation automatically and adjusts angle, and the user can obtain adjusting the independently image file of angle.But this mode has following three shortcomings: the first, and requiring must have enough spacings between the photo, otherwise software can't distinguish them.This requirement can reduce the efficient that photo is put.For example, the maximum scan zone of ordinary flat scanning device is 216 * 297mm (8.5 * 11.7 inches) at present, for 88.9 the most general * 127mm of present application (3.5 * 5 inches) photo, between each photo spacing is arranged if require, in above-mentioned zone, can only put 3 at most; And if continuously apart from put and photo between not overlapping, in above-mentioned area, can put 5.The second, the software programming complexity.Said method requires software to carry out automatic recognition image border and adjusts the complicated calculations of visual angle automatically, for the scanning software developer, has increased the difficulty of work undoubtedly.The 3rd, amount of calculation is big, the speed of influence scanning.
Summary of the invention
Main purpose of the present invention is to provide a kind of method of scanned photograph, can divide the photo after the scanning automatically.
The objective of the invention is to be achieved through the following technical solutions:
A kind of method of scanned photograph, this method comprises the steps:
The flag information that A, storage are determined according to scanning flag;
B, the sweep parameter that is provided with according to the user scan whole scanning area, obtain single image file;
C, the sweep parameter that is provided with according to user among the flag information of steps A storage and the step B, the single image file that step B is obtained is divided into image file of at least one respectively corresponding each photo.
The described scanning flag of steps A is the cue mark on the scanning flat board of scanner.
The described flag information of steps A comprises the positional information of at least one photo.
The positional information of described photo is the locus coordinate of at least one characteristic point of photo.
The described scanning flag of steps A is a scan templates.
The described flag information of steps A comprises the positional information of at least one photo.
The positional information of described photo is the locus coordinate of at least one characteristic point of photo.
The described flag information of steps A further comprises the positional information of the model distinguishing mark of scan templates, or the colouring information of the model identification tag information of scan templates and template distinguishing mark.
The model identification tag information of described scan templates is the locus coordinate of at least one characteristic point of the model distinguishing mark of scan templates.
The described sweep parameter of step C comprises scanning resolution at least.
Described sweep parameter further comprises the shared byte number of each pixel in the scanning gained image.
Step C described according to flag information and sweep parameter with single image file be divided at least one respectively the method for the image file of corresponding each photo be: determine the position of the data field of each photo in single image file respectively according to flag information and sweep parameter, the data of the data field of each photo correspondence copied in the data field of image file separately.
Further comprise after the step C: preserve at least one image file that step C divides gained.
Further comprise after the step C: whether have or not the image file of content in whole image files of determining step C division gained, if then give up the image file of this no content, and keep other substantial image file; Otherwise, keep whole image files.
Whether have or not the method for the image file of content to be in whole image files of described determining step C division gained: pixel threshold value and number of picture elements proportion threshold value are set;
With the pixel value of all pixels of each image file and the pixel threshold of setting in whole image files of step C division gained, if the pixel number that is lower than the pixel threshold value in the image file surpasses the number of picture elements proportion threshold value of setting with the ratio of image pixel sum, judge that then this image file is the image file of no content; Otherwise, judge that this image file is substantial image file.
The invention discloses a kind of method of scanned photograph, the flag information that storage is determined according to scanning flag, and the sweep parameter that is provided with according to the user scans whole scanning area, obtain single image file, according to flag information and sweep parameter, single image file is divided into the image file of at least one respectively corresponding each photo then.In the prior art, generally be that the scanning multiple pictures forms after the single image file, mark off each photo files by hand or adopt the method for complicated image border identification to divide image by the user.Use method of the present invention, the user can be scanned multiple pictures in the single pass process, the single image file that will scan gained simultaneously is divided into the image file of at least one corresponding each photo automatically according to flag information, divide photo by hand and need not the user, also need not loaded down with trivial details image border identification handles, improve the division speed of photo, thereby improved the scan efficiency of multiple pictures; And, because method of the present invention indication according to scanning flag when putting photo is put, and the big spacing between the photo that need in the prior art need not, like this, not only can improve the speed of putting of photo and put rate, and avoid because the situation that the photo of the inclined position that photo is put after causing scanning tilts.
Description of drawings
Fig. 1 is the dull and stereotyped schematic diagram of scanning with scanner of two kinds of size photo signs.
Fig. 2 puts the schematic diagram of photo when being scanning 88.9 * 127mm (3.5 * 5 inches) photo.
Fig. 3 puts the schematic diagram of photo when being scanning 101.6 * 152.4mm (4 * 6 inches) photo.
Fig. 4 is the method flow diagram according to the scanned photograph of the embodiment of the invention 1.
Fig. 5 is for scanning the template schematic diagram of 127 * 177.8mm (5 * 7 inches) photo design.
Fig. 6 puts the schematic diagram of photo when being scanning 127 * 177.8mm (5 * 7 inches) photo.
Fig. 7 is the method flow diagram according to the scanned photograph of the embodiment of the invention 2.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is further described below in conjunction with the drawings and specific embodiments.
Specific embodiment 1:
In order to realize method of the present invention, can the scanner of scanned photograph be improved, promptly on the scanning flat board of scanner, add the photo sign.Referring to Fig. 1, Fig. 1 is a dull and stereotyped schematic diagram of scanning with scanner of two kinds of sizes (88.9 * 127mm (3.5 * 5 inches)/101.6 * 152.4mm (4 * 6 inches)) photo sign.As can be seen from Figure 1, on the frame 1 of scanning flat board, indicate following sign: former dot mark 10, put the used group mark 51,52,53,54,55,56 of 88.9 * 127mm (3.5 * 5 inches) photo, and put the used group mark 61,62,63,64 of 101.6 * 152.4mm (4 * 6 inches) photo.Wherein the position distribution of each group mark has satisfied not overlapping requirement of putting photo as much as possible on the scanning flat board, and guarantees that photo has at least a limit to abut against the requirement that scans on the dull and stereotyped frame.
Fig. 2 has illustrated the arrangement method when use the present invention scans 88.9 * 127mm (3.5 * 5 inches) photo, as shown in the figure, puts the photo of five 88.9 * 127mm (3.5 * 5 inches) respectively according to sign 51,52,53,54,55,56; Fig. 3 has illustrated the arrangement method when use the present invention scans 101.6 * 152.4mm (4 * 6 inches) photo, as shown in the figure, puts the photo of three 101.6 * 152.4mm (4 * 6 inches) respectively according to sign 61,62,63,64.
Below in conjunction with Fig. 2, Fig. 3 and Fig. 4, be example to scan 101.6 * 152.4mm (4 * 6 inches) photo, describe the method for scanned photograph of the present invention in detail.Fig. 4 is the method according to the scanned photograph of the embodiment of the invention 1, and as can be seen from Figure 4, this method comprises the steps:
Step 401: the positional information that the different size photo of being determined by each group mark on the scanning flat board that prestores in scanning software is put every photo of pattern correspondence.
The pattern of putting with 101.6 * 152.4mm (4 * 6 inches) photo is an example, as can be seen from Figure 3, and when the user puts photo according to sign, by coordinate points 611 (0,0), 612 (4,0), 613 (0,6), the rectangular area of 614 (4,6) formation is photo 61 regions; The rectangular area that is made of coordinate points 621 (4,0), 622 (8,0), 623 (4,6), 624 (8,6) is photo 62 regions; The rectangular area that is made of coordinate points 631 (0,6), 632 (6,6), 633 (0,10), 634 (6,10) is photo 63 regions, and coordinate unit is an inch in the present embodiment.As characteristic point, its geometric coordinate is pre-stored in the scanning software with above each coordinate points, as the foundation of automatic division 101.6 * 152.4mm (4 * 6 inches) photo.
Step 402: the user puts photo 61,62,63 by method shown in Figure 3.
Step 403: start scanning software, the prompting user selects whether to use " scanning multiple pictures pattern ", if user's selection is then to forward step 404 to; Otherwise enter the conventional sweep flow process, promptly at first start prescan, scanning area and the sweep parameter of selecting according to the user scans and obtains single image file then, preserves this single image file at last.
Step 404: the prompting user selects the size of scanned photograph.
If the user selects 88.9 * 127mm (3.5 * 5 inches) photo size, then 88.9 * 127mm (3.5 * 5 inches) photo of prestoring of invocation step 401 is put the pattern corresponding position information; If the user selects 101.6 * 152.4mm (4 * 6 inches) photo size, then 101.6 * 152.4mm (4 * 6 inches) photo of prestoring of invocation step 401 is put the pattern corresponding position information.
In the present embodiment, the user selects 101.6 * 152.4mm (4 * 6 inches) photo size, then calls 101.6 * 152.4mm (4 * 6 inches) photo and puts the pattern corresponding position information.
Step 405: the prompting user selects to scan required resolution and scanning figure place.
The unit of resolution is DPI (Dots Per Inch), and what promptly per inch comprised counts, and a point is a pixel, so the number of picture elements that resolution is per inch to be comprised.For example, 300DPI represents that per inch comprises 300 number of picture elements.
The scanning figure place is that each pixel takies figure place.For example, if the scanning figure place is 24 colours, then each pixel takies 24, i.e. 3 bytes.
Step 406: scanner scans whole scanning area according to the resolution and the scanning figure place of user's input, obtains single image file.
It at first is single image file distribute data buffer area.
Each pixel of scanning gained is stored in the data buffer area of distributing into single image file, the storage of this single image file is to begin to store line by line pixel from scan origin, that is to say, in data buffer area, store the first row pixel earlier, store the second row pixel then, by that analogy, until having stored last column pixel.When the pixel of the every row of storage, this row of storage is stored the pixel of this row on secondary series then at first pixel that lists earlier, by that analogy, and until having stored this row pixel that lists in the end.
For example, the dull and stereotyped scanning area of known scanning is 8.5 * 11.7 inches, if resolution is 300DPI, the scanning figure place is 24 chromoscans, the dull and stereotyped transverse width of scanning is 8.5 inches, so every row has 300 * 8.5=2550 pixel, the dull and stereotyped vertical width of scanning is 11.7 inches, so every row have 300 * 11.7=3510 pixel.Because each pixel is 24, i.e. 3 bytes, so per 2550 * 3=7650 byte is a data line in the single image file, per 3510 * 3=10530 byte is a columns certificate.
Step 407: the image file that obtains according to size, resolution and the scanning figure place partiting step 406 of the scanned photograph of user input.
Disposing way with 101.6 * 152.4mm shown in Figure 3 (4 * 6 inches) photo is an example, if resolution is 300DPI, the scanning figure place is 24 chromoscans, divides every photo as follows:
At first be respectively each photo 61,62 and 63 data buffer area of distributing image file.
For photo 61, be coordinate with the pixel, coordinate points 611 (300 * 0,300 * 0) then, 612 (300 * 4,300 * 0), the position of photo 61 is determined in 613 (300 * 0,300 * 6) and 614 (300 * 4,300 * 6).With the transverse width is X-axis, is Y-axis, then ((Y with vertical width 611+ i) * 2550+X 611+ 1) to ((Y 611+ i) * 2550+X 612) individual pixel is the pixel of photo 61, wherein i is to (Y from-1 613-Y 611-1) integer.So, the 1st to 1200 the 1st line data that pixel is a photo 61 in the single image file; (2550+1) to (2550+1200) individual pixel is the 2nd line data of photo 61, and by that analogy, (2550 * (1800-1)+1) to (2550 * (1800-1)+1200) individual pixel is last column data of photo 61.Because each pixel takies 3 bytes, the 1st to 3600 byte in the then single image file is the 1st line data of photo 61; (7650+1) to (7560+3600) byte is the 2nd line data of photo 61, and by that analogy, (7650 * (1800-1)+1) to (7650 * (1800-1)+3600) byte is last column data of photo 61.
For photo 62, be coordinate with the pixel, then the position of photo 62 is determined in coordinate points 621 (300 * 4,300 * 0), 622 (300 * 8,300 * 0), 623 (300 * 4,300 * 6), 624 (300 * 8,300 * 6).With the transverse width is X-axis, is Y-axis, then ((Y with vertical width 621+ i) * 2550+X 621+ 1) to ((Y 621+ i) * 2550+X 622) individual pixel is the pixel of photo 62, wherein i is to (Y from-1 623-Y 621-1) integer.So (1200+1) to (1200+1200) the individual pixel in the single image file is the 1st line data of photo 62; (2550+1200+1) to (2550+1200+1200) individual pixel is the 2nd line data of photo 62, and by that analogy, (2550 * (1800-1)+1200+1) to (2550 * (1800-1)+1200+1200) individual pixels are last column data of photo 62.Because each pixel takies 3 bytes, (3600+1) to (3600+3600) byte in the then single image file is the 1st line data of photo 62; (7560+3600+1) to (7560+3600+3600) byte is the 2nd line data of photo 62, and by that analogy, (7650 * (1800-1)+3600+1) to (7650 * (1800-1)+3600+3600) bytes are last column data of photo 62.
For photo 63, be coordinate with the pixel, then the position of photo 63 is determined in coordinate points 631 (300 * 0,300 * 6), 632 (300 * 6,300 * 6), 633 (300 * 0,300 * 10), 634 (300 * 6,300 * 10).With the transverse width is X-axis, is Y-axis, then ((Y with vertical width 631+ i) * 2550+X 631+ 1) to ((Y 631+ i) * 2550+X 632) individual pixel is the pixel of photo 63, wherein i is to (Y from-1 633-Y 631-1) integer.So (2550 * 1800+1) to (2550 * 1800+1800) individual pixels are the 1st line data of photo 63 for in the single image file; (2550 * (1800+1)+1) to (2550 * (1800+1)+1800) individual pixel is the 2nd line data of photo 63, by that analogy, (2550 * (1800+1200-1)+1) to (2550 * (1800+1200-1)+1800) individual pixel is last column data of photo 63.Because each pixel takies 3 bytes, (7650 * 1800+1) to (7650 * 1800+5400) bytes are the 1st line data of photo 63 for in the then single image file; (7560 * (1800+1)+1) to (7560+ (1800+1)+5400) byte is the 2nd line data of photo 63, by that analogy, (7650 * (1800+1200-1)+1) to (7650 * (1800+1200-1)+5400) byte is last column data of photo 63.
The data of photo 61,62 and 63 correspondences are copied to respectively in the data buffer area of image file separately.
Step 408: step 407 is divided each image file that comes out discern, surpass the number of picture elements proportion threshold value of setting if judge the ratio of quantity and image pixel sum of the pixel of the pixel threshold value that is lower than setting in the image file, illustrate that then this image file does not have content; Otherwise illustrate that this image file is meaningful.
Each pixel of image file has pixel value separately, the pixel value of a little higher than scanning background of setting of pixel threshold value, if the number of picture elements ratio of setting is 90%,, represent that then this image file does not have content if the pixel value of the pixel more than 90% of an image file is lower than the pixel threshold value so.
Step 409: the image file that will not have content is given up.
Step 410: prompting user-in file name and storage directory, and filename and the storage directory imported according to the user save image file.
Above embodiment is that the disposing way with 101.6 * 152.4mm shown in Figure 3 (4 * 6 inches) photo is an example, in practice, can carry out photo scanning at different situations with same thinking, for example, change the aligning method of photo and the position of sign thereof, perhaps, put efficient for raising the different size photo is mixed placement.
Specific embodiment 2:
In order to realize method of the present invention, can adopt special-purpose scan templates.Fig. 5 is one, and to aim at scanning area be the template 1 that is used to scan 127 * 177.8mm (5 * 7 inches) photo that the scanning device of 216 * 297mm (8.5 * 11.7 inches) designs.Template 1 comprises specific outer profile size, and specific thickness has empty frame 111 and 112, template model distinguishing mark 121,122,123 and the projection 131 that makes things convenient for the user to pick and place of specific dimensions and position.The model of template determines that by the color combination of three template model distinguishing marks different color combination is represented different template models.
The outer profile size of this template among Fig. 5 is 216 * 297mm, can guarantee that template can lie on the glass scanning flat board, is scanned dull and stereotyped frame simultaneously around the template and limits, and can not be offset; The thickness of this template is 0.4-0.6mm, and is approaching with photo papers thickness, both can limit picture location, can not influence the uniform pressure of the cover plate comparison film of scanning device again; By calculating as can be known, on the scanning flat board of 216 * 297mm, once can scan the photo of two this sizes at most, so two empty frames 111 and 112 are arranged on this template, wherein 111 is non-sealings, but can constitute fixedly photo of sealing frame with the dull and stereotyped frame of scanning, the size of two empty frames is 127 * 177.8mm (5 * 7 inches), the photo that can respectively hold this size, photo can not rotate and move under the effect of frame, and the position distribution of empty frame has satisfied not overlapping requirement of putting photo as much as possible on the scanning flat board; Model distinguishing mark 121,122 and 123 is arranged on this template, each sign area is 10 * 10mm, position on all templates is identical, 3 signs can be black and white or white, the sign color combination of each template is unique, and during use, template has one of sign to face down, scanning device can be current according to the incompatible identification of the color-set of three signs the template model, the color combination of the template model distinguishing mark of the template 1 of Ying Yonging is in the present embodiment: 121-is black, 122-is white, 123-is white; The projection 131 that makes things convenient for the user to pick and place on this template in addition.
Describe use schematic diagram of the present invention in detail referring to Fig. 6, above-mentioned template 1 is placed in the dull and stereotyped frame 2 of scanning, make the external boundary of template 1 be defined, can not rotate and displacement; Place photo 31 and 32 respectively in the empty frame 111 and 112 of template, they are limited by empty frame, can not rotate and displacement; The sign 121,122 and 123 of template is downward, so that scanner identification dots in Fig. 6.
Below in conjunction with Fig. 6 and Fig. 7, be example to scan 127 * 177.8mm (5 * 7 inches) photo, describe the method for scanned photograph of the present invention in detail.Fig. 7 is the method according to the scanned photograph of the embodiment of the invention 2, and as can be seen from Figure 7, this method comprises the steps:
Step 701: positional information, the positional information of template model distinguishing mark and the color of recognition template sign of every photo determining by each group mark on the scan templates that in scanning software, prestores.
For picture location information, as shown in Figure 6, the rectangular area of 4 formations of 311-314 of template 1 is photo 31 regions, and the rectangular area of 4 formations of 321-324 is photo 32 regions.If with summit, the scanner lower left corner 21 is the origin of coordinates, the coordinate of each coordinate points is so: 311 (19.1,297), 312 (19.1,170), 313 (196.9,170), 314 (196.9,297); 321 (19.1,148.5), 322 (19.1,21.5), 323 (196.9,21.5), 324 (196.9,148.5), here, coordinate unit is a millimeter.More than each coordinate points as the characteristic point of picture location, its geometric coordinate is pre-stored in the scanning software.
For the positional information of template model distinguishing mark, by the size of template model distinguishing mark and position as can be known, the zone that coordinate points (0,20), (0,30), (10,30), (10,20) constitute is template model distinguishing mark 121 regions; The zone that coordinate points (0,10), (0,20), (10,20), (10,10) constitute is template model distinguishing mark 122 regions; The zone that coordinate points (0,0), (0,10), (10,10), (10,0) constitute is template model distinguishing mark 123 regions, and here, coordinate unit is a millimeter.More than each coordinate points as the characteristic point of template model distinguishing mark, its geometric coordinate is pre-stored in the scanning software.
The color combination of the template model distinguishing mark of template 1 is: 121-is black, 122-is white, 123-is white.
Step 702: the user at first will be placed on template on the scanning flat board, note having one of sign to face down, placing direction when placing direction will be with coordinates computed is consistent, and template will lie in the dull and stereotyped frame of scanning, and the user is placed on photo 31 and 32 in the frame 111 and 112 of template 1 then.
Step 703: start scanning software, the prompting user selects whether to use " scanning multiple pictures pattern ", if user's selection is then to forward step 704 to; Otherwise enter the conventional sweep flow process.
Step 704: the prompting user selects to scan required resolution and scanning figure place.
Step 705: scanner scans whole scanning area according to the resolution and the scanning figure place of user's input, obtains single image file.
It at first is single image file distribute data buffer area.
Each pixel of scanning gained is stored in the data buffer area of distributing into single image file, the storage of this single image file is to begin to store line by line pixel from scan origin, that is to say, in data buffer area, store the first row pixel earlier, store the second row pixel then, by that analogy, until having stored last column pixel.When the pixel of the every row of storage, this row of storage is stored the pixel of this row on secondary series then at first pixel that lists earlier, by that analogy, and until having stored this row pixel that lists in the end.
For example, the dull and stereotyped scanning area of known scanning is 8.5 * 11.7 inches, if resolution is 300DPI, the scanning figure place is 24 chromoscans, the dull and stereotyped transverse width of scanning is 8.5 inches, so every row has 300 * 8.5=2550 pixel, the dull and stereotyped vertical width of scanning is 11.7 inches, so every row have 300 * 11.7=3510 pixel.Because each pixel is 24, i.e. 3 bytes, so per 2550 * 3=7650 byte is a data line in the single image file, per 3510 * 3=10530 byte is a columns certificate.
Step 706: judge the result that corresponding position is discerned in single image file of template model distinguishing mark 121,122 and 123 in the single image,, then forward step 710 to if unidentifiedly go out sign; Otherwise, determine the template model according to the color combination of the template model distinguishing mark that identifies.
In the present embodiment, the zone at template model distinguishing mark 121 places is a black, and the zone at template model distinguishing mark 122 and 123 places is a white, can determine that then this template is the template of 127 * 177.8mm (5 * 7 inches) photo, be template 1, the positional information of every photo determining of the template that prestores of invocation step 701 1 then.
Step 707: the image file that the scanning resolution of the template model that identifies according to step 706, user's input and scanning figure place partiting step 705 obtain.
Disposing way with 127 * 177.8mm shown in Figure 6 (5 * 7 inches) photo is an example, if resolution is 300DPI, the scanning figure place is 24 chromoscans, divides every photo as follows:
At first be respectively each photo 31 and 32 data buffer area of distributing image file.
For photo 31,1 inch is equivalent to 25.4mm, be coordinate so with the pixel, coordinate points 311 (300 * 19.1/25.4,300 * 170/25.4) then, 312 (300 * 196.9/25.4,300 * 170/25.4), the position of photo 31 is determined in 313 (300 * 19.1/25.4,300 * 297/25.4) and 314 (300 * 196.9/25.4,300 * 297/25.4).With the transverse width is X-axis, is Y-axis, then ((Y with vertical width 311+ i) * 2550+X 311+ 1) to ((Y 311+ i) * 2550+X 312) individual pixel is the pixel of photo 31, wherein i is to (Y from-1 313-Y 311-1) integer.So (2007 * 2550+226+1) to (2007 * 2550+2326) individual pixels are the 1st line data of photo 31 for in the single image file; (2008 * 2550+226+1) to (2008 * 2550+2326) individual pixels are the 2nd line data of photo 31, by that analogy, (2550 * (2008+3508-2008-1)+226+1) to (2550 * (2008+3508-2008-1)+2326) individual pixel be last column data of photo 31.Because each pixel takies 3 bytes, in the then single image file (2007 * 2550 * 3+226 * 3+1) to (2007 * 2550 * 3+2326 * 3) byte be the 1st line data of photo 31; (2008 * 2550 * 3+226 * 3+1) to (2008 * 2550 * 3+2326 * 3) byte be the 2nd line data of photo 31, by that analogy, (2550 * (2008+3508-2008-1) * 3+226 * 3+1) to (2550 * (2008+3508-2008-1) * 3+2326 * 3) byte be last column data of photo 31.
For photo 32, with the pixel is coordinate, coordinate points 321 (300 * 19.1/25.4 then, 300 * 21.5/25.4), 322 (300 * 196.9/25.4,300 * 21.5/25.4), 313 (300 * 19.1/25.4,300 * 148.5/25.4) and 314 (300 * 196.9/25.4,300 * 148.5/25.4) determine the position of photo 32.With the transverse width is X-axis, is Y-axis, then ((Y with vertical width 321+ i) * 2550+X 321+ 1) to ((Y 321+ i) * 2550+X 322) individual pixel is the pixel of photo 32, wherein i is to (Y from-1 323-Y 321-1) integer.So (253 * 2550+226+1) to (253 * 2550+2326) individual pixels are the 1st line data of photo 32 for in the single image file; (254 * 2550+226+1) to (254 * 2550+2326) individual pixels are the 2nd line data of photo 32, by that analogy, (2550 * (254+1754-254-1)+226+1) to (2550 * (254+1754-254-1)+2326) individual pixel be last column data of photo 32.Because each pixel takies 3 bytes, in the then single image file (253 * 2550 * 3+226 * 3+1) to (253 * 2550 * 3+2326 * 3) byte be the 1st line data of photo 32; (254 * 2550 * 3+226 * 3+1) to (254 * 2550 * 3+2326 * 3) byte be the 2nd line data of photo 32, by that analogy, (2550 * (254+1754-254-1) * 3+226 * 3+1) to (2550 * (254+1754-254-1) * 3+2326 * 3) byte be last column data of photo 32.
The data of photo 31 and 32 correspondences are copied to respectively in the data buffer area of image file separately.
Step 708: step 707 is divided each image file that comes out discern, surpass the number of picture elements proportion threshold value of setting if judge the ratio of quantity and image pixel sum of the pixel of the pixel threshold value that is lower than setting in the image file, illustrate that then this image file does not have content; Otherwise illustrate that this image file is meaningful.
Step 709: the image file that will not have content is given up.
Step 710: prompting user-in file name and storage directory, and filename and the storage directory imported according to the user save image file.
More than be for scanning area be that the scanning device of 216 * 297mm (8.5 * 11.7 inches) designs, be used to scan the embodiment of the template 1 of 127 * 177.8mm (5 * 7 inches) photo, in actual use, can be with same thinking at 101.6 * 152.4mm (4 * 6 inches) photo and 88.9 * 127mm (3.5 * 5 inches) photo design specialized template, and distinguished in the distinguishing mark of template part, constitute a cover template, be user-friendly to.
Certainly, also can carry out Mixed Design to template of the present invention, the photo of different size is placed in the template framework, further, the outer profile size of template of the present invention not necessarily will equal to be scanned dull and stereotyped outer profile size, also can be less than being scanned dull and stereotyped outer profile size.In a word, flexible combination according to actual needs.
In concrete implementation process, can carry out suitable improvement, to adapt to the concrete needs of concrete condition to the method according to this invention.Therefore be appreciated that according to the specific embodiment of the present invention just to play an exemplary role, not in order to restriction protection scope of the present invention.For example, also can apply the present invention to the scanning of other original papers such as film; Apply the present invention to the scanning device of other size or type; Apply the present invention to have the equipment complex of scanning element, as multifunctional printing-scanning-duplicating all-in-one etc.; Can be photo prioritized order, and the prompting user imports the number of pictures of single pass; The present invention is mixed application etc. with the algorithm of discerning the photo border automatically.

Claims (15)

1, a kind of method of scanned photograph is characterized in that, this method comprises the steps:
The flag information that A, storage are determined according to scanning flag;
B, the sweep parameter that is provided with according to the user scan whole scanning area, obtain single image file;
C, the sweep parameter that is provided with according to user among the flag information of steps A storage and the step B, the single image file that step B is obtained is divided into image file of at least one respectively corresponding each photo.
2, the method for scanned photograph according to claim 1 is characterized in that, the described scanning flag of steps A is the cue mark on the scanning flat board of scanner.
3, the method for scanned photograph according to claim 1 and 2 is characterized in that, the described flag information of steps A comprises the positional information of at least one photo.
4, the method for scanned photograph according to claim 3 is characterized in that, the positional information of described photo is the locus coordinate of at least one characteristic point of photo.
5, the method for scanned photograph according to claim 1 is characterized in that, the described scanning flag of steps A is a scan templates.
6, the method for scanned photograph according to claim 5 is characterized in that, the described flag information of steps A comprises the positional information of at least one photo.
7, the method for scanned photograph according to claim 6 is characterized in that, the positional information of described photo is the locus coordinate of at least one characteristic point of photo.
8, the method for scanned photograph according to claim 6, it is characterized in that, the described flag information of steps A further comprises the positional information of the model distinguishing mark of scan templates, or the colouring information of the model identification tag information of scan templates and template distinguishing mark.
9, the method for scanned photograph according to claim 8 is characterized in that, the model identification tag information of described scan templates is the locus coordinate of at least one characteristic point of the model distinguishing mark of scan templates.
10, the method for scanned photograph according to claim 1 is characterized in that, the described sweep parameter of step C comprises scanning resolution at least.
11, the method for scanned photograph according to claim 10 is characterized in that, described sweep parameter further comprises the shared byte number of each pixel in the scanning gained image.
12, the method for scanned photograph according to claim 1, it is characterized in that, step C described according to flag information and sweep parameter with single image file be divided at least one respectively the method for the image file of corresponding each photo be: determine the position of the data field of each photo in single image file respectively according to flag information and sweep parameter, the data of the data field of each photo correspondence copied in the data field of image file separately.
13, the method for scanned photograph according to claim 1 is characterized in that, further comprises after the step C: preserve at least one image file that step C divides gained.
14, the method for scanned photograph according to claim 1, it is characterized in that, further comprise after the step C: the image file that whether has or not content in whole image files of determining step C division gained, if, then give up the image file of this no content, and keep other substantial image file; Otherwise, keep whole image files.
Whether 15, the method for scanned photograph according to claim 14 is characterized in that, have or not the method for the image file of content to be in whole image files of described determining step C division gained: pixel threshold value and number of picture elements proportion threshold value are set;
With the pixel value of all pixels of each image file and the pixel threshold of setting in whole image files of step C division gained, if the pixel number that is lower than the pixel threshold value in the image file surpasses the number of picture elements proportion threshold value of setting with the ratio of image pixel sum, judge that then this image file is the image file of no content; Otherwise, judge that this image file is substantial image file.
CNB2004100341708A 2004-04-23 2004-04-23 A method for scanning photographs Expired - Lifetime CN100375497C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100341708A CN100375497C (en) 2004-04-23 2004-04-23 A method for scanning photographs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100341708A CN100375497C (en) 2004-04-23 2004-04-23 A method for scanning photographs

Publications (2)

Publication Number Publication Date
CN1691736A true CN1691736A (en) 2005-11-02
CN100375497C CN100375497C (en) 2008-03-12

Family

ID=35346838

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100341708A Expired - Lifetime CN100375497C (en) 2004-04-23 2004-04-23 A method for scanning photographs

Country Status (1)

Country Link
CN (1) CN100375497C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127814B (en) * 2006-08-18 2010-05-12 虹光精密工业(苏州)有限公司 Method for simultaneously picking up multiple area image and processing device for image
CN104050692A (en) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 Frame display method and frame display device in photograph beautifying process
CN107040689A (en) * 2015-12-01 2017-08-11 夏普株式会社 Image read-out
CN109829516A (en) * 2019-03-07 2019-05-31 苏州达家迎信息技术有限公司 Image processing method and device, equipment and storage medium
CN109902684A (en) * 2019-03-07 2019-06-18 苏州达家迎信息技术有限公司 Information acquisition method and device, equipment and storage medium
CN113071229A (en) * 2021-03-29 2021-07-06 韩佑麟 Desktop formula intelligent printer

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177982B1 (en) * 1997-09-19 2001-01-23 Eastman Kodak Company Template for digitizing small format films
US6292596B1 (en) * 1997-09-19 2001-09-18 Eastman Kodak Company Method for automatic image dependent digitization and processing of small format films
CN1130067C (en) * 1999-08-13 2003-12-03 全友电脑股份有限公司 Scanner capable of identifying the range of scanned object automatically and its identification method
US7295350B2 (en) * 2001-09-10 2007-11-13 Transpacific Ip Ltd Photographic film scanning device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127814B (en) * 2006-08-18 2010-05-12 虹光精密工业(苏州)有限公司 Method for simultaneously picking up multiple area image and processing device for image
CN104050692A (en) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 Frame display method and frame display device in photograph beautifying process
CN104050692B (en) * 2013-03-12 2018-08-17 腾讯科技(深圳)有限公司 Picture display process and device during a kind of beautification of photo
CN107040689A (en) * 2015-12-01 2017-08-11 夏普株式会社 Image read-out
CN107040689B (en) * 2015-12-01 2019-06-18 夏普株式会社 Image read-out
CN109829516A (en) * 2019-03-07 2019-05-31 苏州达家迎信息技术有限公司 Image processing method and device, equipment and storage medium
CN109902684A (en) * 2019-03-07 2019-06-18 苏州达家迎信息技术有限公司 Information acquisition method and device, equipment and storage medium
CN109902684B (en) * 2019-03-07 2022-03-18 苏州达家迎信息技术有限公司 Information acquisition method and device, equipment and storage medium
CN113071229A (en) * 2021-03-29 2021-07-06 韩佑麟 Desktop formula intelligent printer

Also Published As

Publication number Publication date
CN100375497C (en) 2008-03-12

Similar Documents

Publication Publication Date Title
AU2007224085B2 (en) Model- based dewarping method and apparatus
CN1838725A (en) Log data recording device and log data recording method
CN1874395A (en) Image processing apparatus, image processing method, and computer product
US7068855B2 (en) System and method for manipulating a skewed digital image
CN1949818A (en) File printing method, device and system
CN1684493A (en) Image forming apparatus, program therefor, storage medium, and image forming method
CN1691736A (en) A method for scanning photographs
US8284458B2 (en) Image processing apparatus and method for managing documents with output-prohibit area
CN1662033A (en) Image reading apparatus and method of controlling same
CN101035180A (en) Printing method and apparatus, and image processing method and apparatus
CN207442981U (en) Double-side scanning device containing brightness correction component and scanning background component and office machine
CN1945622A (en) Digital water mark embedding and extracting method and device
CN1269343C (en) Image processing method and apparatus, altering examination method and apparatus thereof
CN1835546A (en) Image processing apparatus
CN1804861A (en) Document image geometry fault correction method
CN1317138C (en) Image processing apparatus and control method of the same
CN1623164A (en) Image correction device and image correction method
US7315724B2 (en) Scanning method and an image-processing device including the same
CN1602043A (en) Image processing apparatus
CN1553406A (en) Special template for scanning multi-photo one time and photo automatic dividing method thereof
CN1318814A (en) Image processing device and method, and storage medium
CN100384208C (en) Method for picking up image
CN1146814C (en) Method for automatic detecting location of transparent draft and its device
CN1567977A (en) Automatic correction method for oblique image
JPH02170280A (en) Document inclination corrector

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
CX01 Expiry of patent term

Granted publication date: 20080312

CX01 Expiry of patent term