Infrared heat source identification method and device based on AR glasses, and electronic equipment

By acquiring thermal imaging in AR glasses, extracting features, and using the heat source recognition model to confirm the consistency of the recognition results, the problem of infrared sensors being interfered by multiple secondary heat sources in low-light environments is solved, and the recognition accuracy of target heat sources is improved. Night combat capability.

CN118587697APending Publication Date: 2024-09-03GUDONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410443746.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-13
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In low-light environments, the infrared sensors of AR glasses are susceptible to interference from multiple secondary heat sources, resulting in reduced target heat source identification accuracy and an increased probability of misjudgment.

Method used

By obtaining the user's thermal imaging of the heat source to be confirmed, the feature group is extracted and identified using the heat source identification model. Combined with the heat source changes within the preset time period, the consistency of the identification results is confirmed to reduce interference effects and improve identification accuracy.

Benefits of technology

It effectively improves the target heat source recognition accuracy of AR glasses under the interference of multiple heat sources, reduces misjudgments, and improves night combat capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587697A
    Figure CN118587697A
Patent Text Reader

Abstract

The invention discloses an infrared heat source identification method and device based on AR glasses, electronic equipment and a storage medium, and relates to the field of virtual reality. In response to an identification instruction of a user for the first to-be-confirmed heat source, obtaining a first thermal image corresponding to the first to-be-confirmed heat source; according to the first thermal image, obtaining a first feature group corresponding to the first to-be-confirmed heat source through preprocessing operation; acquiring a first identification result corresponding to the first to-be-confirmed heat source according to the first feature group through a heat source identification model; acquiring a second thermal image corresponding to a second to-be-confirmed heat source after a preset time period; according to the second thermal image, obtaining a second feature group corresponding to the second to-be-confirmed heat source through preprocessing operation; acquiring a second identification result corresponding to a second to-be-confirmed heat source according to the second feature group through a heat source identification model; if the first identification result is consistent with the second identification result; and obtaining identification information corresponding to the identification target, and displaying the identification information to the user at a preset position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual reality, and in particular to an infrared heat source identification method, device, electronic device and storage medium based on AR glasses. Background Art

[0002] Nowadays, AR glasses have been widely used in various fields. For example, in the industrial field, AR glasses can be used to conduct equipment inspections to increase efficiency and safety during inspections; in the aerospace field, AR glasses can be used to display the component structure and assembly sequence of spacecraft in a virtual space to help engineers perform assembly operations; in the medical field, AR glasses can be used for medical education and training, providing an interactive learning environment to help medical students and medical staff better understand anatomical structures and disease conditions; and in the military field, AR glasses can be used for enemy situation surveys and assisted aiming to help soldiers understand the battlefield situation and formulate combat plans.

[0003] In the military field, infrared sensors are currently added to AR glasses to help soldiers obtain good visual effects in low-light environments such as at night, in dense forests, and in caves, so that they can observe and identify targets in dark environments and improve night combat capabilities. However, infrared sensors are greatly affected by other heat sources. For example, when multiple secondary heat sources overlap with the target heat source, the multiple secondary heat sources will cover the target. At this time, the accuracy of AR glasses in identifying the target heat source will be greatly reduced, resulting in an increased probability of misjudgment of AR glasses.

[0004] Therefore, there is an urgent need for an infrared heat source identification method, device, electronic device and storage medium based on AR glasses. Summary of the invention

[0005] The present application provides an infrared heat source identification method, device, electronic device and storage medium based on AR glasses, which solves the problem that the infrared sensor will be greatly affected by interference from other heat sources. At this time, the accuracy of AR glasses in identifying the target heat source will be greatly reduced, thereby increasing the probability of misjudgment of AR glasses.

[0006] In a first aspect of the present application, an infrared heat source recognition method based on AR glasses is provided, the method comprising: in response to a user's recognition instruction for a first heat source to be confirmed, obtaining a first thermal image corresponding to the first heat source to be confirmed, the recognition instruction comprising a voice instruction, an action instruction, and an eye movement instruction; according to the first thermal image, obtaining a first feature group corresponding to the first heat source to be confirmed through a preprocessing operation; obtaining a heat source recognition model, and obtaining a first recognition result corresponding to the first heat source to be confirmed according to the heat source recognition model according to the first feature group, the first recognition result being used to indicate the object type corresponding to the first heat source to be confirmed; after a preset time period, obtaining a second heat source to be confirmed A second thermal imaging corresponding to the heat source, the second heat source to be confirmed is the heat source obtained after the first heat source to be confirmed moves in a preset time period; based on the second thermal imaging, a second feature group corresponding to the second heat source to be confirmed is obtained through a preprocessing operation; through a heat source recognition model, a second recognition result corresponding to the second heat source to be confirmed is obtained according to the second feature group, and the second recognition result is used to indicate the object type corresponding to the second heat source to be confirmed; if it is confirmed that the first recognition result is consistent with the second recognition result, then it is confirmed that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target; the recognition information corresponding to the recognition target is obtained, and displayed to the user at a preset position.

