CN105894586A - Method for extracting single-side page of three-dimensional book model - Google Patents

Method for extracting single-side page of three-dimensional book model Download PDF

Info

Publication number
CN105894586A
CN105894586A CN201610187058.0A CN201610187058A CN105894586A CN 105894586 A CN105894586 A CN 105894586A CN 201610187058 A CN201610187058 A CN 201610187058A CN 105894586 A CN105894586 A CN 105894586A
Authority
CN
China
Prior art keywords
index
formula
value
dough sheet
summit
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
CN201610187058.0A
Other languages
Chinese (zh)
Other versions
CN105894586B (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.)
North China University of Technology
Original Assignee
North China University of Technology
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 North China University of Technology filed Critical North China University of Technology
Priority to CN201610187058.0A priority Critical patent/CN105894586B/en
Publication of CN105894586A publication Critical patent/CN105894586A/en
Application granted granted Critical
Publication of CN105894586B publication Critical patent/CN105894586B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention relates to a method for extracting a single-side page of a three-dimensional book model. The method includes the steps of forming a minimal cuboid enclosing box based on coordinate extreme values of a point cloud on X, Y and Z directions, establishing a point cloud topological structure based on spatial unit grid, solving the blank plane equation expression dividing left and right pages of a book based on geometric characteristics of the book model, plugging the coordinate values of the point cloud into the equation expression, determining the position of the point cloud, extracting the left or right point cloud of the book model, solving a background plane equation expression based on the minimal value and maximum value points of spatial coordinate x and y of the point cloud and a plurality points in the surrounding areas of the four points, plugging the coordinate values of the point cloud into the equation expression for calculation, determining the position of the point cloud, reserving the point cloud above the plane, conducting book opening cutting, and finally updating and storing the new three-dimensional page model file. The invention further provides a method for automation extracting single-side page three-dimensional model from a three-dimensional book model.

Description

