Nothing Special   »   [go: up one dir, main page]

CN117788595B - Intelligent image ranging method, system, equipment and storage medium - Google Patents

Intelligent image ranging method, system, equipment and storage medium Download PDF

Info

Publication number
CN117788595B
CN117788595B CN202410217214.8A CN202410217214A CN117788595B CN 117788595 B CN117788595 B CN 117788595B CN 202410217214 A CN202410217214 A CN 202410217214A CN 117788595 B CN117788595 B CN 117788595B
Authority
CN
China
Prior art keywords
point
image
angle
measured
position parameter
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
CN202410217214.8A
Other languages
Chinese (zh)
Other versions
CN117788595A (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.)
Sichuan Shengcai Technology Development Co ltd
Original Assignee
Sichuan Shengcai Technology Development 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 Sichuan Shengcai Technology Development Co ltd filed Critical Sichuan Shengcai Technology Development Co ltd
Priority to CN202410217214.8A priority Critical patent/CN117788595B/en
Publication of CN117788595A publication Critical patent/CN117788595A/en
Application granted granted Critical
Publication of CN117788595B publication Critical patent/CN117788595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Optical Distance (AREA)

Abstract

The invention belongs to the technical field of image measurement, and particularly discloses an intelligent image ranging method, an intelligent image ranging system, intelligent image ranging equipment and an intelligent image ranging storage medium. The invention can realize simple, efficient and intelligent image shooting ranging and meet the daily measurement requirements of people.

Description