[0007] By adopting the above technical solution, when multiple secondary heat sources overlap with the target heat source, that is, the heat source to be confirmed overlaps with multiple secondary heat sources, in response to the user's recognition instruction for the first heat source to be confirmed, the first thermal image corresponding to the first heat source to be confirmed is obtained, and according to the first thermal image, the first feature group corresponding to the first heat source to be confirmed is obtained through a preprocessing operation, so as to obtain the first recognition result corresponding to the first heat source to be confirmed through the heat source recognition model, and then, after a preset time period, the second feature group corresponding to the second heat source to be confirmed is obtained in the same way, and the second recognition result corresponding to the second heat source to be confirmed is obtained through the heat source recognition model, and when it is confirmed that the first recognition result is consistent with the second recognition result, it is confirmed that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target, and the recognition information corresponding to the recognition target is obtained and displayed to the user at a preset position. Then, by comparing the first recognition result before the preset time period with the second recognition result before the preset time period, the influence of multiple secondary heat sources on the judgment of the first result when overlapping with the target heat source is reduced, thereby improving the recognition accuracy of the target heat source by the AR glasses.

[0008] Optionally, obtaining a first thermal image corresponding to the target object specifically includes: obtaining multiple heat sources corresponding to multiple objects in the user's field of view, wherein one object corresponds to one heat source; in response to the user's identification instruction for the target heat source, taking the target heat source as the first heat source to be confirmed, the target heat source being any one of the multiple heat sources.

[0009] By adopting the above technical solution, by acquiring multiple heat sources corresponding to multiple objects in the user's field of view and responding to the user's identification instruction for the target heat source, the target heat source among the multiple heat sources specified by the user is identified as the first heat source to be confirmed.

[0010] Optionally, based on the first thermal image, a first feature group corresponding to the first heat source to be confirmed is obtained through a preprocessing operation, specifically including: based on the first thermal image, a plurality of valid features corresponding to the first heat source to be confirmed are obtained through a preprocessing operation, the plurality of valid features including temperature distribution features, shape features and contour features; the plurality of valid features are used as the first feature group corresponding to the first heat source to be confirmed.

[0011] By adopting the above technical solution, multiple valid features corresponding to the first heat source to be confirmed are obtained through preprocessing operations, and the multiple valid features include temperature distribution features, shape features and contour features, and the multiple valid features are used as the first feature group corresponding to the first heat source to be confirmed, so that the heat source recognition model can identify the heat source to be confirmed according to the multiple valid features, thereby improving the recognition accuracy.

[0012] Optionally, before obtaining the heat source identification model and obtaining the first identification result corresponding to the first heat source to be confirmed according to the first feature group through the heat source identification model, it is necessary to construct the heat source identification model, specifically including: obtaining multiple historical feature groups corresponding to the object types of multiple historically identified heat sources, one historical feature group corresponding to one object type of a historically identified heat source; and constructing a heat source identification model based on the object types of multiple historically identified heat sources and multiple historical feature groups.

[0013] By adopting the above technical solution, a heat source identification model is constructed based on the object types of multiple historically identified heat sources and multiple historical feature groups, so as to utilize a large amount of historical data, so that the heat source identification model can more comprehensively identify the feature groups corresponding to different heat sources, thereby improving the accuracy of the heat source identification model in identifying different heat sources to be confirmed.

[0014] Optionally, after a preset time period, a second heat source to be confirmed is obtained, specifically including: determining whether the first heat source to be confirmed moves within the preset time period; if the first heat source to be confirmed moves within the preset time period, obtaining a motion trajectory corresponding to the first heat source to be confirmed, the motion trajectory being the actual motion trajectory of the first heat source to be confirmed in the preset time period; according to the motion trajectory, obtaining a first preset position and a second preset position in the motion trajectory, the first preset position being the starting position of the first heat source to be confirmed corresponding to the actual motion trajectory, and the second preset position being the end position of the first heat source to be confirmed corresponding to the actual motion trajectory; according to the motion trajectory, the first preset position and the second preset position, the second heat source to be confirmed is obtained.

[0015] By adopting the above technical solution, it is determined whether the first heat source to be confirmed moves within the preset time period. If the first heat source to be confirmed moves within the preset time period, the motion trajectory corresponding to the first heat source to be confirmed is obtained, so that according to the motion trajectory of the first heat source to be confirmed, the target heat source can be locked in real time within the preset time period, thereby confirming that the acquisition of the second heat source to be confirmed is accurate and is the same object as the first heat source to be confirmed.

[0016] Optionally, after determining whether the first heat source to be confirmed moves within a preset time period, the method further includes: if the first heat source to be confirmed does not move within the preset time period, using the first heat source to be confirmed as a second heat source to be confirmed.

[0017] By adopting the above technical solution, if it is confirmed that the first heat source to be confirmed has not moved within the preset time period, the first heat source to be confirmed will be used as the second heat source to be confirmed, so as to obtain the corresponding second thermal image according to the confirmed second heat source to be confirmed.

