Size measurement method of AR equipment, AR equipment and readable storage medium
By capturing the gaze point of the user's eyeballs and collecting eye movement data, combined with the auxiliary line image of the AR device, the problem of complex operation and insufficient accuracy in size measurement of existing AR devices is solved, achieving a more efficient and accurate measurement process.
Patent Information
- Application Number
- CN202410620709.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
AI Technical Summary
Existing AR devices are complex to operate when measuring geometric dimensions, and cannot capture the user's line of sight and gaze in real time, resulting in inaccurate measurement results.
By capturing the gaze point of the user's eyeballs, the position and direction parameters of the target object are obtained, an auxiliary line image is generated and displayed, the user's eye movement data is collected, and the size of the target object is calculated based on the position and direction parameters of the target object.
It simplifies the measurement process, improves the accuracy of measurement, adapts to the vision conditions of different users, has few and simple operation steps, and can quickly obtain accurate measurement results.
Smart Images

Figure CN118565338A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of augmented reality devices, and in particular to a size measurement method of an AR device, an AR device, and a readable storage medium. Background Art
[0002] As a type of near-eye display technology, augmented reality (AR) technology is a technology that cleverly integrates virtual information with the real world. AR technology widely uses a variety of technical means such as multimedia, three-dimensional modeling, real-time tracking and registration, intelligent interaction, and sensing to simulate computer-generated text, images, three-dimensional models, music, videos and other virtual information, and apply them to the real world. The two types of information complement each other, thereby achieving "enhancement" of the real world. At present, the application of AR technology includes measuring objects in the real environment to help people quickly grasp the size information of objects.
[0003] However, existing AR devices usually rely on complex optical systems to display virtual information when measuring geometric dimensions, which makes the operation complicated. Moreover, during the dimension measurement process, the user's line of sight and gaze point cannot be captured in real time, resulting in inaccurate measurement results. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a dimension measurement method of an AR device, an AR device and a readable storage medium, aiming to solve the problems of complex operation and insufficient accuracy of measurement results in the use scenarios of existing AR devices for measuring dimensions.
[0005] The technical solution of the present invention is as follows:
[0006] A method for measuring the size of an AR device, comprising:
[0007] Capture the user's eye gaze point and obtain the position and direction parameters of the target object;
[0008] Generate and display an auxiliary line image according to the position parameters and direction parameters of the target object;
[0009] Collecting eye movement data of a user scanning with reference to the auxiliary line image;
[0010] The size of the target object is obtained according to the position parameter and the direction parameter of the target object and the eye movement data.
[0011] In the size measurement method of the AR device, the step of capturing the gaze point of the user's eyeball and obtaining the position parameter and direction parameter of the target object specifically includes:
[0012] Collecting user's eye images and user's head posture data;
[0013] Identify the pupil center and the corneal reflection center in the eye image, and obtain the visual axis direction of the eye by calculating the relative position and distance between the pupil center and the corneal reflection center;
[0014] Calculating the user's gaze point according to the visual axis direction and the head posture data;
[0015] The position parameters and direction parameters of the target object gazed by the user in the three-dimensional space are determined according to the gaze point.
[0016] In the method for measuring the size of an AR device, the step of collecting the user's eye image and the user's head posture data specifically includes:
[0017] Using near-infrared light to irradiate and capture an image of the user's eyeball to obtain an image of the user's eye;
[0018] The rotation data of the AR device in the three-dimensional space is detected by a gyroscope, and the posture of the user's head in the three-dimensional space is calculated based on the rotation data to obtain the user's head posture data.
[0019] In the size measurement method of the AR device, the step of collecting eye movement data of the user scanning with reference to the auxiliary line image specifically includes:
[0020] If it is detected that the user's eyeball is scanning with reference to the auxiliary line image, the moving path of the pupil center and the moving path of the corneal reflection center in the user's eye image are collected;
[0021] According to the moving path of the pupil center and the moving path of the corneal reflection center, the length of the path swept on the target object is calculated to obtain measurement data;
[0022] Eye movement data is determined based on the visual axis direction and the measurement data.
[0023] In the size measurement method of the AR device, the step of generating and displaying the auxiliary line image according to the position parameters and direction parameters of the target object specifically includes:
[0024] Based on the position parameters and direction parameters of the target object, auxiliary lines are drawn in the horizontal direction or the vertical direction in the space coordinate system to generate an auxiliary line image;
[0025] A laser path is generated based on the auxiliary line image, a laser beam is projected toward the target object according to the laser path, and the auxiliary line image is displayed on the target object.
[0026] In the size measurement method of the AR device, the step of obtaining the size of the target object based on the position parameter and the direction parameter of the target object and the eye movement data specifically includes:
[0027] Obtaining shape parameters of the target object according to position parameters and direction parameters of the target object;
[0028] The size of the target object is determined according to the shape parameters of the target object and the eye movement data.
[0029] The size measurement method of the AR device, wherein the step of determining the size of the target object according to the shape parameters of the target object and the eye movement data specifically includes:
[0030] A set of formulas is pre-set; wherein the set of formulas includes size calculation formulas for spherical objects and non-spherical objects;
[0031] Determining a shape type of the target object according to shape parameters of the target object;
[0032] A corresponding size calculation formula is selected from the formula set according to the shape type of the target object, and the eye movement data is substituted into the formula to perform calculation to obtain the size of the target object.
[0033] The size measurement method of the AR device, wherein the step of selecting a corresponding size calculation formula from the formula set according to the shape type of the target object and substituting the eye movement data for calculation, and obtaining the size of the target object specifically includes:
[0034] If the shape type of the target object is a sphere, a sphere area calculation formula and a surface area calculation formula are retrieved from the formula set;
[0035] Substitute the eye movement data into the sphere area calculation formula and the surface area calculation formula to calculate the size of the target object.
[0036] The present application also discloses an AR device, which is used to implement the dimension measurement method of the AR device as described above, wherein the AR device includes:
[0037] a laser beam scanner for projecting an auxiliary line image toward a target object;
[0038] An eye tracking module, used to capture the user's eye gaze point and collect eye movement data; and
[0039] The processor is electrically connected to the laser beam scanner and the eye tracking module, and is used to receive and process the data collected by the eye tracking module, send signals toward the laser beam scanner, and calculate the size of the target object.
[0040] A readable storage medium having a computer program stored thereon, wherein the computer program, when processed and executed, implements the steps of any of the above-mentioned methods for measuring the size of an AR device.
[0041] Compared with the prior art, the embodiments of the present invention have the following advantages:
[0042] When the AR device disclosed in the present invention measures the size of a target object, it is not affected by the user's vision and can adapt to the different vision conditions of different users. By directly capturing the gaze point of the user's eyeball, the position parameters and direction parameters of the target object in three-dimensional space are first obtained; then the auxiliary line image is displayed on the target object, so that the user's eyeball can refer to the auxiliary line image to move during the measurement process; the user's eye movement data can be directly obtained while the user is scanning, and then the eye movement data is combined with the position parameters and direction parameters of the target object to calculate the size of the target object. The entire measurement process has few operating steps, the measurement result can be obtained simply and quickly, and the measurement accuracy is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be determined based on these drawings without paying creative work.
[0044] Figure 1 It is a flow chart of the method for measuring the size of an AR device in the present invention;
[0045] Figure 2 This is a flow chart of step S100 in the method for measuring the size of an AR device in the present invention;
[0046] Figure 3 It is a simplified structural diagram of the AR device in the present invention;
[0047] Figure 4 It is a structural schematic diagram of the AR device in the present invention.
[0048] Among them, 10, laser beam scanner; 20, eye tracking module; 30, processor; 40, gyroscope; 50, communication module; 60, sound module. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. The embodiments of the present invention and all other embodiments determined by ordinary technicians in the field without creative work are within the scope of protection of the present invention.
[0050] As AR technology matures, more and more industries are paying attention to and introducing this technology in relevant fields. By using AR technology, combined with advanced artificial algorithms, image recognition algorithms and distance measurement algorithms, AR technology can be applied to geometric dimension measurement, optimize work processes and improve work efficiency.
[0051] At present, the dimension measurement technology installed on AR devices generally needs to scan the three-dimensional space first, and then send instructions to the user through visual or sound prompts to guide the user to measure the target object. The coordinate distribution of the target object in the three-dimensional space is determined according to the movement characteristics of the user's eyeballs during the measurement process, and a trajectory diagram is formed. Then, the trajectory is analyzed to obtain the measurement result. This measurement method requires the support of a complex optical system, and the user's eye scanning movement during the measurement process is free and has no reference, so the size of the target object cannot be accurately expressed according to the user's eye movement characteristics.
[0052] See also Figure 1 In one embodiment of the present invention, a method for measuring the size of an AR device is disclosed, which includes:
[0053] S100: Capture the gaze point of the user's eyes and obtain position parameters and direction parameters of the target object.
[0054] AR devices generally have an optical imaging system and a micro display screen. When in use, virtual information is projected onto the micro display screen through the optical imaging system, and then projected to the human eye through the micro display screen, so that users can see the fusion effect of real scenes and virtual information.
[0055] In this embodiment, the position of the target object to be measured needs to be determined before measuring the size. During the measurement process, the user keeps wearing the AR device and observes the objects in the surrounding space through the micro display screen of the AR device. As the user keeps his sight on the object to be measured, the AR device can indirectly measure the size of the target object through the changes in the gaze point of the user's eyeballs.
[0056] Specifically, when the human eye observes an object, its gaze will stay on the object. The object that the line of sight is aimed at is the target object, and the position of the target object in space is the fixation point. Using pupil-corneal reflection technology, AR devices can obtain a video image of the pupil with the assistance of an infrared light source. After digital detection and pupil center detection, the video image is transmitted to a computer for processing and represented by a coordinate system, which can intuitively mark the position of the fixation point where the pupil center is aimed.
[0057] Specifically, based on the coordinates of the gaze point, the relative distance and relative direction between the target object and the AR device can be determined by calculation, and the relative distance is recorded as the position parameter of the target object in the three-dimensional space, and the relative direction is recorded as the direction parameter of the target object in the three-dimensional space.
[0058] S200: Generate and display an auxiliary line image according to the position parameters and direction parameters of the target object.
[0059] The AR device disclosed in this embodiment can also be equipped with a laser module, which can form visual auxiliary lines by emitting lasers through the laser module. Specifically, the specific position of the target object in the environment can be determined by the position parameters and direction parameters of the target object. The AR device calculates the path of the laser beam that moves horizontally with the position as the origin, or the path of the laser beam that moves vertically, and then transmits the corresponding control signal to the laser module. The laser module emits a laser beam to the position of the gaze point to achieve the effect of drawing lines in the horizontal or vertical direction and making auxiliary line images. It can be seen that this embodiment directly displays the auxiliary line image on the target object, so that the user can refer to the auxiliary line image reflected to the eyeball for scanning during the measurement process.
[0060] The human eye's line of sight is erratic when there is no reference. This embodiment adds a reference auxiliary line image so that the user has a reference when scanning the target object, which is beneficial to improving the stability of the eyeball moving along a straight line, making the data captured by the AR device more accurate, and helping to improve the accuracy of dimensional measurement.
[0061] Specifically, the auxiliary line image disclosed in this embodiment includes but is not limited to any one of auxiliary lines, ruler lines, and labels. The purpose of displaying the auxiliary line image in this embodiment is to assist the user, or to remind the user, to adjust the line of sight with reference to the auxiliary line image in order to measure the size of the object. For example, auxiliary lines are drawn on the target object in the horizontal and vertical directions, and when the user scans from one end of the target object to the other end along the auxiliary lines, the line of sight is more focused.
[0062] The auxiliary line image in this embodiment is virtual information, which can be emitted to the target object by emitting a laser beam. During the user's measurement process, the light path of the laser beam is used as a reference to collect accurate eye movement data and obtain the corresponding size of the target object. For example: if the surface of the target object is a plane, such as measuring a cuboid, a cube, a polygonal prism, etc., an auxiliary line is projected on the target object. When the user measures, he scans from one end of the auxiliary line to the other end, and the length, width or height of the target object can be accurately drawn; if there is a curved surface on the surface of the target object, such as measuring a sphere, a hemisphere, a cone, etc., an auxiliary line is projected on the target object, and the diameter or radius of the target object can be accurately measured.
[0063] It should be noted that the types of auxiliary line images are only exemplified in this embodiment, but the protection scope of the present invention is not limited to this. As long as other types of auxiliary line images can achieve the technical effects disclosed in this application, they should also be within the scope of protection of this application as equivalent replacements for the concept of the present invention.
[0064] S300: Collect eye movement data of the user scanning with reference to the auxiliary line image.
[0065] It can be seen that compared with the working mode of traditional augmented reality devices that directly capture and measure objects in space, the size measurement method disclosed in this embodiment can flexibly adjust the target object according to the user's gaze direction. During the measurement process, the size of the object is mainly judged by collecting the user's eye movement data. Therefore, combined with virtual optical information, the visual image can assist the user's line of sight to move along the path in the auxiliary line image to perform accurate measurement, reduce the occurrence of the measurement result affected by the user's visual deviation, and improve the accuracy of the final measurement result.
[0066] S400: Obtain the size of the target object according to the position parameters and direction parameters of the target object and the eye movement data.
[0067] After determining the position parameters and direction parameters of the target object, the shape of the target object can be determined, for example, by setting a camera on the AR device to capture images within the field of view, identifying the position of the target object in the captured image, and then judging the shape of the target object based on its contour, which is recorded as shape parameters. Based on the size calculation formula for objects of different shapes, the eye movement data, i.e., the length, width, height or radius of the target object measured by the AR device, can be substituted to calculate the size of the target object, such as the area, volume or surface area of the target object.
[0068] When the AR device disclosed in this embodiment measures the size of the target object, it is not affected by the user's vision and can adapt to the different vision conditions of different users. By directly capturing the gaze point of the user's eyeball, the position parameters and direction parameters of the target object in three-dimensional space are first obtained. While the user is scanning, the user's eye movement data can be directly obtained, and then the eye movement data can be combined with the position parameters and direction parameters of the target object to calculate the size of the target object. The entire measurement process has few operating steps, and the measurement results can be obtained simply and quickly, and the accuracy of the measurement is improved. In short, the size measurement method disclosed in this embodiment is more practical and can be flexibly applied to various usage scenarios.
[0069] See also Figure 2 As another implementation of this embodiment, step S100 is disclosed to specifically include:
[0070] S110: Collect the user's eye image and the user's head posture data.
[0071] Specifically, after starting the measurement program, the AR device can display prompt information on the display screen to guide the user to keep their eyes on the target object. When the user's eyes remain still for a certain period of time, such as 3-5 seconds, and the user's eyes do not move, it can be determined that the user is looking at the target object. Then, the user's eyeballs can be photographed through the hardware (such as a micro camera) on the AR device to obtain the user's eye image.
[0072] At the same time, the AR device disclosed in this embodiment may be equipped with a gyroscope, which is a device for measuring and maintaining directional stability. It uses the rotational properties of an object to determine direction and position. In augmented reality technology, a gyroscope can be used to sense the user's body posture and environment. When it is determined that the user's line of sight is no longer moving, the user's head posture at this time is sensed by the gyroscope, and the user's head posture data can be collected.
[0073] S120, identifying the pupil center and the corneal reflection center in the eye image, and obtaining the visual axis direction of the eye by calculating the relative position and distance between the pupil center and the corneal reflection center.
[0074] After acquiring the eye image, the image processing algorithm is used to identify the pupil center and corneal reflection center from each eye image. These two points in the eye image can reflect the rotation and position of the eye. Specifically, the pupil center moves as the human eye rotates, but the corneal reflection center is the point where the light emitted by a fixed light source is reflected back on the cornea. Therefore, during the measurement process, as long as the AR device and the user's eyes do not move relative to each other, the position of the corneal reflection center will not change. In different eye images, only the position of the pupil center will change, and when the position of the pupil center changes, the relative position and distance between the pupil center and the corneal reflection center will change. Therefore, it is only necessary to track the changes in the pupil center in multiple eye images to determine the position of the gaze point, that is, to calculate the visual axis direction of the eye based on the relative position and distance between the pupil center and the corneal reflection center, and obtain the visual axis direction of the user's eye.
[0075] S130, calculating the user's gaze point according to the visual axis direction and the head posture data.
[0076] During the measurement process, the user directly observes the target object through the lens. The visual axis direction of the user directly obtained by the AR device is expressed in the coordinates of the coordinate system with the AR device as the coordinate origin. Therefore, it is necessary to convert the real visual axis direction of the user in the three-dimensional space. First, the AR device can be worn on the user, for example, AR glasses are worn on the user's head. During the measurement process, the user's head may deflect, so the directly measured visual axis direction of the user needs to be considered as the sum of the data of the user's head deflection direction and the data of the user's visual axis direction directly measured by the AR device. In order to improve the accuracy of the measurement, the data of the deflection direction of the user's head is measured by the gyroscope and recorded as the head posture data; then the head posture data is added to the data of the user's visual axis direction directly measured by the AR device, and the optimized user visual axis direction data can be calculated; secondly, there is a fixed geometric relationship between the lens of the AR device and the display screen, forming a certain angle. The optimized user visual axis direction data is combined with the deviation of the angle, and then the user's gaze point on the screen of the AR device is calculated.
[0077] S140: Determine the position parameters and direction parameters of the target object that the user is gazing at in the three-dimensional space according to the gaze point.
[0078] Finally, after obtaining accurate gaze point data, the coordinates of the user's gaze point in the spatial coordinate system are recorded to record the position parameters and direction parameters of the target object in the three-dimensional space.
[0079] It can be seen that in this embodiment, the eye tracking technology is used to analyze the movement of the user's eyes, so as to adapt to the user's vision to determine the position of the target object in the three-dimensional space. It has the advantages of high accuracy, high flexibility and strong adaptability, increases the interaction performance between the AR device and the user, further improves the convenience and accuracy of the measurement, and improves work efficiency.
[0080] Specifically, as another implementation of this embodiment, step S110 is disclosed to specifically include:
[0081] S111, using near-infrared light to irradiate and capture an image of the user's eyeball to obtain an image of the user's eye;
[0082] In this embodiment, an eye tracking module may be used to track the eye movements of the user. The eye tracking module uses a video eye tracker to illuminate and capture the user's eyes using near-infrared light and a camera, thereby obtaining eye images.
[0083] S112. Detecting rotation data of the AR device in the three-dimensional space through a gyroscope, calculating the posture of the user's head in the three-dimensional space based on the rotation data, and obtaining the user's head posture data.
[0084] A gyroscope can be set on an AR device and calibrated in a horizontal state at the factory. During use, the AR device can be worn on the human body, for example, on the head. Based on the principle of conservation of angular momentum, when the user's head turns, the gyroscope is forced to maintain the same tilt angle as the user's head. At this time, the gyroscope can quickly detect the deflection angle and thus determine the user's head posture. In other words, the gyroscope on the AR device can monitor the user's head posture in real time and provide real-time feedback of the user's head posture data during the measurement process.
[0085] Specifically, as another implementation of this embodiment, step S200 is disclosed to specifically include:
[0086] S210, based on the position parameters and direction parameters of the target object, draw auxiliary lines in the horizontal direction or the vertical direction in the space coordinate system to generate an auxiliary line image;
[0087] S220, generating a laser path based on the auxiliary line image, projecting a laser beam toward the target object according to the laser path, and displaying the auxiliary line image on the target object.
[0088] In this embodiment, a module for generating laser light, such as a laser transmitter, may be provided on the AR device. After determining the position of the target object through the position parameters and direction parameters of the target object, the processor of the AR device may generate data of the corresponding auxiliary line image, and send the data to the laser transmitter. After the laser path is generated, the laser transmitter makes a horizontal auxiliary line in the horizontal direction toward the target object, or makes a vertical auxiliary line in the vertical direction, and displays it on the target object, so that the user can receive the light beam reflected from the target object and intuitively see the width range and height range of the target object, thereby facilitating subsequent scanning, accurately scanning along the length, width and height direction of the target object, or the radius and arc length direction, so that the eye movement data is more accurate and the accuracy of dimensional measurement is improved.
[0089] Specifically, as another implementation of this embodiment, step S300 is disclosed to specifically include:
[0090] S310: If it is detected that the user's eyeball is scanning with reference to the auxiliary line image, the moving path of the pupil center and the moving path of the corneal reflection center in the user's eye image are collected.
[0091] In this embodiment, after the auxiliary line image is obtained, the user starts to scan from one edge of the target object to the other opposite side. As the user's eye moves, the user's eye image is captured at a fixed frequency, for example, once every 0.5 seconds. When the movement path of the user's eye determined in three consecutive images is the same as the path of the auxiliary line, it can be determined that the user is scanning along the auxiliary line image.
[0092] S320: Calculate the length of the path scanned on the target object according to the moving path of the pupil center and the moving path of the corneal reflection center to obtain measurement data.
[0093] Specifically, since the user's head moves during the scanning process, and the eyeballs also rotate during the movement of the head, the point where the light emitted by the light source on the AR device worn on the head is reflected on the cornea will move, that is, the position of the corneal reflection center in the eye image will change. Since the direction of the line connecting the pupil center and the corneal reflection center is the line of sight of the eyeball, the direction of the line connecting the pupil center and the corneal reflection center rotates at the beginning and end of the measurement, and this rotation angle can be calculated by the position of the corneal reflection center and the position of the pupil center in the glasses image at the beginning and end of the measurement. When the position parameters of the target object are known, the length of the path scanned on the target object can be calculated based on this angle and the distance between the pupil center and the corneal reflection center to obtain the measurement data. In other words, by identifying the position changes of the user's pupil center and corneal reflection center in multiple eye images, the path and gaze point of the user's eye movement are inferred, and the user's measurement path on the target object is recorded accordingly.
[0094] S330. Determine eye movement data based on the visual axis direction and the measurement data.
[0095] In this embodiment, the measurement data is the distance the user's eye moves during the scanning process. When the user moves from one end of the target object to the other end in the horizontal direction, the measured movement distance of the user's eye is the width of the target object, and its value is the measurement data; when the user moves from the upper end to the lower end of the target object, or from the lower end to the upper end in the vertical direction, the measured movement distance of the user's eye is the height of the target object, and its value can also be the measurement data; similarly, if the target object is a sphere, a cone, etc., the user can also obtain the arc length of the target object by scanning along the edge of the target object when scanning.
[0096] Since it is not possible to ensure that the user is scanning in a correct posture during the measurement process, the user's visual axis direction may form an angle with the direction of the X, Y, and Z axes in the spatial coordinate system, and the target object is placed in the spatial coordinate system. Therefore, it is necessary to remove the influence of the visual axis direction from the measurement data and calculate the actual corresponding size data of the target object in the spatial coordinate system, that is, the eye movement data. The specific calculation method is as follows:
[0097] For example, when the target object is a cuboid, its length, width, height, surface area, and volume can be calculated using the following formulas (1) to (5):
[0098] L=sinθ×l........................................(1)
[0099] Wherein, L is the length of the target object; θ is the angle between the user's visual axis direction and the surface parallel to the axial direction of the target object; l is the length of the path scanned by the user along the length direction of the target object, i.e., the measurement data.
[0100]
[0101] Where W is the width of the target object; is the angle between the user's visual axis direction and the surface parallel to the radial direction of the target object; w is the length of the path collected by the user scanning along the width direction of the target object, that is, the measurement data.
[0102] H=sinσ×h.................................(3)
[0103] Wherein, H is the height of the target object; σ is the angle between the user's visual axis direction and the surface parallel to the radial direction of the target object; and h is the length of the path collected by the user scanning along the height direction of the target object, i.e., the measurement data.
[0104] S=2×(L×W+L×H+W×H)........................(4)
[0105] Where S is the surface area of the target object.
[0106] V=L×W×H................................(5)
[0107] Where V is the volume of the target object.
[0108] It can be seen that the dimension measurement method disclosed in this embodiment can measure multiple dimensions of the target object.
[0109] When the target object is a sphere, its radius, surface area and volume can be calculated using the following formulas (6) to (8):
[0110] R=sinα×r................................(6)
[0111] Wherein, R is the radius of the target object; α is the angle between the user's visual axis direction and the tangent direction of the target object; r is the length of the path along which the user scans the edge of the target object, i.e., the measurement data.
[0112] S R =4×π×R 2 .............................................(7)
[0113] Among them, S R is the surface area of the target object.
[0114]
[0115] Among them, V R is the volume of the target object.
[0116] When the target object is a cylinder, its base radius, height, surface area and volume can be calculated using the following formulas (9) to (12):
[0117] R a =sinβ×r a.............................................(9)
[0118] Among them, R a is the bottom radius of the target object; β is the angle between the user's visual axis and the top or bottom surface of the target object; r a The length of the path that the user scans along the edge of the top or bottom surface of the target object, that is, the measurement data.
[0119] H a = sinγ×h a ............................................(10)
[0120] Among them, H a is the height of the target object; γ is the angle between the user's visual axis and the side of the target object; h a The length of the path that the user scans along the side edge of the target object, that is, the measurement data.
[0121] S a =2π×R a ×(R a +H a )...................................(11)
[0122] Among them, S a is the surface area of the target object.
[0123] V a =π×R a 2 ×H a ..........................................(12)
[0124] Among them, V a is the volume of the target object.
[0125] It can be seen that in this embodiment, the length of the path scanned on the target object is calculated based on the scanning path of the user's eyes, so that the eye movement data can be calculated in combination with the visual axis direction. There is no need to capture the image of the target object in the three-dimensional space, and it can adapt to the user's line of sight movement or head posture change. Moreover, the eye movement data can be directly collected through the eye tracking module, which is simple and convenient to operate, and is conducive to improving the efficiency of size measurement.
[0126] Specifically, as another implementation of this embodiment, step S400 is disclosed to specifically include:
[0127] S410, obtaining shape parameters of the target object according to position parameters and direction parameters of the target object;
[0128] S420: Determine the size of the target object according to the shape parameters of the target object and the eye movement data.
[0129] In this embodiment, the size of the target object measured may include length, width, height, radius, diameter, etc., and even the area, volume, etc. of the target object can be measured. Therefore, while obtaining the eye movement data, it is necessary to first determine the shape parameters of the target object based on the position parameters and direction parameters of the target object. For example, by setting a camera on the AR device to capture images within the field of view, the position of the target object in the captured image is identified based on the coordinates of the gaze point, and then its contour is identified to determine the shape of the target object, which is recorded as the shape parameter. After determining the shape of the object, it is better to calculate according to the corresponding formula, and combine the eye movement data to calculate the size of the target object.
[0130] Specifically, as another implementation of this embodiment, step S420 is disclosed to specifically include:
[0131] S421, presetting a formula set; wherein the formula set includes size calculation formulas for spherical objects and non-spherical objects;
[0132] S422, determining a shape type of the target object according to shape parameters of the target object;
[0133] S423. Select a corresponding size calculation formula from the formula set according to the shape type of the target object, and substitute the eye movement data into the formula to perform calculation to obtain the size of the target object.
[0134] A calculation program is pre-set in the AR device. For example, the area calculation formula and surface area calculation formula of a sphere, the area calculation formula and surface area calculation formula of a cone, the area calculation formula and surface area calculation formula of a cylinder, the area calculation formula and surface area calculation formula of a cuboid, etc. The size calculation formulas of conventional geometric shapes are packaged into a formula set and stored in advance. After the shape type of the target object is determined, it can be directly retrieved for fast calculation.
[0135] Specifically, the shape parameters of the target object are determined by the AR device, for example, by setting a camera on the AR device to capture images within the field of view, identifying the position of the target object in the captured image, and then judging the shape of the target object based on its contour, which is recorded as the shape parameter. Therefore, based on the shape parameters, it can be known whether the target object is a sphere, a cuboid, a prism, a cylinder or other shapes, and the shape type of the target object can be determined.
[0136] Specifically, as another implementation of this embodiment, step S423 is disclosed to specifically include:
[0137] S4231, if the shape type of the target object is a sphere, calling out a sphere area calculation formula and a surface area calculation formula from the formula set;
[0138] S4232. Substitute the eye movement data into the sphere area calculation formula and the surface area calculation formula to calculate the size of the target object.
[0139] When the target object is spherical, the user only needs to scan along the diameter direction of the target object. After obtaining the diameter of the target object, the user can call up the sphere area calculation formula and the surface area calculation formula for quick calculation to obtain accurate measurement results. There are few operation steps and high measurement efficiency.
[0140] Specifically, the dimension measurement method of the AR device disclosed in this embodiment can be applied to a variety of usage environments. For example:
[0141] Example 1: When customizing clothing, it is generally necessary to measure height, waist circumference, chest circumference, arm length and other related data. The size measurement method of the AR device disclosed in this embodiment is used to measure the size. At this time, the person being measured is the target object. It is only necessary to mark the person being measured 2 meters away from the measurer. The relevant size data can be analyzed through photos or videos of the front, side and back of the person being measured. If customized measurement is required, the AR device will automatically calculate the required size. For example, after determining the position of the person being measured, a laser auxiliary line is emitted to the body of the person being measured, and then the AR device automatically obtains the height, three-dimensional and other size data of the person being measured through human eye scanning. Moreover, the measured size data can be quickly fed back to the measurer by displaying it on the body of the person being measured. Furthermore, the size data can also be sent to online clothing merchants to achieve fast, convenient and accurate clothing customization.
[0142] Example 2: When buying furniture, you need to measure the size of the indoor space. Through the size measurement method of the AR device disclosed in this embodiment, with the building as the target object, laser beams can be emitted to the walls, floors, ceilings, etc. of the room to display auxiliary line images, and then the AR device detects the eye movement data of the human eye during scanning to calculate the size data of the room, such as the length, width, height, volume, etc. of the room. In addition, it can be displayed on the display screen of the AR device, combined with browsing the style, color, price and other information of the furniture on the AR device, so that the virtual model of the furniture can be placed in the room to preview the placement effect of the furniture, such as size, position, matching, etc.
[0143] Furthermore, by setting up a sound module, voice commands can be used to adjust the virtual model of furniture, such as rotating, scaling, moving, etc., to achieve real-time, intuitive, and personalized furniture purchases.
[0144] Example 3: During construction, it is necessary to measure the structural dimensions of the building. Through the dimension measurement method of the AR device disclosed in this embodiment, the building is taken as the target object, and the position parameters and direction parameters of the building in the spatial coordinate system with the surveyor as the origin are obtained. Then, an auxiliary line image is produced and displayed on the building. When the surveyor scans the building, the AR device can automatically measure the various dimensions of the building, obtain the building's dimension data, such as length, width, height, angle, arc, etc., and display it on the display screen of the AR device. Of course, part of the structure of the building can also be measured as a target object alone, such as walls, columns, beams, floor slabs, etc.
[0145] At the same time, you can view the design drawings, construction drawings, renderings and other pre-stored information of the building on the AR device, and superimpose the virtual model of the building on the real environment to check whether the building meets the design requirements, whether there are defects, whether it needs to be corrected, etc. In addition, you can use voice commands or gestures to mark or modify the virtual model of the building, such as adding, deleting, modifying, etc., to achieve efficient, accurate and safe construction.
[0146] like Figure 3 As shown, as another embodiment of the present application, an AR device is disclosed, which is used to implement the size measurement method of the AR device as described in any of the above, wherein the AR device includes a laser beam scanner 10, an eye tracking module 20 and a processor 30, the laser beam scanner 10 is used to project an auxiliary line image toward the target object; the eye tracking module 20 is used to capture the gaze point of the user's eye and collect eye movement data; the processor 30 is electrically connected to the laser beam scanner 10 and the eye tracking module 20, and is used to receive and process the data collected by the eye tracking module 20, and send signals to the laser beam scanner 10 and calculate the size of the target object.
[0147] The AR device disclosed in this embodiment implements the application of retinal projection technology by setting up a laser beam scanner 10, projects virtual information onto the target object, and projects the reflected light beam onto the user's retina, providing a high-definition, high-brightness, and high-contrast display effect, while reducing the complexity and volume of the optical system. It can also adapt to the vision needs of different users and can be used by myopic or hyperopic users.
[0148] In this embodiment, by generating a virtual auxiliary line image, the measurement data can be projected onto the target object in the form of an image, number or other visual form, which is convenient for feedback to the user, enhances the interaction between the user and the AR device, keeps the virtual information consistent with the real environment, and improves the sense of immersion during use.
[0149] In this embodiment, the eye tracking module 20 is used to implement the eye tracking scale measurement technology, which can capture the user's eye movement and gaze point in real time, so as to determine the position and direction of the target object, and use virtual information to assist the user in measurement, thereby improving the convenience and accuracy of size measurement.
[0150] In summary, the AR device disclosed in this embodiment has a clearer display effect, more convenient and accurate measurement, improved work efficiency, and is suitable for a variety of scenarios. It introduces retinal projection technology of laser beam scanning and scale measurement technology of eye tracking, as well as intuitive presentation technology of virtual information, thereby improving the performance of AR devices in display effect, measurement accuracy, and human-computer interaction.
[0151] For example Figure 3 and Figure 4 As shown, as an implementation of this embodiment, it is disclosed that the AR device further includes a gyroscope 40, and the gyroscope 40 is electrically connected to the processor 30; the gyroscope 40 is used to detect the posture data of the AR device. In this embodiment, a gyroscope 40 is provided to detect the posture change of the AR device in real time, so as to obtain the head posture of the user, and the eye tracking module 20 can be combined to further improve the accuracy of the dimensional data measurement.
[0152] For example Figure 3 and Figure 4 As shown, as another implementation of this embodiment, it is disclosed that the AR device further includes a communication module 50 and a sound module 60 , and both the communication module 50 and the sound module 60 are electrically connected to the processor 30 .
[0153] The AR device disclosed in this embodiment increases the flexibility of data management and interaction by providing a communication module 50 and a sound module 60, further improves the adaptability in various scenarios, and increases the convenience of using the AR device.
[0154] The dimension measurement data disclosed in this embodiment can be conveniently obtained remotely after being uploaded to the cloud through the communication module 50. The communication module 50 can be a module with electronic communication functions such as a Bluetooth module and an antenna module.
[0155] For example, in a clothing production scenario, after the designer measures the size of the sample garment in the office, he or she directly uploads it to the cloud to achieve data sharing or storage, making it convenient for the production factory to quickly obtain relevant size data, so as to facilitate rapid production and improve production efficiency.
[0156] The size data of the target object disclosed in this embodiment includes but is not limited to data in the form of text, pictures, videos, etc. By increasing the diversity of data types, the measured size data of the target object can be applied to more application scenarios.
[0157] The sound module 60 disclosed in this embodiment adopts voice interaction technology, can output sound, and feed back the size measurement results to the user through auditory information, thereby further strengthening the interaction with the user, allowing the user to quickly obtain accurate measurement results and improve the immersion during use.
[0158] In addition, in another implementation of this embodiment, a voice input module, such as a Bluetooth module, a microphone, etc., can be provided on the AR device, so that the user can control the output of the dimension measurement results through voice commands, further increasing the degree of human-computer interaction and facilitating use.
[0159] Specifically, the sound module disclosed in this embodiment can use a translation machine to support multiple languages, such as Chinese, English, Japanese, Korean, etc., to increase the diversity of interactive functions to adapt to more usage scenarios.
[0160] As another embodiment of the present application, a readable storage medium is also disclosed, on which a computer program is stored, wherein when the computer program is processed and executed, the steps of the dimension measurement method of the AR device as described above are implemented.
[0161] In summary, the present application discloses a size measurement method for an AR device, which includes: S100, capturing the gaze point of the user's eyeball to obtain the position parameters and direction parameters of the target object; S200, generating and displaying an auxiliary line image based on the position parameters and direction parameters of the target object; S300, collecting the eye movement data of the user scanning with reference to the auxiliary line image; S400, obtaining the size of the target object based on the position parameters and direction parameters of the target object and the eye movement data. When the AR device disclosed in this embodiment measures the size of the target object, it first obtains the position and direction of the target object in three-dimensional space by capturing the gaze point of the user's eyeball and adapting to the user's vision; then it emits virtual information to the target object and makes a measurement path, so that the user's eyeball can move with reference to the measurement path during the measurement process. By directly obtaining the user's eye movement data, the size of the target object can be calculated in combination with the position parameters and direction parameters of the target object. There are few operation steps, and the measurement results can be obtained simply and quickly, which improves the accuracy of the measurement.
[0162] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0163] It should be noted that the present invention takes the dimension measurement method of AR equipment and AR equipment as examples to introduce the specific structure and working principle of the present invention, but the application of the present invention is not limited to the dimension measurement method of AR equipment and AR equipment, and can also be applied to the production and use of other similar workpieces.
[0164] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0165] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for measuring the size of an AR device, characterized in that: include: Capture the user's eye gaze point and obtain the position and direction parameters of the target object; Generate and display an auxiliary line image according to the position parameters and direction parameters of the target object; Collecting eye movement data of a user scanning with reference to the auxiliary line image; The size of the target object is obtained according to the position parameter and the direction parameter of the target object and the eye movement data.
2. The method for measuring the size of an AR device according to claim 1, characterized in that: The step of capturing the gaze point of the user's eyeball and obtaining the position parameter and direction parameter of the target object specifically includes: Collecting user's eye images and user's head posture data; Identify the pupil center and the corneal reflection center in the eye image, and obtain the visual axis direction of the eye by calculating the relative position and distance between the pupil center and the corneal reflection center; Calculating the user's gaze point according to the visual axis direction and the head posture data; The position parameters and direction parameters of the target object gazed by the user in the three-dimensional space are determined according to the gaze point.
3. The method for measuring the size of an AR device according to claim 2, characterized in that: The step of collecting the user's eye image and the user's head posture data specifically includes: Using near-infrared light to irradiate and capture an image of the user's eyeball to obtain an image of the user's eye; The rotation data of the AR device in the three-dimensional space is detected by a gyroscope, and the posture of the user's head in the three-dimensional space is calculated based on the rotation data to obtain the user's head posture data.
4. The method for measuring the size of an AR device according to claim 2, characterized in that: The step of collecting eye movement data of the user scanning with reference to the auxiliary line image specifically includes: If it is detected that the user's eyeball is scanning with reference to the auxiliary line image, the moving path of the pupil center and the moving path of the corneal reflection center in the user's eye image are collected; According to the moving path of the pupil center and the moving path of the corneal reflection center, the length of the path swept on the target object is calculated to obtain measurement data; Eye movement data is determined based on the visual axis direction and the measurement data.
5. The method for measuring the size of an AR device according to claim 1, characterized in that: The step of generating and displaying the auxiliary line image according to the position parameters and direction parameters of the target object specifically includes: Based on the position parameters and direction parameters of the target object, auxiliary lines are drawn in the horizontal direction or the vertical direction in the space coordinate system to generate an auxiliary line image; A laser path is generated based on the auxiliary line image, a laser beam is projected toward the target object according to the laser path, and the auxiliary line image is displayed on the target object.
6. The method for measuring the size of an AR device according to claim 1, characterized in that: The step of obtaining the size of the target object based on the position parameter and the direction parameter of the target object and the eye movement data specifically includes: Obtaining shape parameters of the target object according to position parameters and direction parameters of the target object; The size of the target object is determined according to the shape parameters of the target object and the eye movement data.
7. The method for measuring the size of an AR device according to claim 6, characterized in that: The step of determining the size of the target object according to the shape parameters of the target object and the eye movement data specifically includes: A set of formulas is pre-set; wherein the set of formulas includes size calculation formulas for spherical objects and non-spherical objects; Determining a shape type of the target object according to shape parameters of the target object; A corresponding size calculation formula is selected from the formula set according to the shape type of the target object, and the eye movement data is substituted into the formula to perform calculation to obtain the size of the target object.
8. The method for measuring the size of an AR device according to claim 7, characterized in that: The step of selecting a corresponding size calculation formula from the formula set according to the shape type of the target object and substituting the eye movement data for calculation to obtain the size of the target object specifically includes: If the shape type of the target object is a sphere, a sphere area calculation formula and a surface area calculation formula are retrieved from the formula set; Substitute the eye movement data into the sphere area calculation formula and the surface area calculation formula to calculate the size of the target object.
9. An AR device, used to implement the dimension measurement method of the AR device according to any one of claims 1 to 8, characterized in that: The AR device includes: a laser beam scanner for projecting an auxiliary line image toward a target object; An eye tracking module, used to capture the user's eye gaze point and collect eye movement data; and The processor is electrically connected to the laser beam scanner and the eye tracking module, and is used to receive and process the data collected by the eye tracking module, send signals toward the laser beam scanner, and calculate the size of the target object.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is processed and executed, the steps of the dimension measurement method of the AR device according to any one of claims 1 to 8 are implemented.