Intelligent image ranging method, system, equipment and storage medium
Technical Field
The invention belongs to the technical field of image measurement, and particularly relates to an intelligent image ranging method, an intelligent image ranging system, intelligent image ranging equipment and an intelligent image ranging storage medium.
Background
At present, tools for measuring two-point distances in the market mainly comprise a tape measure, an infrared range finder, a total station and the like, all of the tools need to be prepared independently, and the tools have the defects of inconvenient carrying, difficult measurement in a long distance (high-altitude object), high use cost, low measurement efficiency and the like in the use process, and the conventional mobile phone shooting range finding software is only capable of measuring short-distance objects and is not suitable for shooting measurement with long distances. Therefore, none of the existing ranging tools can effectively meet the daily simple ranging requirements.
Disclosure of Invention
The invention aims to provide an intelligent image ranging method, an intelligent image ranging system, intelligent image ranging equipment and a storage medium, which are used for solving the problems in the prior art.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
In a first aspect, an intelligent image ranging method is provided, including:
Acquiring a field angle and a zooming distance parameter of an image acquisition device, and acquiring first image data and second image data acquired by the image acquisition device by shooting a first measured point and a second measured point twice at an image acquisition point, wherein the second image data is acquired by the image acquisition device by adjusting a zooming multiple on the basis of a focal length of acquiring the first image data, the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point, and the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of the actual center point between the first measured point and the second measured point;
Image fusion is carried out according to the first image data and the second image data to obtain an imaging picture, so that a third image position parameter in the imaging picture coincides with an actual center point corresponding to a sixth image position parameter and is marked as an O point, a first measured point corresponding to the first image position parameter is marked as an F point, a second measured point corresponding to the second image position parameter is marked as a G point, a first measured point corresponding to the fourth image position parameter is marked as a C point, a second measured point corresponding to the fifth image position parameter is marked as a D point, and the F point, the G point, the C point and the D point are positioned on the same image horizontal line or image vertical line;
constructing a visual measurement point A of an image acquisition point relative to an F point and a G point in an imaging picture, and a visual measurement point B of the image acquisition point relative to a C point and a D point in the imaging picture;
the point A is respectively connected with the point O, the point F and the point G, the point B is respectively connected with the point O, the point C and the point D, the angle FAO is marked as the angle 1, the angle GAO is marked as the angle 2, the angle CBO is marked as the angle 3, and the angle DBO is marked as the angle 4;
determining the image size of an imaging picture, wherein the image length OG of O point and G point in the imaging picture, and the image length OD of O point and D point in the imaging picture;
Calculating and determining the degree of < 2 > by using the field angle, the image size and the image length OG of the image collector, calculating and determining the degree of < 4 > by using the field angle, the image size and the image length OD of the image collector, and calculating the distance AB between the point A and the point B according to the zoom distance parameter and the zoom multiple of the image collector;
and calculating the measurement distance between the first measured point and the second measured point according to the calculated and determined degrees of < 2 >, the calculated and determined degrees of < 4 > and the calculated distance AB.
In one possible design, the method further comprises:
Determining the image length OF OF O point and F point in an imaging picture, and the image length OC OF O point and C point in the imaging picture;
calculating and determining the degrees OF < 1 > by using the field angle, the image size and the image length OF OF the image collector, and calculating and determining the degrees OF < 3 > by using the field angle, the image size and the image length OC OF the image collector;
And calculating the measurement distance between the first measured point and the second measured point according to the calculated and determined degrees of < 1 >, the calculated degrees of < 3 and the calculated distance AB.
In one possible design, the image size of the imaging picture includes an image width W, and when the points F, G, C and D are on the same image horizontal line, the calculating the degrees of +.2 using the angle of view of the image capturing device, the image size and the image length OG, and the calculating the degrees of +.4 using the angle of view of the image capturing device, the image size and the image length OD includes:
Substituting the angle of view, the image width W and the image length OG into a preset first angle calculation formula to calculate so as to obtain the degree of < 2 >, wherein the first angle calculation formula is that
Wherein θ is the angle of view;
Substituting the angle of view, the image width W and the image length OD into a preset second angle calculation formula to calculate so as to obtain the degree of 4, wherein the second angle calculation formula is that
Where θ is the angle of view.
In one possible design, the image size of the imaging picture includes an image height H, and when the points F, G, C and D are on the same image vertical line, the calculating the degrees of +.2 using the angle of view of the image capturing device, the image size and the image length OG, and the calculating the degrees of +.4 using the angle of view of the image capturing device, the image size and the image length OD includes:
Substituting the angle of view, the image height H and the image length OG into a preset third angle calculation formula to calculate so as to obtain the degree of < 2 >, wherein the third angle calculation formula is that
Wherein θ is the angle of view;
Substituting the angle of view, the image width H and the image length OD into a preset fourth angle calculation formula to calculate so as to obtain the degree of 4, wherein the fourth angle calculation formula is that
Where θ is the angle of view.
In one possible design, the calculating the distance AB between the point a and the point B according to the zoom distance parameter and the zoom multiple of the image collector includes: and multiplying the zoom distance parameter of the image collector by the zoom multiple to obtain the distance AB between the point A and the point B.
In one possible design, the calculating the measured distance between the first measured point and the second measured point according to the calculated degrees of +.2, the calculated degrees of +.4 and the distance AB includes:
substituting the degree of < 2 >, the degree of < 4 and the distance AB into a preset distance measurement formula to calculate so as to obtain the measurement distance between the first measured point and the second measured point, wherein the distance measurement formula is that
Wherein L is the measurement distance between the first measured point and the second measured point.
In one possible design, the second image data is acquired by the image acquisition unit after reducing the focal length by an even multiple based on the focal length of the first image data.
In a second aspect, an intelligent image ranging system is provided, including an acquisition unit, a generation unit, a construction unit, a connection unit, a determination unit, a calculation unit, and a measurement unit, wherein:
The device comprises an acquisition unit, a first image acquisition unit, a second image acquisition unit and a third image acquisition unit, wherein the acquisition unit is used for acquiring the field angle and the zoom distance parameters of the image acquisition unit, the image acquisition unit is used for carrying out twice shooting on a first measured point and a second measured point at an image acquisition point, the second image data is acquired by the image acquisition unit by adjusting the zoom multiple on the basis of the focal length of the acquired first image data, the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point, and the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of the actual center point between the first measured point and the second measured point;
The generation unit is used for carrying out image fusion according to the first image data and the second image data to obtain an imaging picture, so that a third image position parameter in the imaging picture coincides with an actual center point corresponding to a sixth image position parameter and is marked as an O point, a first measured point corresponding to the first image position parameter is marked as an F point, a second measured point corresponding to the second image position parameter is marked as a G point, a first measured point corresponding to the fourth image position parameter is marked as a C point, a second measured point corresponding to the fifth image position parameter is marked as a D point, and the F point, the G point, the C point and the D point are positioned on the same image horizontal line or image vertical line;
The construction unit is used for constructing a visual measurement point A of an image acquisition point relative to an F point and a G point in an imaging picture and a visual measurement point B of the image acquisition point relative to a C point and a D point in the imaging picture;
The connecting unit is used for connecting the point A with the point O, the point F and the point G respectively, connecting the point B with the point O, the point C and the point D respectively, marking the angle FAO as the angle 1, the angle GAO as the angle 2, the angle CBO as the angle 3 and the angle DBO as the angle 4;
The determining unit is used for determining the image size of an imaging picture, the image length OG of O point and G point in the imaging picture, and the image length OD of O point and D point in the imaging picture;
the calculating unit is used for calculating and determining the degree of the angle 2 by utilizing the field angle, the image size and the image length OG of the image collector, calculating and determining the degree of the angle 4 by utilizing the field angle, the image size and the image length OD of the image collector, and calculating the distance AB between the point A and the point B according to the zoom distance parameter and the zoom multiple of the image collector;
The measuring unit is used for calculating the measuring distance between the first measured point and the second measured point according to the calculated and determined degrees of < 2 >, the calculated and determined degrees of < 4 and the calculated distance AB.
In a third aspect, there is provided an intelligent image ranging apparatus comprising:
A memory for storing instructions;
And a processor for reading the instructions stored in the memory and executing the method according to any one of the above first aspects according to the instructions.
In a fourth aspect, there is provided a computer readable storage medium having instructions stored thereon which, when run on a computer, cause the computer to perform the method of any of the first aspects. Also provided is a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects.
The beneficial effects are that: the invention uses the first image data and the second image data acquired by the image acquisition device to image, the imaging picture comprises the actual center point of the two times of shooting and the imaging positions of the first measured point and the second measured point in the two times of shooting, then constructs the virtual vision measuring point of the two times of shooting based on the imaging picture, calculates the virtual angle between the vision measuring point and the corresponding point on the imaging picture by using the field angle of the image acquisition device, the image size of the imaging picture and the image length between the corresponding points on the imaging picture, calculates the distance between the virtual vision measuring point according to the zoom distance parameter and the zoom multiple of the image acquisition device, and finally calculates the measuring distance between the first measured point and the second measured point according to the corresponding virtual angle and the distance, thereby realizing high-efficiency and accurate image ranging. The invention can realize simple and intelligent image shooting ranging by utilizing the corresponding image collector, solves the problems of inconvenient use and low measuring efficiency of the existing ranging tool, and effectively meets the daily measuring requirements of people.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram showing the steps of the method of example 1 of the present invention;
FIG. 2 is a diagram showing the relationship between the positions of the points in the shooting direction in embodiment 1 of the present invention;
FIG. 3 is a schematic diagram of the relationship between each point in the oblique pair shooting in embodiment 1 of the present invention;
fig. 4 is a schematic diagram of displacement of each point in embodiment 1 of the present invention when shooting is right;
FIG. 5 is a schematic diagram of the displacement of each point during oblique pair shooting in embodiment 1 of the present invention;
FIG. 6 is a schematic diagram showing the construction of a system in embodiment 2 of the present invention;
fig. 7 is a schematic view showing the constitution of the apparatus in embodiment 3 of the present invention.
Detailed Description
It should be noted that the description of these examples is for aiding in understanding the present invention, but is not intended to limit the present invention. Specific structural and functional details disclosed herein are merely representative of example embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It will be appreciated that the term "coupled" is to be interpreted broadly, and may be a fixed connection, a removable connection, or an integral connection, for example, unless explicitly stated and limited otherwise; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the terms in the embodiments can be understood by those of ordinary skill in the art according to the specific circumstances.
In the following description, specific details are provided to provide a thorough understanding of example embodiments. However, it will be understood by those of ordinary skill in the art that the example embodiments may be practiced without these specific details. For example, a system may be shown in block diagrams in order to avoid obscuring the examples with unnecessary detail. In other embodiments, well-known processes, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments.
Example 1:
the embodiment provides an intelligent image ranging method, which can be applied to corresponding intelligent terminals with image collectors, such as mobile phones, tablet computers and the like, as shown in fig. 1, and comprises the following steps:
s1, acquiring a view angle and a zooming distance parameter of an image collector, and acquiring first image data and second image data acquired by the image collector by photographing a first measured point and a second measured point at an image acquisition point twice, wherein the second image data is acquired by the image collector by adjusting zooming times based on a focal length of the acquired first image data, the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point, and the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of the actual center point between the first measured point and the second measured point.
In the implementation, a user can hold the intelligent terminal to shoot the first measured point and the second measured point and mark the corresponding point by using the image collector at the image acquisition point to obtain first image data, wherein the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point. And then adjusting the zoom multiple on the basis of the current focal length, for example, after the focal length is reduced by even times, shooting the first measured point and the second measured point and marking corresponding points to obtain second image data, wherein the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of an actual center point between the first measured point and the second measured point.
S2, performing image fusion according to the first image data and the second image data to obtain an imaging picture, enabling a third image position parameter in the imaging picture to coincide with an actual center point corresponding to a sixth image position parameter and to be marked as an O point, marking a first measured point corresponding to the first image position parameter as an F point, marking a second measured point corresponding to the second image position parameter as a G point, marking a first measured point corresponding to a fourth image position parameter as a C point, marking a second measured point corresponding to a fifth image position parameter as a D point, and enabling the F point, the G point, the C point and the D point to be positioned on the same image horizontal line or image vertical line.
In specific implementation, the intelligent terminal performs image fusion according to the first image data and the second image data to obtain an imaging picture, so that a third image position parameter in the imaging picture coincides with an actual center point corresponding to a sixth image position parameter and is marked as an O point, a first measured point corresponding to the first image position parameter is marked as an F point, a second measured point corresponding to the second image position parameter is marked as a G point, a first measured point corresponding to the fourth image position parameter is marked as a C point, and a second measured point corresponding to the fifth image position parameter is marked as a D point, as shown in fig. 2 and 3. Then, as shown in fig. 4 and 5, the F point, the G point, the C point, and the D point are moved to the same image horizontal line or image vertical line.
S3, constructing a visual measurement point A of an image acquisition point relative to F points and G points in the imaging picture and a visual measurement point B of the image acquisition point relative to C points and D points in the imaging picture.
In specific implementation, the intelligent terminal can construct corresponding virtual image acquisition points outside the imaging picture, as shown in fig. 2 and 3, namely, the point A, the point B and the point O are on the same straight line relative to the visual measurement point A of the point F and the point G in the imaging picture and the visual measurement point B of the point C and the point D in the imaging picture. And when the zoom multiple is adjusted, the even-numbered focal length is reduced, and then the point B is behind the point A relative to the imaging picture.
S4, connecting the point A with the point O, the point F and the point G respectively, connecting the point B with the point O, the point C and the point D respectively, marking the angle FAO as the angle 1, the angle GAO as the angle 2, the angle CBO as the angle 3 and the angle DBO as the angle 4.
In specific implementation, the point A of the virtual construction is respectively connected with the point O, the point F and the point G, the point B of the virtual construction is respectively connected with the point O, the point C and the point D, the angle FAO is marked as the angle 1, the angle GAO is marked as the angle 2, the angle CBO is marked as the angle 3, and the angle DBO is marked as the angle 4. If the imaging is opposite to the first measured point and the second measured point, as shown in fig. 2, the O point in the imaging picture is the image center point between the F point and the G point or between the C point and the D point, and the OAB is perpendicular to the FG and the CD. If the first measured point and the second measured point are inclined during photographing, as shown in fig. 4, the actual center point O of the F point and the G point in the imaging picture is not the image center point of the F point and the G point, the image center point of the F point and the G point is the Z point, and the OAB is not perpendicular to the FG or the CD.
S5, determining the image size of an imaging picture, wherein the image length OG of O point and G point in the imaging picture, and the image length OD of O point and D point in the imaging picture.
In specific implementation, the image size OF the imaging picture is determined by the basic configuration OF the intelligent terminal image collector, and the imaging picture comprises an image width W and an image height H, and the image length OG OF the O point and the G point, the image length OF OF the O point and the F point, the image length OD OF the O point and the D point, and the image length OD OF the O point and the D point in the imaging picture can be determined based on the image size OF the imaging picture.
S6, calculating and determining the degree of the angle 2 by using the field angle, the image size and the image length OG of the image collector, calculating and determining the degree of the angle 4 by using the field angle, the image size and the image length OD of the image collector, and calculating the distance AB between the point A and the point B according to the zoom distance parameter and the zoom multiple of the image collector.
In specific implementation, the degree of the field angle is determined by the basic configuration of the intelligent terminal image collector. If the points F, G, C and D are on the same horizontal line, as shown in fig. 2, the angle of view, the image width W and the image length OG may be substituted into a preset first angle calculation formula to calculate the angle 2, where the first angle calculation formula is
Wherein θ is the angle of view;
Substituting the angle of view, the image width W and the image length OD into a preset second angle calculation formula to calculate so as to obtain the degree of 4, wherein the second angle calculation formula is that
Where θ is the angle of view.
If the imaging points are diagonally opposite to the first measured point and the second measured point, as shown in fig. 4, the actual center point O between the F point and the G point in the imaging picture is not the image center point between the F point and the G point, the image center point between the F point and the G point is the Z point, the angle OAZ is marked as the angle 6, the angle GAZ is marked as the angle 5, the angle 2= 5+6, the angle 5 = θ×zg/W, the angle 6 = θ×oz/W, and the zg+oz = OG.
If the F point, the G point, the C point and the D point are positioned on the same image vertical line, substituting the angle of view, the image height H and the image length OG into a preset third angle calculation formula to calculate so as to obtain the degree of 2, wherein the third angle calculation formula is that
Wherein θ is the angle of view;
Substituting the angle of view, the image width H and the image length OD into a preset fourth angle calculation formula to calculate so as to obtain the degree of 4, wherein the fourth angle calculation formula is that
Where θ is the angle of view.
When the distance AB between the point A and the point B is calculated, the zoom distance parameter of the image collector can be multiplied by the zoom multiple to obtain the distance AB between the point A and the point B, namely AB=m×D, m is the zoom multiple, D is the zoom distance parameter, and the zoom distance parameter of the image collector is the actual distance of the image collector of the intelligent terminal corresponding to the actual object under the focal length of the corresponding multiple, and is determined by the basic configuration of the image collector of the intelligent terminal.
S7, calculating the measurement distance between the first measured point and the second measured point according to the calculated and determined degrees of < 2 >, the calculated and determined degrees of < 4 and the calculated distance AB.
In specific implementation, the intelligent terminal substitutes the degree of < 2 >, the degree of < 4 and the distance AB into a preset distance measurement formula to calculate so as to obtain the measurement distance between the first measured point and the second measured point, wherein the distance measurement formula is that
Wherein L is the measurement distance between the first measured point and the second measured point.
Likewise, the image length OF the O point and the F point in the imaged picture, and the image length OC OF the O point and the C point in the imaged picture may also be determined. Then the degree OF < 1 > is calculated and determined by utilizing the field angle, the image size and the image length OF OF the image collector, the degree OF < 3 > is calculated and determined by utilizing the field angle, the image size and the image length OC OF the image collector, and the calculation OF < 1 > and < 3 > refers to the calculation OF < 2 > and < 4 >. Finally, according to the calculated and determined degrees of < 1 >, degrees of < 3 and the distance AB, calculating to obtain the measured distance between the first measured point and the second measured point, namely substituting the degrees of < 1 >, the degrees of < 3 and the distance AB into a preset distance measurement formula to calculate to obtain the measured distance between the first measured point and the second measured point, wherein the distance measurement formula is that
Wherein L is the measurement distance between the first measured point and the second measured point.
The method can realize simple, efficient and intelligent image shooting ranging by utilizing the corresponding intelligent terminal with the image collector, solves the problems of inconvenient use and low measuring efficiency of the conventional ranging tool, and effectively meets the daily measuring requirements of people.
Example 2:
The present embodiment provides an intelligent image ranging system, as shown in fig. 6, including an acquisition unit, a generation unit, a construction unit, a connection unit, a determination unit, a calculation unit, and a measurement unit, wherein:
The device comprises an acquisition unit, a first image acquisition unit, a second image acquisition unit and a third image acquisition unit, wherein the acquisition unit is used for acquiring the field angle and the zoom distance parameters of the image acquisition unit, the image acquisition unit is used for carrying out twice shooting on a first measured point and a second measured point at an image acquisition point, the second image data is acquired by the image acquisition unit by adjusting the zoom multiple on the basis of the focal length of the acquired first image data, the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point, and the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of the actual center point between the first measured point and the second measured point;
The generation unit is used for carrying out image fusion according to the first image data and the second image data to obtain an imaging picture, so that a third image position parameter in the imaging picture coincides with an actual center point corresponding to a sixth image position parameter and is marked as an O point, a first measured point corresponding to the first image position parameter is marked as an F point, a second measured point corresponding to the second image position parameter is marked as a G point, a first measured point corresponding to the fourth image position parameter is marked as a C point, a second measured point corresponding to the fifth image position parameter is marked as a D point, and the F point, the G point, the C point and the D point are positioned on the same image horizontal line or image vertical line;
The construction unit is used for constructing a visual measurement point A of an image acquisition point relative to an F point and a G point in an imaging picture and a visual measurement point B of the image acquisition point relative to a C point and a D point in the imaging picture;
The connecting unit is used for connecting the point A with the point O, the point F and the point G respectively, connecting the point B with the point O, the point C and the point D respectively, marking the angle FAO as the angle 1, the angle GAO as the angle 2, the angle CBO as the angle 3 and the angle DBO as the angle 4;
The determining unit is used for determining the image size of an imaging picture, the image length OG of O point and G point in the imaging picture, and the image length OD of O point and D point in the imaging picture;
the calculating unit is used for calculating and determining the degree of the angle 2 by utilizing the field angle, the image size and the image length OG of the image collector, calculating and determining the degree of the angle 4 by utilizing the field angle, the image size and the image length OD of the image collector, and calculating the distance AB between the point A and the point B according to the zoom distance parameter and the zoom multiple of the image collector;
The measuring unit is used for calculating the measuring distance between the first measured point and the second measured point according to the calculated and determined degrees of < 2 >, the calculated and determined degrees of < 4 and the calculated distance AB.
Example 3:
the present embodiment provides an intelligent image ranging apparatus, as shown in fig. 7, at a hardware level, including:
the data interface is used for establishing data butt joint between the processor and the image collector;
A memory for storing instructions;
And the processor is used for reading the instructions stored in the memory and executing the intelligent image ranging method in the embodiment 1 according to the instructions.
Optionally, the device further comprises an internal bus. The processor and memory and data interfaces may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc.
The Memory may include, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), flash Memory (Flash Memory), first-in first-Out Memory (First Input First Output, FIFO), and/or first-in last-Out Memory (FIRST IN LAST Out, FILO), etc. The processor may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Example 4:
The present embodiment provides a computer-readable storage medium having instructions stored thereon that, when executed on a computer, cause the computer to perform the intelligent image ranging method of embodiment 1. The computer readable storage medium refers to a carrier for storing data, and may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash Memory, and/or a Memory Stick (Memory Stick), etc., where the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable system.
The present embodiment also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the intelligent image ranging method of embodiment 1. Wherein the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable system.
Finally, it should be noted that: the foregoing description is only of the preferred embodiments of the invention and is not intended to limit the scope of the invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An intelligent image ranging method is characterized by comprising the following steps:
Acquiring a field angle and a zooming distance parameter of an image acquisition device, and acquiring first image data and second image data acquired by the image acquisition device by shooting a first measured point and a second measured point twice at an image acquisition point, wherein the second image data is acquired by the image acquisition device by adjusting a zooming multiple on the basis of a focal length of acquiring the first image data, the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point, and the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of the actual center point between the first measured point and the second measured point;
Image fusion is carried out according to the first image data and the second image data to obtain an imaging picture, so that a third image position parameter in the imaging picture coincides with an actual center point corresponding to a sixth image position parameter and is marked as an O point, a first measured point corresponding to the first image position parameter is marked as an F point, a second measured point corresponding to the second image position parameter is marked as a G point, a first measured point corresponding to the fourth image position parameter is marked as a C point, a second measured point corresponding to the fifth image position parameter is marked as a D point, and the F point, the G point, the C point and the D point are positioned on the same image horizontal line or image vertical line;
constructing a visual measurement point A of an image acquisition point relative to an F point and a G point in an imaging picture, and a visual measurement point B of the image acquisition point relative to a C point and a D point in the imaging picture;
the point A is respectively connected with the point O, the point F and the point G, the point B is respectively connected with the point O, the point C and the point D, the angle FAO is marked as the angle 1, the angle GAO is marked as the angle 2, the angle CBO is marked as the angle 3, and the angle DBO is marked as the angle 4;
determining the image size of an imaging picture, wherein the image length OG of O point and G point in the imaging picture, and the image length OD of O point and D point in the imaging picture;
Calculating and determining the degree of < 2 > by using the field angle, the image size and the image length OG of the image collector, calculating and determining the degree of < 4 > by using the field angle, the image size and the image length OD of the image collector, and calculating the distance AB between the point A and the point B according to the zoom distance parameter and the zoom multiple of the image collector;
and calculating the measurement distance between the first measured point and the second measured point according to the calculated and determined degrees of < 2 >, the calculated and determined degrees of < 4 > and the calculated distance AB.
2. The intelligent image ranging method as set forth in claim 1, further comprising:
Determining the image length OF OF O point and F point in an imaging picture, and the image length OC OF O point and C point in the imaging picture;
calculating and determining the degrees OF < 1 > by using the field angle, the image size and the image length OF OF the image collector, and calculating and determining the degrees OF < 3 > by using the field angle, the image size and the image length OC OF the image collector;
And calculating the measurement distance between the first measured point and the second measured point according to the calculated and determined degrees of < 1 >, the calculated degrees of < 3 and the calculated distance AB.
3. The intelligent image ranging method according to claim 1, wherein the image size of the imaged picture includes an image width W, and when the F point, the G point, the C point and the D point are on the same image horizontal line, the calculating the degree of +.2 using the field angle, the image size and the image length OG of the image collector, and the calculating the degree of +.4 using the field angle, the image size and the image length OD of the image collector includes:
Substituting the angle of view, the image width W and the image length OG into a preset first angle calculation formula to calculate so as to obtain the degree of < 2 >, wherein the first angle calculation formula is that
Wherein θ is the angle of view;
Substituting the angle of view, the image width W and the image length OD into a preset second angle calculation formula to calculate so as to obtain the degree of 4, wherein the second angle calculation formula is that
Where θ is the angle of view.
4. The intelligent image ranging method according to claim 1, wherein the image size of the imaged picture includes an image height H, and when the F point, the G point, the C point, and the D point are on the same image vertical line, the calculating the degree of +.2 using the field angle, the image size, and the image length OG of the image collector, and the calculating the degree of +.4 using the field angle, the image size, and the image length OD of the image collector includes:
Substituting the angle of view, the image height H and the image length OG into a preset third angle calculation formula to calculate so as to obtain the degree of < 2 >, wherein the third angle calculation formula is that
Wherein θ is the angle of view;
Substituting the angle of view, the image width H and the image length OD into a preset fourth angle calculation formula to calculate so as to obtain the degree of 4, wherein the fourth angle calculation formula is that
Where θ is the angle of view.
5. The intelligent image ranging method according to claim 1, wherein the calculating the distance AB between the a point and the B point according to the zoom distance parameter and the zoom multiple of the image collector comprises: and multiplying the zoom distance parameter of the image collector by the zoom multiple to obtain the distance AB between the point A and the point B.
6. The intelligent image ranging method according to claim 1, wherein the calculating the measured distance between the first measured point and the second measured point according to the calculated degrees of +.2, the calculated degrees of +.4 and the distance AB includes:
substituting the degree of < 2 >, the degree of < 4 and the distance AB into a preset distance measurement formula to calculate so as to obtain the measurement distance between the first measured point and the second measured point, wherein the distance measurement formula is that
Wherein L is the measurement distance between the first measured point and the second measured point.
7. The intelligent image ranging method according to claim 1, wherein the second image data is acquired by an image acquisition unit after reducing a focal length by an even multiple based on a focal length of the first image data.
8. The intelligent image ranging system is characterized by comprising an acquisition unit, a generation unit, a construction unit, a connection unit, a determination unit, a calculation unit and a measurement unit, wherein:
The device comprises an acquisition unit, a first image acquisition unit, a second image acquisition unit and a third image acquisition unit, wherein the acquisition unit is used for acquiring the field angle and the zoom distance parameters of the image acquisition unit, the image acquisition unit is used for carrying out twice shooting on a first measured point and a second measured point at an image acquisition point, the second image data is acquired by the image acquisition unit by adjusting the zoom multiple on the basis of the focal length of the acquired first image data, the first image data comprises a first image position parameter of the first measured point, a second image position parameter of the second measured point and a third image position parameter of an actual center point between the first measured point and the second measured point, and the second image data comprises a fourth image position parameter of the first measured point, a fifth image position parameter of the second measured point and a sixth image position parameter of the actual center point between the first measured point and the second measured point;
The generation unit is used for carrying out image fusion according to the first image data and the second image data to obtain an imaging picture, so that a third image position parameter in the imaging picture coincides with an actual center point corresponding to a sixth image position parameter and is marked as an O point, a first measured point corresponding to the first image position parameter is marked as an F point, a second measured point corresponding to the second image position parameter is marked as a G point, a first measured point corresponding to the fourth image position parameter is marked as a C point, a second measured point corresponding to the fifth image position parameter is marked as a D point, and the F point, the G point, the C point and the D point are positioned on the same image horizontal line or image vertical line;
The construction unit is used for constructing a visual measurement point A of an image acquisition point relative to an F point and a G point in an imaging picture and a visual measurement point B of the image acquisition point relative to a C point and a D point in the imaging picture;
The connecting unit is used for connecting the point A with the point O, the point F and the point G respectively, connecting the point B with the point O, the point C and the point D respectively, marking the angle FAO as the angle 1, the angle GAO as the angle 2, the angle CBO as the angle 3 and the angle DBO as the angle 4;
The determining unit is used for determining the image size of an imaging picture, the image length OG of O point and G point in the imaging picture, and the image length OD of O point and D point in the imaging picture;
the calculating unit is used for calculating and determining the degree of the angle 2 by utilizing the field angle, the image size and the image length OG of the image collector, calculating and determining the degree of the angle 4 by utilizing the field angle, the image size and the image length OD of the image collector, and calculating the distance AB between the point A and the point B according to the zoom distance parameter and the zoom multiple of the image collector;
The measuring unit is used for calculating the measuring distance between the first measured point and the second measured point according to the calculated and determined degrees of < 2 >, the calculated and determined degrees of < 4 and the calculated distance AB.
9. An intelligent image ranging apparatus, comprising:
A memory for storing instructions;
A processor for reading the instructions stored in the memory and executing the intelligent image ranging method according to the instructions.
10. A computer readable storage medium having instructions stored thereon which, when executed on a computer, cause the computer to perform the intelligent image ranging method of any of claims 1-7.
CN202410217214.8A 2024-02-28 2024-02-28 Intelligent image ranging method, system, equipment and storage medium Active CN117788595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410217214.8A CN117788595B (en) 2024-02-28 2024-02-28 Intelligent image ranging method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410217214.8A CN117788595B (en) 2024-02-28 2024-02-28 Intelligent image ranging method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117788595A CN117788595A (en) 2024-03-29
CN117788595B true CN117788595B (en) 2024-05-10