[0018] Optionally, the preset position is a corresponding position of the identification target in the user's field of view.

[0019] By adopting the above technical solution, the identification information is displayed at a preset position, and the preset position is the corresponding position of the identification target in the user's field of view, so that the user can easily view and understand the relevant information of the identification target.

[0020] In a second aspect of the present application, an infrared heat source identification device based on AR glasses is provided, the device comprising an acquisition module and a processing module, wherein:

[0021] An acquisition module is used to respond to a user's recognition instruction for a first heat source to be confirmed, and obtain a first thermal image corresponding to the first heat source to be confirmed, where the recognition instruction includes a voice instruction, an action instruction, and an eye movement instruction; obtain a heat source recognition model, and obtain a first recognition result corresponding to the first heat source to be confirmed according to a first feature group through the heat source recognition model, and the first recognition result is used to indicate the object type corresponding to the first heat source to be confirmed; after a preset time period, obtain a second thermal image corresponding to a second heat source to be confirmed, and the second heat source to be confirmed is a heat source obtained after the first heat source to be confirmed moves within the preset time period; obtain a second recognition result corresponding to the second heat source to be confirmed according to the second feature group through the heat source recognition model, and the second recognition result is used to indicate the object type corresponding to the second heat source to be confirmed.

[0022] A processing module is used to obtain a first feature group corresponding to a first heat source to be confirmed through a preprocessing operation based on a first thermal image; obtain a second feature group corresponding to a second heat source to be confirmed through a preprocessing operation based on a second thermal image; if it is confirmed that the first recognition result is consistent with the second recognition result, then confirm that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target; obtain recognition information corresponding to the recognition target and display it to the user at a preset position.

[0023] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0024] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to perform any of the above methods.

[0025] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0026] 1. When multiple secondary heat sources overlap with the target heat source, that is, the heat source to be confirmed overlaps with multiple secondary heat sources, in response to the user's recognition instruction for the first heat source to be confirmed, the first thermal image corresponding to the first heat source to be confirmed is obtained, and according to the first thermal image, the first feature group corresponding to the first heat source to be confirmed is obtained through a preprocessing operation, so as to obtain the first recognition result corresponding to the first heat source to be confirmed through the heat source recognition model, and then, after a preset time period, the second feature group corresponding to the second heat source to be confirmed is obtained in the same way, and the second recognition result corresponding to the second heat source to be confirmed is obtained through the heat source recognition model, and when it is confirmed that the first recognition result is consistent with the second recognition result, it is confirmed that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target, and the recognition information corresponding to the recognition target is obtained and displayed to the user at a preset position. Then, by comparing the first recognition result before the preset time period with the second recognition result before the preset time period, the influence of multiple secondary heat sources on the judgment of the first result when overlapping with the target heat source is reduced, thereby improving the recognition accuracy of the target heat source by the AR glasses.

[0027] 2. Obtain multiple valid features corresponding to the first heat source to be confirmed through preprocessing operations, the multiple valid features include temperature distribution features, shape features and contour features, and use the multiple valid features as the first feature group corresponding to the first heat source to be confirmed, so that the heat source recognition model can identify the heat source to be confirmed according to the multiple valid features, thereby improving the recognition accuracy.

[0028] 3. Based on the object types of multiple historically identified heat sources and multiple historical feature groups, a heat source identification model is constructed to utilize a large amount of historical data so that the heat source identification model can more comprehensively identify the feature groups corresponding to different heat sources, thereby improving the accuracy of the heat source identification model in identifying different heat sources to be confirmed. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of an infrared heat source identification method based on AR glasses provided in an embodiment of the present application;

[0030] Figure 2 It is a module schematic diagram of an infrared heat source identification device based on AR glasses provided in an embodiment of the present application;

[0031] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0032] Explanation of the reference numerals: 21, acquisition module; 22, processing module; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0033] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0034] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0035] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0036] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0037] Nowadays, AR glasses have been widely used in various fields. For example, in the industrial field, AR glasses can be used to conduct equipment inspections to increase efficiency and safety during inspections; in the aerospace field, AR glasses can be used to display the component structure and assembly sequence of spacecraft in a virtual space to help engineers perform assembly operations; in the medical field, AR glasses can be used for medical education and training, providing an interactive learning environment to help medical students and medical staff better understand anatomical structures and disease conditions; and in the military field, AR glasses can be used for enemy situation surveys and assisted aiming to help soldiers understand the battlefield situation and formulate combat plans.

[0038] In the military field, infrared sensors are currently added to AR glasses to help soldiers obtain good visual effects in low-light environments such as at night, in dense forests, and in caves, so that they can observe and identify targets in dark environments and improve night combat capabilities. However, infrared sensors are greatly affected by other heat sources. For example, when multiple secondary heat sources overlap with the target heat source, the multiple secondary heat sources will cover the target. At this time, the accuracy of AR glasses in identifying the target heat source will be greatly reduced, resulting in an increased probability of misjudgment of AR glasses.

