[go: up one dir, main page]

CN114166187A - Mobile terminal-based quadratic element image measuring method and device - Google Patents

Mobile terminal-based quadratic element image measuring method and device Download PDF

Info

Publication number
CN114166187A
CN114166187A CN202111366662.7A CN202111366662A CN114166187A CN 114166187 A CN114166187 A CN 114166187A CN 202111366662 A CN202111366662 A CN 202111366662A CN 114166187 A CN114166187 A CN 114166187A
Authority
CN
China
Prior art keywords
measured
point
image
distance
preview image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111366662.7A
Other languages
Chinese (zh)
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.)
Power Idea Technology Shenzhen Co Ltd
Original Assignee
Power Idea Technology Shenzhen 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 Power Idea Technology Shenzhen Co Ltd filed Critical Power Idea Technology Shenzhen Co Ltd
Priority to CN202111366662.7A priority Critical patent/CN114166187A/en
Publication of CN114166187A publication Critical patent/CN114166187A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/04Interpretation of pictures

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明提供了一种基于移动终端的二次元影像测量方法及装置,测量方法包括:获取待测物体的预览图像;基于预览图像建立图像坐标系及标尺;获取待测物体上的第一待测点和第二待测点的坐标信息,记录并显示,根据所述第一待测点的坐标信息和所述第二待测点的坐标信息计算待测的尺寸数据。本申请将二次元影像测量技术结合至移动终端中,便于携带,通过移动终端的摄像单元获取待测物体的预览图像,在调用摄像头获取待测物体预览图像后,即可根据测量需求在显示屏幕上对待测物体预览图像进行放大或缩小,拾取相应位置坐标,显示高精度刻度标尺,获取待测物体的精密尺寸数据。通过本发明方案的实施,能够达到对形状奇特的待测工件或零部件的尺寸测量。

Figure 202111366662

The invention provides a two-dimensional image measurement method and device based on a mobile terminal. The measurement method includes: obtaining a preview image of an object to be measured; establishing an image coordinate system and a ruler based on the preview image; The coordinate information of the point and the second point to be measured is recorded and displayed, and the size data to be measured is calculated according to the coordinate information of the first point to be measured and the coordinate information of the second point to be measured. This application combines the two-dimensional image measurement technology into the mobile terminal, which is easy to carry. The preview image of the object to be measured is obtained through the camera unit of the mobile terminal. After calling the camera to obtain the preview image of the object to be measured, it can be displayed on the display screen according to the measurement requirements Zoom in or out on the preview image of the object to be measured, pick up the corresponding position coordinates, display a high-precision scale, and obtain the precise size data of the object to be measured. Through the implementation of the solution of the present invention, it is possible to measure the dimension of a workpiece or component to be measured with a strange shape.

Figure 202111366662

Description