Family

ID=90380193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410217214.8A Active CN117788595B (en) 2024-02-28 2024-02-28 Intelligent image ranging method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117788595B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118368520A (en) * 2024-05-17 2024-07-19 深圳市七工匠光电科技有限公司 Image acquisition method, device, equipment and medium based on intelligent fixed focus

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177952B1 (en) * 1993-09-17 2001-01-23 Olympic Optical Co., Ltd. Imaging apparatus, image display apparatus and image recording and/or reproducing apparatus
CN1804720A (en) * 2005-01-12 2006-07-19 中国科学院沈阳自动化研究所 Omnidirectional stereoscopic vision imaging method and device
JP2012044308A (en) * 2010-08-16 2012-03-01 Sharp Corp Three dimensional image output device and three dimensional image display device
CN102640049A (en) * 2009-12-01 2012-08-15 稻叶稔 Stereoscopic imaging device
CN104835115A (en) * 2015-05-07 2015-08-12 中国科学院长春光学精密机械与物理研究所 Imaging method for aerial camera, and system thereof
CN110361092A (en) * 2018-04-11 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of method for registering images, device and thermal imaging camera
CN110430357A (en) * 2019-03-26 2019-11-08 华为技术有限公司 A kind of image capturing method and electronic equipment
CN112348886A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Visual positioning method, terminal and server
CN113709355A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Sliding zoom shooting method and electronic equipment
CN114040185A (en) * 2021-11-08 2022-02-11 毛新 Self-focusing camera and stereo camera
CN116929290A (en) * 2023-07-24 2023-10-24 彭道杰 Binocular visual angle difference three-dimensional depth measurement method, binocular visual angle difference three-dimensional depth measurement system and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177952B1 (en) * 1993-09-17 2001-01-23 Olympic Optical Co., Ltd. Imaging apparatus, image display apparatus and image recording and/or reproducing apparatus
CN1804720A (en) * 2005-01-12 2006-07-19 中国科学院沈阳自动化研究所 Omnidirectional stereoscopic vision imaging method and device
CN102640049A (en) * 2009-12-01 2012-08-15 稻叶稔 Stereoscopic imaging device
JP2012044308A (en) * 2010-08-16 2012-03-01 Sharp Corp Three dimensional image output device and three dimensional image display device
CN104835115A (en) * 2015-05-07 2015-08-12 中国科学院长春光学精密机械与物理研究所 Imaging method for aerial camera, and system thereof
CN110361092A (en) * 2018-04-11 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of method for registering images, device and thermal imaging camera
CN110430357A (en) * 2019-03-26 2019-11-08 华为技术有限公司 A kind of image capturing method and electronic equipment
CN112348886A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Visual positioning method, terminal and server
CN113709355A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Sliding zoom shooting method and electronic equipment
CN114040185A (en) * 2021-11-08 2022-02-11 毛新 Self-focusing camera and stereo camera
CN116929290A (en) * 2023-07-24 2023-10-24 彭道杰 Binocular visual angle difference three-dimensional depth measurement method, binocular visual angle difference three-dimensional depth measurement system and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Wide Angle Multi-Shift Stereo Camera with Monocular Vision";M. Kobayashi等;《2020 IEEE International Conference on Consumer Electronics (ICCE)》;20200323;第1-4页 *
" 双点光学被动测距技术研究";徐子奇;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130315(第3期);I135-66 *
"LSST telescope alignment plan based on nodal aberration theory";Sebag J等;《Publications of the Astronomical Society of the Pacific》;20210403;第380-390页 *
"基于多视角图像的图像测量方法研究";车静;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140815(第8期);I138-1452 *