[0039] Therefore, there is an urgent need for an infrared heat source identification method, device, electronic device and storage medium based on AR glasses.

[0040] Please refer to Figure 1 , which shows a flow chart of an infrared heat source identification method based on AR glasses provided in an embodiment of the present application. The method is applied to AR glasses. The flow chart mainly includes the following steps: S101 to S108.

[0041] Step S101, in response to a user's recognition instruction for a first heat source to be confirmed, a first thermal image corresponding to the first heat source to be confirmed is acquired, where the recognition instruction includes a voice instruction, an action instruction, and an eye movement instruction.

[0042] Specifically, when a user wears AR glasses to conduct military operations, the infrared sensor in the AR glasses can be used to detect heat sources in the field of view to determine the location of the enemy's target heat source, where the user is a soldier wearing AR glasses. The AR glasses obtain all objects in the user's field of view that can be detected as heat sources and display them on the screen of the AR glasses, where the types of heat source objects include but are not limited to: enemy soldiers, animals, vehicles, military equipment, etc. The user can issue an identification instruction to select a heat source object among the heat source objects as the identification object, that is, the target heat source. At this time, the AR glasses will identify the target heat source set by the user as the heat source to be confirmed, and obtain the first thermal image of the heat source to be confirmed. In addition, the user can set the target heat source through a variety of identification instructions, including but not limited to: Voice instruction: AR glasses will number all the heat sources obtained, and display each number in the corresponding heat source attachment. At this time, the user can use the voice instruction "identify number xx" to set the heat source corresponding to "number xx" as the target heat source; Action instruction: AR glasses can identify the user's relevant actions, and the user moves the finger to the position of the corresponding heat source in the field of view, so as to set the heat source at the corresponding position of the user's finger as the target heat source; Eye movement instruction: AR glasses can capture the user's line of sight. When the user keeps the line of sight on the heat source in the field of view for more than a certain period of time, the heat source where the user's line of sight stays is used as the target heat source. The length of stay can be set to 2s, 3s, 5s, etc. according to the actual situation, and it cannot be too long or too short. It should be noted that when the user does not select the target heat source, AR glasses automatically identify all objects in the user's field of view that can be detected by heat sources in accordance with the preset order. The preset order can be the identification order set by the user. For example, the user can set the priority identification of enemy soldiers. At this time, AR glasses will prioritize the identification of objects that are more similar to "enemy soldiers" through pre-judgment.

[0043] Step S102: acquiring a first feature group corresponding to a first heat source to be confirmed through a preprocessing operation according to the first thermal image.

[0044] Specifically, the AR glasses perform a preprocessing operation on the first thermal image corresponding to the heat source to be confirmed to extract a first feature group of the heat source to be confirmed.

[0045] In a possible implementation, step S102 also includes: based on the first thermal imaging, obtaining multiple valid features corresponding to the first heat source to be confirmed through a preprocessing operation, the multiple valid features including temperature distribution features, shape features and contour features; and using the multiple valid features as the first feature group corresponding to the first heat source to be confirmed.

[0046] Specifically, the AR glasses perform denoising on the first thermal image to eliminate possible interference signals so as to improve the image quality of the first thermal image; the AR glasses perform contrast enhancement on the first thermal image to highlight the features of the heat source to be confirmed and make it easier to identify; the AR glasses perform edge detection on the first thermal image to more accurately determine the contour and boundary of the heat source to be confirmed; the AR glasses extract multiple valid features from the processed first thermal image as the first feature group corresponding to the first heat source to be confirmed, and the multiple valid features include but are not limited to: temperature distribution features of the heat source to be confirmed, shape features of the heat source to be confirmed, contour features of the heat source to be confirmed, etc.

[0047] Step S103, obtaining a heat source recognition model, and obtaining a first recognition result corresponding to the first heat source to be confirmed according to the first feature group through the heat source recognition model, wherein the first recognition result is used to indicate the object type corresponding to the first heat source to be confirmed.

[0048] Specifically, the heat source recognition model is a pre-constructed model. The first feature group is extracted from the first thermal image and input into the heat source recognition model. Thus, the heat source recognition model recognizes the heat source to be confirmed according to the first feature group corresponding to the first thermal image, and determines the object type of the heat source to be confirmed, and uses the object type of the heat source to be confirmed as the first recognition result corresponding to the first heat source to be confirmed. The heat source recognition model stores preset feature groups corresponding to multiple identified object types. When the heat source recognition model obtains the first recognition result, it calculates the similarity between the first feature group and all preset feature groups respectively to obtain multiple similarity values, and uses the object type corresponding to the preset feature group whose calculated similarity value is greater than the preset similarity value as the first recognition result. The preset similarity value can be set according to the actual situation, and the preset feature group includes feature groups corresponding to various known object types.

[0049] In a possible implementation, step S103 also includes: obtaining multiple historical feature groups corresponding to multiple object types of historically identified heat sources, one object type of a historically identified heat source corresponds to one historical feature group; and constructing a heat source identification model based on multiple object types of historically identified heat sources and multiple historical feature groups.