Mobile terminal-based quadratic element image measuring method and device
Technical Field
The invention belongs to the technical field of measurement, and particularly relates to a two-dimensional image measurement method and device based on a mobile terminal.
Background
A secondary image measuring instrument, also called a precise image type surveying instrument, is a novel high-precision and high-tech measuring instrument integrating light, mechanical, electrical and computer image technologies, and the measuring precision can reach +/-2-5 mu m (micrometer, the same below); the method is widely applied to measurement in industries such as mobile phones, household appliance manufacturing, connectors, mechanical fittings, precision clamping tools, plastics, hardware, computer peripherals and the like. The measuring method comprises the following steps: 1. focusing: placing the workpiece to be measured on a worktable of a measuring instrument, finding a range to be measured on an image displayed by a computer, and adjusting a related knob to focus until the image of the range to be measured achieves satisfactory magnification and definition; 2. measurement: marking the coordinates of the range to be measured, and measuring the required size; 3. recording or deriving data: the computer can record the measured data and export the data when needed.
Although the secondary image measuring instrument has higher precision and more flexible measuring mode, the secondary image measuring instrument has the defect that the secondary image measuring instrument cannot be carried about, and if the secondary image measuring instrument does not have equipment such as a vernier caliper and a screw micrometer, the measurement work of a workpiece is difficult to carry out.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method and a device for measuring a two-dimensional image based on a mobile terminal, and aims to solve the problem that the accurate measurement of the dimension of a workpiece with a complex structure cannot be realized by adopting a conventional measuring tool in the prior art.
In order to solve the technical problem, the invention is realized as follows: the invention provides a two-dimensional image measuring method based on a mobile terminal, which comprises the following steps:
calling a camera unit to obtain a preview image of an object to be detected;
establishing an image coordinate system based on the preview image, and establishing a scale according to the imaging proportion between the preview image and the object to be detected; the scale is used for indicating a measurement unit of a current image coordinate system;
acquiring and recording coordinate information of a first point to be measured and a second point to be measured which are positioned above the object to be measured;
and calculating the distance between the first point to be measured and the second point to be measured according to the coordinate information of the first point to be measured and the coordinate information of the second point to be measured.
The second aspect of the present invention provides a two-dimensional image measuring device based on a mobile terminal, which is used for implementing the above measuring method, and includes:
the acquisition module is used for calling the camera shooting unit to acquire a preview image of the object to be detected;
the establishing module is used for establishing an image coordinate system based on the preview image and establishing a scale according to the imaging proportion between the preview image and the object to be detected; the scale is used for displaying a measurement unit of a current image coordinate system;
the recording module is used for acquiring and recording coordinate information of a first point to be measured and a second point to be measured which are positioned on the object to be measured;
and the calculating module is used for calculating the distance between the first point to be measured and the second point to be measured according to the coordinate information of the first point to be measured and the coordinate information of the second point to be measured.
Compared with the prior art, the two-dimensional image measuring method and device based on the mobile terminal have the beneficial effects that: this application combines quadratic element image measurement technique to mobile terminal in, small in size, portable, the high definition preview image of the object that awaits measuring is acquireed to the camera unit through mobile terminal, after calling the camera and acquireing the object preview image that awaits measuring, can enlarge or reduce the object preview image that awaits measuring on display screen according to the measurement demand, pick up corresponding position coordinate, can show high accuracy scale simultaneously, acquire the accurate dimensional data of the object that awaits measuring in real time. By implementing the scheme of the invention, the size measurement of the workpiece or part to be measured with the peculiar shape can be realized.
Drawings
Fig. 1 is a schematic flow chart of a measurement method according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of the present invention for generating a preview image by an image capturing unit;
FIG. 3 is a schematic structural diagram of a specific application of the measurement method provided by the present invention;
FIG. 4 is a schematic structural diagram of a specific application of the measurement method of the present invention;
fig. 5 is a schematic diagram of a frame of a measuring apparatus according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The two small-sized precision measuring tools, namely the vernier caliper and the screw micrometer, have small sizes and are convenient to carry, and the measuring precision can reach +/-0.02 mm and +/-0.01 mm respectively; the measuring requirements under the ordinary condition can be met, but under the condition that the shape of a workpiece or a part to be measured is peculiar and the area to be measured cannot be measured by the two tools, a large-scale measuring instrument such as a two-dimensional image measuring instrument is generally needed.
The method and the device have the advantages that the secondary image measurement technology is combined into the mobile terminal, the secondary image measurement technology is integrated, the measurement accuracy is high, the measurement mode is flexible, and the mobile terminal is convenient to carry.
Referring to the schematic flow chart of the measurement method shown in fig. 1, a first embodiment of the present invention provides a two-dimensional image measurement method based on a mobile terminal, wherein the mobile terminal includes but is not limited to a mobile terminal such as a smart phone and a tablet computer; the mobile terminal supports operating systems such as IOS and android, and has camera shooting and touch display functions; the measuring method specifically comprises the following steps:
step 101, calling a camera unit to obtain a preview image of an object to be detected;
in general, the called camera unit is a rear camera of the mobile terminal, but calling the front camera is not excluded, or a switching module is provided for switching the front camera and the rear camera. The high-definition preview image of the object to be detected can be formed by means of the high pixel and extremely high magnification of the existing mobile terminal and the function that the special macro camera can magnify the workpiece to be detected by dozens of times or even dozens of times.
Specifically, the camera comprises a plurality of lenses inside, and the imaging of the image is realized by utilizing the principle of lens imaging; images are recorded and transmitted by the photosensitive chip and associated circuitry. Theoretically, the lens can be composed of only one lens, but for optical reasons, imaging of a single lens inevitably has a series of aberration problems such as chromatic aberration, spherical aberration, coma, astigmatism and the like, and particularly in the edge portion, imaging is poor. The combination of the plurality of lenses can correct aberrations to some extent.
Secondly, many lenses are also focused by changing the position of the lens. The general mobile phone camera changes the focal length by controlling the whole lens to move back and forth through the VCM, and is mainly divided into the following three types:
1. standard lens: taking the interchangeable lens suitable for a 35mm single-lens reflex camera as an example (36 x 24mm photosensitive element), the standard lens generally refers to a photographic lens with a focal length between 40 and 55 mm, which is the most basic one of all lenses.
2. Wide-angle lens: the focal length is shorter than that of the standard lens, and the visual angle is larger than that of the standard lens. The wide-angle lens is basically characterized in that: the visual angle of the lens is large, and the visual field is wide. The distance sensing camera has the characteristics of exaggeration of distance, wide focusing range and the like. When the wide-angle camera is used, objects in front of eyes can be enlarged, objects at far away can be reduced, and images around the camera are easy to distort. The method is widely applied to shooting of large-scene landscape photographic works, and can increase the spatial depth of photographic pictures.
3. Telephoto lens: long focal length, looking far away. The long focal length lens is generally classified into three stages, and 135mm or less is called a middle focal length, which is often used to capture a human image. 135mm and 500mm are called long focal length. The super-long focal length of 500mm or more is suitable for photographing a distant scene. Such as close-up on the court and shooting of wild animals, the ultra-long focal length lens is very useful because the lens cannot be close to the shot object.
The flow chart of the image pickup unit for generating the preview image is shown in fig. 2, light enters the lens, and the image is displayed on the display screen after a series of conversion by the sensor, the analog-to-digital converter, the ISP and the image processor.
It should be noted that, after the camera unit is started, that is, the camera is started, light supplement is performed based on the environment state where the camera is located, for example, when the environment is dim, an LED lighting lamp provided in the mobile terminal may be used for lighting, the camera pixels provided in the current mobile terminal (including but not limited to a mobile phone, a tablet computer, etc.) are higher and higher, the zoom capability is higher and higher, and after lighting by using ambient light or an LED provided in an electronic device, a high-definition real-time preview image of the object to be measured is obtained through a series of operations and steps such as a complicated zoom and a software compensation algorithm in the camera lens and displayed on the screen.
And 102, establishing an image coordinate system based on the preview image, and establishing a scale according to the imaging proportion between the preview image and the object to be measured.
Step 102 includes two aspects, the first aspect is to determine an origin and a reference direction of a coordinate system, specifically: the acquired two-dimensional high-definition preview image is displayed on a screen of the mobile terminal, a rectangular coordinate system is established, as one implementation manner of this embodiment, a fixed image coordinate system is established for a display area set on the screen of the mobile terminal, an origin of the fixed rectangular coordinate system is located at a lower left corner of the display screen, and the displayed high-definition preview image is completely located in a first quadrant of the coordinate system. And respectively acquiring coordinate parameters of points to be measured. As another implementation manner of this embodiment, the origin of the coordinate system may be set actively according to the measurement requirement, and in an implementation manner, the coordinate of the point to be measured that needs to be obtained may be used as the origin of the coordinate system, so as to obtain the coordinate parameters of other points.
And on the other hand, a scale is established according to the imaging proportion between the preview image and the object to be measured. In essence, the scale corresponds to the actual size of the object to be measured and is used to indicate the measurement unit of the current image coordinate system, for example, the measurement unit of the current scale is cm, the coordinates of the measurement point are (10, 20), i.e. the distance from the measurement point to the coordinate origin in the X-axis direction is 10cm, and the distance from the measurement point to the coordinate origin in the Y-axis direction is 20 cm. The mobile terminal screen displays the acquired high-definition preview image, the preview image needs to be further enlarged or reduced to acquire clear structural features, and the scale is synchronously adjusted corresponding to the enlarged or reduced preview image; that is, regardless of how many times the preview image is zoomed in or out, the scale of the scale at this moment is always 1: 1 reflects the actual size of the object to be measured. Specifically, the scale adaptively adjusts the measuring unit and the scale of the scale according to the imaging proportion between the preview image and the object to be measured, so that the scale displayed by the scale, the coordinate system, the provided data parameters and the size of the real object are kept consistent.
For example, when 1: when a workpiece with the length of 100mm is shot in a 1-scale (namely, an image is not enlarged or reduced), the graduated scale takes a cm scale as a measurement unit based on the influence of screen size factors, only numbers such as 1, 2, … … and the like are marked on an interface, the numbers represent 1cm, 2cm, … … and the like, only scales on the mm length have no numbers, and the situation that the reading is influenced by the excessively dense numbers is avoided; when the scale on the interface is enlarged, the display precision of the scale on the interface is improved, when the scale is large enough, the scale in mm is taken as a measurement unit, the numbers of 1, 2 and the like on the interface represent 1mm, 2mm, … … and the like, and only the scale on the length of dmm (silk meters) has no number.
And 103, acquiring and recording coordinate information of the first point to be measured and the second point to be measured on the object to be measured.
Generally, the dimension measurement of an object to be measured is not more than the measurement of the length, width, height and distance between two points of the object, and by utilizing a rectangular coordinate system established in a screen of a mobile terminal, after obtaining a first point coordinate to be measured and a second point coordinate to be measured of the object to be measured, distance information can be obtained through calculation of a corresponding algorithm.
The method comprises the following steps that a movable capturing cursor is further arranged in a screen, a point to be measured can be captured by the capturing cursor arranged on the screen, and when the capturing cursor is detected to be in an image coordinate system, coordinate information of the position where the current capturing cursor is located can be displayed in real time in the screen; preferably, the capture cursor is set as a cross cursor, the user receives a movement instruction acting on the capture cursor, the position of a required point to be measured is determined by moving the cross cursor on the screen of the mobile terminal, the coordinate information of the point to be measured is acquired, after the cross cursor acquires the coordinate information of the required point, the signal of the point is stored and the coordinate value of the point is displayed on the screen of the mobile terminal through coordinate confirmation, then the cross cursor is moved to the next measurement point and confirmed, and meanwhile the coordinate information of the point is displayed on the screen of the mobile terminal.
And 104, calculating the distance between the first point to be measured and the second point to be measured according to the coordinate information of the first point to be measured and the coordinate information of the second point to be measured.
Wherein calculating the distance between the first point to be measured and the second point to be measured comprises: calculating to obtain a first distance between the first point to be measured and the second point to be measured in the X-axis direction according to the X-axis coordinate of the first point to be measured and the X-axis coordinate of the second point to be measured; calculating according to the Y-axis coordinate of the first point to be measured and the Y-axis coordinate of the second point to be measured to obtain a second distance in the Y-axis direction; and calculating the linear distance between the first point to be measured and the second point to be measured according to the first distance and the second distance.
As one implementation manner in this embodiment, when coordinate parameters of a first point to be measured and a second point to be measured are acquired, the calculation module automatically processes the relevant coordinate data, and outputs distance information between the first point to be measured and the second point to be measured.
As another implementation manner in this embodiment, the user may obtain coordinate information of a plurality of points through the cross cursor, and during calculation, select a coordinate parameter of a desired coordinate point for calculation. For example, after a coordinate system is established, coordinate information of a point a, a point B, a point C, a point E is acquired, wherein the point a, the point B, the point C, the point D and the point E can be combined with each other to form a first point to be measured and a second point to be measured of a segment to be measured, a user can select the point a and the point B, and distance information between the point a and the point B is calculated and displayed; the method can also be suitable for the application needing to measure the size data simultaneously.
The following examples are used in the measurement of specific product dimensions:
as shown in the schematic application structure of fig. 3, a linear distance between the screw columns a and B in the workpiece needs to be measured. Adjusting the preview image to be detected to the optimal display proportion in the preview image, setting the center of a screw column A as a coordinate origin, determining the screw column A as a first point to be detected, setting the X, Y axis coordinate value of the screw column A as (0, 0), displaying the coordinate value of the screw column A on a screen of a mobile terminal, then moving a cross cursor, positioning the cross cursor at the center position of the screw column B, confirming that the position is a second point to be detected, displaying the coordinate (60, 80) of the screw column B on the screen by the mobile terminal, and automatically calculating the distance X between the screw column A (0, 0) and the screw column B (60, 80) in the X-axis directionB-A60-0-60, and a distance Y in the Y-axis directionB-A80-0-80; and the linear distance between the screw column A and the screw column B
Figure BDA0003359590240000071
And the above-mentioned X is reactedB-A、YB-AAnd LABIs displayed on the screen of the mobile terminal, and at this time, the displayed vertical unit is the same as the measurement unit of the scale. If "-" appears in front of the coordinate value, it can be understood as being located in the opposite direction of the coordinate reference.
The application structure diagram shown in fig. 4 is used for measuring the linear distance AB between the plane of the point a and the plane of the point B, so as to better embody the advantages of the present patent technology compared with the conventional measuring tool. In this embodiment, the horizontal distance between the AB needs to be measured, not the diagonal distance; since the heights of the points AB and AB are different, the horizontal distance cannot be measured by a caliper, and if the height of the point B extends to the point A horizontally, the measured size is larger than the actual size due to the draft.
Firstly, amplifying an image point A to be measured to be large enough, and measuring the size of a first point to be measured: the coordinate system origin (0, 0) of the coordinate system of the X and Y coordinate values of the root of the angle R at the top end of the outer side of the surrounding bone;
balancing the image to a point B to be measured, positioning the Y axis of the cross cursor at the position (the root of the angle R outside the surrounding bone) of the point B to be measured, wherein the coordinate data is displayed as B (-123, -25), and the distance 25 in the Y axis direction is the horizontal distance of the two points AB to be measured; when the scale is measured in mm, the distance between AB is 25 mm.
In conclusion, compared with the prior art, the implementation of the scheme of the invention solves the requirement of high-precision dimension measurement of practitioners in the precision plastic and hardware industries, makes up the respective defects of small precision measuring tools such as vernier calipers and screw micrometers and large measuring instruments such as image measuring instruments, and can easily complete the measurement operation by means of one mobile terminal and meet the micron-grade precision requirement no matter how complex the shape of the workpiece is.
A second embodiment of the present invention provides a two-dimensional image measuring device based on a mobile terminal, which is used to implement the measuring method in the first embodiment, and as shown in the schematic structural diagram of the measuring device shown in fig. 5, the measuring device includes:
the acquisition module 51 is used for calling a camera unit to acquire a preview image of the object to be detected;
the establishing module 52 is configured to establish an image coordinate system based on the preview image, and establish a scale according to an imaging ratio between the preview image and the object to be measured; the scale is used for displaying a measurement unit of a current image coordinate system;
the recording module 53 is configured to acquire and record coordinate information of a first point to be measured and a second point to be measured on the object to be measured;
and the calculating module 54 is configured to calculate a distance between the first point to be measured and the second point to be measured according to the coordinate information of the first point to be measured and the coordinate information of the second point to be measured.
Specifically, the obtaining module 51 calls a camera unit, the camera unit is a camera assembly carried by the mobile terminal, after the camera unit is turned on, the camera unit performs light supplement based on an environmental condition and by using an lED lamp carried by the mobile terminal, and further performs focusing and lens compensation until a high-definition preview image of the object to be measured is obtained, and if the preview image is enlarged or reduced, focusing again is required.
The establishing module 52 is configured to display an image coordinate system, a ruler and a preview image on a screen of the mobile terminal, where the image coordinate system may be a fixed image coordinate system or an image coordinate system established according to a point to be measured, the screen of the mobile terminal is a touch-controllable display screen, and when the preview image is enlarged or reduced, the ruler is synchronously adjusted corresponding to the enlarged or reduced preview image; the scale regulation comprises the self-adaptive regulation of a metering unit and the self-adaptive regulation of a scale distance, and the corresponding coordinate coefficient value unit is the same as the scale unit, namely the scale displayed by the scale, the coordinate system and the provided data parameters are consistent with the size of a real object.
The recording module 53 is specifically configured to record coordinate information of a first point to be measured and the second point to be measured captured by a capture cursor, where the capture cursor is disposed on a screen of the mobile terminal and can move on the screen of the mobile terminal. It should be noted that, during the cursor moving process, the coordinate data of the current cursor point may be displayed on the screen of the mobile terminal in real time.
The calculating module 54 is specifically configured to calculate and obtain a first distance between the first point to be measured and the second point to be measured in the X-axis direction according to the obtained X-axis coordinate of the first point to be measured and the obtained X-axis coordinate of the second point to be measured; calculating according to the Y-axis coordinate of the first point to be measured and the Y-axis coordinate of the second point to be measured to obtain a second distance in the Y-axis direction; and calculating the linear distance between the first point to be measured and the second point to be measured according to the first distance and the second distance.
Compared with the prior art, the measuring device provided by the invention solves the requirement of high-precision size measurement of practitioners in the precision plastic and hardware industries, makes up the respective defects of small precision measuring tools such as vernier calipers and screw micrometers and large measuring instruments such as image measuring instruments, and can easily complete the measurement operation and meet the micron-grade precision requirement by means of a mobile terminal no matter how complex the shape of a workpiece is.
In the present invention, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1.一种基于移动终端的二次元影像测量方法,其特征在于,包括:1. A two-dimensional image measurement method based on a mobile terminal, is characterized in that, comprising: 调用摄像单元获取待测物体的预览图像;Call the camera unit to obtain the preview image of the object to be measured; 基于所述预览图像建立图像坐标系,并根据所述预览图像与所述待测物体之间的成像比例建立标尺;其中,所述标尺用于指示当前图像坐标系的计量单位;An image coordinate system is established based on the preview image, and a scale is established according to the imaging ratio between the preview image and the object to be measured; wherein, the scale is used to indicate the measurement unit of the current image coordinate system; 获取处于所述待测物体之上的第一待测点以及第二待测点的坐标信息并记录;Acquire and record the coordinate information of the first point to be measured and the second point to be measured above the object to be measured; 根据所述第一待测点的坐标信息和所述第二待测点的坐标信息计算所述第一待测点和所述第二待测点之间的距离。The distance between the first to-be-measured point and the second to-be-measured point is calculated according to the coordinate information of the first to-be-measured point and the second to-be-measured point. 2.根据权利要求1所述的二次元影像测量方法,其特征在于,所述调用摄像单元获取待测物体的预览图像,包括:2. The two-dimensional image measurement method according to claim 1, wherein the invoking the camera unit to obtain the preview image of the object to be measured comprises: 控制摄像单元基于环境状况进行补光;Control the camera unit to fill light based on environmental conditions; 控制所述摄像单元进行对焦及镜头补偿,获取所述待测物体的高清预览图像。The camera unit is controlled to perform focusing and lens compensation to obtain a high-definition preview image of the object to be measured. 3.根据权利要求1所述的二次元影像测量方法,其特征在于,所述基于所述预览图像建立图像坐标系,并根据所述预览图像与所述待测物体之间的成像比例建立标尺,包括:3 . The two-dimensional image measurement method according to claim 1 , wherein the image coordinate system is established based on the preview image, and a scale is established according to the imaging ratio between the preview image and the object to be measured. 4 . ,include: 针对移动终端的屏幕上所设定的显示区域建立固定图像坐标系;或,根据所述预览图像显示的待测物体,基于所述待测物体上的待测点建立图像坐标系;Establish a fixed image coordinate system for the display area set on the screen of the mobile terminal; or, according to the object to be measured displayed in the preview image, establish an image coordinate system based on the point to be measured on the object to be measured; 根据所述预览图像与所述待测物体之间的成像比例,建立对应于所述图像坐标系的标尺。According to the imaging ratio between the preview image and the object to be measured, a scale corresponding to the image coordinate system is established. 4.根据权利要求1所述的二次元影像测量方法,其特征在于,所述获取处于所述待测物体之上的第一待测点以及第二待测点的坐标信息并记录,包括:4. The two-dimensional image measurement method according to claim 1, wherein the acquiring and recording the coordinate information of the first point to be measured and the second point to be measured above the object to be measured, comprising: 利用屏幕上设置的捕捉光标对待测点进行捕捉,在检测到所述捕捉光标处于所述图像坐标系中时,实时显示当前捕捉光标所处位置的坐标信息;Use the capture cursor set on the screen to capture the point to be measured, and when it is detected that the capture cursor is in the image coordinate system, display the coordinate information of the position of the current capture cursor in real time; 接收作用于所述捕捉光标的移动指令,通过所述捕捉光标分别捕捉所述第一待测点和所述第二待测点,并记录所述第一待测点和第二待测电的坐标信息。Receive a movement command acting on the capture cursor, capture the first point to be measured and the second point to be measured through the capture cursor, and record the first point to be measured and the second point to be measured electricity Coordinate information. 5.根据权利要求4所述的二次元影像测量方法,其特征在于,所述根据所述第一待测点的坐标信息和所述第二待测点的坐标信息计算所述第一待测点和所述第二待测点之间的距离,包括:5 . The two-dimensional image measurement method according to claim 4 , wherein calculating the first to-be-measured point according to the coordinate information of the first to-be-measured point and the coordinate information of the second to-be-measured point. 6 . The distance between the point and the second point to be measured, including: 根据所述第一待测点坐标和所述第二待测点坐标获得所述第一待测点和所述第二待测点在X轴方向上的第一距离、所述第一待测点和所述第二待测点在Y轴方向上的第二距离,并根据所述第一距离以及所述第二距离计算所述第一待测点和所述第二待测点之间的直线距离。According to the coordinates of the first point to be measured and the coordinates of the second point to be measured, the first distance between the first point to be measured and the second point to be measured in the X-axis direction is obtained. The second distance between the point and the second point to be measured in the Y-axis direction, and calculate the distance between the first point to be measured and the second point to be measured according to the first distance and the second distance straight-line distance. 6.一种基于移动终端的二次元影像测量装置,其特征在于,包括:6. A two-dimensional image measurement device based on a mobile terminal, characterized in that, comprising: 获取模块,用于调用摄像单元获取待测物体的预览图像;an acquisition module, used to call the camera unit to acquire a preview image of the object to be measured; 建立模块,用于基于所述预览图像建立图像坐标系,并根据所述预览图像与所述待测物体之间的成像比例建立标尺;其中,所述标尺用于指示当前图像坐标系的计量单位;The establishment module is used to establish an image coordinate system based on the preview image, and establish a scale according to the imaging ratio between the preview image and the object to be measured; wherein, the scale is used to indicate the measurement unit of the current image coordinate system ; 记录模块,用于获取处于所述待测物体之上的第一待测点以及第二待测点的坐标信息并记录;a recording module, used to acquire and record the coordinate information of the first to-be-measured point and the second to-be-measured point above the to-be-measured object; 计算模块,用于根据所述第一待测点的坐标信息和所述第二待测点的坐标信息计算所述第一待测点和所述第二待测点之间的距离。The calculation module is configured to calculate the distance between the first to-be-measured point and the second to-be-measured point according to the coordinate information of the first to-be-measured point and the coordinate information of the second to-be-measured point. 7.根据权利要求6所述的二次元影像测量装置,其特征在于,所述获取模块具体用于:7. The two-dimensional image measurement device according to claim 6, wherein the acquisition module is specifically used for: 控制所述摄像单元基于环境状况进行补光;controlling the camera unit to perform supplementary light based on environmental conditions; 控制摄像单元进行对焦及镜头补偿,获取所述待测物体的高清预览图像。The camera unit is controlled to perform focusing and lens compensation to obtain a high-definition preview image of the object to be measured. 8.根据权利要求6所述的二次元影像测量装置,其特征在于,所建立模块具体用于:8. The two-dimensional image measuring device according to claim 6, wherein the established module is specifically used for: 针对移动终端的屏幕上所设定的显示区域建立固定图像坐标系;或,根据所述预览图像显示的待测物体,基于所述待测物体上的待测点建立图像坐标系;A fixed image coordinate system is established for the display area set on the screen of the mobile terminal; or, according to the object to be measured displayed in the preview image, an image coordinate system is established based on the point to be measured on the object to be measured; 根据所述预览图像与所述待测物体之间的成像比例,建立对应于所述图像坐标系的标尺。According to the imaging ratio between the preview image and the object to be measured, a scale corresponding to the image coordinate system is established. 9.根据权利要求6所述的二次元影像测量装置,其特征在于,所述记录模块具体用于:9. The two-dimensional image measuring device according to claim 6, wherein the recording module is specifically used for: 利用屏幕上设置的捕捉光标对待测点进行捕捉,在检测到所述捕捉光标处于所述图像坐标系中时,实时显示当前捕捉光标所处位置的坐标信息;Use the capture cursor set on the screen to capture the point to be measured, and when it is detected that the capture cursor is in the image coordinate system, display the coordinate information of the position of the current capture cursor in real time; 接收作用于所述捕捉光标的移动指令,通过所述捕捉光标分别捕捉所述第一待测点和所述第二待测点,并记录所述第一待测点和第二待测电的坐标信息。Receive a movement instruction acting on the capture cursor, capture the first point to be measured and the second point to be measured through the capture cursor, and record the first point to be measured and the second point to be measured electricity Coordinate information. 10.根据权利要求6所述的二次元影像测量装置,其特征在于,所述计算模块具体用于:10. The two-dimensional image measurement device according to claim 6, wherein the calculation module is specifically used for: 根据所述第一待测点坐标和所述第二待测点坐标获得所述第一待测点和所述第二待测点在X轴方向上的第一距离、所述第一待测点和所述第二待测点在Y轴方向上的第二距离,并根据所述第一距离以及所述第二距离计算所述第一待测点和所述第二待测点之间的直线距离。According to the coordinates of the first point to be measured and the coordinates of the second point to be measured, the first distance between the first point to be measured and the second point to be measured in the X-axis direction is obtained. The second distance between the point and the second point to be measured in the Y-axis direction, and calculate the distance between the first point to be measured and the second point to be measured according to the first distance and the second distance straight-line distance.
CN202111366662.7A 2021-11-17 2021-11-17 Mobile terminal-based quadratic element image measuring method and device Pending CN114166187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111366662.7A CN114166187A (en) 2021-11-17 2021-11-17 Mobile terminal-based quadratic element image measuring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111366662.7A CN114166187A (en) 2021-11-17 2021-11-17 Mobile terminal-based quadratic element image measuring method and device

