CN108717724A - Measuring method and device - Google Patents
Measuring method and device Download PDFInfo
- Publication number
- CN108717724A CN108717724A CN201810283616.2A CN201810283616A CN108717724A CN 108717724 A CN108717724 A CN 108717724A CN 201810283616 A CN201810283616 A CN 201810283616A CN 108717724 A CN108717724 A CN 108717724A
- Authority
- CN
- China
- Prior art keywords
- target
- dimensional coordinate
- coordinate point
- information
- under test
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/33—Multimode operation in different systems which transmit time stamped messages, e.g. GPS/GLONASS
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The invention discloses a measuring method and a device, wherein the method comprises the following steps: the method comprises the steps that the electronic equipment obtains images of an object to be detected, obtains a three-dimensional coordinate point set of the object to be detected relative to the electronic equipment at a plurality of positions relative to the object to be detected, and obtains coordinate information and angle information of the electronic equipment under a geodetic coordinate system; establishing a 3D model of the object to be measured according to the three-dimensional coordinate point set acquired at each position and the coordinate information and angle information of the three-dimensional coordinate point set under the geodetic coordinate system; receiving a measuring instruction input aiming at a target image, wherein the measuring instruction comprises information of a target pixel point in the target image, determining geodetic coordinates of a target three-dimensional coordinate point corresponding to the target pixel point in a 3D model, and outputting a measuring result according to the geodetic coordinates of the target three-dimensional coordinate point. The method and the device are used for realizing measurement by using the electronic equipment and meeting the measurement requirements of users.
Description
Technical field
The present invention relates to object field of measuring technique more particularly to a kind of measurement method and devices.
Background technology
It is people as the work and life of people has been come into the rapid development of national economy, such as mobile phone electronic equipment
Work and life bring great convenience.People are while enjoyment electronic equipment offers convenience, also to electronic equipment
More stringent requirements are proposed for usage experience.
In real life, user can have measurement demand under many scenes, such as measure the length of object, have
When user be also especially badly in need of these data, but usually user will not carry such as ruler survey tool, can only carry out
It estimates and estimates, be unable to get accurate data, therefore how to utilize portable electronic equipment, realizing to measure becomes one
Urgent problem to be solved.
Invention content
A kind of measurement method of present invention offer and device, are measured using electronic equipment to realize, meet user's
Measurement demand.
In a first aspect, the invention discloses a kind of measurement method, it is applied to electronic equipment, the method includes:
In multiple positions of opposite object under test, the image of the object under test, the object under test are obtained with respect to itself
Three-dimensional coordinate point set, and the coordinate information and angle information being obtained under earth coordinates;
Coordinate information according to the three-dimensional coordinate point set of each position acquisition and certainly under earth coordinates and angle letter
Breath, establishes the three-dimensional 3D models of the object under test;
The measurement instruction for target image input is received, wherein the measurement instruction includes mesh in the target image
The information for marking pixel, determines the geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points in 3D models, and
Measurement result is exported according to the geodetic coordinates of the target three-dimensional coordinate point.
Optionally, the three-dimensional coordinate point set of each position acquisition of the basis and the coordinate letter certainly under earth coordinates
Breath and angle information, the 3D models for establishing the object under test include:
For each position, believe according to the three-dimensional coordinate point set of the position acquisition and from the coordinate under earth coordinates
Breath and angle information, determine that the three-dimensional coordinate point concentrates geodetic coordinates of each three-dimensional coordinate point under earth coordinates;
According to geodetic coordinates of each three-dimensional coordinate point of each position acquisition under earth coordinates, establish described to be measured
The 3D models of object.
Using the measurement method of the application, electronic equipment is swept in multiple position measuring targets of opposite object under test
It retouches, according to three-dimensional coordinate point set of the object under test of each position acquisition with respect to itself, the coordinate certainly under earth coordinates
Information and angle information determine geodetic coordinates of each three-dimensional coordinate point of each position acquisition under earth coordinates, establish
The 3D models of object under test;User can be instructed by the image input test for the object under test that electronic equipment obtains, and such as be passed through
Two target pixel points of object under test are marked in the picture, and mark needs the length measured, such as by marking successively in the picture
Three target pixel points of object under test are noted, mark needs the angle measured;The part of the object under test in image is selected by circle
Target pixel points, mark need the area etc. measured.The test that electronic equipment inputs in the picture according to user instructs
Target pixel points information, determine the big of corresponding with target pixel points target three-dimensional coordinate point in the 3D models of object under test
Ground coordinate, and measurement result is exported according to the geodetic coordinates of target three-dimensional coordinate point, meet the measurement demand of user.
Optionally, the method further includes:
In the reference picture for judging the object pre-saved, if there is the object under test obtained with any position
The target reference picture that image matches;
If so, according to the corresponding dimension of object of the target reference picture, the dimension of object of the object under test is exported.
By the optional mode, the corresponding dimension of object of object under test can be exported, convenient for user according to object under test pair
The dimension of object answered judges whether the measurement result of electronic equipment output is accurate.
Optionally, if in the reference picture of the object pre-saved, there is the determinand obtained with any position
The target reference picture that the image of body matches, the method further include:
According to the corresponding object type of the target reference picture, the object type of the object under test is exported.
By the optional mode, the corresponding object type of object under test can be exported, is convenient for the object of user's measuring targets
Body type is known.
Optionally, wherein further including information to be measured in the measurement instruction;
It is described to include according to the geodetic coordinates of target three-dimensional coordinate point output measurement result:
Judge whether to preserve the corresponding ratio value to be measured;
If not, according to the geodetic coordinates of the target three-dimensional coordinate point, determines measured value and export;
If so, determining the corresponding target proportion value to be measured, sat according to the earth of the target three-dimensional coordinate point
Mark, determines measured value, according to the measured value and the target proportion value, determines target measurement value and export.
By the optional mode, measurement result is known convenient for user.
Optionally, the information of the target pixel points includes the coordinate of the target pixel points;In the determining 3D models
The geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points includes:
It determines in the acquisition position of the target image, the target three-dimensional coordinate point set of acquisition and from earth coordinates
Under coordinate information and angle information;
According to the coordinate of target pixel points in the target image, determine that the target three-dimensional coordinate point is concentrated, and it is described
The corresponding target three-dimensional coordinate point of target pixel points is with respect to the three-dimensional coordinate of itself;It is opposite certainly according to the target three-dimensional coordinate point
The three-dimensional coordinate of body, the coordinate information and angle information under earth coordinates, determine the target three-dimensional coordinate
The geodetic coordinates of point.
By the optional mode, target corresponding with target pixel points in the 3D models of object under test can be accurately determined
The geodetic coordinates of three-dimensional coordinate point ensure that the accuracy of electronic equipment output measurement result.
Second aspect, the invention discloses a kind of measuring devices, are applied to electronic equipment, and described device includes:
Acquisition module, the image, described to be measured in multiple positions of opposite object under test, obtaining the object under test
Object is with respect to the three-dimensional coordinate point set of itself, and the coordinate information and angle information being obtained under earth coordinates;
Determining module, for the three-dimensional coordinate point set according to each position acquisition and the coordinate certainly under earth coordinates
Information and angle information establish the three-dimensional 3D models of the object under test;
Measurement module, for receiving the measurement instruction for target image input, wherein the measurement instruction includes institute
The information for stating target pixel points in target image determines target three-dimensional coordinate point corresponding with the target pixel points in 3D models
Geodetic coordinates, and according to the geodetic coordinates of the target three-dimensional coordinate point export measurement result.
Optionally, the determining module is specifically used for being directed to each position, according to the three-dimensional coordinate point set of the position acquisition
And from the coordinate information and angle information under earth coordinates, determine that the three-dimensional coordinate point concentrates each three-dimensional coordinate point
Geodetic coordinates under earth coordinates;According to the earth of each three-dimensional coordinate point of each position acquisition under earth coordinates
Coordinate establishes the 3D models of the object under test.
Optionally, described device further includes:
Output module, in the reference picture of the object for judging to pre-save, if exist and obtained with any position
The target reference picture that the image of the object under test matches;If so, according to the corresponding object of the target reference picture
Size exports the dimension of object of the object under test.
Optionally, if in the reference picture of the object pre-saved, there is the determinand obtained with any position
The target reference picture that the image of body matches, the output module are additionally operable to according to the corresponding object of the target reference picture
Body type exports the object type of the object under test.
Optionally, in the measurement instruction further include information to be measured;The measurement module, specifically for judging whether
Preserve the corresponding ratio value to be measured;If not, according to the geodetic coordinates of the target three-dimensional coordinate point, determines and measure
It is worth and exports;If so, determining the corresponding target proportion value to be measured, sat according to the earth of the target three-dimensional coordinate point
Mark, determines measured value, according to the measured value and the target proportion value, determines target measurement value and export.
Optionally, the information of the target pixel points includes the coordinate of the target pixel points;The measurement module, specifically
For determining in the acquisition position of the target image, the target three-dimensional coordinate point set of acquisition and under earth coordinates
Coordinate information and angle information;According to the coordinate of target pixel points in the target image, the target three-dimensional coordinate point is determined
It concentrates, target three-dimensional coordinate point corresponding with the target pixel points is with respect to the three-dimensional coordinate of itself;According to target three-dimensional
Coordinate points with respect to the three-dimensional coordinate of itself, the coordinate information and angle information under earth coordinates, determine described in
The geodetic coordinates of target three-dimensional coordinate point.
The invention discloses a kind of measurement method and device, the method includes:Electronic equipment is in opposite object under test
Multiple positions obtain the image of the object under test, the object under test obtains itself with respect to the three-dimensional coordinate point set of itself
Coordinate information under earth coordinates and angle information;According to the three-dimensional coordinate point set of each position acquisition and from the earth
Coordinate information under coordinate system and angle information establish the three-dimensional 3D models of the object under test;It receives defeated for target image
The measurement instruction entered determines 3D models wherein the measurement instruction includes the information of target pixel points in the target image
In target three-dimensional coordinate point corresponding with the target pixel points geodetic coordinates, and according to the big of the target three-dimensional coordinate point
Ground coordinate exports measurement result.Due in embodiments of the present invention, electronic equipment is according to itself multiple position with respect to object under test
It sets, the object under test of acquisition is with respect to the three-dimensional coordinate point set of itself, the coordinate information certainly under earth coordinates and angle letter
Breath, establishes the 3D models of object under test;Electronic equipment is inputted according to user by target image, including target figure
The measurement instruction of the information of target pixel points as in, determines target three-dimensional coordinate point corresponding with target pixel points in 3D models
Geodetic coordinates, and according to the geodetic coordinates of target three-dimensional coordinate point export measurement result, realize and carried out using electronic equipment
It measures, meets the measurement demand of user, improve user experience.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of measurement process schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of mark schematic diagram to be measured provided in an embodiment of the present invention;
Fig. 3 is a kind of measurement result display effect schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of measuring device structural schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, make into one below in conjunction with the attached drawing present invention
Step ground detailed description, it is clear that described embodiment is only a part of the embodiment of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
The present invention is intended to provide a kind of measurement method and device can be applied to electronic equipment, the electronic equipment can be with
Can also be the equipment such as mobile phone, tablet computer for image capture device, such as video camera, wherein being arranged on the electronic equipment
It is useful for the global positioning system (Global obtained to coordinate information of the electronic equipment under earth coordinates
Positioning System, GPS), Beidou satellite navigation system (BeiDou Navigation Satellite System,
BDS), in GLONASS satellite navigation system (GLOBAL NAVIGATION SATELLITE SYSTEM, GLONASS) at least
One kind, and it is provided with Inertial Measurement Unit (the Inertial measurement obtained to electronic equipment angle information
Unit, IMU);In addition, being additionally provided with camera and scanner on the electronic equipment, the specific scanner can be three
Tie up laser scanner or three-dimensional infrared scanner, to meet the needs of user measures object by electronic equipment, tool
Bulk measurement process, is specifically described in the following embodiments.
Embodiment 1:
Fig. 1 is a kind of measurement process schematic diagram provided in an embodiment of the present invention, which includes:
S101:Electronic equipment obtains the image, described to be measured of the object under test in multiple positions of opposite object under test
Object is with respect to the three-dimensional coordinate point set of itself, and the coordinate information and angle information being obtained under earth coordinates.
S102:According to the three-dimensional coordinate point set of each position acquisition and the coordinate information certainly under earth coordinates and angle
Information is spent, three-dimensional (3-dimension, 3D) model of the object under test is established.
In embodiments of the present invention, object under test can be building, automobile, personage, package etc., be carried out in measuring targets
When measurement, need electronic equipment opposite object under test multiple position measuring targets into row information acquisition.Specifically, with
Family can make electronic equipment enter measurement pattern, into measurement by clicking the entity being arranged on electronic equipment/virtual button
After pattern, electronic equipment opens camera and scanner, in multiple positions of opposite object under test, taking the photograph electronic equipment respectively
As head and scanner alignment object under test, electronic equipment obtains the image of object under test by camera;It is treated by scanner
It surveys object to be scanned, obtains the three-dimensional coordinate of each scanning element opposing electronic device of measuring targets scanning, and according to right
The three-dimensional coordinate of each scanning element opposing electronic device of object under test scanning, determines the three-dimensional of object under test opposing electronic device
Coordinate point set;And positioned by GPS/BDS/GLONASS, the location information of electronic equipment is obtained, wherein the electronics is set
Standby location information includes coordinate information of the electronic equipment under earth coordinates;By IMU acquisition electronic equipments in the earth
Angle information under coordinate system, wherein angle information of the electronic equipment under earth coordinates includes that electronic equipment is current
The angle of site, yaw angle and roll angle.
Preferably, the three-dimensional coordinate point set of each position acquisition of basis and the coordinate letter certainly under earth coordinates
Breath and angle information, the 3D models for establishing the object under test include:
For each position, believe according to the three-dimensional coordinate point set of the position acquisition and from the coordinate under earth coordinates
Breath and angle information, determine that the three-dimensional coordinate point concentrates geodetic coordinates of each three-dimensional coordinate point under earth coordinates;
According to geodetic coordinates of each three-dimensional coordinate point of each position acquisition under earth coordinates, establish described to be measured
The 3D models of object.
Specifically, being directed to each position, electronic equipment concentrates each three-dimensional seat according to the three-dimensional coordinate point of the position acquisition
Coordinate information and angle information of the three-dimensional coordinate, electronic equipment of punctuate opposing electronic device under earth coordinates, determining should
The three-dimensional coordinate point of position acquisition concentrates geodetic coordinates of each three-dimensional coordinate point under earth coordinates;And according to each position
The three-dimensional coordinate point of acquisition concentrates geodetic coordinates of each three-dimensional coordinate point under earth coordinates, builds the 3D moulds of object under test
Type.In embodiments of the present invention, each scanning element being scanned according to each position measuring targets is under earth coordinates
Geodetic coordinates, the 3D models for building object under test are the prior arts, are no longer repeated.
S103:The measurement instruction for target image input is received, wherein the measurement instruction includes the target figure
The information of target pixel points as in determines that the earth of target three-dimensional coordinate point corresponding with the target pixel points in 3D models is sat
Mark, and measurement result is exported according to the geodetic coordinates of the target three-dimensional coordinate point.
In embodiments of the present invention, user can be according to the measurement demand of itself measuring targets, in the determinand of acquisition
Selection target image measures the input of instruction in the image of body;Such as object under test is vehicle, if user needs to measure
The length of some car door of vehicle then needs the image for choosing the vehicle comprising the car door as target image;If user needs to survey
The length for measuring the diameter of a certain tire of vehicle then needs the image for choosing the vehicle comprising the tire as target image.
Specifically, electronic equipment, which receives user, is directed to target image, input includes target pixel points in target image
The measurement instruction of information, the information of the target pixel points include target pixel points coordinate and input target pixel points it is suitable
Sequence;Wherein, if user need it is to be measured be length, user can by indicate target image in two target pixel points,
Indicate length to be measured;If the to be measured of user's needs is angle, user, which can pass through, indicates three mesh in target image
Pixel is marked, angle to be measured is indicated;If the to be measured of user's needs is area, user can be selected by circle in image
Target pixel points indicate area etc. to be measured.As shown in Fig. 2, user can be indicated and be waited for by pixel A and pixel B
The length of survey.
When electronic equipment is according to target image is obtained, coordinate information and angle information certainly under earth coordinates,
In the 3D models of object under test, target area corresponding with target image, and the target figure for including according to test instruction are determined
The coordinate of target pixel points in the target image as in determines target corresponding with target pixel points three in the target area
Dimension coordinate point exports result to be measured according to geodetic coordinates of the target three-dimensional coordinate point in 3D models.Specifically, if
To be measured is length, according to the geodetic coordinates of two target three-dimensional coordinate points in the corresponding 3D models of two target pixel points, really
Length between fixed two target three-dimensional coordinate points, as measurement result;If to be measured is angle, according to three object pixels
The geodetic coordinates of three target three-dimensional coordinate points in the corresponding 3D models of point, determines the angle that three target three-dimensional coordinate points are constituted
The number of degrees, as measurement result, wherein three target three-dimensional coordinate points constitute angle, be to be inputted in the picture according to user
What the sequence of three target pixel points determined, no longer repeated;If to be measured is area, the target picture of choosing is enclosed according to user
The geodetic coordinates of target three-dimensional coordinate point in the corresponding 3D models of vegetarian refreshments determines that target three-dimensional coordinate point is shared in 3D models
The area in region, as measurement result.
In addition, if the to be measured of user's needs is volume/volume, user can be by selecting all pictures in target image entirely
Mode of the vegetarian refreshments as target pixel points assigns the measurement instruction for the volume/volume for measuring object under test, electronics to electronic equipment
Equipment receives the measurement instruction for the volume/volume for measuring object under test, according to volume/volume of 3D models, exports determinand
Volume/volume of body.
In embodiments of the present invention, the coordinate according to target pixel points in the target image of object under test, acquisition target
When image, the coordinate information under earth coordinates and angle information, in the 3D models of object under test, determining and object pixel
The corresponding target three-dimensional coordinate point of point is that the prior art is no longer repeated.
Since in embodiments of the present invention, electronic equipment is according to multiple positions of opposite object under test, the determinand of acquisition
Three-dimensional coordinate point set of the body with respect to itself, coordinate information and angle information certainly under earth coordinates, establish object under test
3D models;Electronic equipment is inputted according to user by target image, including target pixel points in target image
Information measurement instruction, the geodetic coordinates of corresponding with target pixel points target three-dimensional coordinate point is determined in 3D models, and
Measurement result is exported according to the geodetic coordinates of target three-dimensional coordinate point, realizes and is measured using electronic equipment, meet use
The measurement demand at family, improves user experience.
Embodiment 2:
It is accurate in order to ensure to determine target three-dimensional coordinate corresponding with target pixel points in target image in 3D models
Property, ensure the precision of measurement result, on the basis of the above embodiments, in embodiments of the present invention, in the determining 3D models
The geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points includes:
It determines in the acquisition position of the target image, the target three-dimensional coordinate point set of acquisition and from earth coordinates
Under coordinate information and angle information;
According to the coordinate of target pixel points in the target image, determine that the target three-dimensional coordinate point is concentrated, and it is described
The corresponding target three-dimensional coordinate point of target pixel points is with respect to the three-dimensional coordinate of itself;It is opposite certainly according to the target three-dimensional coordinate point
The three-dimensional coordinate of body, the coordinate information and angle information under earth coordinates, determine the target three-dimensional coordinate
The geodetic coordinates of point.
Specifically, electronic equipment can also determine and target image phase according to the coordinate of target pixel points in target image
With position is obtained, the target three-dimensional coordinate point of acquisition is concentrated, target three-dimensional coordinate point corresponding with target pixel points;According to target
Three-dimensional coordinate point with respect to itself three-dimensional coordinate and when obtaining target three-dimensional coordinate point set, from seat under earth coordinates
Information and angle information are marked, geodetic coordinates of the target three-dimensional coordinate point under earth coordinates is determined, so that it is determined that going out 3D models
In target three-dimensional coordinate point corresponding with target pixel points geodetic coordinates.In embodiments of the present invention according to the figure of object under test
The coordinate of pixel as in, determines acquisition identical with image position, the three-dimensional coordinate point of object under test scanning is concentrated and
The corresponding three-dimensional coordinate point of the pixel is the prior art, is no longer repeated.
Embodiment 3:
Whether measurement result is accurately judged for the ease of user, on the basis of the above embodiments, in the present invention
In embodiment, the method further includes:
In the reference picture for judging the object pre-saved, if there is the object under test obtained with any position
The target reference picture that image matches;
If so, according to the corresponding dimension of object of the target reference picture, the dimension of object of the object under test is exported.
In embodiments of the present invention, the reference picture for pre-saving object in the electronic device is corresponding with dimension of object
Relationship, wherein dimension of object include the information such as the length, surface area, volume/volume of object.In order to further ensure measuring
Accuracy, electronic equipment judges the reference picture of object pre-saved after the image of multiple position acquisition objects under test
In, if there is the target reference picture that the image of the object under test obtained with any position matches;If it does, by target
The corresponding dimension of object of reference picture, the size as object under test exports, for reference, defeated to electronic equipment convenient for user
Whether the measurement result gone out is accurately judged.
Preferably, in order to reduce the occupancy to electronic equipment memory space, the reference picture and dimension of object of the object
Correspondence can also pre-save in the server, electronic equipment after the image of multiple position acquisition objects under test, will
The image of the object under test of multiple position acquisitions is sent to server, and server judges the reference picture of the object pre-saved
In, if there is the target reference picture to match in the image of the object under test of any position acquisition with electronic equipment;If
In the presence of dimension of object corresponding with target reference picture being sent to electronic equipment, electronic equipment exports dimension of object.
In addition, knowing for the ease of user's measuring targets type, on the basis of the various embodiments described above, in the present invention
In embodiment, the reference picture of object and the correspondence of object type are also pre-saved, if the object pre-saved
In reference picture, there is the target reference picture that the image of the object under test obtained with any position matches, the side
Method further includes:
According to the corresponding object type of the target reference picture, the object type of the object under test is exported.
Specifically, the reference picture of object and the correspondence of object type are also pre-saved in the database, if
In the presence of the target reference picture that the image of the object under test obtained with any position matches, electronic equipment can also export and mesh
The corresponding object type of reference picture is marked, convenient for knowing for user's measuring targets type.
Embodiment 4:
Measurement result is known for the ease of user, on the basis of the various embodiments described above, in embodiments of the present invention
Further include information to be measured in the wherein described measurement instruction;
It is described to include according to the geodetic coordinates of target three-dimensional coordinate point output measurement result:
Judge whether to preserve the corresponding ratio value to be measured;
If not, according to the geodetic coordinates of the target three-dimensional coordinate point, determines measured value and export;
If so, determining the corresponding target proportion value to be measured, sat according to the earth of the target three-dimensional coordinate point
Mark, determines measured value, according to the measured value and the target proportion value, determines target measurement value and export.
It is to be measured in embodiments of the present invention to include:Length, angle, area, volume/volume etc., specifically, in order to prevent
Because measurement result numerical value is excessive or too small influence user's knowing to measurement result to be measured, in embodiments of the present invention, also
It can be directed to the corresponding ratio value of setting partly or entirely to be measured in advance, such as to be measured:Length, Set scale value are 1:
3, wherein the ratio value is the ratio of electronic equipment output valve and actual value.Electronic equipment is according to target three-dimensional coordinate point
When geodetic coordinates exports measurement result, electronic equipment judges whether to preserve described to be measured corresponding first against to be measured
Ratio value determines measured value and exports if not, according to the geodetic coordinates of target three-dimensional coordinate point;If so, being waited for described in determining
Corresponding target proportion value is measured, according to the geodetic coordinates of target three-dimensional coordinate point, determines measured value, and according to the measured value
And the target proportion value, it determines target measurement value and exports.
Fig. 3 is a kind of measurement result display effect schematic diagram provided in an embodiment of the present invention, wherein to be measured is pixel C
To the corresponding length of pixel D, the length unit of output be cm, the length of output is 161.76, the ratio of output valve and actual value
Example value is 1:3, object type is automobile.
Embodiment 5:
Fig. 4 is a kind of measuring device structural schematic diagram provided in an embodiment of the present invention, which includes:
Acquisition module 41, in multiple positions of opposite object under test, obtaining the image of the object under test, described waiting for
Object is surveyed with respect to the three-dimensional coordinate point set of itself, and the coordinate information and angle information being obtained under earth coordinates;
Determining module 42, for the three-dimensional coordinate point set according to each position acquisition and the seat certainly under earth coordinates
Information and angle information are marked, the three-dimensional 3D models of the object under test are established;
Measurement module 43, for receiving the measurement instruction for target image input, wherein the measurement instruction includes
The information of target pixel points in the target image determines target three-dimensional coordinate corresponding with the target pixel points in 3D models
The geodetic coordinates of point, and measurement result is exported according to the geodetic coordinates of the target three-dimensional coordinate point.
The determining module 42 is specifically used for being directed to each position, according to the three-dimensional coordinate point set of the position acquisition and certainly
Coordinate information under earth coordinates and angle information determine that the three-dimensional coordinate point concentrates each three-dimensional coordinate point big
Geodetic coordinates under ground coordinate system;It is sat according to the earth of each three-dimensional coordinate point of each position acquisition under earth coordinates
Mark, establishes the 3D models of the object under test.
Described device further includes:
Output module 44, in the reference picture of the object for judging to pre-save, if exist and any position obtains
The object under test the target reference picture that matches of image;If so, according to the corresponding object of the target reference picture
Body size exports the dimension of object of the object under test.
If in the reference picture of the object pre-saved, there is the image of the object under test obtained with any position
The target reference picture to match, the output module 44 are additionally operable to according to the corresponding object type of the target reference picture,
Export the object type of the object under test.
Further include information to be measured in the measurement instruction;The measurement module 43, specifically for judging whether to preserve
There is the corresponding ratio value to be measured;If not, according to the geodetic coordinates of the target three-dimensional coordinate point, determine measured value simultaneously
Output;If so, determine the corresponding target proportion value to be measured, according to the geodetic coordinates of the target three-dimensional coordinate point,
It determines measured value, according to the measured value and the target proportion value, determines target measurement value and export.
The information of the target pixel points includes the coordinate of the target pixel points;The measurement module 43, is specifically used for
It determines in the acquisition position of the target image, the target three-dimensional coordinate point set of acquisition and the coordinate certainly under earth coordinates
Information and angle information;According to the coordinate of target pixel points in the target image, determine that the target three-dimensional coordinate point is concentrated,
Target three-dimensional coordinate point corresponding with the target pixel points is with respect to the three-dimensional coordinate of itself;According to the target three-dimensional coordinate point
Opposite three-dimensional coordinate, the coordinate information and angle information under earth coordinates of itself, determines the target three
The geodetic coordinates of dimension coordinate point.
Embodiment 6:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 5, packet
It includes:Processor 51, communication interface 52, memory 53 and communication bus 54, wherein processor 51, communication interface 52, memory 53
Mutual communication is completed by communication bus 54;
It is stored with computer program in the memory 53, when described program is executed by the processor 51 so that institute
It states processor 51 and executes following steps:
In multiple positions of opposite object under test, the image of the object under test, the object under test are obtained with respect to itself
Three-dimensional coordinate point set, and the coordinate information and angle information being obtained under earth coordinates;
Coordinate information according to the three-dimensional coordinate point set of each position acquisition and certainly under earth coordinates and angle letter
Breath, establishes the three-dimensional 3D models of the object under test;
The measurement instruction for target image input is received, wherein the measurement instruction includes mesh in the target image
The information for marking pixel, determines the geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points in 3D models, and
Measurement result is exported according to the geodetic coordinates of the target three-dimensional coordinate point.
Electronic equipment provided in an embodiment of the present invention be specifically as follows desktop computer, portable computer, smart mobile phone,
Tablet computer, personal digital assistant (Personal Digital Assistant, PDA), network side equipment etc..
The communication bus 54 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral
Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus 54 can be divided into address bus, data/address bus, controlling bus etc..For
Convenient for indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface 52 is for the communication between above-mentioned electronic equipment and other equipment.
Memory 53 may include random access memory (Random Access Memory, RAM), can also include non-
Volatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory 53
It can also be at least one storage device for being located remotely from aforementioned processor 51.
Above-mentioned processor 51 can be general processor, including central processing unit, network processing unit (Network
Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), special collection
At circuit, field programmable gate array either other programmable logic device, discrete gate or transistor logic, discrete hard
Part component etc..
Embodiment 7:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of computer storage readable storage medium
Matter is stored with the computer program that can be executed by electronic equipment in the computer readable storage medium, when described program is in institute
It states when being run on electronic equipment so that the electronic equipment realizes following steps when executing:
In multiple positions of opposite object under test, the image of the object under test, the object under test are obtained with respect to itself
Three-dimensional coordinate point set, and the coordinate information and angle information being obtained under earth coordinates;
Coordinate information according to the three-dimensional coordinate point set of each position acquisition and certainly under earth coordinates and angle letter
Breath, establishes the three-dimensional 3D models of the object under test;
The measurement instruction for target image input is received, wherein the measurement instruction includes mesh in the target image
The information for marking pixel, determines the geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points in 3D models, and
Measurement result is exported according to the geodetic coordinates of the target three-dimensional coordinate point.
The invention discloses a kind of measurement method and device, the method includes:Electronic equipment is in opposite object under test
Multiple positions obtain the image of the object under test, the object under test obtains itself with respect to the three-dimensional coordinate point set of itself
Coordinate information under earth coordinates and angle information;According to the three-dimensional coordinate point set of each position acquisition and from the earth
Coordinate information under coordinate system and angle information establish the three-dimensional 3D models of the object under test;It receives defeated for target image
The measurement instruction entered determines 3D models wherein the measurement instruction includes the information of target pixel points in the target image
In target three-dimensional coordinate point corresponding with the target pixel points geodetic coordinates, and according to the big of the target three-dimensional coordinate point
Ground coordinate exports measurement result.Due in embodiments of the present invention, electronic equipment is according to itself multiple position with respect to object under test
It sets, the object under test of acquisition is with respect to the three-dimensional coordinate point set of itself, the coordinate information certainly under earth coordinates and angle letter
Breath, establishes the 3D models of object under test;Electronic equipment is inputted according to user by target image, including target figure
The measurement instruction of the information of target pixel points as in, determines target three-dimensional coordinate point corresponding with target pixel points in 3D models
Geodetic coordinates, and according to the geodetic coordinates of target three-dimensional coordinate point export measurement result, realize and carried out using electronic equipment
It measures, meets the measurement demand of user, improve user experience.
For systems/devices embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of measurement method, which is characterized in that it is applied to electronic equipment, the method includes:
In multiple positions of opposite object under test, the image of the object under test, the object under test are obtained with respect to itself three
Dimension coordinate point set, and the coordinate information and angle information being obtained under earth coordinates;
According to the three-dimensional coordinate point set of each position acquisition and from the coordinate information and angle information under earth coordinates, build
Found the three-dimensional 3D models of the object under test;
The measurement instruction for target image input is received, wherein the measurement instruction includes target picture in the target image
The information of vegetarian refreshments, determines the geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points in 3D models, and according to
The geodetic coordinates of the target three-dimensional coordinate point exports measurement result.
2. the method as described in claim 1, which is characterized in that the three-dimensional coordinate point set of each position acquisition of basis and from
Coordinate information under earth coordinates and angle information, the 3D models for establishing the object under test include:
For each position, according to the three-dimensional coordinate point set of the position acquisition and under earth coordinates coordinate information and
Angle information determines that the three-dimensional coordinate point concentrates geodetic coordinates of each three-dimensional coordinate point under earth coordinates;
According to geodetic coordinates of each three-dimensional coordinate point of each position acquisition under earth coordinates, the object under test is established
3D models.
3. the method as described in claim 1, which is characterized in that the method further includes:
In the reference picture for judging the object pre-saved, if there is the image of the object under test obtained with any position
The target reference picture to match;
If so, according to the corresponding dimension of object of the target reference picture, the dimension of object of the object under test is exported.
4. the method as described in claim 1 or 3, which is characterized in that if in the reference picture of the object pre-saved, exist
The target reference picture that the image of the object under test obtained with any position matches, the method further include:
According to the corresponding object type of the target reference picture, the object type of the object under test is exported.
5. the method as described in claim 1, which is characterized in that further include information to be measured in the wherein described measurement instruction;
It is described to include according to the geodetic coordinates of target three-dimensional coordinate point output measurement result:
Judge whether to preserve the corresponding ratio value to be measured;
If not, according to the geodetic coordinates of the target three-dimensional coordinate point, determines measured value and export;
If so, determining the corresponding target proportion value to be measured, according to the geodetic coordinates of the target three-dimensional coordinate point, really
Location survey magnitude determines target measurement value and exports according to the measured value and the target proportion value.
6. the method as described in claim 1, which is characterized in that the information of the target pixel points includes the target pixel points
Coordinate;The geodetic coordinates of target three-dimensional coordinate point corresponding with the target pixel points includes in the determining 3D models:
It determines in the acquisition position of the target image, the target three-dimensional coordinate point set of acquisition and under earth coordinates
Coordinate information and angle information;
According to the coordinate of target pixel points in the target image, determine that the target three-dimensional coordinate point is concentrated, with the target
The corresponding target three-dimensional coordinate point of pixel is with respect to the three-dimensional coordinate of itself;According to the target three-dimensional coordinate point with respect to itself
Three-dimensional coordinate, the coordinate information and angle information under earth coordinates, determine the target three-dimensional coordinate point
Geodetic coordinates.
7. a kind of measuring device, which is characterized in that be applied to electronic equipment, described device includes:
Acquisition module, in multiple positions of opposite object under test, obtaining the image of the object under test, the object under test
The opposite three-dimensional coordinate point set of itself, and the coordinate information and angle information being obtained under earth coordinates;
Determining module, for the three-dimensional coordinate point set according to each position acquisition and the coordinate information certainly under earth coordinates
And angle information, establish the three-dimensional 3D models of the object under test;
Measurement module, for receiving the measurement instruction for target image input, wherein the measurement instruction includes the mesh
The information of target pixel points in logo image determines the big of target three-dimensional coordinate point corresponding with the target pixel points in 3D models
Ground coordinate, and measurement result is exported according to the geodetic coordinates of the target three-dimensional coordinate point.
8. device as claimed in claim 7, which is characterized in that the determining module is specifically used for being directed to each position, according to
The three-dimensional coordinate point set of the position acquisition and from coordinate information and angle information under earth coordinates, determines the three-dimensional
Coordinate points concentrate geodetic coordinates of each three-dimensional coordinate point under earth coordinates;It is sat according to each of each position acquisition is three-dimensional
Geodetic coordinates of the punctuate under earth coordinates establishes the 3D models of the object under test.
9. device as claimed in claim 7, which is characterized in that described device further includes:
Output module, in the reference picture of the object for judging to pre-save, if exist described in obtaining with any position
The target reference picture that the image of object under test matches;If so, according to the corresponding dimension of object of the target reference picture,
Export the dimension of object of the object under test.
10. the device as described in claim 7 or 9, which is characterized in that if in the reference picture of the object pre-saved, deposit
In the target reference picture that the image of the object under test obtained with any position matches, the output module is additionally operable to
According to the corresponding object type of the target reference picture, the object type of the object under test is exported.
11. device as claimed in claim 7, which is characterized in that further include information to be measured in the measurement instruction;It is described
Measurement module, specifically for judging whether to preserve the corresponding ratio value to be measured;If not, according to target three-dimensional
The geodetic coordinates of coordinate points determines measured value and exports;If so, determine the corresponding target proportion value to be measured, according to
The geodetic coordinates of the target three-dimensional coordinate point, determines measured value, according to the measured value and the target proportion value, determines mesh
Mapping magnitude simultaneously exports.
12. device as claimed in claim 7, which is characterized in that the information of the target pixel points includes the object pixel
The coordinate of point;The measurement module is specifically used for determining in the acquisition position of the target image, the target three-dimensional coordinate of acquisition
Point set and from coordinate information and angle information under earth coordinates;According to the seat of target pixel points in the target image
Mark determines that the target three-dimensional coordinate point is concentrated, target three-dimensional coordinate point corresponding with the target pixel points with respect to itself
Three-dimensional coordinate;According to the target three-dimensional coordinate point with respect to the three-dimensional coordinate of itself, the seat under earth coordinates
Information and angle information are marked, determines the geodetic coordinates of the target three-dimensional coordinate point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810283616.2A CN108717724A (en) | 2018-04-02 | 2018-04-02 | Measuring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810283616.2A CN108717724A (en) | 2018-04-02 | 2018-04-02 | Measuring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108717724A true CN108717724A (en) | 2018-10-30 |
Family
ID=63898877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810283616.2A Pending CN108717724A (en) | 2018-04-02 | 2018-04-02 | Measuring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108717724A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111986250A (en) * | 2019-05-22 | 2020-11-24 | 顺丰科技有限公司 | Object volume measuring method, device, measuring equipment and storage medium |
CN112945085A (en) * | 2020-08-03 | 2021-06-11 | 深圳市明源云链互联网科技有限公司 | Measurement method and electronic device |
CN119245555A (en) * | 2024-12-05 | 2025-01-03 | 中交一公局第六工程有限公司 | A method for measuring building construction |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103278090A (en) * | 2013-05-14 | 2013-09-04 | 陕西科技大学 | Visual measurement method for volume of irregular object |
CN104424630A (en) * | 2013-08-20 | 2015-03-18 | 华为技术有限公司 | Three-dimension reconstruction method and device, and mobile terminal |
US20150300814A1 (en) * | 2014-04-16 | 2015-10-22 | Lenovo (Beijing) Limited | Method and electronic device for measuring a distance |
CN106705837A (en) * | 2015-11-17 | 2017-05-24 | 华为技术有限公司 | Gesture-based object measurement method and device |
CN206311073U (en) * | 2016-12-15 | 2017-07-07 | 中国科学院深圳先进技术研究院 | Portable three-dimensional scanning means and mobile terminal |
-
2018
- 2018-04-02 CN CN201810283616.2A patent/CN108717724A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103278090A (en) * | 2013-05-14 | 2013-09-04 | 陕西科技大学 | Visual measurement method for volume of irregular object |
CN104424630A (en) * | 2013-08-20 | 2015-03-18 | 华为技术有限公司 | Three-dimension reconstruction method and device, and mobile terminal |
US20150300814A1 (en) * | 2014-04-16 | 2015-10-22 | Lenovo (Beijing) Limited | Method and electronic device for measuring a distance |
CN106705837A (en) * | 2015-11-17 | 2017-05-24 | 华为技术有限公司 | Gesture-based object measurement method and device |
CN206311073U (en) * | 2016-12-15 | 2017-07-07 | 中国科学院深圳先进技术研究院 | Portable three-dimensional scanning means and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111986250A (en) * | 2019-05-22 | 2020-11-24 | 顺丰科技有限公司 | Object volume measuring method, device, measuring equipment and storage medium |
CN112945085A (en) * | 2020-08-03 | 2021-06-11 | 深圳市明源云链互联网科技有限公司 | Measurement method and electronic device |
CN119245555A (en) * | 2024-12-05 | 2025-01-03 | 中交一公局第六工程有限公司 | A method for measuring building construction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9429438B2 (en) | Updating map data from camera images | |
JP6950832B2 (en) | Position coordinate estimation device, position coordinate estimation method and program | |
US20130095855A1 (en) | Method, System, and Computer Program Product for Obtaining Images to Enhance Imagery Coverage | |
CN109425365A (en) | Method, apparatus, equipment and the storage medium of Laser Scanning Equipment calibration | |
CN102575933A (en) | System that generates map image integration database and program that generates map image integration database | |
EP2469230A1 (en) | Updating map data from camera images | |
CN109246611A (en) | System and method for using three dimensional local information to improve positioning service | |
CN110501712A (en) | For determining the method, apparatus, equipment and medium of position and attitude data | |
KR102097416B1 (en) | An augmented reality representation method for managing underground pipeline data with vertical drop and the recording medium thereof | |
CN108958462A (en) | A kind of methods of exhibiting and device of virtual objects | |
CN108717724A (en) | Measuring method and device | |
CN111750838A (en) | Method, device and equipment for generating agricultural land planning map and storage medium | |
CN113034347A (en) | Oblique photographic image processing method, device, processing equipment and storage medium | |
CN104949673A (en) | Target locating method and device based on non-visual perception information | |
US20150130833A1 (en) | Map superposition method and electronic device | |
CN116086411B (en) | Digital topographic map generation method, device, equipment and readable storage medium | |
KR20200002219A (en) | Indoor navigation apparatus and method | |
KR100469801B1 (en) | System and Method for Real Time Surveying Ground Control Points of Aerial Photograph | |
US8467990B2 (en) | Method for setting the geolocation of a non-GPS enabled device | |
WO2016183892A1 (en) | Positioning method, electronic device and storage medium | |
CN113838197A (en) | Area reconstruction method and system | |
CN118394863A (en) | Geographic entity registration method and program product | |
CN106535132A (en) | Method and device for positioning terminal | |
US12154291B2 (en) | Method and apparatus for improving localization of a device | |
US8903163B2 (en) | Using gravity measurements within a photogrammetric adjustment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181030 |