[0050] Specifically, the multiple historical feature groups corresponding to different historically identified heat sources and object types of different historically identified heat sources can be obtained in a variety of ways, including but not limited to: field military action records: by recording and collecting different heat sources and the features corresponding to different heat sources in field military actions; training and simulation software records: military training and simulation software usually simulates the real battlefield environment and provides enemy heat source recognition training. During the training process, different heat sources and the features corresponding to different heat sources in the simulated real battlefield environment are recorded and collected; satellite images and drone monitoring: the battlefield environment is monitored and photographed in real time by satellite, and different heat sources in the battlefield environment and the features corresponding to different heat sources are recorded, etc. After obtaining the object types of multiple historically identified heat sources and the corresponding historical feature groups, a heat source recognition model is constructed through the above historical data. The method steps are as follows: feature engineering: the historical feature groups are processed and converted to facilitate model learning. The processing and conversion process includes but is not limited to: feature standardization, feature dimension reduction, feature selection, etc.; Model selection: Select multiple appropriate models and algorithms to be trained, and use the object type and historical feature group of the historically identified heat source to train the model to be trained to obtain multiple trained models. Common models to be trained include but are not limited to: support vector machine (SVM), random forest (Random Forest), convolutional neural network (CNN), etc.; Cross-validation: In order to ensure the generalization ability and stability of the heat source identification model, use methods such as cross-validation to evaluate the performance of multiple trained models, and adjust the parameters of multiple trained models to obtain multiple adjusted models; Model evaluation: Test the performance of multiple adjusted models on the validation set or test set, and select the adjusted model with the best performance as the final heat source identification model.

[0051] Step S104, after a preset time period, a second thermal image corresponding to a second heat source to be confirmed is obtained, where the second heat source to be confirmed is a heat source obtained after the first heat source to be confirmed moves within the preset time period.

[0052] Specifically, after acquiring the first heat source to be confirmed, after a preset time period, the AR glasses acquire the second thermal imaging corresponding to the second heat source to be confirmed, the first heat source to be confirmed and the second heat source to be confirmed are the same target heat source, and the first thermal imaging and the second thermal imaging are different thermal imaging corresponding to the same target heat source. During the preset time period, the user wearing the AR device tracks the heat source in the field of vision, so that the AR device locks the target heat source in real time during the preset time period. In addition, the setting of the preset time period will be set differently according to the results of the AR glasses in the pre-judgment, that is, the length of the preset time period is related to the movement characteristics of the object type, so as to ensure that the second thermal imaging corresponding to the second heat source to be confirmed can be effectively obtained within the preset time period, thereby improving the accuracy of recognition.

[0053] In a possible implementation, step S104 also includes: determining whether the first heat source to be confirmed moves within a preset time period; if the first heat source to be confirmed moves within the preset time period, obtaining a motion trajectory corresponding to the first heat source to be confirmed, the motion trajectory being the actual motion trajectory of the first heat source to be confirmed in the preset time period; according to the motion trajectory, obtaining a first preset position and a second preset position in the motion trajectory, the first preset position being the starting position of the first heat source to be confirmed corresponding to the actual motion trajectory, and the second preset position being the end position of the first heat source to be confirmed corresponding to the actual motion trajectory; according to the motion trajectory, the first preset position and the second preset position, obtaining the second heat source to be confirmed.

[0054] Specifically, within a preset time period, when a user wearing an AR device tracks the heat source through the field of vision, the AR device determines whether the first heat source to be confirmed moves, and obtains the second heat source to be confirmed based on the motion trajectory of the first heat source to be confirmed. When the first heat source to be confirmed moves within the preset time period, the AR device locks the target heat source in real time within the preset time period to obtain the motion trajectory corresponding to the first heat source to be confirmed. The motion trajectory is the actual motion trajectory of the first heat source to be confirmed in the preset time period. The AR device obtains the first preset position and the second preset position in the motion trajectory. The first preset position is the starting position of the first heat source to be confirmed in the actual motion trajectory, and the second preset position is the end position of the first heat source to be confirmed in the actual motion trajectory. The first preset position is used as the position corresponding to the first heat source to be confirmed, and the second preset position is used as the position corresponding to the second heat source to be confirmed, thereby obtaining the second heat source to be confirmed based on the motion trajectory, the first preset position, and the second preset position.

[0055] In a possible implementation, step S104 further includes: if the first heat source to be confirmed does not move within a preset time period, taking the first heat source to be confirmed as a second heat source to be confirmed.

[0056] Specifically, within a preset time period, when the user wearing the AR device tracks the heat source in the field of vision, the second heat source to be confirmed is obtained according to the motion trajectory of the first heat source to be confirmed. The AR device determines whether the first heat source to be confirmed has moved. When the first heat source to be confirmed has not moved within the preset time period, the first preset position and the second preset position in the motion trajectory are confirmed to be the same preset position, that is, the first heat source to be confirmed at the first preset position can be directly used as the second heat source to be confirmed at the second position.