Publications (1)

Publication Number Publication Date
CN114166187A true CN114166187A (en) 2022-03-11

Family

ID=80480003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111366662.7A Pending CN114166187A (en) 2021-11-17 2021-11-17 Mobile terminal-based quadratic element image measuring method and device

Country Status (1)

Country Link
CN (1) CN114166187A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926523A (en) * 2022-05-06 2022-08-19 杭州海康威视系统技术有限公司 Building height measuring method and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101524268A (en) * 2009-04-03 2009-09-09 莱芜钢铁集团有限公司医院 Multifunctional galactophore image positioning and measuring apparatus
CN102156969A (en) * 2011-04-12 2011-08-17 潘林岭 Processing method for correcting deviation of image
CN102980556A (en) * 2012-11-29 2013-03-20 北京小米科技有限责任公司 Distance measuring method and device
CN103791841A (en) * 2012-11-02 2014-05-14 深圳市亚美斯达科技有限公司 Magnification measurement method for handheld electronic terminal with imagery function
CN105554247A (en) * 2015-12-07 2016-05-04 魅族科技(中国)有限公司 Measuring method, measuring system and terminal
CN108304119A (en) * 2018-01-19 2018-07-20 腾讯科技(深圳)有限公司 object measuring method, intelligent terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101524268A (en) * 2009-04-03 2009-09-09 莱芜钢铁集团有限公司医院 Multifunctional galactophore image positioning and measuring apparatus
CN102156969A (en) * 2011-04-12 2011-08-17 潘林岭 Processing method for correcting deviation of image
CN103791841A (en) * 2012-11-02 2014-05-14 深圳市亚美斯达科技有限公司 Magnification measurement method for handheld electronic terminal with imagery function
CN102980556A (en) * 2012-11-29 2013-03-20 北京小米科技有限责任公司 Distance measuring method and device
CN105554247A (en) * 2015-12-07 2016-05-04 魅族科技(中国)有限公司 Measuring method, measuring system and terminal
CN108304119A (en) * 2018-01-19 2018-07-20 腾讯科技(深圳)有限公司 object measuring method, intelligent terminal and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926523A (en) * 2022-05-06 2022-08-19 杭州海康威视系统技术有限公司 Building height measuring method and equipment
CN114926523B (en) * 2022-05-06 2025-03-18 杭州海康威视系统技术有限公司 A method and device for measuring building height

