Angle automatic identification system of head-mounted AR device and identification method thereof
By designing an automatic angle recognition system in the head-mounted AR device, using image recognition and angle calculation modules to eliminate cumulative errors, the problem of position deviation between the virtual image and the real image in the existing technology is solved, and non-stop automatic calibration and high accuracy are achieved. Augmented reality imaging.
Patent Information
- Application Number
- CN202410837111.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-26
AI Technical Summary
In the existing technology, after the head-mounted AR device is initialized and calibrated through the accelerometer and three-axis gyroscope, long-term use will cause significant deviations in the relative positions of the virtual image and the real image due to monitoring errors, making it impossible to achieve non-stop automatic calibration.
An automatic angle recognition system for head-mounted AR devices is designed, including a movement status monitoring module, an image recognition module, an angle change calculation module and a correction module. By monitoring the device status in real time, processing image recognition reference image blocks, calculating angle changes and performing Correction to eliminate accumulated errors.
It achieves fast and accurate identification and calibration of head-mounted AR devices, reduces the positional deviation between virtual images and real images, and ensures imaging accuracy during long-term use.
Smart Images

Figure CN118587262A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of augmented reality imaging technology, and in particular to an automatic angle recognition system and a recognition method for a head-mounted AR device. Background Art
[0002] Augmented reality imaging (AR) is a technology that combines virtual images with real images and is widely used in multimedia display, three-dimensional modeling, intelligent interaction and other fields. In order to ensure the realism of the imaging, the virtual image and the real image must maintain an accurate relative position. The existing technology generally initializes and calibrates the accelerometer and the three-axis gyroscope before use, and then calculates the angular position of the AR device relative to the real image based on the real-time monitoring data of the accelerometer and the three-axis gyroscope, and then accurately combines the virtual image with the real image. However, this method will cause cumulative deviations due to the monitoring errors of the accelerometer and the three-axis gyroscope, resulting in a more obvious deviation in the relative position of the virtual image and the real image after long-term continuous use. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide an automatic angle recognition system and a recognition method for a head-mounted AR device, which can solve the deficiencies of the prior art and realize automatic calibration of the head-mounted AR device without stopping.
[0004] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.
[0005] An automatic angle recognition system for a head-mounted AR device, comprising: The mobile state monitoring module is used to monitor the mobile state of the head-mounted AR device in real time; An image recognition module is used to process the real-time image collected by the head-mounted AR device and identify reference image blocks; An angle change calculation module, used to calculate the angle change of the current head-mounted AR device according to the change of the reference image block in the real-time image; The correction module is used to correct the movement state monitoring module using the angle change of the head-mounted AR device calculated by the angle change calculation module.
[0006] A recognition method of the above-mentioned angle automatic recognition system of the head-mounted AR device includes the following steps: A. The mobile status monitoring module monitors the mobile status of the head-mounted AR device in real time; B. The image recognition module processes the real-time image collected by the head-mounted AR device and identifies the reference image block; C. The angle change calculation module calculates the angle change of the current head-mounted AR device according to the change of the reference image block in the real-time image; D. The correction module uses the angle change of the head-mounted AR device calculated by the angle change calculation module to correct the mobile state monitoring module.
[0007] Preferably, the movement state monitoring module uses an accelerometer and a three-axis gyroscope to monitor the movement state of the head-mounted AR device in real time, and the movement state includes the linear acceleration and angular acceleration of the head-mounted AR device in a three-dimensional coordinate system.
[0008] Preferably, in step B, processing the real-time image includes the following steps: B11, set the sampling time period, sample the image several times in each sampling time period, and the time interval between each sampling is less than 1ms; B12, sharpening the image sampled each time; B13. Overlay the sampled images in the same sampling time period to obtain a processed real-time image.
[0009] Preferably, in step B13, superimposing the sampled images comprises the following steps: B131. Perform discrete Fourier transform on the sampled image to obtain a frequency domain data set; group the frequency domain data set according to frequency to obtain a high-frequency data set, a medium-frequency data set and a low-frequency data set, wherein the frequency range occupied by the medium-frequency data set is greater than 50% of the entire frequency range; B132. Establish a mapping relationship between the high-frequency data set, the medium-frequency data set and the low-frequency data set. The mapping relationship consists of pixel coordinate relationship and grayscale similarity. B133, performing bandpass filtering on the high-frequency data set and the low-frequency data set respectively, using a mapping relationship to establish an associated data group including the filtered high-frequency data and the filtered low-frequency data, and defining a filtering area on the sampled image according to pixel coordinates corresponding to the associated data group; B134, using the intermediate frequency data set and the corresponding mapping relationship to enhance the frequency domain data of the filtering area; B135. The frequency domain data of different sampling images are merged, and then the superimposed sampling image is obtained through inverse Fourier transform.
[0010] Preferably, in step B134, enhancing the information of the filter area includes the following steps: A first feature vector set is established for the high-frequency data of the filtering area and the intermediate-frequency data set of the sampling image, and a second feature vector set is established for the low-frequency data of the filtering area and the intermediate-frequency data set of the sampling image. Linearly related feature vectors in the first feature vector set and the second feature vector set are extracted to form a reference feature vector set. The intermediate-frequency data related to the reference feature vector set is used to perform up-sampling and down-sampling through a generative adversarial network to obtain high-frequency enhanced data and low-frequency enhanced data corresponding to the filtering area. The high-frequency enhanced data is merged with the filtered high-frequency data set, and the low-frequency enhanced data is merged with the filtered low-frequency data set.
[0011] Preferably, in step B, identifying the reference image block comprises the following steps: B21, marking the image area in which the position change does not occur in the real-time image obtained in each sampling time period; B22, traversing the marked image regions, marking closed regions in each image region whose grayscale uniformity is greater than a preset threshold, and selecting the largest closed region as a reference image block corresponding to the image region; B23. Select a reference image block that appears in at least two consecutive sampling time periods as a reference image block of the real-time image.
[0012] Preferably, in step C, calculating the current angle change of the head-mounted AR device includes the following steps: The angle change of the head-mounted AR device relative to the reference image block is calculated according to the position and direction angle changes of the real-time image of the reference image block in two consecutive sampling time periods.
[0013] Preferably, in step D, calibrating the mobile state monitoring module includes the following steps: According to the movement state of the head-mounted AR device continuously monitored by the movement state monitoring module and the initial position of the head-mounted AR device, the angle of the current head-mounted AR device relative to the reference image block is calculated. If there is a deviation between the calculation result and the calculation result of step C, the calculation result of step C is used as the initial position of the head-mounted AR device to initialize and correct the movement state monitoring module.
[0014] The beneficial effect brought about by adopting the above technical solution is that: by optimizing the preprocessing process of the reference image block, the present invention can quickly and accurately capture and identify the reference image block during the use of the head-mounted AR device, thereby using the relative position of the reference image block and the head-mounted AR device to calculate the position angle of the head-mounted AR device, and then using the calculation result as a calibration standard to correct the cumulative error of the mobile state monitoring module of the head-mounted AR device. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1It is a structural diagram of a specific implementation mode of the present invention. DETAILED DESCRIPTION
[0016] Reference Figure 1 , the present invention adds an image recognition module on the basis of the existing head-mounted AR device, which is used to process and recognize the image in real time, and then uses the relative position between the head-mounted AR device and the reference image block to correct the accumulated errors of the accelerometer and the three-axis gyroscope.
[0017] Specifically include: The mobile state monitoring module 1 is used to monitor the mobile state of the head-mounted AR device in real time; Image recognition module 2, used to process the real-time image collected by the head-mounted AR device and identify the reference image block; Angle change calculation module 3, used to calculate the angle change of the current head-mounted AR device according to the change of the reference image block in the real-time image; The correction module 4 is used to correct the movement state monitoring module 1 using the angle change of the head-mounted AR device calculated by the angle change calculation module 3.
[0018] A recognition method for an automatic angle recognition system of a head-mounted AR device, comprising the following steps: A. The mobile state monitoring module 1 monitors the mobile state of the head-mounted AR device in real time; B. Image recognition module 2 processes the real-time image collected by the head-mounted AR device and identifies the reference image block; C. Angle change calculation module 3 calculates the current head-mounted AR device angle change according to the change of the reference image block in the real-time image; D. The correction module 4 uses the angle change of the head-mounted AR device calculated by the angle change calculation module 3 to correct the movement state monitoring module 1.
[0019] Among them, the movement state monitoring module 1 uses an accelerometer and a three-axis gyroscope to monitor the movement state of the head-mounted AR device in real time, and the movement state includes the linear acceleration and angular acceleration of the head-mounted AR device in a three-dimensional coordinate system.
[0020] The difficulty of the angle recognition method disclosed in the present invention lies in how to quickly and accurately obtain the angular position of the head-mounted AR device relative to the reference object. Because the head-mounted AR device is affected by interference factors such as light changes and the wearer's shaking when shooting real images, the clarity of the image it shoots is insufficient. If the reference image block is directly identified, the calculated relative position angle between the head-mounted AR device and the reference image block is also inaccurate, and the accumulated error of the head-mounted AR device cannot be effectively eliminated. Therefore, the present invention specifically processes the real-time image collected by the head-mounted AR device.
[0021] Processing real-time images includes the following steps: We use the method of image superposition after multiple sampling to eliminate the interference of single sampling. First, set the sampling time period. In each sampling time period, the image is sampled several times, and the time interval of each sampling is less than 1ms. Then, after sharpening each sampled image, the sampled image is subjected to discrete Fourier transform to obtain a frequency domain data set. Because the image's brightness, grayscale, contrast and other features will be displayed in different frequency bands, we convert the image data into frequency domain data for processing. The frequency domain data set is grouped according to frequency to obtain a high-frequency data set, a medium-frequency data set and a low-frequency data set. The frequency range occupied by the medium-frequency data set is greater than 50% of the entire frequency range. A mapping relationship is established between the high-frequency data set, the medium-frequency data set and the low-frequency data set composed of pixel coordinate relationship and grayscale similarity. Because image interference is mainly concentrated in the low-frequency band and the high-frequency band, the high-frequency data set and the low-frequency data set are band-pass filtered respectively. The mapping relationship is used to establish an associated data group including the filtered high-frequency data and the filtered low-frequency data. The filtering area is delineated on the sampled image according to the pixel coordinates corresponding to the associated data group. The intermediate frequency data contains most of the background information and contour features in the original image, so the intermediate frequency data can be used to enhance the filter area. Establish the first feature vector set of the high-frequency data of the filter area and the intermediate frequency data set of the sampled image, and establish the second feature vector set of the low-frequency data of the filter area and the intermediate frequency data set of the sampled image. Extract the linearly related feature vectors in the first feature vector set and the second feature vector set to form a reference feature vector set. Use the intermediate frequency data related to the reference feature vector set to perform up-conversion and down-conversion processing through the generative adversarial network to obtain the high-frequency enhanced data and low-frequency enhanced data corresponding to the filter area. Use the high-frequency enhanced data to merge with the filtered high-frequency data set, and use the low-frequency enhanced data to merge with the filtered low-frequency data set. Finally, merge the frequency domain data of different sampled images, and then obtain the superimposed sampled image through inverse Fourier transform.
[0022] Through the above preprocessing, the clarity of the generated sampled image can be effectively improved, thereby facilitating rapid and accurate identification of the reference image block.
[0023] The process of identifying the reference image block is to mark the image area in the real-time image obtained in each sampling time period where the position has not changed, traverse the marked image area, mark the closed area in each image area whose grayscale uniformity is greater than a preset threshold, select the closed area with the largest area as the reference image block of the corresponding image area, and finally select the reference image block that appears in at least two consecutive sampling time periods as the reference image block of the real-time image.
[0024] Since the reference image block is accurately identified, we can calculate the angle change of the head-mounted AR device relative to the reference image block based on the position and direction angle change of the real-time image of the reference image block in two consecutive sampling time periods. Then, based on the mobile state of the head-mounted AR device continuously monitored by the mobile state monitoring module 1 and the initial position of the head-mounted AR device, calculate the angle of the current head-mounted AR device relative to the reference image block. If there is a deviation between the calculation result and the angle calculated directly using the reference image block, use the calculation result directly using the reference image block as the initial position of the head-mounted AR device to initialize and correct the mobile state monitoring module 1. Because the process of directly using the reference image block for calculation in the above text does not involve any data from the accelerometer and the three-axis gyroscope, the interference of their accumulated errors can be completely avoided.
[0025] In the description of the present invention, it should be understood that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0026] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. An automatic angle recognition system for a head-mounted AR device, characterized in that include: A movement state monitoring module (1), used for real-time monitoring of the movement state of the head-mounted AR device; An image recognition module (2) is used to process the real-time image collected by the head-mounted AR device and identify reference image blocks; An angle change calculation module (3), used to calculate the angle change of the current head-mounted AR device according to the change of the reference image block in the real-time image; The correction module (4) is used to correct the movement state monitoring module (1) using the angle change amount of the head-mounted AR device calculated by the angle change calculation module (3).
2. A recognition method for the angle automatic recognition system of a head-mounted AR device according to claim 1, characterized in that The following steps are involved: A. Mobile state monitoring module (1) monitors the mobile state of the head-mounted AR device in real time; B. The image recognition module (2) processes the real-time image collected by the head-mounted AR device and identifies the reference image block; C. Angle change calculation module (3) calculates the angle change of the current head-mounted AR device according to the change of the reference image block in the real-time image; D. The correction module (4) uses the angle change of the head-mounted AR device calculated by the angle change calculation module (3) to correct the movement state monitoring module (1).
3. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 2, characterized in that: The movement state monitoring module (1) uses an accelerometer and a three-axis gyroscope to monitor the movement state of the head-mounted AR device in real time, and the movement state includes the linear acceleration and angular acceleration of the head-mounted AR device in a three-dimensional coordinate system.
4. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 3, characterized in that: In step B, processing the real-time image includes the following steps: B11, set the sampling time period, sample the image several times in each sampling time period, and the time interval between each sampling is less than 1ms; B12, sharpening the image sampled each time; B13. Overlay the sampled images in the same sampling time period to obtain a processed real-time image.
5. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 4, characterized in that: In step B13, superimposing the sampled images includes the following steps: B131. Perform discrete Fourier transform on the sampled image to obtain a frequency domain data set; group the frequency domain data set according to frequency to obtain a high-frequency data set, a medium-frequency data set and a low-frequency data set, wherein the frequency range occupied by the medium-frequency data set is greater than 50% of the entire frequency range; B132. Establish a mapping relationship between the high-frequency data set, the medium-frequency data set and the low-frequency data set. The mapping relationship consists of pixel coordinate relationship and grayscale similarity. B133, performing bandpass filtering on the high-frequency data set and the low-frequency data set respectively, using a mapping relationship to establish an associated data group including the filtered high-frequency data and the filtered low-frequency data, and defining a filtering area on the sampled image according to pixel coordinates corresponding to the associated data group; B134, using the intermediate frequency data set and the corresponding mapping relationship to enhance the frequency domain data of the filtering area; B135. The frequency domain data of different sampling images are merged, and then the superimposed sampling image is obtained through inverse Fourier transform.
6. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 5, characterized in that: In step B134, information enhancement of the filter area includes the following steps: A first feature vector set is established for the high-frequency data of the filtering area and the intermediate-frequency data set of the sampling image, and a second feature vector set is established for the low-frequency data of the filtering area and the intermediate-frequency data set of the sampling image. Linearly related feature vectors in the first feature vector set and the second feature vector set are extracted to form a reference feature vector set. The intermediate-frequency data related to the reference feature vector set is used to perform up-sampling and down-sampling through a generative adversarial network to obtain high-frequency enhanced data and low-frequency enhanced data corresponding to the filtering area. The high-frequency enhanced data is merged with the filtered high-frequency data set, and the low-frequency enhanced data is merged with the filtered low-frequency data set.
7. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 6, characterized in that: In step B, identifying the reference image block includes the following steps: B21, marking the image area in which the position change does not occur in the real-time image obtained in each sampling time period; B22, traversing the marked image regions, marking closed regions in each image region whose grayscale uniformity is greater than a preset threshold, and selecting the largest closed region as a reference image block corresponding to the image region; B23. Select a reference image block that appears in at least two consecutive sampling time periods as a reference image block of the real-time image.
8. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 7, characterized in that: In step C, calculating the current angle change of the head-mounted AR device includes the following steps: The angle change of the head-mounted AR device relative to the reference image block is calculated according to the position and direction angle changes of the real-time image of the reference image block in two consecutive sampling time periods.
9. The recognition method of the angle automatic recognition system of the head-mounted AR device according to claim 8, characterized in that: In step D, calibrating the mobile state monitoring module (1) includes the following steps: According to the movement state of the head-mounted AR device continuously monitored by the movement state monitoring module (1) and the initial position of the head-mounted AR device, the angle of the current head-mounted AR device relative to the reference image block is calculated; if there is a deviation between the calculation result and the calculation result of step C, the calculation result of step C is used as the initial position of the head-mounted AR device to initialize and correct the movement state monitoring module (1).
Citation Information
Patent Citations
HMD calibration with direct geometric modeling
CN105320271A
Oil well working fluid level depth detection method based on short-time Fourier transform
CN107420090A
Rolling bearing fault diagnosis method based on accuracy spectrogram
CN108195584A
Systems and methods for determining movement of controller with respect to hmd
CN113557068A
Intelligent regulation and control method and system for metal wire drawing process
CN115131739A