[0057] Step S105 , obtaining a second feature group corresponding to a second heat source to be confirmed through a preprocessing operation according to the second thermal image.

[0058] Specifically, the AR glasses perform denoising on the second thermal image to eliminate possible interference signals so as to improve the image quality of the second thermal image; the AR glasses perform contrast enhancement on the second thermal image to highlight the features of the heat source to be confirmed and make it easier to identify; the AR glasses perform edge detection on the second thermal image to more accurately determine the contour and boundary of the heat source to be confirmed; the AR glasses extract multiple valid features from the processed first thermal image as the second feature group corresponding to the second heat source to be confirmed, and the multiple valid features include but are not limited to: temperature distribution features of the heat source to be confirmed, shape features of the heat source to be confirmed, contour features of the heat source to be confirmed, etc.

[0059] Step S106 , obtaining a second recognition result corresponding to a second heat source to be confirmed according to the second feature group through the heat source recognition model, where the second recognition result is used to indicate the object type corresponding to the second heat source to be confirmed.

[0060] Specifically, by extracting the first feature group from the second thermal imaging and inputting it into the heat source recognition model, the heat source recognition model recognizes the heat source to be confirmed according to the second feature group corresponding to the second thermal imaging, and determines the object type of the heat source to be confirmed, and uses the object type of the heat source to be confirmed as the second recognition result corresponding to the first heat source to be confirmed.

[0061] Step S107: If it is confirmed that the first recognition result is consistent with the second recognition result, then it is confirmed that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target.

[0062] Specifically, if it is confirmed that the first recognition result and the second recognition result point to the same recognition result, the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target, and the recognition is correct, and the second recognition result is used to verify the correctness of the first recognition result. If it is confirmed that the first recognition result and the second recognition result are not the same recognition result, the target heat source is recognized for the third time after a preset time period, that is, after the preset time period, the third thermal image corresponding to the third heat source to be confirmed is obtained, and the third feature group corresponding to the third thermal image is analyzed through the heat source recognition model to obtain the third recognition result, and the third recognition result is compared with the first recognition result to see whether they point to the same recognition result, and the third recognition result is compared with the second recognition result to see whether they point to the same recognition result. If the third recognition result and the first recognition result point to the same recognition result, it is confirmed that the recognition target in the third recognition result and the first recognition result is the recognition target corresponding to the target heat source; if the third recognition result and the second recognition result point to the same recognition result, it is confirmed that the recognition target in the third recognition result and the second recognition result is the recognition target corresponding to the target heat source; if the third recognition result does not point to the same recognition result as the first recognition result, and does not point to the same recognition result as the first recognition result, it is confirmed that the target heat source does not belong to the heat source existing in the database, and the user can be prompted to reselect the target heat source for recognition.

[0063] Step S108, obtaining identification information corresponding to the identification target and displaying it to the user at a preset position.

[0064] Specifically, after completing the identification operation of the heat source to be confirmed, by obtaining the identification information corresponding to the identification target, the AR glasses display the identification result and the identification information corresponding to the identification target to the user at a preset position in the user's field of view. The recognition result, the identification information, and the correspondence between the two are information saved in advance in the AR glasses database. At the preset position, the AR glasses display the identification information so that the user can easily view and understand the relevant information of the identification target. The identification information can be displayed in the form of text, images, virtual marks, etc. to meet the needs of the user and the requirements of the scene. In addition, the preset position is the corresponding position of the identification target in the user's field of view, that is, the area adjacent to the position of the identification target in the user's field of view.

[0065] The present application adopts the above method. When multiple secondary heat sources overlap with the target heat source, that is, the heat source to be confirmed overlaps with multiple secondary heat sources, in response to the user's recognition instruction for the first heat source to be confirmed, the first thermal image corresponding to the first heat source to be confirmed is obtained, and according to the first thermal image, the first feature group corresponding to the first heat source to be confirmed is obtained through a preprocessing operation, so as to obtain the first recognition result corresponding to the first heat source to be confirmed through a heat source recognition model. After that, after a preset time period, the second feature group corresponding to the second heat source to be confirmed is obtained in the same way, and the second recognition result corresponding to the second heat source to be confirmed is obtained through the heat source recognition model. When it is confirmed that the first recognition result is consistent with the second recognition result, it is confirmed that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target, and the recognition information corresponding to the recognition target is obtained and displayed to the user at a preset position. Then, by comparing the first recognition result before the preset time period with the second recognition result before the preset time period, the influence of multiple secondary heat sources on the judgment of the first result when overlapping with the target heat source is reduced, thereby improving the recognition accuracy of the target heat source by the AR glasses.

[0066] Please refer to Figure 2 , which shows a module schematic diagram of an infrared heat source identification device based on AR glasses provided in an embodiment of the present application, the device includes an acquisition module 21 and a processing module 22, wherein:

[0067] The acquisition module 21 is used to respond to the user's recognition instruction for the first heat source to be confirmed, and obtain a first thermal image corresponding to the first heat source to be confirmed, where the recognition instruction includes a voice instruction, an action instruction and an eye movement instruction; obtain a heat source recognition model, and obtain a first recognition result corresponding to the first heat source to be confirmed according to the first feature group through the heat source recognition model, and the first recognition result is used to indicate the object type corresponding to the first heat source to be confirmed; after a preset time period, obtain a second thermal image corresponding to the second heat source to be confirmed, and the second heat source to be confirmed is the heat source obtained after the first heat source to be confirmed moves in the preset time period; obtain a second recognition result corresponding to the second heat source to be confirmed according to the second feature group through the heat source recognition model, and the second recognition result is used to indicate the object type corresponding to the second heat source to be confirmed.

[0068] The processing module 22 is used to obtain a first feature group corresponding to a first heat source to be confirmed through a preprocessing operation based on the first thermal imaging; obtain a second feature group corresponding to a second heat source to be confirmed through a preprocessing operation based on the second thermal imaging; if it is confirmed that the first recognition result is consistent with the second recognition result, then confirm that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target; obtain the recognition information corresponding to the recognition target and display it to the user at a preset position.

[0069] In a possible implementation, the acquisition module 21 is used to acquire a first thermal image corresponding to the target object, specifically including: acquiring multiple heat sources corresponding to multiple objects in the user's field of view, wherein one object corresponds to one heat source; in response to the user's identification instruction for the target heat source, taking the target heat source as the first heat source to be confirmed, the target heat source being any one of the multiple heat sources.

[0070] In a possible embodiment, the processing module 22 is used to obtain a first feature group corresponding to a first heat source to be confirmed through a preprocessing operation based on the first thermal image, specifically including: obtaining a plurality of valid features corresponding to the first heat source to be confirmed through a preprocessing operation based on the first thermal image, the plurality of valid features including temperature distribution features, shape features and contour features; and using the plurality of valid features as the first feature group corresponding to the first heat source to be confirmed.

[0071] In a possible implementation, the acquisition module 21 is used to acquire a heat source identification model, and before obtaining a first identification result corresponding to a first heat source to be confirmed according to a first feature group through the heat source identification model, it is necessary to construct a heat source identification model, specifically including: acquiring multiple historical feature groups corresponding to object types of multiple historically identified heat sources, one historical feature group corresponding to an object type of a historically identified heat source; and constructing a heat source identification model according to the object types of multiple historically identified heat sources and multiple historical feature groups.

[0072] In a possible embodiment, the acquisition module 21 is used to acquire the second heat source to be confirmed after a preset time period, specifically including: determining whether the first heat source to be confirmed moves within the preset time period; if the first heat source to be confirmed moves within the preset time period, acquiring the motion trajectory corresponding to the first heat source to be confirmed, the motion trajectory being the actual motion trajectory of the first heat source to be confirmed in the preset time period; according to the motion trajectory, acquiring the first preset position and the second preset position in the motion trajectory, the first preset position being the starting position of the first heat source to be confirmed corresponding to the actual motion trajectory, and the second preset position being the end position of the first heat source to be confirmed corresponding to the actual motion trajectory; acquiring the second heat source to be confirmed according to the motion trajectory, the first preset position and the second preset position.

[0073] In a possible implementation, after the acquisition module 21 is used to determine whether the first heat source to be confirmed moves within a preset time period, the method further includes: if the first heat source to be confirmed does not move within the preset time period, using the first heat source to be confirmed as the second heat source to be confirmed.

[0074] In a possible implementation, the preset position is a corresponding position of the identification target in the user's field of view.

[0075] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0076] The present application also provides an electronic device. Figure 3 , Figure 3 30 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include: at least one processor 301, at least one communication bus 302, a user interface 303, at least one network interface 304, and a memory 305.

[0077] The communication bus 302 is used to realize the connection and communication between these components.

[0078] The user interface 303 may include a display screen (Display) and a camera (Camera). The optional user interface 303 may also include a standard wired interface and a wireless interface.

[0079] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0080] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0081] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program based on infrared heat source recognition of AR glasses.

[0082] exist Figure 3In the electronic device shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program stored in the memory 305 for infrared heat source identification based on AR glasses. When executed by one or more processors 301, the electronic device executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0083] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.

[0084] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0085] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0087] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0089] The above are only exemplary embodiments disclosed in this application, and the scope of the disclosure of this application cannot be limited by this. That is, any equivalent changes and modifications made according to the teachings disclosed in this application are still within the scope of the disclosure of this application. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other implementation schemes disclosed in this application.

[0090] This application is intended to cover any modifications, uses or adaptive changes disclosed in this application, which follow the general principles disclosed in this application and include common knowledge or customary technical means in the technical field not recorded in this application.

Claims