Similar Documents

Publication Publication Date Title
CN101726246A (en) Correcting sheet and correcting method
KR20020096948A (en) Distance measuring method and image input device with distance measuring function
KR101068078B1 (en) Data recording method to an imaging device, an imaging lens, and an imaging lens
WO2020020021A1 (en) Temperature measurement processing method and apparatus, and thermal imaging device
CN113160393B (en) High-precision three-dimensional reconstruction method and device based on large depth of field and related components thereof
CN111614951B (en) Optical axis calibration equipment and method for integrated pan-tilt camera
TWI245556B (en) Autofocus control method, autofocus controller, and image processor
CN117278851A (en) Focusing method and device applied to monitoring device and storage medium
CN116182786A (en) Monocular vision ranging method, camera and medium
CN114166187A (en) Mobile terminal-based quadratic element image measuring method and device
CN113989393B (en) Scanning device objective table flatness correction method based on image information processing
TW201312080A (en) Non-contact method for measuring dimensions of objects
JP2011138096A (en) Measuring microscope
JP4759184B2 (en) Measuring endoscope device
US10613308B2 (en) Method and microscope for measuring and calculating heights on curved surface of microscope slide
EP3385663B1 (en) Height measuring and estimation method of uneven surface of microscope slide, and microscope
JPH04172213A (en) Calibrating method for three-dimensional shape measuring apparatus
JP2013246052A (en) Distance measuring apparatus
CN107527323B (en) Calibration method and device for lens distortion
CN113596441B (en) Optical axis adjusting device, method, system and readable storage medium
CN103162619A (en) Image measurement instrument and image measuring method
TW483276B (en) Positioning method to accurately position the optical lens module and array sensor device of optical image sensing device and the device thereof, and the method to calibrate and compensate the image distortion of optical lens set
JPH11101640A (en) Camera and camera calibration method
JP2014115179A (en) Measuring device, document camera and measuring method
CN109729347B (en) Virtual image magnification test method, device and virtual display 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220311