Invention content
In view of this, a kind of mathematical model generation method of offer of the embodiment of the present invention and device, to improve mathematical model life
At accuracy.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of mathematical model generation method, including:
Obtain the image of the bottom for the transparent panel for being laid with physical model;
From the image of the bottom of the transparent panel, the figure for the bottom for being laid in the physical model on the transparent panel is determined
The installation position of picture and the physical model on the transparent panel;
Determine the mathematical model unit with the images match of the bottom of the physical model;
According to the mathematical model unit and the installation position, mathematical model is generated.
Preferably, described from the image of the bottom of the transparent panel, determine the entity mould being laid on the transparent panel
The installation position of the image of the bottom of type and the physical model on the transparent panel, including:
Image detection is carried out to the image of the bottom of the transparent panel, determines and is wrapped in the image of the bottom of the transparent panel
The each graph image included;
The graph image is determined as to the image of the bottom for the physical model that one is laid on the transparent panel, and will
The graph image is located at the position in the image of the bottom of the transparent panel, be determined as the physical model described transparent
Installation position on plate.
Preferably, the image of the bottom to the transparent panel carries out image detection, determines the bottom of the transparent panel
Image in included each graph image, including:
Image detection is carried out to the image of the bottom of the transparent panel, non-maxima suppression algorithm is based on, determines described
Included each graph image in the image of the bottom of isotropic disk.
Preferably, the mathematical model unit of the determination and the images match of the bottom of the physical model, including:
Determine the target image characteristics of the image of the bottom of the physical model;
From pre-set at least one characteristics of image, search and the matched characteristics of image of the target image characteristics;
By pre-set mathematical model unit corresponding with characteristics of image that is being found, it is determined as and the entity mould
The mathematical model unit of the images match of the bottom of type.
Preferably, described from pre-set at least one characteristics of image, lookup is matched with the target image characteristics
Characteristics of image, including:
For each characteristics of image in pre-set at least one characteristics of image, the characteristics of image and the mesh are calculated
The similarity of logo image feature;
Determine whether the similarity is not less than preset similarity threshold;
If it is determined that the similarity be not less than preset similarity threshold, determine the characteristics of image be find with it is described
The matched characteristics of image of target image characteristics;
If it is determined that the similarity be less than preset similarity threshold, determine the characteristics of image not be find with it is described
The matched characteristics of image of target image characteristics.
Preferably, described that mathematical model is generated according to the mathematical model unit and the installation position, including:
According to installation position of the physical model on the transparent panel, the image of the bottom of the physical model is laid
Matched mathematical model unit generates mathematical model.
A kind of mathematical model generating means, including:
Image acquisition unit, the image of the bottom for obtaining the transparent panel for being laid with physical model;
Physical model determination unit, for from the image of the bottom of the transparent panel, determination to be laid in the transparent panel
On physical model bottom installation position on the transparent panel of image and the physical model;
Mathematical model unit determination unit, for determining the mathematical model with the images match of the bottom of the physical model
Unit;
Mathematical model generation unit, for according to the mathematical model unit and the installation position, generating digital mould
Type.
Preferably, the physical model determination unit, including:
Graph image determination unit, the image for the bottom to the transparent panel carry out image detection, determine described
Included each graph image in the image of the bottom of isotropic disk;
Implementation model determination subelement, for the graph image to be determined as a reality being laid on the transparent panel
The image of the bottom of body Model, and the graph image is located at the transparent panel bottom image in position, be determined as
The installation position on the transparent panel of the physical model.
Preferably, the graph image determination unit, is specifically used for:
Image detection is carried out to the image of the bottom of the transparent panel, non-maxima suppression algorithm is based on, determines described
Included each graph image in the image of the bottom of isotropic disk.
Preferably, the mathematical model unit determination unit, including:
Target image characteristics determination unit, the target image characteristics of the image of the bottom for determining the physical model;
Searching unit, for from pre-set at least one characteristics of image, searching and the target image characteristics
The characteristics of image matched;
Mathematical model unit determination subelement, for by pre-set number corresponding with characteristics of image that is being found
Model unit is determined as the mathematical model unit with the images match of the bottom of the physical model.
A kind of mathematical model generation method of the embodiment of the present application offer and device, can obtain and be laid with the saturating of physical model
The image of the bottom of isotropic disk;From the image of the bottom of transparent panel, the bottom for being laid in the physical model on transparent panel is determined
The installation position of image and physical model on transparent panel;Determine the mathematical model with the images match of the bottom of physical model
Unit;According to mathematical model unit and installation position, mathematical model is generated.The present invention need not divide multiple on transparent panel
Grid, and lay physical model on transparent panel as unit of grid so that the installation position of physical model is more flexible, entity
The bottom figure of model is more various, improves the accuracy of the mathematical model of generation;The prior art is avoided because being with grid
Unit lays physical model, caused by the mathematical model that generates it is inaccurate, can not real embodiment real world ask
Topic.
Embodiment:
Fig. 1 is a kind of mathematical model generation method flow chart provided by the embodiments of the present application.
As shown in Figure 1, this method includes:
S101, acquisition are laid with the image of the bottom of the transparent panel of physical model;
Optionally, the physical model that the present invention uses can there are many forms, such as can be happy high model etc..
Specifically, as shown in Fig. 2, physical model in the prior art 21 can be laid in the transparent panel drawn and have grid 22
On 23.The prior art (e.g., is chosen arbitrary on transparent panel by as unit of grid 22, laying physical model on transparent panel
One grid lays a physical model on the grid), and by the identification to being laid in the physical model on transparent panel,
To generate mathematical model.But the prior art usually there will be because drawing grid on transparent panel, and saturating as unit of grid
Physical model is laid on isotropic disk, and is limited in the flexibility for the physical model laid on transparent panel, and then is caused according to transparent
Mathematical model that the physical model laid on plate is generated is inaccurate, can not real embodiment real world the problem of.
In order to avoid problems of the prior art mentioned above, the embodiment of the present application provides a kind of mathematical model life
At method, Fig. 1 is specifically referred to;A kind of data model generation method provided by the embodiments of the present application on transparent panel to not laying
The mode of physical model is limited, that is, does not lay physical model on transparent panel as unit of grid, in turn so that saturating
The bottom for the physical model that the position of the physical model laid on isotropic disk is more flexible, is laid on transparent panel is more various.It can
Choosing, the mode that physical model is laid on transparent panel is typically that physical model is positioned on transparent panel so that physical model
Bottom be in contact with transparent panel, and then realize on transparent panel lay physical model purpose.That is, by by physical model
The mode that bottom is in contact with transparent panel, physical model is positioned on transparent panel, is realized on transparent panel to physical model
It lays.
Optionally, a kind of mathematical model generation method provided by the embodiments of the present application not to physical model in transparent template
On laying mode limited.That is, a kind of mathematical model generation method provided by the embodiments of the present application is not needed to transparent
Grid is drawn on plate, and lays physical model on transparent panel as unit of grid;But can grid be not directly being drawn
On transparent panel, physical model is laid;In this way, a kind of figure pattern generation method cloth on transparent panel provided by the embodiments of the present application
If when physical model, being not required to limit the position of the physical model of laying and bottom shape, laying the mode of physical model
It can be more flexible.
Optionally, it is a kind of physical model distribution method schematic diagram provided by the embodiments of the present application referring to Fig. 3, such as Fig. 1 institutes
The mathematical model generation method shown can be real based on physical model distribution method as shown in Figure 3 provided by the embodiments of the present application
It is existing.Physical model 32 (physical model 32 is a square), physical model 33 are laid on transparent panel 31 as shown in Figure 3
(physical model 33 is a cylinder) and physical model 34 (physical model 34 is a cuboid).
Correspondingly, a kind of mathematical model generation method provided by the embodiments of the present application, can obtain and be laid with physical model
Transparent panel bottom image.
Optionally, obtaining the mode of the image of the bottom for the transparent panel for being laid with physical model can be:It is being laid with reality
The bottom setting supporting rod 35 of the transparent panel of body Model by the transparent panel support for being laid with physical model to leave ground;Transparent
Image capture device 36 is placed below plate, and the image of the bottom of transparent panel is acquired by image capture device.
It is only the image of the bottom of the transparent panel provided by the embodiments of the present application for obtaining and being laid with physical model above
Preferred embodiment, specifically, the bottom for obtaining the transparent panel for being laid with physical model can be arbitrarily arranged in inventor according to the demand of oneself
The concrete mode of the image in portion, does not limit herein.
S102, from the image of the bottom of transparent panel, determine the image for the bottom for being laid in physical model on transparent panel
And installation position of the physical model on transparent panel;
Optionally, the image of the bottom of the transparent panel for being laid with physical model as shown in Figure 3 got refers to figure
4.As shown in figure 4, showing graph image 42 in the image 41 of the bottom of the transparent panel got, (graph image 42 is to lay
The image of the bottom of physical model 32 on transparent panel), (graph image 43 is the reality being laid on transparent panel to graph image 43
The image of the bottom of body Model 33) and graph image 44 (graph image 44 is the bottom for the physical model 34 being laid on transparent panel
The image in portion).Wherein, it is laying position of the physical model 32 on transparent panel that graph image 42, which is located at the position in image 41,
It sets;It is installation position of the physical model 33 on transparent panel that graph image 43, which is located at the position in image 41,;Graph image 44
Position in image 41 is installation position of the physical model 34 on transparent panel.
Also, the color and shape of graph image 42, the color and shape of graph image 43 can be shown in Fig. 4, with
And the color and shape of graph image 44.
The mathematical model unit of the images match of the bottom of S103, determination and physical model;
Optionally, after determining the image of bottom for the physical model being laid on transparent panel, it need to determine and be laid in
The mathematical model unit of the images match of the bottom of physical model on isotropic disk.
S104, according to mathematical model unit and installation position, generate mathematical model.
In the embodiment of the present application, it is preferred that according to mathematical model unit and installation position, generate mathematical model, packet
It includes:According to installation position of the physical model on transparent panel, the mathematical model list of the images match of the bottom of physical model is laid
Member generates mathematical model.
Optionally, the installation position according to the physical model on transparent panel lays the figure with the bottom of the physical model
As matched mathematical model unit, to generate mathematical model.Referring to Fig. 7 entity is laid with as shown in Figure 3 to be generated
The corresponding mathematical model of transparent panel of model, the mathematical model include mathematical model corresponding with transparent panel 31 region 71,
(the mathematical model list of mathematical model unit 72 with the images match of the bottom of physical model 32 is shown in mathematical model region 71
The position that member 72 is located in mathematical model region 71 can be installation position of the physical model 32 on transparent panel) and entity mould
(mathematical model unit 73 is located at the position in mathematical model region 71 to the mathematical model unit 73 of the images match of the bottom of type 33
Can be installation position of the physical model 33 on transparent panel), and, the number with the images match of the bottom of physical model 34
Model unit 74 (mathematical model unit 74 be located at the position in mathematical model region 71 can be physical model 34 on transparent panel
Installation position).
Optionally, the embodiment of the present application provides a kind of from the image of the bottom of transparent panel, and determination is laid on transparent panel
Physical model bottom installation position on transparent panel of image and physical model method flow diagram, specifically refer to
Fig. 5.
As shown in figure 5, this method includes:
S501, image detection is carried out to the image of the bottom of transparent panel, determined included in the image of the bottom of transparent panel
Each graph image;
Optionally, image detection is carried out to the image of the bottom of transparent panel, determines and is shown in the image of the bottom of transparent panel
Each graph image.In the embodiment of the present application, it is preferred that image detecting technique may be implemented to each included by image
The detection of graph image, the specific implementation in relation to image detecting technique refer to the prior art, do not limit herein.
For example, carrying out image detection to the image of the bottom of transparent panel as shown in Figure 4, it may be determined that go out the bottom of transparent panel
Include 3 graph images (being respectively graph image 42, graph image 43 and graph image 44) in the image in portion.
In the embodiment of the present application, it is preferred that image detection is carried out to the image of the bottom of transparent panel, determines transparent panel
Included each graph image in the image of bottom, including:Image detection is carried out to the image of the bottom of transparent panel, based on non-
Maximum restrainable algorithms determine each graph image included in the image of the bottom of transparent panel.Inhibit method based on maximum
Determine that each graph image included in the image of the bottom of transparent panel can make the graph image got more accurate.
S502, graph image is determined as the physical model that one is laid on transparent panel bottom image, and will figure
Shape image is located at the position in the image of the bottom of transparent panel, is determined as the installation position on transparent panel of physical model.
In the embodiment of the present application, it is preferred that for each graph image of the determination in step S501, by this
Graph image is determined as being laid in the image of the bottom of a physical model on transparent panel, and by the graph image positioned at transparent
Position in the image of the bottom of plate is determined as installation position of the physical model on transparent panel.That is, in step S501
For each determining graph image, corresponding physical model there are one being laid on transparent panel, the bottom of the physical model are determined
The image in portion is the graph image, and installation position of the physical model on transparent panel is the bottom that the graph image is in transparent panel
Position in the image in portion.
For the ease of to a kind of understanding of mathematical model generation method provided by the embodiments of the present application, now implementing to the application
The mathematical model unit of the images match of the bottom of determination and physical model in a kind of mathematical model generation method that example provides
Method describe in detail, refer to Fig. 6.
As shown in fig. 6, this method includes:
S601, determine physical model bottom image target image characteristics;
Optionally, characteristics of image identification is carried out to the image of the bottom of physical model, obtains the bottom of the physical model
The characteristics of image (referred to here as target image characteristics) of image.
Optionally, characteristics of image identification is carried out to the image of the bottom of physical model, obtains the bottom of the physical model
The target image characteristics of image, as:Characteristics of image is carried out to the graph image of the image for the bottom for being determined as the physical model
Identification, obtains the target image characteristics of the image of the bottom of the physical model.
S602, from pre-set at least one characteristics of image, search with the matched characteristics of image of target image characteristics;
In the embodiment of the present application, it is preferred that be previously provided at least one characteristics of image, and pre-set for this
At least one characteristics of image in each characteristics of image for, pre-set mathematical model list corresponding with the characteristics of image
Member.Optionally, it from pre-set at least one characteristics of image, searches and the matched characteristics of image of target image characteristics, packet
It includes:For each characteristics of image in pre-set at least one characteristics of image, it is special with target image to calculate the characteristics of image
The similarity of sign;Determine whether similarity is not less than preset similarity threshold;If it is determined that similarity is not less than preset similar
Spend threshold value, determine the characteristics of image be find with the matched characteristics of image of target image characteristics;If it is determined that similarity is less than
Preset similarity threshold, determine the characteristics of image not be find and the matched characteristics of image of target image characteristics.
In the embodiment of the present application, it is preferred that the concrete numerical value inventor of similarity threshold can appoint according to the demand of oneself
Meaning setting, does not limit herein.
S603, by pre-set mathematical model unit corresponding with characteristics of image that is being found, be determined as and entity
The mathematical model unit of the images match of the bottom of model.
In the embodiment of the present application, it is preferred that finding with after the matched characteristics of image of target image characteristics, obtaining in advance
Mathematical model unit corresponding with this finds characteristics of image being first arranged, and the mathematical model unit got is determined
For (physical model is the physical model in step S601, the image of the image of the bottom of the physical model with physical model
Characterized by above-mentioned target image characteristics) bottom images match mathematical model unit.
The embodiment of the present application provides a kind of mathematical model generation method, can obtain the transparent panel for being laid with physical model
The image of bottom;From the image of the bottom of transparent panel, determine the image for the bottom for being laid in physical model on transparent panel with
And installation position of the physical model on transparent panel;Determine the mathematical model unit with the images match of the bottom of physical model;
According to mathematical model unit and installation position, mathematical model is generated.The present invention need not divide multiple grids on transparent panel,
And physical model is laid on transparent panel as unit of grid so that the installation position of physical model is more flexible, physical model
Bottom figure it is more various, improve the accuracy of the mathematical model of generation;The prior art is avoided because as unit of grid
Physical model is laid, caused by the mathematical model that generates it is inaccurate, can not real embodiment real world the problem of.
Fig. 8 is a kind of structural schematic diagram of mathematical model generating means provided by the embodiments of the present application.
As shown in figure 8, the device includes:
Image acquisition unit 81, the image of the bottom for obtaining the transparent panel for being laid with physical model;
Physical model determination unit 82, for from the image of the bottom of transparent panel, determining the reality being laid on transparent panel
Installation position of the image and physical model of the bottom of body Model on transparent panel;
Mathematical model unit determination unit 83, for determining the mathematical model list with the images match of the bottom of physical model
Member;
Mathematical model generation unit 84, for according to mathematical model unit and installation position, generating mathematical model.
In the embodiment of the present application, it is preferred that physical model determination unit, including:Graph image determination unit, for pair
The image of the bottom of transparent panel carries out image detection, determines each graph image included in the image of the bottom of transparent panel;
Implementation model determination subelement, the figure of the bottom for graph image to be determined as to the physical model that one is laid on transparent panel
Picture, and graph image is located at transparent panel bottom image in position, be determined as the cloth on transparent panel of physical model
If position.
In the embodiment of the present application, it is preferred that graph image determination unit is specifically used for:To the figure of the bottom of transparent panel
As carrying out image detection, it is based on non-maxima suppression algorithm, determines each figure included in the image of the bottom of transparent panel
Image.
In the embodiment of the present application, it is preferred that mathematical model unit determination unit, including:Target image characteristics determine single
Member, the target image characteristics of the image of the bottom for determining physical model;Searching unit is used for from pre-set at least one
In a characteristics of image, search and the matched characteristics of image of target image characteristics;Mathematical model unit determination subelement, being used for will be pre-
Mathematical model unit corresponding with characteristics of image that is being found first being arranged, is determined as the image with the bottom of physical model
The mathematical model unit matched.
In the embodiment of the present application, it is preferred that searching unit, including:Similarity calculated is pre-set for being directed to
At least one characteristics of image in each characteristics of image, calculate the similarity of the characteristics of image and target image characteristics;Compare
Unit, for determining whether similarity is not less than preset similarity threshold;First determination unit, be used for if it is determined that similarity not
Less than preset similarity threshold, determine the characteristics of image be find with the matched characteristics of image of target image characteristics;The
Two determination units, be used for if it is determined that similarity be less than preset similarity threshold, determine the characteristics of image not be find with
The matched characteristics of image of target image characteristics.
In the embodiment of the present application, it is preferred that mathematical model generation unit is specifically used for:According to physical model transparent
Installation position on plate lays the mathematical model unit of the images match of the bottom of physical model, generates mathematical model.
The embodiment of the present application provides a kind of mathematical model generating means, can obtain the transparent panel for being laid with physical model
The image of bottom;From the image of the bottom of transparent panel, determine the image for the bottom for being laid in physical model on transparent panel with
And installation position of the physical model on transparent panel;Determine the mathematical model unit with the images match of the bottom of physical model;
According to mathematical model unit and installation position, mathematical model is generated.The present invention need not divide multiple grids on transparent panel,
And physical model is laid on transparent panel as unit of grid so that the installation position of physical model is more flexible, physical model
Bottom figure it is more various, improve the accuracy of the mathematical model of generation;The prior art is avoided because as unit of grid
Physical model is laid, caused by the mathematical model that generates it is inaccurate, can not real embodiment real world the problem of.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part
It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.