1. A method for identifying infrared heat sources based on AR glasses. It is characterized in that The method comprises: In response to a user's recognition instruction for a first heat source to be confirmed, acquiring a first thermal image corresponding to the first heat source to be confirmed, wherein the recognition instruction includes a voice instruction, an action instruction, and an eye movement instruction; According to the first thermal image, obtaining a first feature group corresponding to the first heat source to be confirmed through a preprocessing operation; Acquire a heat source recognition model, and acquire a first recognition result corresponding to the first heat source to be confirmed according to the first feature group through the heat source recognition model, wherein the first recognition result is used to indicate the object type corresponding to the first heat source to be confirmed; After a preset time period, a second thermal image corresponding to a second heat source to be confirmed is obtained, where the second heat source to be confirmed is a heat source obtained after the first heat source to be confirmed moves during the preset time period; According to the second thermal image, obtaining a second feature group corresponding to the second heat source to be confirmed through a preprocessing operation; Obtaining, by means of the heat source recognition model, a second recognition result corresponding to the second heat source to be confirmed according to the second feature group, wherein the second recognition result is used to indicate an object type corresponding to the second heat source to be confirmed; If it is confirmed that the first recognition result is consistent with the second recognition result, then confirming that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target; The identification information corresponding to the identification target is obtained and displayed to the user at a preset position.

2. The method according to claim 1, It is characterized in that The obtaining of a first thermal image corresponding to the target object specifically includes: Acquire multiple heat sources corresponding to multiple objects in the user's field of view, wherein one object corresponds to one heat source; In response to a user's identification instruction for a target heat source, the target heat source is used as the first heat source to be confirmed, and the target heat source is any one of the multiple heat sources.

3. The method according to claim 1, It is characterized in that The step of obtaining a first feature group corresponding to the first heat source to be confirmed through a preprocessing operation according to the first thermal image specifically includes: According to the first thermal imaging, a plurality of effective features corresponding to the first heat source to be confirmed are obtained through a preprocessing operation, wherein the plurality of effective features include temperature distribution features, shape features, and contour features; The plurality of valid features are used as the first feature group corresponding to the first heat source to be confirmed.

4. The method according to claim 1, It is characterized in that In the step of obtaining the heat source identification model, before obtaining the first identification result corresponding to the first heat source to be confirmed according to the first feature group through the heat source identification model, it is necessary to construct the heat source identification model, specifically including: Acquire multiple historical feature groups corresponding to the object types of multiple historically identified heat sources, where one object type of the historically identified heat source corresponds to one historical feature group; The heat source identification model is constructed based on the object types of the multiple historically identified heat sources and the multiple historical feature groups.

5. The method according to claim 1, It is characterized in that The step of obtaining the second heat source to be confirmed after a preset time period specifically includes: Determining whether the first heat source to be confirmed moves within the preset time period; If the first heat source to be confirmed moves within the preset time period, obtaining a motion trajectory corresponding to the first heat source to be confirmed, where the motion trajectory is an actual motion trajectory of the first heat source to be confirmed within the preset time period; According to the motion trajectory, a first preset position and a second preset position in the motion trajectory are acquired, wherein the first preset position is a starting position of the first heat source to be confirmed corresponding to the actual motion trajectory, and the second preset position is an end position of the first heat source to be confirmed corresponding to the actual motion trajectory; The second heat source to be confirmed is acquired according to the motion trajectory, the first preset position and the second preset position.

6. The method according to claim 5, It is characterized in that After determining whether the first heat source to be confirmed moves within the preset time period, the method further includes: If the first heat source to be confirmed does not move within the preset time period, the first heat source to be confirmed is used as the second heat source to be confirmed.

7. The method according to claim 2, It is characterized in that The preset position is the corresponding position of the recognition target in the user's field of view.

8. An infrared heat source identification device based on AR glasses, It is characterized in that The device comprises an acquisition module (21) and a processing module (22), wherein: The acquisition module (21) is used to respond to a user's recognition instruction for a first heat source to be confirmed, and to acquire a first thermal image corresponding to the first heat source to be confirmed, wherein the recognition instruction includes a voice instruction, an action instruction, and an eye movement instruction; to acquire a heat source recognition model, and to acquire a first recognition result corresponding to the first heat source to be confirmed according to the first feature group through the heat source recognition model, wherein the first recognition result is used to indicate the type of object corresponding to the first heat source to be confirmed; to acquire a second thermal image corresponding to a second heat source to be confirmed after a preset time period, wherein the second heat source to be confirmed is a heat source obtained after the first heat source to be confirmed moves during the preset time period; and to acquire a second recognition result corresponding to the second heat source to be confirmed according to the second feature group through the heat source recognition model, wherein the second recognition result is used to indicate the type of object corresponding to the second heat source to be confirmed; The processing module (22) is used to obtain a first feature group corresponding to the first heat source to be confirmed through a preprocessing operation based on the first thermal image; obtain a second feature group corresponding to the second heat source to be confirmed through a preprocessing operation based on the second thermal image; if it is confirmed that the first recognition result is consistent with the second recognition result, confirm that the recognition target in the first recognition result and the recognition target in the second recognition result are the same recognition target; obtain recognition information corresponding to the recognition target, and display it to the user at a preset position.

9. An electronic device, It is characterized in that The electronic device comprises a processor (301), a communication bus (302), a user interface (303), a network interface (304) and a memory (305), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.