CN106595493B - Distance measurement method and device - Google Patents

Distance measurement method and device Download PDF

Info

Publication number
CN106595493B
CN106595493B CN201611170865.8A CN201611170865A CN106595493B CN 106595493 B CN106595493 B CN 106595493B CN 201611170865 A CN201611170865 A CN 201611170865A CN 106595493 B CN106595493 B CN 106595493B
Authority
CN
China
Prior art keywords
image
displacement
point
amount
comparison result
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.)
Active
Application number
CN201611170865.8A
Other languages
Chinese (zh)
Other versions
CN106595493A (en
Inventor
陈臻昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Dami Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Dami Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd, Beijing Dami Technology Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611170865.8A priority Critical patent/CN106595493B/en
Publication of CN106595493A publication Critical patent/CN106595493A/en
Application granted granted Critical
Publication of CN106595493B publication Critical patent/CN106595493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness

Abstract

The disclosure is directed to a kind of distance measurement method and device, method includes: when the tape band of Intelligent measuring tape stretches from starting point to when current reading, and control image acquisition equipment obtains the image on tape band according to prefixed time interval;The characteristic point that posterior first image is arranged in adjacent image is compared with the characteristic point for the second image being arranged in front, obtain characteristic point comparison result, wherein, the first image corresponds to the first position on tape band, and the second image corresponds to the second position on tape band;Determine the second position to the displacement of targets amount between first position according to characteristic point comparison result;It is determined according to displacement of targets amount from starting point and is stretched to the current stroke for reading point;Export stroke.Pass through the technical solution, it is possible to reduce the operation of user does not need user and manually read according to scale etc., improves the usage experience of user.It can guarantee the accuracy of determining stroke simultaneously, and be suitable for the measurement of different occasions, intelligence degree is high.

Description

Distance measurement method and device
Technical field
This disclosure relates to Intelligent measuring tape technical field more particularly to a kind of distance measurement method and device.
Background technique
Most of current tape measure is steel ruler or cloth measure, and artificial reading is needed when measuring length, uses field for general Institute, due to not needing accurate numerical value, time of measuring is also unaffected, and existing tape measure can substantially meet demand.But it is right In the precise requirements of some pairs of measurement data are high, time of measuring is short, need for the data of measurement to be submitted to backstage and processing For, existing tape measure can not be accomplished.
Summary of the invention
The embodiment of the present disclosure provides a kind of distance measurement method and device, including following technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of distance measurement method is provided, Intelligent measuring tape, the intelligence are used for Image acquisition equipment is provided in tape measure, which comprises
When the tape band of the Intelligent measuring tape stretches from starting point to when current reading, control described image obtains equipment The image on the tape band is obtained according to prefixed time interval;
The feature of characteristic point and the second image being arranged in front that posterior first image is arranged in adjacent image is clicked through Row compares, and obtains characteristic point comparison result, wherein and the first image corresponds to the first position on the tape band, and described the Two images correspond to the second position on the tape band;
Determine the second position to the displacement of targets amount between the first position according to the characteristic point comparison result;
It is determined according to the displacement of targets amount from the starting point and is stretched to the current stroke for reading point;
Export the stroke.
In one embodiment, by characteristic point that posterior first image is arranged in adjacent two images be arranged in front The characteristic point of second image is compared, and obtains characteristic point comparison result, comprising:
Multiple fisrt feature points are obtained from the first image;
The second feature point that there are same characteristic features with each fisrt feature point is searched from second image, wherein institute It states feature and includes at least one of the following: contour feature and textural characteristics;
The fisrt feature point and second feature point are compared, multiple comparison results are obtained.
In one embodiment, described to determine the first position to the second according to the characteristic point comparison result Displacement of targets amount between setting, comprising:
According to each comparing result in the multiple comparison result, determine special from the second feature point to described first Levy the displacement of the telescopic direction of point;
The displacement of targets amount is determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result.
In one embodiment, described to be determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result The displacement of targets amount, comprising:
Delete the maximum displacement and minimum bit in the displacement of the corresponding multiple telescopic direction of the multiple comparison result Shifting amount obtains other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
In one embodiment, described determined according to the displacement of targets amount from the starting point is stretched to current reading point Stroke, comprising:
It counts from the starting point to corresponding mesh all adjacent pictures in the image of the current reading point acquisition Marker displacement amount obtains total displacement amount;
It is determined according to the total displacement amount from the starting point and is stretched to the current stroke for reading point.
According to the second aspect of an embodiment of the present disclosure, a kind of distance-measuring device is provided, Intelligent measuring tape, the intelligence are used for Image acquisition equipment is provided in tape measure, described device includes:
Obtain module, for when the tape band of the Intelligent measuring tape from starting point stretch to it is current read point when, control institute It states image acquisition equipment and obtains image on the tape band according to prefixed time interval;
Comparison module, for the characteristic point of posterior first image will to be arranged in the adjacent image of the acquisition module acquisition It is compared with the characteristic point for the second image being arranged in front, obtains characteristic point comparison result, wherein the first image is corresponding First position on the tape band, second image correspond to the second position on the tape band;
First determining module, the characteristic point comparison result for being obtained according to the comparison module determine described second Position is to the displacement of targets amount between the first position;
Second determining module is stretched for being determined according to the displacement of targets amount from the starting point to current reading point Stroke;
Output module, for exporting the stroke.
In one embodiment, the comparison module includes:
Acquisition submodule, for obtaining multiple fisrt feature points from the first image;
Submodule is searched, for searching there are same characteristic features with each fisrt feature point second from second image Characteristic point, wherein the feature includes at least one of the following: contour feature and textural characteristics;
It compares submodule and obtains multiple comparisons for the fisrt feature point and second feature point to be compared As a result.
In one embodiment, first determining module includes:
First determines submodule, for according to each comparing result in the multiple comparison result, determining from described the Two characteristic points to the fisrt feature point telescopic direction displacement;
Second determines submodule, for being determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result The displacement of targets amount.
In one embodiment, described second determine that submodule is used for:
Delete the maximum displacement and minimum bit in the displacement of the corresponding multiple telescopic direction of the multiple comparison result Shifting amount obtains other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
In one embodiment, second determining module includes:
Statistic submodule, for counting all neighbor maps in the image obtained from the starting point to the current reading point Corresponding displacement of targets amount, obtains total displacement amount between piece;
Third determines submodule, stretches for being determined according to the total displacement amount from the starting point to current reading point Stroke.
According to the third aspect of an embodiment of the present disclosure, a kind of distance-measuring device is provided, Intelligent measuring tape, the intelligence are used for Image acquisition equipment is provided in tape measure, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When the tape band of the Intelligent measuring tape stretches from starting point to when current reading, control described image obtains equipment The image on the tape band is obtained according to prefixed time interval;
The feature of characteristic point and the second image being arranged in front that posterior first image is arranged in adjacent image is clicked through Row compares, and obtains characteristic point comparison result, wherein and the first image corresponds to the first position on the tape band, and described the Two images correspond to the second position on the tape band;
Determine the second position to the displacement of targets amount between the first position according to the characteristic point comparison result;
It is determined according to the displacement of targets amount from the starting point and is stretched to the current stroke for reading point;
Export the stroke.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Above-mentioned technical proposal obtains the image on tape band by the image acquisition equipment being arranged on Intelligent measuring tape, into And feature point extraction and comparison are carried out to image, so that the stroke of Intelligent measuring tape is determined according to comparison result, that is, the object measured The length or distance of body.In this way, automatically determining stroke by Intelligent measuring tape and exporting, it is possible to reduce the operation of user is not required to It wants user manually to be read according to scale etc., improves the usage experience of user.It can guarantee determining stroke simultaneously Accuracy, and it is suitable for the measurement of different occasions, intelligence degree is high.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of distance measurement method shown according to an exemplary embodiment.
Fig. 2 is the schematic diagram that characteristic point shown according to an exemplary embodiment compares.
Fig. 3 is the flow chart of step S102 in a kind of distance measurement method shown according to an exemplary embodiment.
Fig. 4 is the flow chart of step S103 in a kind of distance measurement method shown according to an exemplary embodiment.
Fig. 5 is the flow chart of step S103 in a kind of distance measurement method shown according to an exemplary embodiment.
Fig. 6 is the flow chart of step S104 in a kind of distance measurement method shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of distance-measuring device shown according to an exemplary embodiment.
Fig. 8 is the block diagram of comparison module in a kind of distance-measuring device shown according to an exemplary embodiment.
Fig. 9 is the block diagram of the first determining module in a kind of distance-measuring device shown according to an exemplary embodiment.
Figure 10 is the block diagram of the second determining module in a kind of distance-measuring device shown according to an exemplary embodiment.
Figure 11 is a kind of block diagram for distance-measuring device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of distance measurement method, and this method can be used in Intelligent measuring tape, wherein intelligence volume Image acquisition equipment is provided in ruler, image acquisition equipment can be high speed imaging sensor, and high speed imaging sensor can wrap Light source part, optical lens part and image receiving section point are included, light source part carries out light source luminescent, and the light source of transmitting passes through optics Lens component is irradiated to the tape measure belt surface of Intelligent measuring tape, the light that image receiving section tap winding tape surface reflection is returned, warp Imaging len is crossed to be imaged.
Fig. 1 is a kind of flow chart of distance measurement method shown according to an exemplary embodiment.
As shown in Figure 1, above-mentioned distance measurement method includes step S101-S105:
In step s101, when the tape band of Intelligent measuring tape stretches from starting point to when current reading, control image is obtained Equipment is taken to obtain the image on tape band according to prefixed time interval;
Wherein, prefixed time interval can be set in user or manufacturer, and prefixed time interval should be less than the transformation of an image Time, i.e., for that should have common characteristics of image in adjacent different images.For example, prefixed time interval can be set being 1ms then obtains first image since starting point, obtains the image on a tape band every 1ms later.
In step s 102, by the characteristic point for arranging posterior first image in adjacent image and the second figure being arranged in front The characteristic point of picture is compared, and obtains characteristic point comparison result, wherein and the first image corresponds to the first position on tape band, the Two images correspond to the second position on tape band;
In step s 103, determine the second position to the displacement of targets between first position according to characteristic point comparison result Amount;
For example, as shown in Fig. 2, by by the characteristic point of posterior first image is arranged in adjacent image be arranged in front the The characteristic point of two images is compared, and obtains characteristic point comparison result, can determine the first image and the second figure according to the result Displacement of targets amount as between.
In step S104, is determined according to displacement of targets amount from starting point and stretched to the current stroke for reading point;
It can then determine tape measure from starting point to current reading point according to the displacement of targets amount between all adjacent images Between stroke, i.e. total length.
In step s105, stroke is exported.
Wherein, it when exporting stroke, can be exported in such a way that display screen is shown, it is of course also possible to pass through it His mode, such as voice play mode.
In this embodiment, the image on tape band is obtained by the image acquisition equipment being arranged on Intelligent measuring tape, into And feature point extraction and comparison are carried out to image, so that the stroke of Intelligent measuring tape is determined according to comparison result, that is, the object measured The length or distance of body.In this way, automatically determining stroke by Intelligent measuring tape and exporting, it is possible to reduce the operation of user is not required to It wants user manually to be read according to scale etc., improves the usage experience of user.It can guarantee determining stroke simultaneously Accuracy, and it is suitable for the measurement of different occasions, intelligence degree is high.
Wherein, the current point that reads can be the real-time reading point in Intelligent measuring tape telescopic process, be also possible to intelligent volume Flexible terminating point of the ruler after stopping stretching.It is current read point to read point in real time when, then determining from starting point to current After the stroke for reading point, the stroke is exported in real time.It, then can in telescopic process when current reading point is flexible terminating point Not export stroke, but after stopping stretching, export from starting point to the stroke of flexible terminating point, to avoid stretching The wasting of resources caused by stroke is exported in compression process always.
Fig. 3 is the flow chart of step S102 in a kind of distance measurement method shown according to an exemplary embodiment.
As shown in figure 3, in one embodiment, above-mentioned steps S102 includes step S301-S303:
In step S301, multiple fisrt feature points are obtained from the first image;
In step s 302, the second feature that there are same characteristic features with each fisrt feature point is searched from the second image Point, wherein the feature includes at least one of the following: contour feature and textural characteristics;
Can according in image contour feature and/or textural characteristics determine whether the characteristic point in two images has phase Same feature, the contour feature and/or textural characteristics of such as two characteristic points are identical, then two characteristic points have same characteristic features, such as two The contour feature and/or textural characteristics of a characteristic point be not identical, then two characteristic points do not have same characteristic features.
In step S303, fisrt feature point and second feature point are compared, multiple comparison results are obtained.
In this embodiment, identical characteristic point in two images is compared, is schemed according to same characteristic features o'clock at two The change of position as in can determine the displacement of characteristic point, and then determine the displacement of image, i.e. the first image and the second figure Stroke as between.
Fig. 4 is the flow chart of step S103 in a kind of distance measurement method shown according to an exemplary embodiment.
As shown in figure 4, in one embodiment, above-mentioned steps S103 includes step S401-S402:
In step S401, according to each comparing result in multiple comparison results, determine from second feature o'clock to first The displacement of the telescopic direction of characteristic point;
Since tape measure is only moved in telescopic direction, the displacement of telescopic direction can be only determined, to guarantee to calculate Speed.
In step S402, displacement of targets is determined according to the displacement of the corresponding multiple telescopic direction of multiple comparison results Amount.
Fig. 5 is the flow chart of step S103 in a kind of distance measurement method shown according to an exemplary embodiment.
As shown in figure 5, in one embodiment, above-mentioned steps S402 includes step S501-S502:
In step S501, the maximum displacement in the displacement of the corresponding multiple telescopic direction of multiple comparison results is deleted And maximum displacement, obtain other displacements;
In step S502, the average displacement amount of other displacements is calculated, average displacement amount is determined as displacement of targets amount.
In this embodiment, since limitation tape measure plane only moves in telescopic direction, multiple characteristic points can stretched The displacement in contracting direction is averaged after being screened (removal maximum value and minimum value), obtains tape measure in the position of telescopic direction It moves, that is, the stroke of tape measure.In this way, measurement result can be made more acurrate.
Fig. 6 is the flow chart of step S104 in a kind of distance measurement method shown according to an exemplary embodiment.
As shown in fig. 6, in one embodiment, above-mentioned steps S104 includes step S601-S602:
In step s 601, count corresponding all adjacent pictures into the current image for reading point acquisition from starting point Displacement of targets amount, obtain total displacement amount;
In step S602, is determined according to total displacement amount from starting point and stretched to the current stroke for reading point.
In this embodiment, count corresponding all adjacent pictures into the current image for reading point acquisition from starting point Displacement of targets amount, obtain total displacement amount, which is that starting point is stretched to the current stroke for reading point, in this way, Determining stroke is more acurrate, and does not need user and manually read according to scale etc., improves the usage experience of user, intelligence It is higher degree to be changed.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 7 is a kind of block diagram of distance-measuring device shown according to an exemplary embodiment, which can be by soft Part, hardware or both are implemented in combination with as some or all of of Intelligent measuring tape.As shown in fig. 7, the distance-measuring device Include:
Module 71 is obtained, is configured as when the tape band of the Intelligent measuring tape stretches to current reading from starting point and puts, Control described image obtains equipment and obtains the image on the tape band according to prefixed time interval;
Wherein, prefixed time interval can be set in user or manufacturer, and prefixed time interval should be less than the transformation of an image Time, i.e., for that should have common characteristics of image in adjacent different images.For example, prefixed time interval can be set being 1ms then obtains first image since starting point, obtains the image on a tape band every 1ms later.
Comparison module 72 is configured as described obtain in the adjacent image that module 71 obtains arranging posterior first image Characteristic point be compared with the characteristic point for the second image being arranged in front, obtain characteristic point comparison result, wherein described first Image corresponds to the first position on the tape band, and second image corresponds to the second position on the tape band;
First determining module 73 is configured as the characteristic point comparison result obtained according to the comparison module 72 and determines The second position is to the displacement of targets amount between the first position;
Second determining module 74 is configured as being determined according to the displacement of targets amount and stretch from the starting point to current reading Take stroke a little;
Output module 75 is configured as exporting the stroke.
Wherein, it when exporting stroke, can be exported in such a way that display screen is shown, it is of course also possible to pass through it His mode, such as voice play mode.
In this embodiment, the image on tape band is obtained by the image acquisition equipment being arranged on Intelligent measuring tape, into And feature point extraction and comparison are carried out to image, so that the stroke of Intelligent measuring tape is determined according to comparison result, that is, the object measured The length or distance of body.In this way, automatically determining stroke by Intelligent measuring tape and exporting, it is possible to reduce the operation of user is not required to It wants user manually to be read according to scale etc., improves the usage experience of user.It can guarantee determining stroke simultaneously Accuracy, and it is suitable for the measurement of different occasions, intelligence degree is high.
Fig. 8 is the block diagram of comparison module in a kind of distance-measuring device shown according to an exemplary embodiment.
As shown in figure 8, in one embodiment, the comparison module 72 includes:
Acquisition submodule 81 is configured as obtaining multiple fisrt feature points from the first image;
Submodule 82 is searched, being configured as searching from second image has same characteristic features with each fisrt feature point Second feature point, wherein the feature includes at least one of the following: contour feature and textural characteristics;
Submodule 83 is compared, is configured as the fisrt feature point and second feature point being compared, obtain more A comparison result.
In this embodiment, identical characteristic point in two images is compared, is schemed according to same characteristic features o'clock at two The change of position as in can determine the displacement of characteristic point, and then determine the displacement of image, i.e. the first image and the second figure Stroke as between.
Fig. 9 is the block diagram of the first determining module in a kind of distance-measuring device shown according to an exemplary embodiment.
As shown in figure 9, in one embodiment, first determining module 73 includes:
First determines submodule 91, is configured as according to each comparing result in the multiple comparison result, determine from The second feature point to the fisrt feature point telescopic direction displacement;
Second determines submodule 92, is configured as the displacement according to the corresponding multiple telescopic direction of the multiple comparison result Amount determines the displacement of targets amount.
Since tape measure is only moved in telescopic direction, the displacement of telescopic direction can be only determined, to guarantee to calculate Speed.
In one embodiment, described second determine that submodule 92 is used for:
Delete the maximum displacement and minimum bit in the displacement of the corresponding multiple telescopic direction of the multiple comparison result Shifting amount obtains other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
In this embodiment, since limitation tape measure plane only moves in telescopic direction, multiple characteristic points can stretched The displacement in contracting direction is averaged after being screened (removal maximum value and minimum value), obtains tape measure in the position of telescopic direction It moves, that is, the stroke of tape measure.In this way, measurement result can be made more acurrate.
Figure 10 is the block diagram of the second determining module in a kind of distance-measuring device shown according to an exemplary embodiment.
As shown in Figure 10, in one embodiment, second determining module 74 includes:
Statistic submodule 1001 is configured as counting institute in the image obtained from the starting point to the current reading point There is corresponding displacement of targets amount between adjacent picture, obtains total displacement amount;
Third determines submodule 1002, is configured as being determined according to the total displacement amount from the starting point and stretch to current Read the stroke of point.
In this embodiment, all adjacent pictures in the image obtained from the starting point to the current reading point are counted Between corresponding displacement of targets amount, obtain total displacement amount, which is that starting point stretches and reads the flexible of point to current Amount in this way, the stroke determined is more acurrate, and does not need user and is manually read according to scale etc., improves making for user With experience, intelligence degree is higher.
According to the third aspect of an embodiment of the present disclosure, a kind of distance-measuring device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
When the tape band of the Intelligent measuring tape stretches from starting point to when current reading, control described image obtains equipment The image on the tape band is obtained according to prefixed time interval;
The feature of characteristic point and the second image being arranged in front that posterior first image is arranged in adjacent image is clicked through Row compares, and obtains characteristic point comparison result, wherein and the first image corresponds to the first position on the tape band, and described the Two images correspond to the second position on the tape band;
Determine the second position to the displacement of targets amount between the first position according to the characteristic point comparison result;
It is determined according to the displacement of targets amount from the starting point and is stretched to the current stroke for reading point;
Export the stroke.
Above-mentioned processor is also configured to:
The characteristic point of posterior first image and the feature for the second image being arranged in front will be arranged in adjacent two images Point is compared, and obtains characteristic point comparison result, comprising:
Multiple fisrt feature points are obtained from the first image;
The second feature point that there are same characteristic features with each fisrt feature point is searched from second image, wherein institute It states feature and includes at least one of the following: contour feature and textural characteristics;
The fisrt feature point and second feature point are compared, multiple comparison results are obtained.
Above-mentioned processor is also configured to:
It is described to determine the first position to the target position between the second position according to the characteristic point comparison result Shifting amount, comprising:
According to each comparing result in the multiple comparison result, determine special from the second feature point to described first Levy the displacement of the telescopic direction of point;
The displacement of targets amount is determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result.
Above-mentioned processor is also configured to:
The displacement according to the corresponding multiple telescopic direction of the multiple comparison result determines the displacement of targets amount, Include:
Delete the maximum displacement and minimum bit in the displacement of the corresponding multiple telescopic direction of the multiple comparison result Shifting amount obtains other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
Above-mentioned processor is also configured to:
Described determined according to the displacement of targets amount from the starting point is stretched to the current stroke for reading point, comprising:
It counts from the starting point to corresponding mesh all adjacent pictures in the image of the current reading point acquisition Marker displacement amount obtains total displacement amount;
It is determined according to the total displacement amount from the starting point and is stretched to the current stroke for reading point.
Figure 11 is a kind of block diagram for distance-measuring device shown according to an exemplary embodiment, which is suitable for Intelligent measuring tape.Device 1100 includes processing component 1122, further comprises one or more processors, and by memory Memory resource representated by 1132, can be by the instruction of the execution of processing component 1122, such as application program for storing.Storage The application program stored in device 1132 may include it is one or more each correspond to one group of instruction module.This Outside, processing component 1122 is configured as executing instruction, to execute the above method.
Device 1100 can also include that a power supply module 1126 be configured as the power management of executive device 1100, and one Wired or wireless network interface 1150 is configured as device 1100 being connected to network and input and output (I/O) interface 1158.Device 1100 can be operated based on the operating system for being stored in memory 1132, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1100 When device executes, so that device 1100 is able to carry out above-mentioned distance measurement method, which comprises
When the tape band of the Intelligent measuring tape stretches from starting point to when current reading, control described image obtains equipment The image on the tape band is obtained according to prefixed time interval;
The feature of characteristic point and the second image being arranged in front that posterior first image is arranged in adjacent image is clicked through Row compares, and obtains characteristic point comparison result, wherein and the first image corresponds to the first position on the tape band, and described the Two images correspond to the second position on the tape band;
Determine the second position to the displacement of targets amount between the first position according to the characteristic point comparison result;
It is determined according to the displacement of targets amount from the starting point and is stretched to the current stroke for reading point;
Export the stroke.
In one embodiment, by characteristic point that posterior first image is arranged in adjacent two images be arranged in front The characteristic point of second image is compared, and obtains characteristic point comparison result, comprising:
Multiple fisrt feature points are obtained from the first image;
The second feature point that there are same characteristic features with each fisrt feature point is searched from second image, wherein institute It states feature and includes at least one of the following: contour feature and textural characteristics;
The fisrt feature point and second feature point are compared, multiple comparison results are obtained.
In one embodiment, described to determine the first position to the second according to the characteristic point comparison result Displacement of targets amount between setting, comprising:
According to each comparing result in the multiple comparison result, determine special from the second feature point to described first Levy the displacement of the telescopic direction of point;
The displacement of targets amount is determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result.
In one embodiment, described to be determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result The displacement of targets amount, comprising:
Delete the maximum displacement and minimum bit in the displacement of the corresponding multiple telescopic direction of the multiple comparison result Shifting amount obtains other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
In one embodiment, described determined according to the displacement of targets amount from the starting point is stretched to current reading point Stroke, comprising:
It counts from the starting point to corresponding mesh all adjacent pictures in the image of the current reading point acquisition Marker displacement amount obtains total displacement amount;
It is determined according to the total displacement amount from the starting point and is stretched to the current stroke for reading point.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of distance measurement method is used for Intelligent measuring tape, which is characterized in that be provided with image acquisition in the Intelligent measuring tape and set It is standby, which comprises
When the tape band of the Intelligent measuring tape from starting point stretch to it is current read point when, control described image obtain equipment according to Prefixed time interval obtains the image on the tape band;
The characteristic point that posterior first image is arranged in adjacent image and the characteristic point for the second image being arranged in front are compared It is right, obtain characteristic point comparison result, wherein the first image corresponds to the first position on the tape band, second figure As the second position on the corresponding tape band;
Determine the second position to the displacement of targets amount between the first position according to the characteristic point comparison result;
It is determined according to the displacement of targets amount from the starting point and is stretched to the current stroke for reading point;
Export the stroke.
2. the method according to claim 1, wherein by posterior first image is arranged in adjacent two images Characteristic point is compared with the characteristic point for the second image being arranged in front, and obtains characteristic point comparison result, comprising:
Multiple fisrt feature points are obtained from the first image;
The second feature point that there are same characteristic features with each fisrt feature point is searched from second image, wherein the spy Sign includes at least one of the following: contour feature, textural characteristics;
The fisrt feature point and second feature point are compared, multiple comparison results are obtained.
3. according to the method described in claim 2, it is characterized in that, described determine described according to the characteristic point comparison result One position is to the displacement of targets amount between the second position, comprising:
According to each comparing result in the multiple comparison result, determine from the second feature point to the fisrt feature point Telescopic direction displacement;
The displacement of targets amount is determined according to the displacement of the corresponding multiple telescopic direction of the multiple comparison result.
4. according to the method described in claim 3, it is characterized in that, described multiple stretch according to the multiple comparison result is corresponding The displacement in contracting direction determines the displacement of targets amount, comprising:
The maximum displacement and maximum displacement in the displacement of the corresponding multiple telescopic direction of the multiple comparison result are deleted, Obtain other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
5. the method according to claim 1, wherein described determine according to the displacement of targets amount from the starting Point stretches to the current stroke for reading point, comprising:
It counts from the starting point to corresponding target position all adjacent pictures in the image of the current reading point acquisition Shifting amount obtains total displacement amount;
It is determined according to the total displacement amount from the starting point and is stretched to the current stroke for reading point.
6. a kind of distance-measuring device is used for Intelligent measuring tape, which is characterized in that be provided with image acquisition in the Intelligent measuring tape and set Standby, described device includes:
Module is obtained, for controlling the figure when the tape band of the Intelligent measuring tape stretches to current reading from starting point and puts The image on the tape band is obtained according to prefixed time interval as obtaining equipment;
Comparison module, for characteristic point and the row of posterior first image will to be arranged in the adjacent image of the acquisition module acquisition The characteristic point for arranging preceding second image is compared, and obtains characteristic point comparison result, wherein described in the first image is corresponding First position on tape band, second image correspond to the second position on the tape band;
First determining module, the characteristic point comparison result for being obtained according to the comparison module determine the second position To the displacement of targets amount between the first position;
Second determining module reads the flexible of point to current for determining to stretch from the starting point according to the displacement of targets amount Amount;
Output module, for exporting the stroke.
7. device according to claim 6, which is characterized in that the comparison module includes:
Acquisition submodule, for obtaining multiple fisrt feature points from the first image;
Submodule is searched, for searching the second feature that there are same characteristic features with each fisrt feature point from second image Point, wherein the feature includes at least one of the following: contour feature, textural characteristics;
It compares submodule and obtains multiple comparison results for the fisrt feature point and second feature point to be compared.
8. device according to claim 7, which is characterized in that first determining module includes:
First determines submodule, for determining special from described second according to each comparing result in the multiple comparison result Sign point arrives the displacement of the telescopic direction of the fisrt feature point;
Second determination submodule, for according to the determination of the displacement of the corresponding multiple telescopic direction of the multiple comparison result Displacement of targets amount.
9. device according to claim 8, which is characterized in that described second determines that submodule is used for:
The maximum displacement and maximum displacement in the displacement of the corresponding multiple telescopic direction of the multiple comparison result are deleted, Obtain other displacements;
The average displacement amount for calculating other displacements, is determined as the displacement of targets amount for the average displacement amount.
10. device according to claim 6, which is characterized in that second determining module includes:
Statistic submodule, for count from the starting point to it is described it is current read point obtain image in all adjacent pictures it Between corresponding displacement of targets amount, obtain total displacement amount;
Third determines submodule, reads the flexible of point to current for determining to stretch from the starting point according to the total displacement amount Amount.
11. a kind of distance-measuring device is used for Intelligent measuring tape, which is characterized in that be provided with image acquisition in the Intelligent measuring tape Equipment, described device include:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When the tape band of the Intelligent measuring tape from starting point stretch to it is current read point when, control described image obtain equipment according to Prefixed time interval obtains the image on the tape band;
The characteristic point that posterior first image is arranged in adjacent image and the characteristic point for the second image being arranged in front are compared It is right, obtain characteristic point comparison result, wherein the first image corresponds to the first position on the tape band, second figure As the second position on the corresponding tape band;
Determine the second position to the displacement of targets amount between the first position according to the characteristic point comparison result;
It is determined according to the displacement of targets amount from the starting point and is stretched to the current stroke for reading point;
Export the stroke.
CN201611170865.8A 2016-12-16 2016-12-16 Distance measurement method and device Active CN106595493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611170865.8A CN106595493B (en) 2016-12-16 2016-12-16 Distance measurement method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611170865.8A CN106595493B (en) 2016-12-16 2016-12-16 Distance measurement method and device

Publications (2)

Publication Number Publication Date
CN106595493A CN106595493A (en) 2017-04-26
CN106595493B true CN106595493B (en) 2019-02-12

Family

ID=58599790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611170865.8A Active CN106595493B (en) 2016-12-16 2016-12-16 Distance measurement method and device

Country Status (1)

Country Link
CN (1) CN106595493B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109202903B (en) * 2018-09-13 2021-05-28 河南机电职业学院 Method for calibrating countsPerMeter parameter and base standard system of sorting robot workstation conveying chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430181A (en) * 2001-12-29 2003-07-16 原相科技股份有限公司 Moving distance detecting method of image sensor
JP2004240931A (en) * 2003-02-05 2004-08-26 Sony Corp Image collation device, image collation method, and program
DE19614896B4 (en) * 1996-04-16 2005-04-07 Chemnitzer Werkstoffmechanik Gmbh Method for field determination of deformation states in microscopically dimensioned test areas and use of the method
CN105758319A (en) * 2016-03-21 2016-07-13 北京小米移动软件有限公司 Method and device for measuring height of target object through mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19614896B4 (en) * 1996-04-16 2005-04-07 Chemnitzer Werkstoffmechanik Gmbh Method for field determination of deformation states in microscopically dimensioned test areas and use of the method
CN1430181A (en) * 2001-12-29 2003-07-16 原相科技股份有限公司 Moving distance detecting method of image sensor
JP2004240931A (en) * 2003-02-05 2004-08-26 Sony Corp Image collation device, image collation method, and program
CN105758319A (en) * 2016-03-21 2016-07-13 北京小米移动软件有限公司 Method and device for measuring height of target object through mobile terminal

Also Published As

Publication number Publication date
CN106595493A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN111354042B (en) Feature extraction method and device of robot visual image, robot and medium
CN107835357B (en) Auto focusing method, autofocus system and the camera including automatic focus module
CN103591894B (en) The method and apparatus of object length is measured by camera
EP3248374B1 (en) Method and apparatus for multiple technology depth map acquisition and fusion
CN104468916B (en) Based on handset response time test method
CN108028887B (en) Photographing focusing method, device and equipment for terminal
US10645364B2 (en) Dynamic calibration of multi-camera systems using multiple multi-view image frames
CN106097361A (en) A kind of defective area detection method and device
CN106464800B (en) Method, system, machine readable media and the calculating equipment that automatic anti-dazzle for imaging device exposes
AU2012296028A1 (en) Projector and control method thereof
CN110381261A (en) Focus method, device, computer readable storage medium and electronic equipment
US10205928B2 (en) Image processing apparatus that estimates distance information, method of controlling the same, and storage medium
CN110491316A (en) A kind of projector and its method for controlling projection
US20150381964A1 (en) Automatic Stereoscopic Camera Calibration
CN109712193A (en) A kind of determination method and device of ball machine field angle
WO2017199696A1 (en) Image processing device and image processing method
CN109741307A (en) Veiling glare detection method, veiling glare detection device and the veiling glare detection system of camera module
US11803982B2 (en) Image processing device and three-dimensional measuring system
CN113129241A (en) Image processing method and device, computer readable medium and electronic equipment
CN107710736A (en) Aid in the method and system of user's capture images or video
CN103188443B (en) Video generation device, digital camera and method
CN106031148A (en) Imaging device and method for automatic focus in an imaging device as well as a corresponding computer program
CN107534723A (en) Atomatic focusing method, device and equipment
CN106595493B (en) Distance measurement method and device
CN105180802B (en) A kind of dimension of object information identifying method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant