A calibration system and method for augmented reality virtual-real alignment
By using rigid fixed structural components and three-dimensional spatial mapping conversion in augmented reality technology, the problem of low alignment accuracy of environmental detection imaging equipment and AR optical machines is solved, achieving higher alignment stability and consistency, and reducing calibration frequency. .
Patent Information
- Application Number
- CN202310863716.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-07-13
AI Technical Summary
In existing augmented reality technology, the accuracy of the virtual and real alignment between the environment detection imaging equipment and the AR optical machine is low, and it is easy to cause alignment misalignment due to deformation of structural parts during use, requiring frequent software calibration.
The environmental detection imaging equipment and AR optical machine are directly fixed and calibrated in at least two dimensions using fixed structural members with specific rigidity and structure, and the mapping conversion of relative coordinates in three-dimensional space is performed through the background software, and combined with the external calibration board for virtual and real Alignment tuning.
It improves the accuracy and consistency of virtual and real alignment, reduces the need for repeated calibration during device use, and enhances alignment stability between devices.
Smart Images

Figure CN116883510B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of augmented reality technology, and in particular to a calibration system and method for aligning virtual and real aspects of augmented reality. Background Art
[0002] With the development of augmented reality technology, more and more head-mounted display devices have begun to introduce AR optical machines for near-eye display. AR optical machines can provide a field of view penetration effect. Without blocking the normal field of view of the environment, they can display virtual images processed by software rendering in front of people's eyes, superimposed and aligned with the actual image of the real environment, to achieve an augmented reality effect. Especially in the field of firefighting, some fire scenes have complex environments and extremely poor fields of view. AR technology can well restore the real environmental information of the scene, effectively improve firefighters' recognition of the fire scene environment, make better on-the-spot judgments, and greatly improve firefighters' rescue efficiency and survival rate, so it has extremely high practical value.
[0003] At present, the commonly used method is to use environmental detection imaging equipment to collect environmental information, and after identification and judgment by the background processing end, it is displayed near the eye through the AR optical machine. Usually, the environmental detection imaging device and the AR optical machine are connected by a structural member. The virtual-real alignment requires the structural member to strictly lock the above two parts together to complete the physical connection, and then use the background software to use the external calibration board to align the display. But the reality is that due to the complex structural design of the environmental detection imaging device and the AR optical machine, the general processing accuracy, and the single dimension of the connection between the two, the existing technology performs generally in terms of the accuracy of virtual-real alignment. In addition, in the later use process, the structural parts will undergo certain deformation due to the stress during use, resulting in relative displacement between the environmental detection imaging device and the AR optical machine, which will cause the completed virtual-real alignment to be misaligned and offset, and the equipment has to be re-calibrated by software, resulting in general equipment use effect. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a calibration system and method for augmented reality virtual-real alignment, which can directly fix and calibrate the environment detection imaging device and the AR optical machine in at least two dimensions through structural parts with specific rigidity and structure, and connect them with other product structures through local small-scale assembly surfaces, so as to better complete the relative fixation of the spatial coordinates between the AR optical machine and the environment detection imaging device; through background software and algorithms, the three-dimensional spatial relative coordinates of the fixed environment detection imaging device and the AR optical machine are mapped and converted, and the virtual image and the real image are aligned according to the field of view angle, display area size, etc., and the alignment can be further optimized with the assistance of external calibration plates, etc.
[0005] In order to solve the above technical problems, the first aspect of the embodiment of the present invention discloses a calibration system for augmented reality virtual-real alignment, the system comprising:
[0006] The AR optical machine (11) and the environment detection imaging device are connected via the fixed structural member (12) to form a stable relative spatial position coordinate;
[0007] The imaging optical axis of the AR optical machine (11) and the lens optical axis of the environment detection imaging device (13) are parallel to the z-axis of the space where the calibration system is located, and perpendicular to the xoy plane of the space where the calibration system is located.
[0008] As an optional implementation, the fixed connection structure (12) includes an AR optical machine locking structure (201), a fixed connection structure (202) and an environment detection imaging device locking structure (203);
[0009] The AR optical machine locking structure (201) and the environment detection imaging device locking structure (203) are located above the fixed connection structure (202).
[0010] The AR optical machine is a near-eye display device;
[0011] A fixed structural member used to connect and physically calibrate the spatial relative positions of the AR optical machine and the environmental detection imaging device;
[0012] As an optional implementation, the AR optical machine locking structure (201) is connected to the AR optical machine (11);
[0013] The AR optical machine locking structure (201) implements translation locking constraints and rotation constraints around the z-axis for the AR optical machine (11) in the x-axis direction and the y-axis direction of the space where the calibration system is located.
[0014] As an optional implementation, the environment detection imaging device locking structure (203) is connected to the environment detection imaging device (13);
[0015] The environment detection imaging device locking structure (203) implements translation locking constraints and rotation constraints around the z-axis for the environment detection imaging device (13) in the x-axis direction and the y-axis direction of the space where the calibration system is located.
[0016] As an optional implementation, the connection method between the AR optical machine locking structure (201) and the AR optical machine (11), and the connection method between the environment detection imaging device locking structure (203) and the environment detection imaging device (13) include but are not limited to screw connection, adhesive connection and snap connection.
[0017] As an optional implementation, the material of the AR optical machine locking structure (201), the fixed connection structure (202) and the environment detection imaging device locking structure (203) is preferably 7 series aluminum alloy.
[0018] The fixed structure (12) should be made of sufficiently rigid metal material to ensure that no obvious deformation occurs under normal external force. Among them, the AR optical machine locking structure (201) mainly serves to connect the AR optical machine (11) and the environmental detection imaging device (13). The design of the fixed structure (202) and the environmental detection imaging device locking structure (203) is mainly used to limit and lock the AR optical machine (11) and the environmental detection imaging device (13) in at least two dimensional directions (x and y directions), so that the projection coordinates of the AR optical machine (11) and the environmental detection imaging device (13) on the xoy plane are fixed. At the same time, due to the physical locking in the x and y directions, the relative rotation angle of the AR optical machine (11) and the environmental detection imaging device (13) around the z axis will also be locked.
[0019] The locking methods of the design of the fixed connection structure (202) and the environment detection imaging device locking structure (203) include but are not limited to screws, adhesives, clamping, etc. The design of the fixed connection structure (202) can be designed in a right angle manner, or in an arc or special shape manner. Regardless of the design method, it ultimately produces a locking effect in at least the x and y directions, and at the same time produces an indirect locking effect on the relative rotation angle around the z axis.
[0020] A second aspect of an embodiment of the present invention discloses a calibration method for augmented reality virtual-real alignment, the method comprising:
[0021] S1, assembling and connecting the AR optical machine, the fixed structural member and the environment detection imaging device, and locking the relative positions of the AR optical machine and the environment detection imaging device;
[0022] S2, obtaining relative position information and imaging parameter information of the environment detection imaging device and the AR optical machine;
[0023] Including obtaining the relative position information and imaging parameters of the environment detection imaging device and the AR optical machine: according to the device that completes the fixed connection in S1, determine the relative position information of the environment detection imaging device and the AR optical machine in the space xyz coordinate system, and in addition, determine the respective imaging parameters of the two, such as the field of view angle, aperture size, focal length, resolution and other information of the environment detection imaging device, and the field of view angle, focusing distance, display resolution and other information of the AR optical machine;
[0024] S3, using the environment detection imaging device to shoot and obtain a real environment image;
[0025] Including: environmental detection imaging equipment shoots real environment images and extracts or generates corresponding augmented reality information: the environmental detection imaging equipment shoots the environment images once or continuously, and according to business needs, extracts the target or performs augmented reality rendering on the target object, and generates corresponding augmented reality graphics or instructions and other information;
[0026] S4, processing the real environment image to obtain augmented reality information of the real environment image;
[0027] Including: Obtaining environmental depth information: extracting the relative distance information between the environmental objects and the environmental detection imaging device through the captured environmental images, and at the same time completing the conversion of the physical space position information of the objects in the real world to the position information in the captured image space;
[0028] S5, processing the real environment image, extracting the relative distance information between the environment object and the environment detection imaging device, and converting the position information of the environment object in the physical space of the real world into the position information in the captured image space, to obtain the image space position information;
[0029] Including: display image scaling, translation, and rotation: the environment detection imaging device determines the display ratio and display position of the augmented reality information to be displayed in the AR optical machine virtual display screen according to the relative position information and imaging parameters obtained in S2, and scales, translates, and rotates the display image accordingly;
[0030] S6, using the environment detection imaging device, processing the augmented reality information of the real environment image according to the relative position information, imaging parameter information and image space position information, to obtain display ratio information and display position information of the augmented reality information in the virtual display screen of the AR optical machine;
[0031] S7, scaling, translating and rotating the augmented reality information according to the display ratio information and display position information of the augmented reality information in the virtual display screen of the AR optical machine to obtain virtual augmented reality information;
[0032] S8, aligning the real environment image and the virtual augmented reality information to obtain an augmented reality virtual-real alignment result.
[0033] As an optional implementation, the imaging parameter information includes but is not limited to the imaging parameter information of the environment detection imaging device and the imaging parameter information of the AR optical machine;
[0034] The imaging parameter information of the environment detection imaging device includes the field of view angle, aperture size, focal length, and resolution information of the environment detection imaging device;
[0035] The imaging parameter information of the AR optical machine includes but is not limited to the field of view angle, focusing distance, and display resolution information of the AR optical machine.
[0036] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0037] (1) The present invention is used for the calibration and calibration system of augmented reality virtual-real alignment. By directly and rigidly connecting the AR optical machine and the environment detection imaging device through a fixed structural member, the spatial relative position of the AR optical machine and the environment detection imaging device can be made more stable; the fixed connection in at least two dimensions can better reduce the error introduced during assembly; the structural connection is performed through a local small-scale assembly surface, which can better reduce the deformation effect of the external stress on the fixed structural member during use, and avoid repeated calibration of the device during use; the above design creates good physical conditions for virtual-real alignment, which can greatly improve the virtual-real alignment accuracy and the alignment consistency between devices;
[0038] (2) The calibration method for aligning virtual and real augmented reality of the present invention performs conversion of relative coordinates in three-dimensional space, which can make the design of the initial relative position of the AR optical machine and the environment detection imaging device more flexible and more practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 It is a structural schematic diagram of a calibration system for augmented reality virtual-real alignment disclosed in an embodiment of the present invention;
[0041] Figure 2 It is a schematic diagram of the connection relationship of the calibration system for augmented reality virtual-real alignment disclosed in an embodiment of the present invention;
[0042] Figure 3 It is a schematic diagram of the connection between the fixed structure member and the environment detection imaging device disclosed in the embodiment of the present invention; Figure 4 It is a schematic diagram of the connection between the fixed structure and the AR optical machine disclosed in the embodiment of the present invention;
[0043] Figure 5 It is a schematic diagram of the composition of the fixed connection structure disclosed in the embodiment of the present invention;
[0044] Figure 6 It is a schematic diagram of the connection between the fixed structure member and the environment detection imaging device disclosed in the embodiment of the present invention;
[0045] Figure 7 It is a flow chart of a calibration method for augmented reality virtual-real alignment disclosed in an embodiment of the present invention;
[0046] Figure 8 It is a schematic diagram of a virtual image and a real image of a calibration object photographed by a calibration lens disclosed in an embodiment of the present invention;
[0047] Fig. 9 It is a schematic diagram of the connection relationship of another calibration system for augmented reality virtual-real alignment disclosed in an embodiment of the present invention;
[0048] Fig.10 It is a schematic diagram of connection between another fixed structure member and an environment detection imaging device disclosed in an embodiment of the present invention;
[0049] Fig.11 It is a schematic diagram of a virtual image and a real image of a calibration object photographed by an industrial camera disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0052] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0053] The present invention discloses a calibration system and method for aligning virtual and real augmented reality, the method comprising an AR optical machine, a fixed structural member and an environmental detection imaging device; the AR optical machine and the environmental detection imaging device are connected via a fixed structural member; the imaging optical axis of the AR optical machine and the lens optical axis of the environmental detection imaging device are parallel to the z-axis of the space where the system is located, and perpendicular to the xoy plane of the space where the system is located. The relative position information and imaging parameters of the environmental detection imaging device and the AR optical machine are obtained, the environmental detection imaging device shoots the real environment image and extracts or generates the corresponding augmented reality information, the relative distance information between the environmental object and the environmental detection imaging device is obtained, the augmented reality information is scaled, translated and rotated, and the virtual and real alignment is completed. The present invention can make the design of the initial relative position of the AR optical machine and the environmental detection imaging device more flexible and more practical. The following are detailed descriptions.
[0054] Embodiment 1
[0055] See also Figure 1 to Figure 6 , Figure 1 to Figure 6 : is a schematic diagram of the structure of a calibration system for augmented reality virtual-real alignment disclosed in an embodiment of the present invention. Figure 1 to Figure 6 The calibration system for augmented reality virtual-real alignment described is applied to a data processing system, such as a local server or cloud server for augmented reality display calibration, and the embodiments of the present invention are not limited thereto. Figure 1 As shown, the calibration system for augmented reality virtual-real alignment includes an AR optical machine (11), a fixed structure (12) and an environment detection imaging device (13);
[0056] The AR optical machine (11) and the environment detection imaging device are connected via the fixed structural member (12) to form a stable relative spatial position coordinate;
[0057] The connection is achieved by screw connection;
[0058] AR optical machine is a near-eye display device;
[0059] The imaging optical axis of the AR optical machine (11) and the lens optical axis of the environment detection imaging device (13) are parallel to the z-axis of the space where the calibration system is located, and perpendicular to the xoy plane of the space where the calibration system is located. That is, there is no difference in the z-axis coordinate value.
[0060] The image optical axes of the AR optical machine (11) and the environment detection imaging device (13) are parallel to the z-axis shown in the figure and perpendicular to the paper surface. The two devices do not need to be aligned in the x-direction or y-direction, and only rely on the fixed structural member (12) to complete the relative position fixation.
[0061] Optionally, the fixed structure (12) includes an AR optical machine locking structure (201), a fixed structure (202) and an environment detection imaging device locking structure (203);
[0062] 202 connects 201 and 203 together, that is, 201 is connected to 202, and 202 is connected to 203;
[0063] The AR optical machine locking structure (201) and the environment detection imaging device locking structure (203) are located above the fixed connection structure (202).
[0064] Optionally, the AR optical machine locking structure (201) and the environment detection imaging device locking structure (203) may also be located on the side or below the fixed connection structure (202), but the effect is not good, and the effect is better on the top;
[0065] Optionally, the AR optical machine locking structure (201) is connected to the AR optical machine (11);
[0066] The connection is achieved by screw connection or adhesive connection, and the effect achieved is to stably combine the two.
[0067] The AR optical machine locking structure (201) implements translation locking constraints and rotation constraints around the z-axis for the AR optical machine (11) in the x-axis direction and the y-axis direction of the space where the calibration system is located.
[0068] Optionally, the AR optical machine locking structure (201) fully considers the accompanying design with the overall appearance of the product, and is connected to the AR optical machine (11) in an arc manner through 4 screws. The AR optical machine locking structure (201) realizes translation locking constraints on the AR optical machine (11) in the x-axis and y-axis directions of the space where the system is located, as well as rotation constraints around the z-axis; the environmental detection imaging device locking structure (203) is connected to the environmental detection imaging device (13) through 4 screws and a right-angle assembly. The environmental detection imaging device locking structure (203) realizes translation locking constraints on the environmental detection imaging device (13) in the x-axis and y-axis directions of the space where the device is located, as well as rotation constraints around the z-axis.
[0069] Optionally, the environment detection imaging device locking structure (203) is connected to the environment detection imaging device (13);
[0070] The connection is achieved by screw connection or adhesive connection;
[0071] The environment detection imaging device locking structure (203) implements translation locking constraints and rotation constraints around the z-axis for the environment detection imaging device (13) in the x-axis direction and the y-axis direction of the space where the calibration system is located.
[0072] Optionally, the connection method between the AR optical machine locking structure (201) and the AR optical machine (11), and the connection method between the environment detection imaging device locking structure (203) and the environment detection imaging device (13) include but are not limited to screw connection, adhesive connection and snap connection.
[0073] Optionally, the material of the AR optical machine locking structure (201), the fixed connection structure (202) and the environment detection imaging device locking structure (203) is preferably 7 series aluminum alloy.
[0074] Preferably, the material of the AR optical machine locking structure, the fixed connection structure and the environmental detection imaging device locking structure is 7 series aluminum alloy, which has high hardness and good welding performance. Good rigidity and multiple screws are locked in at least two dimensions, so that the spatial physical position between the AR optical machine (11) and the environmental detection imaging device (13) is highly locked. While the AR optical machine locking structure (201) is locked with the AR optical machine (11) by multiple screws, it also realizes the assembly with the fixed connection structure (202) at the same time; while the environmental detection imaging device locking structure (203) is locked with the environmental detection imaging device (13) by multiple screws, it also realizes the assembly with the fixed connection structure (202) at the same time.
[0075] Optionally, the fixed structure (12) should be processed from a sufficiently rigid metal material to ensure that no significant deformation occurs under normal external forces. Among them, the AR optical machine locking structure (201) is designed to mainly connect the AR optical machine (11) and the environmental detection imaging device (13). The designed fixed structure (202) and the designed environmental detection imaging device locking structure (203) are mainly used to restrict and lock the AR optical machine (11) and the environmental detection imaging device (13) in at least two dimensional directions (x and y directions), so that the projection coordinates of the AR optical machine (11) and the environmental detection imaging device (13) on the xoy plane are fixed. At the same time, due to the physical locking in the x and y directions, the relative rotation angle of the AR optical machine (11) and the environmental detection imaging device (13) around the z axis will also be locked.
[0076] The locking methods of the design of the fixed connection structure (202) and the design of the locking structure (203) of the environment detection imaging device include but are not limited to screws, adhesives, clamping, etc. The design of the fixed connection structure (202) can be designed in a right angle manner, or in an arc or special shape manner. Regardless of the design method, it ultimately produces a locking effect in at least the x and y directions, and at the same time produces an indirect locking effect on the relative rotation angle around the z axis.
[0077] Embodiment 2
[0078] See also Figure 7 , Figure 7is a flow chart of a calibration method for augmented reality virtual-real alignment disclosed in an embodiment of the present invention. Figure 7 The calibration method for augmented reality virtual-real alignment described is applied to data processing systems, such as local servers or cloud servers for augmented reality display calibration, emergency rescue, augmented reality (virtual reality), infrared thermal imaging, intelligent detection, wearable devices, etc., and the embodiments of the present invention are not limited thereto. Figure 7 As shown, the calibration method for augmented reality virtual-real alignment includes:
[0079] S1, assembling and connecting the AR optical machine, the fixed structural member and the environment detection imaging device, and locking the relative positions of the AR optical machine and the environment detection imaging device;
[0080] S2, obtaining relative position information and imaging parameter information of the environment detection imaging device and the AR optical machine;
[0081] Optionally, the relative position information and imaging parameters of the environment detection imaging device and the AR optical machine are obtained: according to the device for completing the connection in S1, the relative position information of the environment detection imaging device and the AR optical machine in the spatial xyz coordinate system is determined. In addition, the imaging parameters of the two are determined, such as the field of view angle, aperture size, focal length, resolution and other information of the environment detection imaging device, and the field of view angle, focusing distance, display resolution and other information of the AR optical machine;
[0082] S3, using the environment detection imaging device to shoot and obtain a real environment image;
[0083] Optionally, the processing includes image preprocessing of the image generated by the environment detection imaging device, including Gaussian filtering, image denoising, image enhancement, etc. The edge detection algorithm is used to outline the texture in the image and remove the filling part, that is, only useful information such as environmental texture is retained, and other non-texture filling information is removed to meet the characteristics of the penetration display of augmented reality.
[0084] Optionally, the edge detection algorithm is:
[0085] 1. Randomly extract the training set from the collected valid image data to ensure that there is no overlapping and repeated data between the training set and the verification set, and annotate them to form a label file to complete the production of the training set;
[0086] 2. Use the prepared dataset as the input of the deep convolutional network and build a Blend Mask network; improve the trained model of the BlendMask network to obtain the improved Blend Mask model; use the validation set image to test the improved Blend Mask model to obtain the edge detection results; use the accuracy index to evaluate the detection results of the model, and adjust the parameters of the model according to the detection results until the training set index is close to the validation set index.
[0087] 3. Improve the algorithm based on the original training model, replace the backbone network, introduce deformable convolution and optimize the loss function, and continue to train the improved algorithm;
[0088] 4. Test and analyze the improved model, and compare to get the model with the best edge detection effect.
[0089] The environmental detection imaging device captures the real environment image and extracts or generates the corresponding augmented reality information: the environmental detection imaging device captures the environmental image once or continuously, and according to business needs, the target is extracted or the target object is rendered in augmented reality, and the corresponding augmented reality graphics or instructions and other information are generated;
[0090] S4, processing the real environment image to obtain augmented reality information of the real environment image;
[0091] Optionally, the distance information between the target object and the environment detection imaging device is extracted through a monocular depth estimation algorithm;
[0092] S5, processing the real environment image, extracting the relative distance information between the environment object and the environment detection imaging device, and converting the position information of the environment object in the physical space of the real world into the position information in the captured image space, to obtain the image space position information;
[0093] Optionally, scaling, translating, and rotating the displayed image: the environment detection imaging device determines the display ratio and display position corresponding to the augmented reality information to be displayed in the AR optical machine virtual display screen according to the relative position information and imaging parameters obtained in S2, and scales, translates, and rotates the displayed image accordingly;
[0094] Optionally, the image scaling method is:
[0095] 1. Input the image into the depthwise separable convolutional layer for processing.
[0096] 2. Use the multi-scale feature extraction module CDCM to enrich the multi-scale edge information.
[0097] 3. Eliminate background noise in the feature image based on the spatial attention mechanism module CSAM.
[0098] 4. Use a 1×1 convolutional layer to further reduce the image features to a single channel map, and restore the image to its original size through interpolation.
[0099] 5. Use the Sigmoid function to create edge maps for each stage, and then extract the final image edge after cascading and fusion of the separate channel feature maps generated by the four stages and single-point convolution.
[0100] 6. After edge extraction, traverse and determine the area where all pixels are located, use the bilinear interpolation algorithm to process the non-edge area, use the covariance adaptive interpolation edge point area, and finally use the linear interpolation algorithm to complete the processing of the edge line direction points.
[0101] 7. Merge the interpolation results to complete the image interpolation.
[0102] S6, using the environment detection imaging device, processing the augmented reality information of the real environment image according to the relative position information, imaging parameter information and image space position information, to obtain display ratio information and display position information of the augmented reality information in the virtual display screen of the AR optical machine;
[0103] S7, scaling, translating and rotating the augmented reality information according to the display ratio information and display position information of the augmented reality information in the virtual display screen of the AR optical machine to obtain virtual augmented reality information;
[0104] S8, aligning the real environment image and the virtual augmented reality information to obtain an augmented reality virtual-real alignment result.
[0105] Optionally, the calibration lens captures the virtual and real images of the calibration object: Use the calibration camera to capture the virtual and real images of the calibration object from the perspective of the human eye through the AR optical machine to obtain the alignment information of the virtual and real images. In this way, any pixel-level offset between the virtual and real images will be obtained through image analysis. Figure 8 As shown, the calibration object does not need a special shape, but needs to have a clear edge contour, and should be calibrated with at least two calibration objects to more accurately obtain the difference information between the current virtual image and the real image;
[0106] The AR optical machine serves as a near-eye display device.
[0107] The environment detection imaging device is preferably an infrared thermal imager, and may also be a visible light lens, a low light lens, an infrared lens, etc., which can penetrate smoke and capture environmental images of the fire scene.
[0108] Optionally, the environmental detection imaging device captures images of the real environment and extracts or generates corresponding augmented reality information: the environmental detection imaging device captures the environmental image once or continuously, performs target extraction or performs augmented reality rendering on the target object, and generates corresponding augmented reality graphics or instructions and other information.
[0109] Optionally, the imaging parameter information includes but is not limited to imaging parameter information of the environment detection imaging device and imaging parameter information of the AR optical machine;
[0110] The imaging parameter information of the environment detection imaging device includes the field of view angle, aperture size, focal length, and resolution information of the environment detection imaging device;
[0111] The imaging parameter information of the AR optical machine includes but is not limited to the field of view angle, focusing distance, and display resolution information of the AR optical machine.
[0112] Optionally, further virtual image scaling, translation, rotation and distortion correction are performed based on the degree of overlap between the virtual image and the real image: the calibration camera feeds back the overlapping images of the virtual image and the real image to the software and algorithm for image analysis and recognition. Through multi-point positioning and difference analysis, the software and algorithm can further accurately calculate the coordinate position difference, rotation angle difference and existing distortion between the virtual image and the real image, and then adjust the display effect of the virtual image by scaling, translation and rotation. Repeat the above shooting, analysis and calibration actions until the virtual image and the real image are aligned at the pixel level;
[0113] Complete virtual-real alignment and storage of calibration parameters: Based on the calibration results obtained in S7, the device saves the corresponding calibration parameters. The device does not need to be recalibrated in subsequent use, and the stored parameters can be directly called for normal display.
[0114] Embodiment 3
[0115] Fig. 9 1 is a schematic diagram of the connection relationship of another calibration system for augmented reality virtual-real alignment disclosed in an embodiment of the present invention; the system device mainly consists of the following three modules:
[0116] Module 41.AR optical machine: near-eye display device;
[0117] Module 42. Connecting structure: used for rigid direct connection between module 41 and module 43;
[0118] Module 43. Infrared thermal imager: used to penetrate smoke and capture environmental images of the fire scene.
[0119] The imaging optical axis of the AR optical machine and the lens optical axis of the infrared thermal imager are parallel to the z-axis and perpendicular to the paper design; the two are in the same xoy plane in real space, that is, there is no difference in the z-axis coordinate value. The connected AR optical machine and infrared thermal imager form a stable relative spatial position coordinate.
[0120] like Fig.10 As shown in the figure, the fixed structural parts are mainly composed of the following three structures:
[0121] Structure 51: AR optical machine locking structure
[0122] Structure 52: AR optical machine and infrared thermal imager fixed structure
[0123] Structure 53: Infrared thermal imager locking structure
[0124] Structure 51 fully considers the accompanying design with the overall appearance of the product, and realizes the translation locking constraint of the AR optical machine in the x and y directions in an arc manner through 4 screws, and realizes the rotation constraint of the AR optical machine around the z axis; Structure 53 uses 4 screws and right-angle assembly to produce translation locking constraints on the infrared thermal imager in the x and y directions, and realizes the rotation constraint of the infrared thermal imager around the z axis; Structure 52 fully considers the functional distribution of the product and has a special design. The materials of structure 51, structure 52 and structure 53 are all designed with 7 series aluminum alloy with high rigidity. While structure 51 is locked with multiple screws and AR optical machine, it is also assembled with structure 52; while structure 53 is locked with multiple screws and infrared thermal imager, it is also assembled with structure 52.
[0125] Good rigidity and multi-screw directional locking in at least two dimensions enable the spatial physical position between the AR optical machine and the infrared thermal imager to be highly locked.
[0126] (1) The device completes the structural connection: According to the above device structure, the environment detection imaging device and the AR optical machine are assembled and connected using the connecting structural parts, and the relative position between the two in space is locked;
[0127] (2) Obtaining the relative position information and imaging parameters of the infrared thermal imager and the AR optical machine: Based on the device for fixing in (1), determine the relative position information of the infrared thermal imager and the AR optical machine in the spatial xyz coordinate system. In addition, determine the imaging parameters of the two, such as the field of view angle, aperture size, focal length, resolution, etc. of the infrared thermal imager, and the field of view angle, focusing distance, display resolution, etc. of the AR optical machine;
[0128] (3) Infrared thermal imager captures images of the real environment and extracts or generates corresponding augmented reality information: The infrared thermal imager captures the environment image once or continuously, and according to business needs, extracts the target or performs augmented reality rendering on the target object, and generates corresponding augmented reality graphics or instructions and other information;
[0129] (4) Obtaining environmental depth information: Through the captured environmental image, the relative distance information between the environmental objects and the infrared thermal imager is extracted, and at the same time, the position information of the objects in the physical space of the real world is converted into the position information in the captured image space;
[0130] (5) Scaling, translation, and rotation of displayed images: The infrared thermal imager determines the display ratio and display position of the augmented reality information to be displayed in the virtual display screen of the AR optical machine based on the relative position information and imaging parameters obtained in (2), and scales, translates, and rotates the displayed image accordingly;
[0131] (6) Industrial camera captures virtual and real images of the calibration object: Use an industrial camera to capture the virtual and real images of the calibration object from the perspective of the human eye through an AR optical machine to obtain the alignment information of the virtual and real images. The calibration object is selected as a black and white checkerboard pattern. In this way, while analyzing the position difference and rotation angle difference, the distortion of each part of the image can be analyzed and judged simultaneously. Fig.11 shown.
[0132] (7) Further virtual image scaling, translation, rotation and distortion correction are performed based on the degree of overlap between the virtual image and the real image: The industrial camera feeds back the overlapping images of the virtual image and the real image to the software and algorithm for image analysis and recognition. Through multi-point positioning and difference analysis, the software and algorithm can further accurately calculate the coordinate position difference, rotation angle difference and existing distortion between the virtual image and the real image, and then adjust the display effect of the virtual image by scaling, translation and rotation. Repeat the above shooting, analysis and calibration actions until the virtual image and the real image are aligned at the pixel level;
[0133] (8) Completing virtual-real alignment and storage of calibration parameters: Based on the calibration results obtained in (7), the device saves the corresponding calibration parameters. The device does not need to be recalibrated during subsequent use, and the stored parameters can be directly retrieved for normal display.
[0134] It can be seen that the spatial relative position of the AR optical machine and the environmental detection imaging device can be made more stable through the direct rigid connection of the structural parts; the connection in at least two dimensions can better reduce the errors introduced during assembly; the structural connection through the local small-scale assembly surface can better reduce the deformation of the connected structural parts caused by external stress during use, and avoid repeated calibration of the equipment during use; the above design creates good physical conditions for virtual-real alignment, which can greatly improve the accuracy of virtual-real alignment and the alignment consistency between devices. The conversion of three-dimensional space relative coordinates through software and algorithms can make the design of the initial relative position of the AR optical machine and the environmental detection imaging device more flexible and more practical. Combined with the optimization of the external calibration plate, the alignment accuracy can be further improved and the negative impact of the processing and assembly errors of the structural parts on the virtual-real alignment can be offset.
[0135] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0136] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0137] Finally, it should be noted that the calibration system and method for augmented reality virtual-real alignment disclosed in the embodiment of the present invention discloses only the preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A calibration system for augmented reality virtual-real alignment, characterized in that: The system comprises an AR optical machine (11), a fixed structural component (12) and an environment detection imaging device (13); The AR optical machine (11) and the environment detection imaging device are connected via the fixed structural member (12) to form a stable relative spatial position coordinate; The imaging optical axis of the AR optical machine (11) and the lens optical axis of the environment detection imaging device (13) are parallel to the z-axis of the space where the calibration system is located, and perpendicular to the xoy plane of the space where the calibration system is located; The calibration method applied to the calibration system for augmented reality virtual-real alignment includes: S1, assembling and connecting the AR optical machine, the fixed structural member and the environment detection imaging device, and locking the relative positions of the AR optical machine and the environment detection imaging device; S2, obtaining relative position information and imaging parameter information of the environment detection imaging device and the AR optical machine; S3, using the environment detection imaging device to shoot and obtain a real environment image; S4, processing the real environment image to obtain augmented reality information of the real environment image; The processing includes image preprocessing, including Gaussian filtering, image denoising, and image enhancement; Using edge detection algorithms, the texture in the image is outlined and the filling part is removed, retaining only useful information such as environmental textures, and removing other non-texture filling information to meet the characteristics of the penetration display of augmented reality; The edge detection algorithm is: Randomly extract the training set from the collected valid image data to ensure that there is no overlapping and repeated data between the training set and the verification set, and annotate them to form a label file to complete the production of the training set; The prepared data set is used as the input of the deep convolutional network, and the Blend Mask network is built; the model trained by the Blend Mask network is improved to obtain the improved Blend Mask model; the improved Blend Mask model is tested using the validation set image to obtain the edge detection result; the accuracy index is used to evaluate the detection result of the model, and the parameters of the model are adjusted according to the detection result until the training set index is close to the validation set index; Improve the algorithm based on the original training model, replace the backbone network, introduce deformable convolution and optimize the loss function, and continue to train the improved algorithm; Test and analyze the improved models, and compare them to get the model with the best edge detection effect; The environmental detection imaging device captures the real environment image and extracts or generates the corresponding augmented reality information: the environmental detection imaging device captures the environmental image once or continuously, and according to business needs, the target is extracted or the target object is rendered in augmented reality to generate the corresponding augmented reality graphic information; S5, processing the real environment image, extracting the relative distance information between the environment object and the environment detection imaging device, and converting the position information of the environment object in the physical space of the real world into the position information in the captured image space, to obtain the image space position information; S6, using the environment detection imaging device, processing the augmented reality information of the real environment image according to the relative position information, imaging parameter information and image space position information, to obtain display ratio information and display position information of the augmented reality information in the virtual display screen of the AR optical machine; The imaging parameter information includes but is not limited to the imaging parameter information of the environment detection imaging device and the imaging parameter information of the AR optical machine; The imaging parameter information of the environment detection imaging device includes the field of view angle, aperture size, focal length, and resolution information of the environment detection imaging device; The imaging parameter information of the AR optical machine includes but is not limited to the field of view angle, focus distance, and display resolution information of the AR optical machine; S7, scaling, translating and rotating the augmented reality information according to the display ratio information and display position information of the augmented reality information in the virtual display screen of the AR optical machine to obtain virtual augmented reality information; The scaling is: Input the image into the depth-wise separable convolutional layer for processing; Use the multi-scale feature extraction module CDCM to enrich the multi-scale edge information; Eliminate background noise in feature images based on the spatial attention mechanism module CSAM; The image features are further reduced to a single channel map using a 1×1 convolutional layer, and the image is restored to its original size through interpolation. Use the Sigmoid function to create edge maps at each stage, and then extract the final image edge after cascading and fusion of the individual channel feature maps generated by the four stages and single-point convolution; After edge extraction, all pixel points are traversed to determine their locations, non-edge areas are processed using a bilinear interpolation algorithm, edge point areas are processed using covariance adaptive interpolation, and edge line direction points are processed using a linear interpolation algorithm. Merge the interpolation results to complete the image interpolation; S8, aligning the real environment image and the virtual augmented reality information to obtain an augmented reality virtual-real alignment result.
2. The calibration system for augmented reality virtual-real alignment according to claim 1, characterized in that: The fixed connection structure (12) comprises an AR optical machine locking structure (201), a fixed connection structure (202) and an environment detection imaging device locking structure (203); The AR optical machine locking structure (201) and the environment detection imaging device locking structure (203) are located above the fixed connection structure (202).
3. The calibration system for augmented reality virtual-real alignment according to claim 1, characterized in that: The AR optical machine locking structure (201) is connected to the AR optical machine (11); The AR optical machine locking structure (201) implements translation locking constraints and rotation constraints around the z-axis for the AR optical machine (11) in the x-axis direction and the y-axis direction of the space where the calibration system is located.
4. The calibration system for augmented reality virtual-real alignment according to claim 1, characterized in that: The environment detection imaging device locking structure (203) is connected to the environment detection imaging device (13); The environment detection imaging device locking structure (203) implements translation locking constraints and rotation constraints around the z-axis for the environment detection imaging device (13) in the x-axis direction and the y-axis direction of the space where the calibration system is located.
5. The calibration system for augmented reality virtual-real alignment according to claim 1, characterized in that: The connection method between the AR optical machine locking structure (201) and the AR optical machine (11), and the connection method between the environment detection imaging device locking structure (203) and the environment detection imaging device (13) include screw connection, adhesive connection and snap connection.
6. The calibration system for augmented reality virtual-real alignment according to claim 1, characterized in that: The material of the AR optical machine locking structure (201), the fixed connection structure (202) and the environment detection imaging device locking structure (203) is 7 series aluminum alloy.
