CN110519480A - A kind of surface flattening method based on laser calibration - Google Patents
A kind of surface flattening method based on laser calibration Download PDFInfo
- Publication number
- CN110519480A CN110519480A CN201910895890.XA CN201910895890A CN110519480A CN 110519480 A CN110519480 A CN 110519480A CN 201910895890 A CN201910895890 A CN 201910895890A CN 110519480 A CN110519480 A CN 110519480A
- Authority
- CN
- China
- Prior art keywords
- image
- pixel
- laser
- draws
- harness
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000009466 transformation Effects 0.000 claims abstract description 11
- 239000011159 matrix material Substances 0.000 claims abstract description 7
- 238000010009 beating Methods 0.000 claims abstract description 4
- 238000013519 translation Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 9
- 238000012546 transfer Methods 0.000 claims description 5
- 238000009738 saturating Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 8
- 238000005452 bending Methods 0.000 description 13
- 230000014616 translation Effects 0.000 description 9
- 238000012360 testing method Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 230000002459 sustained effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/04—Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/387—Composing, repositioning or otherwise geometrically modifying originals
Abstract
The surface flattening method based on laser calibration that the invention discloses a kind of, include the following steps: to place on horizontally disposed scan table it is to be scanned draw this, to be scanned to draw this and be located in image-capture field, laser harness is drawn originally for beating to be scanned;It acquires and to be scanned draw this and draw this image without the first of laser harness and second draw this image with laser harness;It obtains laser harness and draws the pixel planes coordinate in this image second;According to pre-established height pixels tall value corresponding with the pixel relationship table each pixel planes coordinate of inquiry, curved surface amendment is carried out based on the pixel that pixels tall value draws this image to first and draws this image to generate amendment;It this image is drawn to amendment according to pre-established perspective distortion transformation matrix carries out stretching amendment and to export finished product draw this image.The present invention has the characteristics that scan that carry out image effect good.
Description
Technical field
The present invention relates to the technical field of graphics process, in particular to a kind of surface flattening method based on laser calibration.
Background technique
With the development of video acquisition and processing technique, scanner has been upgraded to main base from traditional photosensitive scanner
In the Image Acquisition scanner of new generation of video image acquisition, this Novel scanner passes through the camera being located above scanning object
Scanning can be completed in acquisition page photo, eliminates the traditional scanning mode manually pressed printed matter to be scanned in scanning surface
Bring hard work amount, with the fast huge advantage of scanning speed.
But the scanner of such picture collection class is when scanning has certain thickness scanning object, for example thickness is biggish
Dictionary, textbook etc. can generate huge curvature in the scan image of page in the middle part of books in scanning, cause to scan and
Image effect it is poor, therefore there are certain improvements.
Summary of the invention
In view of the deficiencies of the prior art, the present invention intends to provide a kind of surface flattening based on laser calibration
Method, has the characteristics that scan that carry out image effect good.
Above-mentioned technical purpose of the invention has the technical scheme that
A kind of surface flattening method based on laser calibration is applied to include scan table and setting in scan table side and in up and down
Spaced image collecting device and generating device of laser adjust the laser harness of generating device of laser to adopt positioned at image
The image-capture field edge of acquisition means, the surface flattening method include the following steps:
Placed on horizontally disposed scan table it is to be scanned draw this, to be scanned to draw this and be located in image-capture field, laser harness
This is drawn to be scanned for beating;
It acquires and to be scanned draw this and draw this image without the first of laser harness and second draw this figure with laser harness
Picture;
It obtains laser harness and draws the pixel planes coordinate in this image second;
According to pre-established height pixels tall value corresponding with the pixel relationship table each pixel planes coordinate of inquiry, it is based on pixel
The pixel that height value draws this image to first carries out curved surface amendment and draws this image to generate amendment;
It this image is drawn to amendment according to pre-established perspective distortion transformation matrix carries out stretching amendment and to export finished product draw this image.
Preferably, in obtaining the pixel planes coordinate that laser harness draws in this image second, include the following steps:
The progress gray processing processing of this image, which is drawn, by second draws this image to generate gray scale;
The maximum pixel planes coordinate of laser harness gray value in each column pixel that gray scale draws this image is selected as in light
Heart coordinate yc, according to formula:
= =
Calculate facula mass center coordinate y of the laser harness in each column pixel that gray scale draws this imagec *, wherein yiFor laser rays
Beam pixel planes coordinate shared in each column pixel that gray scale draws this image, IiPicture in this image is drawn in gray scale for laser harness
The gray value of element;
Pixel planes coordinate described in this image is drawn second using facula mass center coordinate as laser harness.
Preferably, pre-established height and pixel relationship table, include the following steps:
It is placed on horizontally disposed scan table and has measured actual height value and shown smooth calibration object;
Acquisition calibration object has the uncalibrated image of laser harness, obtains pixel planes of the laser harness in uncalibrated image and sits
Mark, which is recorded in couples with actual height value;
It is constantly changing the actual height value of calibration object, and reacquires pixel planes of the laser harness in uncalibrated image and sits
Mark is recorded one by one until laser harness all pixels plane coordinates in uncalibrated image has corresponding actual height value
To establish height and pixel relationship table.
Preferably, the pixel for drawing this image to first based on pixels tall value carries out curved surface amendment and draws this figure to generate amendment
Picture includes the following steps:
The each pixels tall value of poll is set as surface transfer to search out minimum pixel height value, by the minimum pixel height value
Zero point value;
Difference between each pixels tall value and zero point value is denoted as shift value, based on shift value inquiry height and pixel relationship
Table is to obtain corresponding translational coordination;
Integral translation amendment is carried out according to the pixel that translational coordination draws corresponding column in this image to first one by one, amendment is generated and draws
This image.
Preferably, pre-established perspective distortion transformation matrix, includes the following steps:
Grid calibration drawing printed in advance is placed on horizontal positioned scan table, wherein grid demarcates drawing at it
Four corners are respectively arranged with calibration point;
The uncalibrated image for obtaining grid calibration drawing, measures the pixel distance in uncalibrated image between calibration point;
Examination network demarcates the actual physics distance between the calibration point of drawing;
Based on the ideal pixel distance between calibration point in uncalibrated image, uncalibrated image is stretched and is adjusted, determined and stretch
Parameter with adjustment is to form perspective distortion transformation matrices.
Preferably, the size of the grid calibration drawing covers whole image acquisition range.
Preferably, the laser emitter is located at the lower section of image collecting device.
Preferably, laser harness uses "-" type laser harness.
In conclusion the present invention having the beneficial effect that in contrast to the prior art
The application acquires by the way that be scanned draw originally to be placed on scan table and to be scanned draws this without the of laser harness
One draws this image and second draws this image with laser harness, by second with laser harness draw this image into
Row processing, and then the available bending degree to be scanned for drawing this, and then this image progress height curved surface can be drawn to first and repaired
It is just corrected with perspective distortion, so that first to draw effect when the finished product that this image ultimately produces draws this image preferable, with preferable
Form is restored and is presented.
Detailed description of the invention
Fig. 1 is the flow diagram of technical solution of the present invention mean camber flattening method;
Fig. 2 is the structural schematic diagram of scanning device in technical solution of the present invention;
Fig. 3 draws the status diagram being originally placed in image-capture field to be to be scanned in technical solution of the present invention;
Fig. 4 is that laser harness is beaten in the status diagram to be scanned drawn on this in technical solution of the present invention;
Fig. 5 is the structural schematic diagram that grid demarcates drawing in technical solution of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The scanner of picture collection class is when scanning has certain thickness scanning object in the prior art, for example thickness is larger
Dictionary, textbook etc., huge curvature can be generated in the scan image of page in the middle part of books in scanning, cause to scan
The image effect come is poor.
Therefore, applicant is directed to above-mentioned technology contents, proposes a kind of surface flattening method based on laser calibration, In
When scanning object has certain curvature, curved image can be flattened, and then the preferable image of output effect.
This method is applied to scanning device, and scanning device includes scan table, image collecting device and generating device of laser.
In one embodiment, scan table is rectangular stage body.In another embodiment, scan table can be smooth desktop.This implementation
Example is not limited scan table concrete shape, it is only necessary to which horizontally disposed and scan table surfacing is presented in scan table.
As shown in Fig. 2, the side of scan table is detachably provided with bracket, support vertical is in the surface of scan table, at one
In embodiment, disassembly mode between bracket and scan table is to be bolted, mounting means this reality between bracket and scan table
Example is applied to be not specifically limited.
When scan table is rectangle, bracket is arranged in the long side of scan table.Therefore, the application will establish plane coordinates
System, the X-axis of plane coordinate system will be parallel to bracket where scan table long side, Y-axis is then parallel to the short side of scan table, and Z axis is then
Perpendicular to the surface of scan table, as a result, in a present embodiment, the starting point of definable X-axis and Y-axis is one of scan table
Angle.
Image collecting device and generating device of laser, image collecting device and generating device of laser are fixedly installed on bracket
In upper and lower interval setting, and image collector, setting in the top of generating device of laser, image collecting device uses video camera, adjusts
The angle of whole image collecting device, so that the central axis of the image-capture field of image collecting device is directed toward in scan table
Heart point.
Generating device of laser is "-" type laser harness for issuing laser harness, laser harness, and adjustment laser fills
The laser harness set is with positioned at the image-capture field edge of image collecting device, i.e. position of the laser harness on scan table is
The position of image-capture field is just disappeared in, and laser harness is parallel to the long side of scan table.
Therefore, it is directed to above-mentioned scanning device, generating device of laser and image collecting device are arranged on bracket, it is only necessary to
Bracket is dismantled from scan table and under, can effectively solve the problem that scanning device is bulky and be not easy to the problem of carrying.
It is worth noting that since image collecting device with a tilt angle draws this progress to be scanned on scan table
Image Acquisition, will lead to image acquisition device to image there are perspective distortions the phenomenon that, and to be scanned ought draw on this
When in the presence of bending page, laser harness is beaten on the bending page to be scanned for drawing this, and laser harness is in image acquisition device
Image in bending state is presented, and laser harness is curved down, and the text being bent on page is bent upwards.
Surface flattening method shown by the application is suitable for the scanning device of the application as a result, can carry out to image
The amendment of bending curve and the amendment of perspective distortion, the image for preferably scanning is presented, specifically, as shown in Figure 1,
Surface flattening method includes the following steps:
Step S100, placed on horizontally disposed scan table it is to be scanned draw this, it is to be scanned to draw this and be located in image-capture field,
Laser harness draws this to be scanned for beating.
According to technical solution defined by step S100, specifically, to be scanned draw originally can be textbook, dictionary, atlas
Equal books, to be scanned to draw this and be located in image-capture field by the way that be scanned draw originally to be placed on scan table, laser harness
It beats and is drawn on this to be scanned, wherein laser harness is beaten in the mode parallel with scan table edge and drawn on this to be scanned.Due to swashing
Light shafts to be located at image-capture field edge, therefore place in image-capture field it is to be scanned draw this, laser harness is one
Surely it can beat and be drawn on this to be scanned.
Step S200 acquires to be scanned draw and originally draws this image and with laser harness without the first of laser harness
Second draw this image.
It is specifically, dynamic by controlling image collecting device to scanning device according to technical solution defined by step S200
Make, image collecting device will to it is to be scanned draw this acquisition first and draw this image and second draw in this image, acquire first and draw this figure
When picture, generating device of laser does not issue laser harness, so that collected first draws this image without laser harness.Acquisition
Second when drawing this image, and generating device of laser issues laser harness and beats on to be scanned draw, so that collected second
This image is drawn with laser rays beam.Second draws the object that this image will be obtained as corrected parameter, and then draws this image to first
It is modified to export final image.
Step S300 obtains laser harness second and draws the pixel planes coordinate in this image.
According to technical solution defined by step S300, specifically, include the following steps:
Step S310 draws the progress gray processing processing of this image for second and draws this image to generate gray scale;
Step S320 selectes the maximum pixel planes coordinate of laser harness gray value in each column pixel that gray scale draws this image and makees
For light centre coordinate yc, according to formula:
= =
Step S330 calculates facula mass center coordinate y of the laser harness in each column pixel that gray scale draws this imagec *, wherein yi
For laser harness pixel planes coordinate shared in each column pixel that gray scale draws this image, IiThis is drawn in gray scale for laser harness
The gray value of pixel in image;
Step S340 draws pixel planes coordinate described in this image second using facula mass center coordinate as laser harness.
According to technical solution defined by step S310 ~ S340, specifically, in conjunction with shown in Fig. 3 and Fig. 4, illustrates and say herein
Bright gray scale is drawn among each column pixel of this image, and wherein direction of the directions such as row, column by taking above-mentioned plane coordinate system as an example is made
For reference.In above-mentioned plane coordinate system, X-coordinate is identical and pixel that Y-coordinate is different is each column picture that gray scale draws this image
Element.And wherein, X-coordinate is different and the identical pixel of Y-coordinate is every row pixel that gray scale draws this image.
Since laser harness is that have certain width, laser harness is in each column pixel that gray scale draws this image
Certain width is occupied, therefore, laser harness will be obtained by above-mentioned calculating and drawn on this image in gray scale specific to exact pixels
Pixel planes coordinate.
Wherein, according to the principle of generating device of laser, cause the laser harness close to generating device of laser thicker brighter, far
It is then thinner weaker from the light of generating device of laser, it draws if laser harness is beaten being easy reflective smooth surface, the phenomenon is more
Add obviously, therefore, the application draws the pixel planes in this image second as laser harness by above-mentioned facula mass center coordinate
Coordinate.
Why need to calculate facula mass center coordinate without directly using light centre coordinate (the maximum pixel of gray value
Point), one side light centre coordinate may be only accurate to position, and when occurring several an equal amount of maximum values simultaneously, it can only
It is optionally one of to be used as light centre coordinate, and facula mass center coordinate can calculate sub-pix progress.Citing carries out below
Illustrate, this image is drawn wherein for a column pixel by gray scale, the gray value of each pixel occupied by laser harness is respectively 0,
0,0,1,2,3,3,2,1,0,0,0, as a result, light centre coordinate of the laser harness in the column pixel can only select the 6th or
Person the 7th (gray value 3), and use in the application after formula calculating, obtained facula mass center coordinate can be calculated
6.5。
Therefore, obtaining facula mass center coordinate will be more accurate in the position that gray scale is drawn on this image for laser rays beam, leads to
It is also more accurate to cross the pixel planes coordinate that facula mass center coordinate is drawn in this image as laser harness second.
Step S400 is high according to pre-established height pixel corresponding with the pixel relationship table each pixel planes coordinate of inquiry
Angle value carries out curved surface amendment based on the pixel that pixels tall value draws this image to first and draws this image to generate amendment.
According to technical solution defined by step S400, specifically, each pixel planes coordinate based on laser harness is looked into
Pre-established height and pixel relationship table are ask, the corresponding pixels tall value of each pixel planes coordinate is obtained.Wherein, pre-established
Height and pixel relationship table, include the following steps:
It is placed on horizontally disposed scan table and has measured actual height value and shown smooth calibration object;
Acquisition calibration object has the uncalibrated image of laser harness, obtains pixel planes of the laser harness in uncalibrated image and sits
Mark, which is recorded in couples with actual height value;
It is constantly changing the actual height value of calibration object, and reacquires pixel planes of the laser harness in uncalibrated image and sits
Mark is recorded one by one until laser harness all pixels plane coordinates in uncalibrated image has corresponding actual height value
To establish height and pixel relationship table.
It is worth noting that the test paper of surfacing can be used in the present embodiment acceptance of the bid earnest body, multiple test paper
It stacks up to obtain the calibration object, can constantly change the actual height of calibration object by extracting or increasing test paper out
Value, wherein the application demarcates object using the form of test paper, and the thickness for testing paper is smaller, thus changes test paper
Quantity is smaller by the amplitude and range that change the actual height value for demarcating object, is demarcating so that laser harness can be beaten
In every row pixel in image Y direction.
As shown in figure 3, i.e. when the calibration object of some fixed height is placed on scan table, due to demarcating the height of object
The elevation angle of degree, the elevation angle of laser generator and image collecting device is all determining, so laser rays beam is being marked
Pixel planes coordinate in physical location and uncalibrated image on earnest body also just secures, the picture of laser harness in uncalibrated image
Plain plane coordinates will not change with moving in parallel for object of calibration, only when the height for demarcating object changes, laser
The pixel planes coordinate of harness can just change.In simple terms, the pixel of laser harness in the Y-axis direction is flat on uncalibrated image
Areal coordinate has and only corresponds to the calibration object of an actual height value.
Therefore, by constantly changing the height of calibration object, it is every in uncalibrated image Y direction that laser rays beam can be obtained
The pixel planes coordinate of row pixel carries out recording to build the physical height value and pixel planes coordinate of calibration object one by one
Vertical height and pixel relationship table.Dominant query is Y axis coordinate in pixel planes coordinate, and the Y-axis in pixel planes coordinate is sat
Mark is associated with actual height value.
The height and pixel relationship table established through the above way, place an arbitrary height in image-capture field
Object, laser harness are beaten on object, and the pixel planes coordinate of laser harness is obtained, and are with pixel relationship table by inquiry height
It can get the actual height value (also referred to as pixels tall value) of object.
It is worth noting that laser harness second draws pixel planes coordinate on this image using light in the application
Spot center-of-mass coordinate, facula mass center coordinate may be the coordinate for being accurate to 0.1 pixel, and height and pixel relationship the table essence established
Really to the coordinate of 1 pixel, so the pixel of available two neighboring pixel planes coordinate is high when calculating pixels tall value
Angle value is carrying out linear weighted function pixels tall value corresponding with that can obtain facula mass center coordinate.
Citing is illustrated below, if facula mass center coordinate is (15,35.2), is sat then obtaining two neighboring pixel planes
It is designated as (15,35) and (15,36), wherein pixel planes coordinate is that the corresponding pixel of coordinate 35 is high in Y direction in (15,35)
Angle value is 24mm, and pixel planes coordinate is 28mm for the corresponding pixels tall value of coordinate 36 in Y direction in (15,36), then
In facula mass center coordinate in Y direction the corresponding pixels tall value of coordinate 35.2 can be calculated (28-24) * 0.2+24=
The accuracy of 24.8mm, the pixels tall value obtained by above-mentioned calculation are higher.
Therefore, after obtaining the corresponding pixels tall value of each pixel planes coordinate of laser harness, it is based on pixels tall
The pixel that value draws this image to first carries out curved surface amendment and draws this image to generate amendment, includes the following steps:
The each pixels tall value of poll is set as surface transfer to search out minimum pixel height value, by the minimum pixel height value
Zero point value;
Difference between each pixels tall value and zero point value is denoted as shift value, based on shift value inquiry height and pixel relationship
Table is to obtain corresponding translational coordination;
Integral translation amendment is carried out according to the pixel that translational coordination draws corresponding column in this image to first one by one, amendment is generated and draws
This image.
There is bending page in the technical solution according to defined by above-mentioned steps, specifically, to be scanned draw on this, and such as to scheme
When direction shown in 4 is placed on scan table, this Y direction to be scanned of drawing is in sustained height, and X-direction is in different height
Bending state is presented.
Collected first draws in this image, and the both sides for being bent page would be desirable surface transfer height, thus needs
The crooked position for being bent page is flattened to the height on bending page both sides.When drawing this image to first and being modified,
It only needs to draw in this image each column pixel for first one by one and carries out integral translation, it can complete first to draw this image surfaces modified
Process, whole translation downwards or whole translate up determine according to the placement angle to be scanned for drawing this.
The application only needs the corresponding each pixels tall value of poll laser harness to find minimum pixel height value as a result,
Minimum pixel height value is usually the both sides to be scanned for drawing this bending page, therefore it may only be necessary to which minimum pixel height value is arranged
For the zero point value of surface transfer, and then the corresponding pixels tall value of each pixel planes coordinate of laser harness and zero point value are carried out
It compares, the bending degree to be scanned for drawing this bending page can be obtained.
Therefore it may only be necessary to which calculating the difference obtained between each pixels tall value and zero point value is denoted as shift value, and it is based on
For shift value inquiry height with pixel relationship table to obtain corresponding translational coordination, the Y-coordinate in the translational coordination is first to draw
The distance of integral translation required for each column pixel in this image.And then institute in this image is drawn to first according to translational coordination one by one
The pixel of respective column carries out integral translation amendment, until first draws all column pixel integral translations completions in this image and repaired with generating
Just draw this image.
Citing is illustrated below, when such as needing to draw that first row pixel is modified in this image to first, it is only necessary to obtain
Pixels tall value corresponding to laser harness first row pixel planes coordinate is taken, is obtained between the pixels tall value and zero point value
Difference (shift value), and then the first translational coordination for drawing this image first row pixel is obtained, it is drawn according to the translational coordination to first
This image first case pixel carry out integral translation, according to aforesaid way successively to first draw secondary series pixel in this image,
Third column pixel and the n-th column pixel are translated, until first draws whole image of this image and completely correct.
Therefore, the first text for drawing in this image on bending page is bent upwards, and draws each column in this image for first
Pixel carries out whole translation downwards, is modified so as to draw the text being bent on page in this image for first, so that the
One, which draws text in this image, keeps unbending form.
Step S500 draws this image to amendment according to pre-established perspective distortion transformation matrix and stretch amendment to export
Finished product draws this image.
According to technical solution defined by step S500, specifically, repaired in the height curved surface for completing to draw this image to first
After this image is drawn in positive formation amendment, this figure is drawn in the amendment and then output finished product for needing to draw amendment this image progress perspective distortion
Picture, wherein pre-established perspective distortion transformation matrix includes the following steps:
Grid calibration drawing printed in advance is placed on horizontal positioned scan table, wherein grid demarcates drawing at it
Four corners are respectively arranged with calibration point;
The uncalibrated image for obtaining grid calibration drawing, measures the pixel distance in uncalibrated image between calibration point;
Examination network demarcates the actual physics distance between the calibration point of drawing;
Based on the ideal pixel distance between calibration point in uncalibrated image, uncalibrated image is stretched and is adjusted, determined and stretch
Parameter with adjustment is to form perspective distortion transformation matrices.
The technical solution according to defined by above-mentioned steps, specifically, grid demarcate drawing as shown in figure 5, grid calibration maps
The size of paper covers whole image acquisition range.
The application is in previous step as a result, it is only necessary to by image collecting device and generating device of laser in scan table
On position installation fix, and keep the height and angle of image collecting device height and angle and generating device of laser
No longer change.And then pre-establish height and pixel relationship table and perspective distortion transformation matrices.
It only needs for be scanned draw originally to be placed on scan table, control image collecting device, which collects, to be scanned draws this
One draw this image and second draw this image after, this image drawn based on second with laser harness obtain to be scanned draw and be bent in this
The bending degree of page, so according to height and pixel relationship table to first draw each column pixel in this image carry out height correction with
Generate amendment draw this image, then according to perspective distortion transformation matrices to amendment draw this image carry out perspective distortion amendment output at
Product draw this image.
Then control image acquisition device next frame needs first drawn originally to be scanned of correcting process to draw this image
This image is drawn with second, can achieve the purpose for recycling processing free of discontinuities, above-mentioned scanning device structure is simple, light, easily
In carrying, and it can effectively ensure that the image effect for scanning and, and scan and carry out image effect height.
The above is only exemplary embodiment of the invention, protection scope and is not intended to limit the present invention, this hair
Bright protection scope is determined by the attached claims.
Claims (8)
1. a kind of surface flattening method based on laser calibration in scan table side and is presented applied to including scan table and setting
Under spaced image collecting device and generating device of laser, adjust the laser harness of generating device of laser be located at image
The image-capture field edge of acquisition device, which is characterized in that the surface flattening method includes the following steps:
Placed on horizontally disposed scan table it is to be scanned draw this, to be scanned to draw this and be located in image-capture field, laser harness
This is drawn to be scanned for beating;
It acquires and to be scanned draw this and draw this image without the first of laser harness and second draw this figure with laser harness
Picture;
It obtains laser harness and draws the pixel planes coordinate in this image second;
According to pre-established height pixels tall value corresponding with the pixel relationship table each pixel planes coordinate of inquiry, it is based on pixel
The pixel that height value draws this image to first carries out curved surface amendment and draws this image to generate amendment;
It this image is drawn to amendment according to pre-established perspective distortion transformation matrix carries out stretching amendment and to export finished product draw this image.
2. a kind of surface flattening method based on laser calibration according to claim 1, which is characterized in that obtaining laser
In the pixel planes coordinate that harness draws in this image second, include the following steps:
The progress gray processing processing of this image, which is drawn, by second draws this image to generate gray scale;
The maximum pixel planes coordinate of laser harness gray value in each column pixel that gray scale draws this image is selected as in light
Heart coordinate yc, according to formula:
= =
Calculate facula mass center coordinate y of the laser harness in each column pixel that gray scale draws this imagec *, wherein yiFor laser rays
Beam pixel planes coordinate shared in each column pixel that gray scale draws this image, IiPicture in this image is drawn in gray scale for laser harness
The gray value of element;
Pixel planes coordinate described in this image is drawn second using facula mass center coordinate as laser harness.
3. a kind of surface flattening method based on laser calibration according to claim 1, which is characterized in that pre-established height
Degree and pixel relationship table, include the following steps:
It is placed on horizontally disposed scan table and has measured actual height value and shown smooth calibration object;
Acquisition calibration object has the uncalibrated image of laser harness, obtains pixel planes of the laser harness in uncalibrated image and sits
Mark, which is recorded in couples with actual height value;
It is constantly changing the actual height value of calibration object, and reacquires pixel planes of the laser harness in uncalibrated image and sits
Mark is recorded one by one until laser harness all pixels plane coordinates in uncalibrated image has corresponding actual height value
To establish height and pixel relationship table.
4. a kind of surface flattening method based on laser calibration according to claim 1, which is characterized in that high based on pixel
The pixel that angle value draws this image to first carries out curved surface amendment and draws this image to generate amendment, includes the following steps:
The each pixels tall value of poll is set as surface transfer to search out minimum pixel height value, by the minimum pixel height value
Zero point value;
Difference between each pixels tall value and zero point value is denoted as shift value, based on shift value inquiry height and pixel relationship
Table is to obtain corresponding translational coordination;
Integral translation amendment is carried out according to the pixel that translational coordination draws corresponding column in this image to first one by one, amendment is generated and draws
This image.
5. a kind of surface flattening method based on laser calibration according to claim 1, which is characterized in that pre-established is saturating
Depending on distortion transform matrix, include the following steps:
Grid calibration drawing printed in advance is placed on horizontal positioned scan table, wherein grid demarcates drawing at it
Four corners are respectively arranged with calibration point;
The uncalibrated image for obtaining grid calibration drawing, measures the pixel distance in uncalibrated image between calibration point;
Examination network demarcates the actual physics distance between the calibration point of drawing;
Based on the ideal pixel distance between calibration point in uncalibrated image, uncalibrated image is stretched and is adjusted, determined and stretch
Parameter with adjustment is to form perspective distortion transformation matrices.
6. a kind of surface flattening method based on laser calibration according to claim 5, which is characterized in that the grid mark
Determine the size covering whole image acquisition range of drawing.
7. a kind of surface flattening method based on laser calibration according to claim 1, which is characterized in that the laser hair
Emitter is located at the lower section of image collecting device.
8. a kind of surface flattening method based on laser calibration according to claim 1, which is characterized in that laser harness is adopted
With "-" type laser harness.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910895890.XA CN110519480B (en) | 2019-09-21 | 2019-09-21 | Curved surface flattening method based on laser calibration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910895890.XA CN110519480B (en) | 2019-09-21 | 2019-09-21 | Curved surface flattening method based on laser calibration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110519480A true CN110519480A (en) | 2019-11-29 |
CN110519480B CN110519480B (en) | 2021-05-07 |
Family
ID=68631737
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910895890.XA Active CN110519480B (en) | 2019-09-21 | 2019-09-21 | Curved surface flattening method based on laser calibration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110519480B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021155575A1 (en) * | 2020-02-07 | 2021-08-12 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Electric device, method of controlling electric device, and computer readable storage medium |
CN114422653A (en) * | 2022-01-19 | 2022-04-29 | 大连成者科技有限公司 | Book flattening line laser rapid calibration method and laser scanner |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104537616A (en) * | 2014-12-20 | 2015-04-22 | 中国科学院西安光学精密机械研究所 | Correction method for fisheye image distortion |
CN105872291A (en) * | 2016-05-31 | 2016-08-17 | 大连成者科技有限公司 | Intelligent internet high-definition scanner with laser correcting function |
CN105979117A (en) * | 2016-04-28 | 2016-09-28 | 大连成者科技有限公司 | Laser line-based curved page image flattening method |
US20170351931A1 (en) * | 2016-06-03 | 2017-12-07 | Adobe Systems Incorporated | System and method for straightening curved page content |
CN107911573A (en) * | 2017-08-31 | 2018-04-13 | 大连成者科技有限公司 | Scan image without calibration flattening method |
CN110060200A (en) * | 2019-03-18 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Perspective image transform method, device and equipment |
-
2019
- 2019-09-21 CN CN201910895890.XA patent/CN110519480B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104537616A (en) * | 2014-12-20 | 2015-04-22 | 中国科学院西安光学精密机械研究所 | Correction method for fisheye image distortion |
CN105979117A (en) * | 2016-04-28 | 2016-09-28 | 大连成者科技有限公司 | Laser line-based curved page image flattening method |
CN105872291A (en) * | 2016-05-31 | 2016-08-17 | 大连成者科技有限公司 | Intelligent internet high-definition scanner with laser correcting function |
US20170351931A1 (en) * | 2016-06-03 | 2017-12-07 | Adobe Systems Incorporated | System and method for straightening curved page content |
CN107911573A (en) * | 2017-08-31 | 2018-04-13 | 大连成者科技有限公司 | Scan image without calibration flattening method |
CN110060200A (en) * | 2019-03-18 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Perspective image transform method, device and equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021155575A1 (en) * | 2020-02-07 | 2021-08-12 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Electric device, method of controlling electric device, and computer readable storage medium |
CN114422653A (en) * | 2022-01-19 | 2022-04-29 | 大连成者科技有限公司 | Book flattening line laser rapid calibration method and laser scanner |
CN114422653B (en) * | 2022-01-19 | 2024-01-30 | 大连成者科技有限公司 | Book flattening line laser rapid calibration method and laser scanner |
Also Published As
Publication number | Publication date |
---|---|
CN110519480B (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105872291B (en) | Intelligent Web high definition scanner with laser-adjusting | |
US10690492B2 (en) | Structural light parameter calibration device and method based on front-coating plane mirror | |
US6361171B1 (en) | Projector with adjustably positioned image plate | |
CN105979117B (en) | Bending page image flattening method based on laser rays | |
CN110519480A (en) | A kind of surface flattening method based on laser calibration | |
CN101697105B (en) | Camera type touch detection positioning method and camera type touch detection system | |
CN110650290B (en) | Active focusing adjustment method for camera | |
CN107486629B (en) | A kind of vision positioning laser marking system bearing calibration | |
CN113160339A (en) | Projector calibration method based on Samm's law | |
WO2023001306A1 (en) | Exposure surface calibration method and apparatus for optical system, calibration measurement method and apparatus, computer device, and storage medium | |
CN108377371A (en) | A kind of method and device of projection image correction | |
CN113610060B (en) | Structure crack sub-pixel detection method | |
CN109948135A (en) | A kind of method and apparatus based on table features normalized image | |
CN110501026A (en) | Camera internal position element caliberating device and method based on array asterism | |
CN108844489A (en) | Using the method and camera calibration method of line laser structured light contour of object | |
CN108592884A (en) | A kind of general linear array satellite core line image generating method | |
CN114359405A (en) | Calibration method of off-axis Samm 3D line laser camera | |
CN110149511A (en) | A kind of distortion correction method, device and display system | |
CN112995521B (en) | High-precision automatic focusing method of linear array camera based on sine stripes | |
CN108742531A (en) | A kind of imaging modification method based on a wide range of OCT scan | |
CN110864878A (en) | Method for detecting display distortion of high-efficiency large-view-field flat display system | |
CN116823605A (en) | Quick image stitching method for low-cost pathological section scanner | |
US3692407A (en) | Method and apparatus for making aerial survey photographs scale | |
CN114581335A (en) | Image-based distortion removal method | |
CN208398818U (en) | Three-dimensional scaling ruler |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Office Building 3001, Haofang Tianji Square, No. 11008 Beihuan Avenue, Nanlian Community, Nantou Street, Nanshan District, Shenzhen City, Guangdong Province, 518000 Patentee after: SHENZHEN BENEW TECHNOLOGY CO.,LTD. Address before: 518000 Xunmei Science and Technology Plaza, No. 3 Kehua Road, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 1101 Patentee before: SHENZHEN BENEW TECHNOLOGY CO.,LTD. |