Also Published As

Publication number Publication date
CN117788595A (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN117788595B (en) Intelligent image ranging method, system, equipment and storage medium
KR101657039B1 (en) Image processing apparatus, image processing method, and imaging system
CN104613930B (en) Method and device for measuring distance as well as mobile terminal
WO2016127328A1 (en) Method and device for measuring size of object
KR20170007821A (en) Method, device and system for acquiring antenna engineering parameters
WO2019232793A1 (en) Two-camera calibration method, electronic device and computer-readable storage medium
CN109949232B (en) Image and RTK combined measurement method, system, electronic equipment and medium
CN110779491A (en) Method, device and equipment for measuring distance of target on horizontal plane and storage medium
CN103795935B (en) A kind of camera shooting type multi-target orientation method and device based on image rectification
CN106060399A (en) Automatic AA method and device for double cameras
WO2023273108A1 (en) Monocular distance measurement method and apparatus, and intelligent apparatus
CN111307046A (en) Tree height measuring method based on hemispherical image
CN108364313A (en) A kind of method of automatic aligning, system and terminal device
CN105637852A (en) Image processing method and apparatus and electronic device
CN114494388A (en) Three-dimensional image reconstruction method, device, equipment and medium in large-view-field environment
CN114078165A (en) Calibration method of optical imaging module, distortion correction method and related equipment
CN111311671A (en) Workpiece measuring method and device, electronic equipment and storage medium
WO2024146317A1 (en) Image processing method, apparatus, and electronic device
TWI392852B (en) Portable electric device using auto focus for distance measurement and distance measuring method using the same
CN105321146A (en) Method and device for processing topic picture shot by mobile terminal
CN106225773A (en) A kind of photographic camera focal length and the measuring method of vanishing point
CN113592934B (en) Target depth and height measuring method and device based on monocular camera
CN114841925B (en) Test equipment alignment calculation method, terminal and storage medium
CN109520419A (en) Pass through the method, device and mobile terminal of image measurement dimension of object
CN108344369A (en) A kind of method that mobile phone stereoscan measures forest diameter

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