A kind of unilateral page extraction of three-dimensional books model
Technical field
The invention belongs to threedimensional model processing technology field, be specifically related to a kind of to that obtain from spatial digitizer or from three The whole three-dimensional books model that dimension module file obtains processes, it is thus achieved that the processing method of the threedimensional model of the unilateral page.
Background technology
Optical character recognition (OCR) currently for distortion file and picture remains a more scabrous problem, due to Being distorted by document and affected, the Text region rate of two dimensional image often has the biggest decline.Owing to OCR character recognition is to pass through The character image obtained is contrasted with the character image in standard character library and is identified, including to document row Multiple links such as cutting, the cutting of character, the calculating of multiple geometric properties of single character picture and contrast.Due to file and picture Distortion, two dimension file and picture in word guild be distorted, word can deform upon, so causing OCR character recognition software Literal line cutting to file and picture makes a mistake often, and the cutting of single character can occur inaccurate situation the most often, and And, the deformation of single character image also makes the value of calculation of its multiple geometric properties, with the standard character image in standard character library The value of calculation generation relatively large deviation of multiple geometric properties, None-identified, or the situation of wrong identification finally occur.
Due to the appearance of 3-D scanning technology, the character recognition problem for distortion file and picture provides a new solution Approach.Can first obtain the threedimensional model of file and picture, i.e. obtain tens0000 and arrive hundreds of thousands, or up to a million some clouds, and The little image of each grid, then by geological information, calculates the coefficient of torsion of the page, carries out three-dimensional to distortion document Virtual planish, thus obtain more straight file and picture, be greatly improved the OCR character identification rate of distortion file and picture.For The virtual image planished is substantially identical to the character image on smooth paper, and therefore, literal line is neat, and Character deformation does not almost have Having, the calculating of multiple geometrical characteristics of character is the most consistent with the geometrical characteristic of the standard character image in standard character library, Therefore character identification rate is greatly improved.
And for two dimension warp image if it is desired to carry out correction and the recovery in space, although each pixel has X, Y-axis 2 Coordinate on individual direction, but owing to lacking the information of degree of depth Z axis, so cannot reason about the picture calculated when distorting the page and being flattened The position of vegetarian refreshments, and that coordinate on getable X, 2 directions of Y-axis be only also after perspective imaging on imaging plane Coordinate, these 2 values be both not equal to the coordinate on X in real world, 2 directions of Y-axis, can not be according to fixed proportion equal to true In the real world, the coordinate on X, 2 directions of Y-axis, therefore relies solely on this 2 coordinate figures, on the straight paper that reasoning and calculation goes out The position of each pixel is the biggest with its actual position often deviation.So needing the data by threedimensional model to make inferences meter Calculate.
To the 3-d recovery of distortion document firstly the need of being syncopated as the threedimensional model of the clean single page, but general feelings Under condition, from spatial digitizer scanning, obtain is the threedimensional model to whole the books opened, and namely includes the three of 2 pages Dimension module, and this model the most inevitably includes that spatial context, fore-edge etc. need not and can be for the most three-dimensional twisted Recovering to bring interference and troublesome some cloud and texture, if by artificial cognition, and craft is syncopated as not comprising background dot cloud and book The threedimensional model of the single page of mouth point cloud, is not only cumbersome, and is difficult to accurately control.
Summary of the invention
It is an object of the invention to for from spatial digitizer or the three-dimensional books model that obtains from three dimensional file, it is proposed that A kind of automatization's extracting method carrying out single-page threedimensional model.The method include a generation for cloud topological structure, the page draw Point, the rejecting of background, the link such as generation of the excision of fore-edge and new threedimensional model file.
Specifically, the present invention adopts the following technical scheme that
A kind of unilateral page extraction of three-dimensional books model, its step includes:
1) the some cloud based on books model coordinate extreme value formation one on three directions of X, Y, Z axis is parallel with coordinate axes Minimum cuboid bounding box, set up some cloud topological structure based on space cell lattice;
2) geometric characteristic based on books model, the empty facial plane equation obtaining the segmentation books left and right page is expressed Formula, brings the coordinate figure of a cloud into equation expression formula, it is judged that the position of some cloud, extracts on the left of books model or the point on right side Cloud;
3) in point cloud model, based on cloud space coordinates x, the minima of y, maximum of points and this four some peripheral regions If territory is done, obtain background plane equation expression formula, the coordinate figure of a cloud brought in equation expression formula and calculates, it is judged that The position of some cloud, retains the some cloud above background plane;
4) to step 3) the left-hand point cloud that obtains, along some cloud right side boundary direction, it is divided into from right side boundary border to the left A plurality of, carry out fore-edge cutting along most one of page left-half point cloud quantity, retain the some cloud on the right side of demarcation line, obtain Books verso cake cloud;To step 3) the right-hand point cloud that obtains also can in like manner alignment processing;
5) the space vertex coordinate index value that amendment planar grains coordinated indexing is corresponding, updates and preserves new three-dimensional page Model file.
The method of the present invention may be used for the image of three-dimensional twisted document and recovers, but is not limited only to the figure of three-dimensional twisted document As recovering, also can fit for other range of application needing the threedimensional model extracting single-page from complete three-dimensional books model With.
Accompanying drawing explanation
Fig. 1 is the Complete three-dimensional books model of the embodiment of the present invention.
Fig. 2 is the books point cloud model of the embodiment of the present invention.
Fig. 3 is the books minimum cuboid bounding box of the embodiment of the present invention.
Fig. 4 is the middle segmentation plane of the left and right page of the embodiment of the present invention.
Fig. 5 is the left-hand point cloud after the middle segmentation of the embodiment of the present invention.
Fig. 6 is the background segment plane of the embodiment of the present invention.
Fig. 7 is the left page point cloud after the background segment of the embodiment of the present invention.
Fig. 8 is the fore-edge cutting planes of the embodiment of the present invention.
Fig. 9 is the left-hand point cloud page after the fore-edge cutting of the embodiment of the present invention.
Figure 10 is the part v section list of the new model file of the embodiment of the present invention.
Figure 11 is the part vt section list of the new model file of the embodiment of the present invention.
Figure 12 is the part f section list of the new model file of the embodiment of the present invention.
Figure 13 is the left page threedimensional model after the final cutting of the embodiment of the present invention.
Detailed description of the invention
Below by embodiment and accompanying drawing, the present invention is described in detail.
For certain three-dimensional books model, as being intended to extract three-dimensional page on the left of it, extraction step based on this method includes:
Step 1: form a minimum parallel with coordinate axes based on cloud coordinate extreme value on three directions of X, Y, Z axis Cuboid bounding box, sets up some cloud topological structure based on space cell lattice.Specifically comprise the following steps that
1-1) read in the related data of books threedimensional model from spatial digitizer or three-dimensional data file, note dough sheet summit is total Number is P, and X, Y, Z axis (the Z axis positive direction substantially books frontal) coordinate of dough sheet summit p is xp、yp、zp, dough sheet top The index value of point is indexvp, U, V axial coordinate on its corresponding texture summit is up、vp(U axle is that texture summit is in texture maps Transverse axis in Xiang, V axle is the texture summit longitudinal axis in texture image), the index value on texture summit is indextp, dough sheet q institute Corresponding dough sheet vertex index values is { indexvq1,indexvq2......indexvqrAnd texture vertex index unit {indextq1,indextq2......indextqr}.Otherwise for each summit p, increase relevant deletion and identify unit flagp, with rope Draw adjustment unit decreasep。flagpWith decreasepInitial value is 0.
Such as, we read in an exemplary three-dimensional document model file example.obj, as shown in Figure 1.Its dough sheet summit Total number P=105895.Its point cloud model is as shown in Figure 2.
1-2) scan each dough sheet summit p (x successivelyp,yp,zp), obtain dough sheet summit minima in the X, Y, Z direction, Big value.If on three directions, min coordinates value is: minx、minyAnd minz, maximum coordinate value among is: maxx、maxyAnd maxz.According to The extreme value in these three direction, calculates the width of sub-cuboid and length subsize according to formula (1):
s u b s i z e = ( max x - min x ) * ( max y - min y ) * ( max z - min z ) P 3 - - - ( 1 )
Such as, for this example model, its dough sheet summit minima in the X, Y, Z direction, maximum be:The result of calculation of formula (1) is: subsize=5.5081213577693333.
1-3) according to minx、miny、minz、maxx、maxyAnd maxz, a cloud is formed a minimum parallel with coordinate axes Cuboid bounding box.And according to sub-cuboid length and width value subsize, cuboid bounding box is pressed tri-coordinates of X, Y, Z Direction marks off L*M*1 sub-cuboid.L, M are given according to formula (2):
L = int ( max x - min x s u b s i z e ) + 1 M = int ( max y - min y s u b s i z e ) + 1 - - - ( 2 )
Wherein, int is bracket function.
Such as, for this example model, minimum cuboid bounding box, as it is shown on figure 3, the result of calculation of its formula (2) is:
1-4) for every sub-cuboid, setting up one group of data cell, storage is positioned at each top of this sub-cuboid respectively The index value index of pointvp.It is (x for D coordinates valuep,yp,zp) some p, then the sub-cuboid in its place is at two coordinates of X, Y Index value on direction (l, m) calculates according to formula (3):
l = int ( x p - min x s u b s i z e ) m = int ( y p - min y s u b s i z e ) - - - ( 3 )
Step 2: geometric characteristic based on books model, obtains the empty facial plane equation table of the segmentation books left and right page Reach formula, bring the coordinate figure of a cloud into equation expression formula, it is judged that the position of some cloud, extract on the left of books model or the point on right side Cloud.Specifically comprise the following steps that
The center cell lattice call number of Y-axis 2-1) is calculated according to formula (4)
m c e n t e r = int ( M 2 ) - - - ( 4 )
Such as, for this example model, the result of calculation of the center cell lattice call number of its Y-axis is: mcenter=34.
2-2) according to the centre coordinate apparent position of formula (5) calculating Y-axis:
ycenter=miny+mcenter*subsize (5)
Such as, for this example model, the result of calculation of the centre coordinate apparent position of its Y-axis is: ycenter=- 3.9651152909207781。
2-3) antithetical phrase cuboid { (0, mcenter),(1,mcenter),......,(c,mcenter),......,(L-1, mcenter), the Z axis coordinate average { zave on each dough sheet summit in calculating sub-cuboid respectively0,zave1,......, zavec,......,zaveL-1, and remember that the X-axis index value of the sub-cuboid in Largest Mean place is maxl.If Go to step 2-4);If otherwiseThen go to step 2-5).
Such as, for this example model, the Search Results of the X-axis index value of its sub-cuboid in Largest Mean place is: Maxl=36,Go to step 2-4).
2-4) scan { zave successivelymaxl,zavemaxl+1,......,zavecl,......,zaveL-2, and depend on according to formula (6) The difference of secondary calculating Z axis coordinate average:
deltacl=zavecl-zaveCl+1 (6)
Obtain first difference value delta less than 0c0(deltac0< 0), and remember zavecc=zavec0
Such as, for this example model, when it obtains first difference value less than 0: c0=44, and assignment: zavecc =-1.8424575415750344
2-5) scan zave successivelymaxl,zavemaxl-1,......,zavecr,......,zave1, and according to formula (7) successively The difference of calculating Z axis coordinate average:
deltacr=zavecr-zavecr-1 (7)
Obtain first difference value delta less than 0c0(deltac0< 0), and remember zavecc=zavec0
2-6) according to formula (8) structure point pc:
(minx+ c0*subsize, miny+ mcenter*subsize,zavecc) (8)
In like manner, order respectively:
m c e n t e r = int ( M 2 ) - e * 4 ...... m c e n t e r = int ( M 2 ) - 2 * 4 m c e n t e r = int ( M 2 ) - 1 * 4 m c e n t e r = int ( M 2 ) + 1 * 4 m c e n t e r = int ( M 2 ) + 2 * 4 ...... m c e n t e r = int ( M 2 ) + e * 4
Bring step 2-3 into), 2-4) or 2-3), 2-5), obtain 2e new value to (c0, zavecc), the value of e typically may be used For [1,5], construct 2e new point (p according to formula (8)c-e,......,pc-2,pc-1,pC+1,pC+2,......,pC+e)。
Such as, for this example model, its value: e=2, (pc-2,pc-1,pc,pC+1,pC+2) structure result be:
p c - 2 = ( - 4.9482285550901395 , - 48.030086153075445 , - 15.508145419034092 ) p c - 1 = ( 6.0680141604485129 , - 25.997600721998140 , - 4.5445390560410237 ) p c = ( 11.576135518217853 , - 3.9651152909207781 , - 1.8424575415750344 ) p c = ( 17.084256875987194 , 18.067370140156527 , - 0.92686784480299267 ) p c + 2 = ( 28.100499591525875 , 40.099855571233888 , 0.59222989777723944 ) .
2-7) to (pc-e,......,pc-2,pc-1,pc,pC+1,pC+2,......,pc+e) calculate central point according to formula (9) pcenter(xpcenter,ypcenter,zpcenter):
pcenter x = Σ c i = c - e c + e x c i 2 e + 1 pcenter y = Σ c i = c - e c + e y c i 2 e + 1 pcenter z = Σ c i = c - e c + e z c i 2 e + 1 - - - ( 9 )
And calculate vector according to formula (10)
w x = x c + e - x c - e w y = y c + e - y c - e w z = z c + e - z c - e - - - ( 10 )
Such as, for this example model, its pcenter (xpcenter,ypcenter,zpcenter) result of calculation be:Its vectorResult of calculation be:
Value 2-8) taking space coordinates X is minxWith maxx, and the value of space coordinates Y is minyWith maxyPoint, and Other each point in this sub-cuboid region, four some places, constitutes the point set { (x of I point altogether0,y0,z0),(x1,y1, z1),......,(xi,yi,zi),......(xI-1,yI-1,zI-1), the value including space coordinates X is minxWith maxx, with And the value of space coordinates Y is minyWith maxy4 points, (xi,yi,zi) be summit i in institute's reconnaissance point set X, Y, Z axis position sit Mark.The normal vector of background plane is calculated according to formula (11)
{ h x = Σ h i = 0 I - 1 ( y h i - y n e x t ( h i ) ) ( z h i + z n e x t ( h i ) ) h y = Σ h i = 0 I - 1 ( z h i - z n e x t ( h i ) ) ( x h i + x n e x t ( h i ) ) h z = Σ h i = 0 I - 1 ( x h i - x n e x t ( h i ) ) ( y h i + y n e x t ( h i ) ) - - - ( 11 )
Wherein next (hi) is the sequence number on next summit of summit hi, calculates according to formula (12):
Next (hi)=(hi+1) mod I (12)
Wherein, mod is complementation function.
Such as, for this example model, its vectorResult of calculation be:
The law vector of segmentation plane 2-9) is calculated according to formula (13) cross product
b → = w → × h → - - - ( 13 )
Such as, for this example model, its vectorFor:
2-10) calculate segmentation plane according to formula (14) and point to the normal vector of X-axis forward
b &prime; x = h x b x &GreaterEqual; 0 b &prime; y = h y b x &GreaterEqual; 0 b &prime; z = h z b x &GreaterEqual; 0 b &prime; x = - h x b x < 0 b &prime; y = - h y b x < 0 b &prime; z = - h z b x < 0 - - - ( 14 )
Such as, for this example model, its vectorResult of calculation be:
2-11) to each dough sheet summit p (xp,yp,zp), calculate each dough sheet summit p (x according to formula (15)p,yp,zp) for segmentation The eigenvalue g of plane relative positioncp:
gcp=b'x(xp-pcenterx)+b'y(yp-pcentery)+b'z(zp-pcenterz) (15)
If left page to be extracted, update flag according to formula (16)p:
{ flag p = 1 g c p > 0 flag p = flag p g c p &le; 0 - - - ( 16 )
If being intended to extract the right side page, update flag according to formula (17)p:
{ flag p = 1 g c p < 0 flag p = flag p g c p &GreaterEqual; 0 - - - ( 17 )
Such as, for this example model, it splits the plane of the left and right page as shown in Figure 4, left part page point cloud after segmentation As shown in Figure 5.
Step 3: in point cloud model, based on cloud space coordinates x, the minima of y, maximum of points and this four some weeks If enclosing region to do, obtaining background plane equation expression formula, the coordinate figure of a cloud being brought in equation expression formula and calculates, sentencing The position of breakpoint cloud, retains the some cloud above plane.Specifically comprise the following steps that
Value 3-1) taking space coordinates X is minxWith maxx, and the value of space coordinates Y is minyWith maxyPoint, and Other each point in this sub-cuboid region, four some places, constitutes the point set ((x of I point altogether0,y0,z0),(x1,y1, z1),......,(xi,yi,zi),......(xI-1,yI-1,zI-1)), the value including space coordinates X is minxWith maxx, with And the value of space coordinates Y is minyWith maxy4 points, (xi,yi,zi) be summit i in institute's reconnaissance point set X, Y, Z axis position sit Mark.To selected point set, calculate the average coordinates a (a of institute's reconnaissance according to formula (18)x,ay,az):
a x = &Sigma; a i = 0 I - 1 x a i I a y = &Sigma; a i = 0 I - 1 y a i I a z = &Sigma; a i = 0 I - 1 z a i I - - - ( 18 )
3-2) calculate background plane according to formula (19) and point to the normal vector of Z axis forward
h &prime; x = h x h z &GreaterEqual; 0 h &prime; y = h y h z &GreaterEqual; 0 h &prime; z = h z h z &GreaterEqual; 0 h &prime; x = - h x h z < 0 h &prime; y = - h y h z < 0 h &prime; z = - h z h z < 0 - - - ( 19 )
Such as, for this example model, the result of calculation of its vector is:
3-3) to each dough sheet summit p (xp,yp,zp), calculate dough sheet summit p (x according to formula (20)p,yp,zp) for background plane The eigenvalue g of position relativelybp:
gbp=h'x(xp-ax)+h'y(yp-ay)+h'z(zp-az) (20)
And update flag according to formula (21)p:
{ flag p = 1 g b p < 0 flag p = flag p g b p &GreaterEqual; 0 - - - ( 21 )
Such as, for this example model, the background plane of its left part page as shown in Figure 6, above the background plane of extraction Some cloud as shown in Figure 7.
Step 4: to step 3) the left-hand point cloud that obtains, along some cloud right side boundary direction, from right side boundary border to the left It is divided into a plurality of, carries out fore-edge cutting along most one of page left-half point cloud quantity, retain the some cloud on the right side of demarcation line, Obtain books verso cake cloud.Can be to step 3) the right-hand point cloud that obtains also can in like manner alignment processing.Specifically comprise the following steps that
To step 3) left page that obtains, along some cloud right side boundary direction, it is divided into D from right side boundary border to the left (0,1 ... d ... 2D-1) article (the 0th article at rightmost, the 2D-1 article at Far Left), along page left-half midpoint The most maxd of cloud quantity carries out fore-edge cutting, retains the some cloud on the right side of segmentation lines, obtains books verso cake cloud.To step Rapid 3) the right side page obtained, along some cloud left border right direction, be divided into from left border border to the right D (0, 1 ... d ... 2D-1) article (the 0th article at Far Left, the 2D-1 article at rightmost), along page right half part point cloud The most maxd of quantity carries out cutting, retains the some cloud on the left of segmentation lines, obtains books recto cake cloud.The value model of D Enclose and may generally be [15,25].Concretely comprising the following steps of described step 4:
4-1) for step 3) page that obtains, remember flagpThe X-axis minima on the dough sheet summit of=0 is min'x, flagp The X-axis maximum on the dough sheet summit of=0 is max'x, calculate every step-length step in the X-axis direction according to formula (22):
s t e p = max &prime; x - min &prime; x 2 D - - - ( 22 )
Such as, for this example model, taking D=20, the result of calculation of every step-length step in the X-axis direction is: Step=5.5455702781677250.
4-2) to (D, D+1 ... d ... 2D-1) each bar, compose number num of available point in bar according to formula (23)dJust Value is 0:
numd=0 (23)
4-3) to (D, D+1 ... d ... 2D-1) each bar, calculate fall in every d number num of available pointd。 Method particularly includes: scan each dough sheet summit p (xp,yp,zp), for step 3) left page that obtains, calculate dough sheet according to formula (24) Summit p (xp,yp,zp) for when preceding article d is relative to the eigenvalue g of positionnpdrWith gnpdl:
{ g n p d r = b &prime; x ( x p - pcenter x + s t e p * d ) + b &prime; y ( y p - pcenter y ) + b &prime; z ( z p - pcenter z ) g n p d l = b &prime; x ( x p - pcenter x + s t e p * ( d + 1 ) ) + b &prime; y ( y p - pcenter y ) + b &prime; z ( z p - pcenter z ) - - - ( 24 )
And update num according to formula (25)d:
Here " ∧ " be " and " relation, " ∨ " is "or" relation.
For step 3) the right side page that obtains, calculate dough sheet summit p (x according to formula (26)p,yp,zp) for when preceding article d phase Eigenvalue g to positionnpdrWith gnpdl:
{ g n p d r = b &prime; x ( x p - pcenter x - s t e p * ( d + 1 ) ) + b &prime; y ( y p - pcenter y ) + b &prime; z ( z p - pcenter z ) g n p d l = b &prime; x ( x p - pcenter x - s t e p * d ) + b &prime; y ( y p - pcenter y ) + b &prime; z ( z p - pcenter z ) - - - ( 26 )
And update num according to formula (27)d:
4-4) to (0,1 ... d ... D-1) each bar, scan each numd, take numdThe bar number of maximum be maxd.For step 3) left page that obtains, to each dough sheet summit p (xp,yp,zp), calculate dough sheet summit p according to formula (28) (xp,yp,zp) for fore-edge segmentation plane relative to the eigenvalue g of positionep:
gep=b'x(xp-pcenterx+step*maxd)+b'y(yp-pcentery)+b'z(zp-pcenterz) (28)
And update flag according to formula (29)p:
{ flag p = flag p g e p > 0 flag p = 1 g e p &le; 0 - - - ( 29 )
For step 3) the right side page that obtains, to each dough sheet summit p (xp,yp,zp), calculate dough sheet summit p according to formula (30) (xp,yp,zp) for fore-edge segmentation plane relative to the eigenvalue g of positionep:
gep=b'x(xp-pcenterx-step*maxd)+b'y(yp-pcentery)+b'z(zp-pcenterz) (30)
And update flag according to formula (31)p:
{ flag p = 1 g e p &GreaterEqual; 0 flag p = flag p g e p < 0 - - - ( 31 )
Such as, for this example model, its scanning result is: maxd=35.The fore-edge cutting planes such as Fig. 8 institute obtained Showing, the some cloud plane after fore-edge cutting is as shown in Figure 9.
Step 5: the space vertex coordinate index value that amendment planar grains coordinated indexing is corresponding, updates and preserves new three-dimensional Page model file.Specifically comprise the following steps that
5-1) press dough sheet vertex index values indexvpOrder from small to large scans each dough sheet summit p (x successivelyp,yp,zp), If flagp=1, the most no longer by its front D coordinates value (xp,yp,zp) it is stored in the vertex list of model file, i.e. v section list.If flagp=0, then by its front D coordinates value (xp,yp,zp) be stored in the vertex list of model file, statistical index value be 1, 2,......j......,indexvpFlag in the dough sheet summit of-1}pNumber s of=1, and calculate according to formula (32)
decrease index v p = s - - - ( 32 )
It is index for index valuevpThe index adjustment unit value on dough sheet summit.
Such as, for this example model, the part v section list finally given is as shown in Figure 10.
It is 5-2) index by texture vertex index valuestpOrder from small to large scans each texture summit p (u successivelyp,vp), And by two-dimensional coordinate value (up,vp) it is stored in the texture image list of coordinates of model file, i.e. vt section list.
Such as, for this example model, the part vt section list finally given is as shown in figure 11.
5-3) scan successively by dough sheet vertex index index forming dough sheetvWith texture vertex index indextConstituted Each dough sheet.
For dough sheet q, its corresponding dough sheet vertex index values is { indexvq1,indexvq2......indexvqr, stricture of vagina Reason vertex index is { indextq1,indextq2......indextqr, if index value { indexvq1, indexvq2......indexvqrIn dough sheet summit corresponding to }, there is certain summit p (xp,yp,zp), its flagp=1, then face The corresponding dough sheet vertex index values { index of sheet qvq1,indexvq2......indexvqrAnd texture vertex index values {indextq1,indextq2......indextqrThe face list of model file of not restoring, i.e. f section list.
Otherwise, for dough sheet q, its corresponding dough sheet vertex index values is { indexvq1, indexvq2......indexvqr, texture vertex index is { indextq1,indextq2......indextqr, if index value {indexvq1,indexvq2......indexvqrIn dough sheet summit corresponding to }, all summit p (xp,yp,zp), all there is flagp =0, then according to the corresponding new index value in dough sheet summit of formula (33) calculating dough sheet q:
index &prime; v q 1 = index v q 1 - decrease index v q 1 index &prime; v q 2 = index v q 2 - decrease index v q 2 ...... ...... index &prime; v q r = index v q r - decrease index v q r - - - ( 33 )
And by dough sheet q its corresponding dough sheet new vertex index { index'vq1,index'vq2......index'vqr, stricture of vagina Reason vertex index { indextq1,indextq2......indextqr, all it is stored in the face list of model file, i.e. f section list.
Such as, for this example model, the part f section list finally given is as shown in figure 12.The attachment stricture of vagina finally given The extraction page of reason is as shown in figure 13.
Though various threedimensional model file formats have difference, but ultimate principle is as above, during the storage of concrete model file, can according to tool Body file actual format is adjusted.
Above-described embodiment is only in order to illustrate the know-why of the present invention, not in order to limit the present invention.The technology of this area Technical scheme can be made equal change and amendment by personnel, and protection scope of the present invention should be with the limit of claims It is set to standard.

Claims (6)

1. the unilateral page extraction of a three-dimensional books model, it is characterised in that comprise the following steps:
1) based on books model some cloud coordinate extreme value on three directions of X, Y, Z axis, formed one parallel with coordinate axes Minimum cuboid bounding box, sets up some cloud topological structure based on space cell lattice;
2) geometric characteristic based on books model, obtains the empty facial plane equation expression formula of the segmentation books left and right page, will The coordinate figure of some cloud brings equation expression formula into, it is judged that the position of some cloud, extracts on the left of books model or the some cloud on right side;
3) in point cloud model, if based on cloud space coordinates x, the minima of y, maximum of points and this four some peripheral regions Do, obtain background plane equation expression formula, the coordinate figure of a cloud is brought in equation expression formula and calculates, it is judged that some cloud Position, retain the some cloud above background plane;
4) to step 3) the left-hand point cloud that obtains, along some cloud right side boundary direction, it is divided into a plurality of from right side boundary border to the left, Carry out fore-edge cutting along most one of page left-half point cloud quantity, retain the some cloud on the right side of demarcation line, obtain books Verso cake cloud;To step 3) the right-hand point cloud the most in like manner alignment processing that obtains;
5) the space vertex coordinate index value that the planar grains coordinated indexing of amendment books model is corresponding, updates and preserves new three Dimension page model file.
2. the method for claim 1, it is characterised in that described step 1) concretely comprise the following steps:
The related data of books threedimensional model, the total number in note dough sheet summit 1-1) is read in from spatial digitizer or three-dimensional data file X, Y, Z axis (Z axis positive direction substantially books frontal) coordinate for P, dough sheet summit p is xp、yp、zp, dough sheet summit Index value is indexvp, U, V axial coordinate on its corresponding texture summit is up、vp, the index value on texture summit is indextp, Dough sheet vertex index values corresponding to dough sheet q is { indexvq1,indexvq2......indexvqrAnd texture vertex index unit {indextq1,indextq2......indextqr};Otherwise for each summit p, increase relevant deletion and identify unit flagp, with rope Draw adjustment unit decreasep;flagpWith decreasepInitial value is 0;
1-2) scan each dough sheet summit p (x successivelyp,yp,zp), obtain dough sheet summit minima in the X, Y, Z direction, maximum Value;If on three directions, min coordinates value is: minx、minyAnd minz, maximum coordinate value among is: maxx、maxyAnd maxz;According to this The extreme value in three directions, calculates the width of sub-cuboid and length subsize according to formula (1):
1-3) according to minx、miny、minz、maxx、maxyAnd maxz, a cloud is formed a minimum parallel with coordinate axes rectangular Body bounding box;And according to sub-cube length subsize, cuboid bounding box is marked off L* by tri-coordinate directions of X, Y, Z M*1 sub-cuboid;L, M are given according to formula (2):
Wherein, int is bracket function;
1-4) for every sub-cuboid, setting up one group of data cell, storage is positioned at each summit of this sub-cuboid respectively Index value indexvp;It is (x for D coordinates valuep,yp,zp) some p, then the sub-cuboid in its place is at two coordinate directions of X, Y On index value (l, m) according to formula (3) calculate:
3. method as claimed in claim 2, it is characterised in that described step 2) concretely comprise the following steps:
The center cell lattice call number of Y-axis 2-1) is calculated according to formula (4)
2-2) according to the centre coordinate apparent position of formula (5) calculating Y-axis:
ycenter=miny+mcenter*subsize (5)
2-3) antithetical phrase cuboid { (0, mcenter),(1,mcenter),......,(c,mcenter),......,(L-1,mcenter), The Z axis coordinate average { zave on each dough sheet summit in calculating sub-cube respectively0,zave1,......,zavec,......, zaveL-1, and remember that the X-axis index value of the sub-cuboid in Largest Mean place is maxl;IfGo to step 2-4);No If thenThen go to step 2-5);
2-4) scan { zave successivelymaxl,zavemaxl+1,......,zavecl,......,zaveL-2, and count successively according to formula (6) The difference of calculation Z axis coordinate average:
deltacl=zavecl-zavecl+1 (6)
Obtain first difference value delta less than 0c0(deltac0< 0), and remember zavecc=zavec0
2-5) scan zave successivelymaxl,zavemaxl-1,......,zavecr,......,zave1, and calculate Z successively according to formula (7) The difference of axial coordinate average:
deltacr=zavecr-zavecr-1 (7)
Obtain first difference value delta less than 0c0(deltac0< 0), and remember zavecc=zavec0
2-6) according to formula (8) structure point pc:
(minx+c0*subsize,miny+mcenter*subsize,zavecc) (8)
In like manner, order respectively:
Bring step 2-3 into), 2-4) or 2-3), 2-5), obtain 2e new value to (c0, zavecc), construct 2e according to formula (8) New point (pc-e,......,pc-2,pc-1,pc+1,pc+2,......,pc+e);
2-7) to (pc-e,......,pc-2,pc-1,pc,pc+1,pc+2,......,pc+e) calculate central point pcenter according to formula (9) (xpcenter,ypcenter,zpcenter):
And calculate vector according to formula (10)
Value 2-8) taking space coordinates X is minxWith maxx, and the value of space coordinates Y is minyWith maxyPoint, and this four Other each point in sub-cuboid region, individual some place, constitutes the point set { (x of I point altogether0,y0,z0),(x1,y1,z1),......, (xi,yi,zi),......(xI-1,yI-1,zI-1), the value including space coordinates X is minxWith maxx, and space coordinates Y Value be minyWith maxy4 points, (xi,yi,zi) it is the X, Y, Z axis position coordinates of summit i in institute's reconnaissance point set;According to formula (11) Calculate the normal vector of background plane
Wherein next (hi) is the sequence number on next summit of summit hi, calculates according to formula (12):
Next (hi)=(hi+1) modI (12)
Wherein, mod is complementation function;
The law vector of segmentation plane 2-9) is calculated according to formula (13) cross product
2-10) calculate segmentation plane according to formula (14) and point to the normal vector of X-axis forward
2-11) to each dough sheet summit p (xp,yp,zp), calculate each table sheet cake p (x according to formula (15)p,yp,zp) for segmentation plane The eigenvalue g of position relativelycp:
gcp=b'x(xp-pcenterx)+b'y(yp-pcentery)+b'z(zp-pcenterz) (15)
If left page to be extracted, update flag according to formula (16)p:
If being intended to extract the right side page, update flag according to formula (17)p:
4. method as claimed in claim 3, it is characterised in that described step 3) concretely comprise the following steps:
Value 3-1) taking space coordinates X is minxWith maxx, and the value of space coordinates Y is minyWith maxyPoint, and this four Other each point in sub-cube region, individual some place, constitutes the point set ((x of I point altogether0,y0,z0),(x1,y1,z1),......, (xi,yi,zi),......(xI-1,yI-1,zI-1)), the value including space coordinates X is minxWith maxx, and space coordinates Y Value be minyWith maxy4 points, (xi,yi,zi) it is the X, Y, Z axis position coordinates of summit i in institute's reconnaissance point set;To institute's reconnaissance Collection, calculates the average coordinates a (a of institute's reconnaissance according to formula (18)x,ay,az):
3-2) calculate background plane according to formula (19) and point to the normal vector of Z axis forward
3-3) to each dough sheet summit p (xp,yp,zp), according to formula (20) computational chart sheet cake p (xp,yp,zp) relative for background plane The eigenvalue g of positionbp:
gbp=h'x(xp-ax)+h'y(yp-ay)+h'z(zp-az) (20)
And update flag according to formula (21)p:
5. method as claimed in claim 4, it is characterised in that described step 4) method particularly includes: to step 3) obtain Left page, along some cloud right side boundary direction, be divided into from right side boundary border to the left D (0,1 ... d ... 2D-1) Bar, wherein the 0th article at rightmost, and the 2D-1 article at Far Left;Along the maxd that page left-half point cloud quantity is most Carry out fore-edge cutting, retain the some cloud on the right side of segmentation lines, obtain books verso cake cloud;To step 3) the right side page that obtains, Along some cloud left border direction, be divided into from left border border to the right D (0,1 ... d ... 2D-1) bar, Qi Zhong Article 0, at Far Left, the 2D-1 article at rightmost;A maxd most along page right half part point cloud quantity carries out cutting, Retain the some cloud on the left of segmentation lines, obtain books recto cake cloud;Described step 4) concretely comprise the following steps:
4-1) for step 3) page that obtains, remember flagpThe X-axis minima on the dough sheet summit of=0 is min'x, flagp=0 The X-axis maximum on dough sheet summit is max'x, calculate every step-length step in the X-axis direction according to formula (22):
4-2) to (D, D+1 ... d ... 2D-1) each bar, compose number num of available point in bar according to formula (23)dInitial value is 0:
numd=0 (23)
4-3) to (D, D+1 ... d ... 2D-1) each bar, calculate fall in every d number num of available pointd;Specifically Method is: scan each dough sheet summit p (xp,yp,zp), for step 3) left page that obtains, according to formula (24) computational chart sheet cake p(xp,yp,zp) for when preceding article d is relative to the eigenvalue g of positionnpdrWith gnpdl:
And update num according to formula (25)d:
Here " ∧ " be " and " relation, " ∨ " is "or" relation;
For step 3) the right side page that obtains, according to formula (26) computational chart sheet cake p (xp,yp,zp) for when the phase para-position of preceding article d The eigenvalue g putnpdrWith gnpdl:
And update num according to formula (27)d:
4-4) to (0,1 ... d ... D-1) each bar, scan each numd, take numdThe bar number of maximum be maxd;Right In step 3) left page that obtains, to each dough sheet summit p (xp,yp,zp), according to formula (28) computational chart sheet cake p (xp,yp,zp) For fore-edge segmentation plane relative to the eigenvalue g of positionep:
gep=b'x(xp-pcenterx+step*maxd)+b'y(yp-pcentery)+b'z(zp-pcenterz) (28)
And update flag according to formula (29)p:
For step 3) the right side page that obtains, to each dough sheet summit p (xp,yp,zp), according to formula (30) computational chart sheet cake p (xp, yp,zp) for fore-edge segmentation plane relative to the eigenvalue g of positionep:
gep=b'x(xp-pcenterx-step*maxd)+b'y(yp-pcentery)+b'z(zp-pcenterz) (30)
And update flag according to formula (31)p:
6. method as claimed in claim 5, it is characterised in that described step 5) concretely comprise the following steps:
5-1) press dough sheet vertex index values indexvpOrder from small to large scans each dough sheet summit p (x successivelyp,yp,zp), if flagp=1, the most no longer by its front D coordinates value (xp,yp,zp) it is stored in the vertex list of model file, i.e. v section list;If flagp=0, then by its front D coordinates value (xp,yp,zp) be stored in the vertex list of model file, statistical index value be 1, 2,......j......,indexvpFlag in the dough sheet summit of-1}pNumber s of=1, and calculate according to formula (32)
It is index for index valuevpThe index adjustment unit value on dough sheet summit;
It is 5-2) index by texture vertex index valuestpOrder from small to large scans each texture summit p (u successivelyp,vp), and will Two-dimensional coordinate value (up,vp) it is stored in the texture image list of coordinates of model file, i.e. vt section list;
5-3) scan successively by dough sheet vertex index index forming dough sheetvWith texture vertex index indextEach constituted Sheet;
For dough sheet q, its corresponding dough sheet vertex index values is { indexvq1,indexvq2......indexvqr, texture top Point index is { indextq1,indextq2......indextqr, if index value { indexvq1,indexvq2......indexvqr} In corresponding dough sheet summit, there is certain summit p (xp,yp,zp), its flagp=1, then the corresponding dough sheet summit of dough sheet q Index value { indexvq1,indexvq2......indexvqrAnd texture vertex index values { indextq1, indextq2......indextqrThe face list of model file of not restoring, i.e. f section list;
Otherwise, for dough sheet q, its corresponding dough sheet vertex index values is { indexvq1,indexvq2......indexvqr, Texture vertex index is { indextq1,indextq2......indextqr, if index value { indexvq1, indexvq2......indexvqrIn dough sheet summit corresponding to }, all summit p (xp,yp,zp), all there is flagp=0, then depend on The corresponding new index value in dough sheet summit of formula (33) calculating dough sheet q:
And by dough sheet q its corresponding dough sheet new vertex index { index'vq1,index'vq2......index'vqr, texture top Point index { indextq1,indextq2......indextqr, all it is stored in the face list of model file, i.e. f section list.
CN201610187058.0A 2016-03-29 2016-03-29 A kind of unilateral page extraction of three-dimensional books model Expired - Fee Related CN105894586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610187058.0A CN105894586B (en) 2016-03-29 2016-03-29 A kind of unilateral page extraction of three-dimensional books model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610187058.0A CN105894586B (en) 2016-03-29 2016-03-29 A kind of unilateral page extraction of three-dimensional books model

Publications (2)

Publication Number Publication Date
CN105894586A true CN105894586A (en) 2016-08-24
CN105894586B CN105894586B (en) 2019-02-22

Family

ID=57013948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610187058.0A Expired - Fee Related CN105894586B (en) 2016-03-29 2016-03-29 A kind of unilateral page extraction of three-dimensional books model

Country Status (1)

Country Link
CN (1) CN105894586B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874916A (en) * 2017-02-20 2017-06-20 广东工业大学 A kind of complicated outside plate point cloud scene comparison extracting method and device
CN107545596A (en) * 2017-08-31 2018-01-05 西安理工大学 A kind of extracting method of point cloud model optimal cutling plane
CN110532973A (en) * 2019-09-03 2019-12-03 海南阿凡题科技有限公司 The identification of pair of pages text image and locating segmentation method based on special anchor point
CN110580476A (en) * 2018-06-11 2019-12-17 夏普株式会社 Character recognition device and character recognition method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181090A1 (en) * 2012-12-20 2014-06-26 Dropbox, Inc. Systems and methods for optimizing file display for users
CN105095894A (en) * 2015-08-06 2015-11-25 磐纹科技(上海)有限公司 Noncontact type book scanning equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181090A1 (en) * 2012-12-20 2014-06-26 Dropbox, Inc. Systems and methods for optimizing file display for users
CN105095894A (en) * 2015-08-06 2015-11-25 磐纹科技(上海)有限公司 Noncontact type book scanning equipment

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
ATSUSHI YAMASHITA ET AL: "Shape Reconstruction and Image Restoration for Non-Flat Surfaces of", 《INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION》 *
CHEW LIM TAN ET AL: "Restoring Warped Document Images through 3D Shape Modeling", 《IEEE TRANS PATTERN ANAL MACH INTELL》 *
ZHENG ZHANG ET AL: "Estimation of 3D Shape of Warped Document Surface for Image Restoration", 《INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION》 *
李宝顺 等: "基于平面提取的点云数据分割算法", 《计算机应用与软件》 *
钱归平 等: "基于散乱点云内部特征的网格重建", 《浙江大学学报(工学版)》 *
魏永超 等: "基于曲面分割的三维点云物体识别", 《光子学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874916A (en) * 2017-02-20 2017-06-20 广东工业大学 A kind of complicated outside plate point cloud scene comparison extracting method and device
CN106874916B (en) * 2017-02-20 2020-04-28 广东工业大学 Complex outside plate point cloud scene contrast extraction method and device
CN107545596A (en) * 2017-08-31 2018-01-05 西安理工大学 A kind of extracting method of point cloud model optimal cutling plane
CN107545596B (en) * 2017-08-31 2020-07-28 西安理工大学 Method for extracting optimal cutting plane of point cloud model
CN110580476A (en) * 2018-06-11 2019-12-17 夏普株式会社 Character recognition device and character recognition method
CN110580476B (en) * 2018-06-11 2023-05-23 夏普株式会社 Character recognition device and character recognition method
CN110532973A (en) * 2019-09-03 2019-12-03 海南阿凡题科技有限公司 The identification of pair of pages text image and locating segmentation method based on special anchor point
CN110532973B (en) * 2019-09-03 2022-02-01 海南阿凡题科技有限公司 Double-page text image identification and positioning segmentation method based on special anchor points

Also Published As

Publication number Publication date
CN105894586B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN105894586A (en) Method for extracting single-side page of three-dimensional book model
CN109657629A (en) A kind of line of text extracting method and device
CN104933755B (en) A kind of stationary body method for reconstructing and system
CN102833460B (en) Image processing method, image processing device and scanner
CN106910242A (en) The method and system of indoor full scene three-dimensional reconstruction are carried out based on depth camera
CN110458957A (en) A kind of three-dimensional image model construction method neural network based and device
CN100550054C (en) A kind of image solid matching method and device thereof
CN103400372B (en) A kind of three-dimensional topology information extracting method described based on Reeb figure
CN107408211A (en) Method for distinguishing is known again for object
CN105574527A (en) Quick object detection method based on local feature learning
CN112686097A (en) Human body image key point posture estimation method
CN105844602A (en) Airborne LIDAR point cloud 3D filtering method based on volume elements
CN107578376A (en) The fork division of distinguished point based cluster four and the image split-joint method of local transformation matrix
CN106504277A (en) A kind of improved ICP points cloud autoegistration method
CN101794459A (en) Seamless integration method of stereoscopic vision image and three-dimensional virtual object
CN107680154A (en) Voxel geometric parameter extracting method based on view
CN105513054A (en) Three-dimensional-scanning-based rubbing method
CN106355646A (en) Surface thinning method, device and system applied to image processing
CN109670516A (en) A kind of image characteristic extracting method, device, equipment and readable storage medium storing program for executing
CN107545602A (en) Building Modeling method under spatial topotaxy constraint based on LiDAR point cloud
CN109766903A (en) A kind of point cloud model SURFACES MATCHING method based on curved surface features
CN105786957A (en) Table sorting method based on cell adjacency relation and depth-first traversal
CN107784284A (en) Face identification method and system
CN108724734A (en) A kind of 3D printing pre-treatment hierarchical algorithm based on dense feature
CN109978043B (en) Target detection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190222

Termination date: 20200329