Human body detection-based sighting telescope control method, product, equipment and medium

By implementing a control method based on human body detection in the sight device, it can judge and prevent the shooting action aimed at the human target, ensure the self-destruction of the sight device, and solve the problem of accidental shooting of shooting equipment in the existing technology under insufficient light. Improved the safety and usage restrictions of shooting equipment.

CN118548751APending Publication Date: 2024-08-27YANTAI RAYTRON TECH CO LTD
0 Cites 0 Cited by

Patent Information

Application Number
CN202410656514.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-27

Smart Images

  • Figure CN118548751A
    Figure CN118548751A
Patent Text Reader

Abstract

The invention provides a sighting telescope control method based on human body detection, a product, equipment and a medium, and the method comprises the steps: obtaining a current scene image in a current visual field range of sighting telescope equipment; based on the target recognition result of the current scene image and the position of an aiming identifier in the current scene image, whether a human body target is aimed at currently is judged; if the human body target is aimed at currently, detecting whether a shooting action occurs or not; and if the shooting action occurs, controlling the sighting telescope equipment to be self-destroyed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of sighting products, and in particular to a sighting control method based on human body detection, a computer program product, a sighting device, and a computer-readable storage medium. Background Art

[0002] As hunting spreads and becomes more popular in different regions around the world, the pursuit of shooting equipment performance, especially the demand for improving shooting accuracy, has increased significantly. As an important component of hunting shooting equipment to improve shooting accuracy, sighting equipment can assist shooters in accurately aiming at targets in real-time imaging, greatly improving the shooter's operating ability.

[0003] Therefore, the development and application of sighting equipment is very important for improving the user experience of hunting and shooting equipment. Among them, a major breakthrough in sighting equipment is the development and application of infrared sights, which can usually collect the thermal radiation emitted by the target object and convert it into a visual image, so that shooting can be carried out even in low light conditions, allowing shooters to maintain a good hunting experience in various environmental conditions.

[0004] However, the inventors of the present application discovered in their research that the current development and application of sighting equipment are all directed towards helping shooters aim at targets in various application scenarios, while ignoring the issue of safety in the use of hunting shooting equipment, especially in some situations where the lighting is insufficient or unforeseen, which may lead to accidental shooting or injury to others. By integrating the improvement of shooting accuracy and safety into the sighting equipment, when the sighting equipment is installed on shooting equipment such as guns, the shooting equipment can be restricted to be used only in civilian scenarios such as hunting, and cannot support use in military scenarios. It also allows civilian shooting equipment that originally does not have safety warning performance to be restricted from being used for shooting at human targets by adding sighting equipment, which is of great significance for improving the safe application of shooting equipment. Summary of the invention

[0005] In order to solve the existing technical problems, the present application provides a human body detection-based aiming control method, computer program product, aiming device and computer-readable storage medium that can effectively improve the safety of using shooting equipment and avoid accidentally shooting others.

[0006] In a first aspect, a method for controlling an aiming device based on human body detection is provided, comprising:

[0007] Get the current scene image within the current field of view of the sighting device;

[0008] Based on the target recognition result of the current scene image and the position of the aiming mark in the current scene image, determining whether a human target is currently being aimed at;

[0009] If the current aiming is at a human target, detect whether a shooting action occurs;

[0010] If a shooting action occurs, the sighting device is controlled to self-destruct.

[0011] In a second aspect, a computer program product is also provided, including a computer program, wherein when the computer program is executed by a processor, the aiming device control method based on human body detection described in any embodiment of the present application is implemented.

[0012] In a third aspect, a sighting device is provided, comprising: a memory for storing a computer program; a processor for executing the computer program to implement the sighting control method based on human body detection as described in any embodiment of the present application; an image sensor for capturing a current scene image within a current field of view and sending the current scene image to the processor; and a display module for executing display in a current aiming mode.

[0013] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the aiming device control method based on human body detection described in any embodiment of the present application is implemented.

[0014] In the aiming device control method based on human detection provided in the above-mentioned embodiment, for the current scene image obtained in real time within the current field of view of the aiming device, it is judged whether the human target is currently aimed at according to the target recognition result and the position of the aiming mark. If it is determined that the human target is currently aimed at, it is detected whether the user performs a shooting action during the process of aiming at the human target. If a shooting action occurs, the aiming device is controlled to self-destruct, so that the aiming device is permanently invalidated, so as to restrict the user from continuing to use the aiming device to assist in shooting. In this way, the aiming device provided in the embodiment of the present application is only used to support the user to use the shooting equipment for shooting activities in civilian scenes, and restricts the shooting equipment from being used in military scenes or scenes that are not allowed to be used according to law, which can effectively improve the safety of the use of the shooting equipment.

[0015] It should be noted that the sighting device can be installed as an accessory to the shooting equipment, so that for any shooting equipment that originally has restricted usage scenarios, the safety prompt performance can be achieved by installing the sighting device with the human body detection-based sighting control method provided in the embodiment of the present application, which has good adaptability and practicality.

[0016] In the above embodiments, the computer program product, the aiming device, and the computer-readable storage medium belong to the same concept as the corresponding aiming control method embodiment based on human body detection, and thus have the same technical effect as the aiming control method embodiment based on human body detection, which will not be described in detail herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of optional application scenarios of the aiming control method based on human body detection.

[0018] Figure 2 A schematic diagram of another optional application scenario of the aiming control method based on human body detection.

[0019] Figure 3 Flowchart of a sighting device control method based on human body detection in one embodiment.

[0020] Figure 4 A schematic diagram of aiming at a human target in an example.

[0021] Figure 5 A schematic diagram of aiming at a human target in another example.

[0022] Figure 6 This is a schematic diagram of aiming at a human target in yet another example.

[0023] Figure 7 The present invention is a flowchart of detecting and identifying human targets using an improved deep learning-based target recognition method in an embodiment.

[0024] Figure 8 Schematic diagram of the structure of a sighting device control device based on human body detection in one embodiment.

[0025] Fig. 9 Schematic diagram of the structure of a sighting device in one embodiment. DETAILED DESCRIPTION

[0026] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0027] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0028] In the following description, the expression "some embodiments" is involved, which describes a subset of all possible embodiments. It should be noted that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0029] In the following description, the terms "first, second, third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first, second, third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0030] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0031] A sighting device refers to a tool installed on shooting equipment to help the user to accurately aim at the target. The sighting device generally includes an image sensor and a display module. The image sensor is used to capture the scene image within the current field of view, and the display module is used to display the scene image and aiming mark. Normally, the sighting device is an independent sighting tool that can be installed on the shooting equipment for use; of course, the sighting device can also be a part that is pre-installed on the shooting equipment before the shooting equipment leaves the factory, that is, the shooting equipment itself has an integrated sighting function and has an image sensor and a display module. The sighting device involved in the present application can be either an independent sighting tool or integrated in the shooting equipment, which is not limited here.

[0032] Aiming mark refers to various marks displayed in the imaging screen of the aiming device to indicate the position, such as cross scale, aiming cursor, aiming red dot, etc. When the aiming mark aims at the target in the scene image, it means that the shooting equipment is aimed at the target.

[0033] See also Figure 1 , which is a schematic diagram of an optional application scenario of the aiming control method based on human detection provided in an embodiment of the present application, wherein the aiming device 10 is designed to be a separate and independent accessory relative to the shooting equipment 20, and the aiming device 10 includes an image sensor, a display module, a memory and a processor, and can be installed on the shooting equipment 20. The aiming device 10 is loaded with a computer program for executing the aiming control method based on human detection provided in an embodiment of the present application, and provides detection and early warning of human targets for the shooting equipment 20 during shooting activities, and automatically initiates self-destruction when it recognizes that a human target is aimed at and a shooting action is performed.

[0034] Optionally, the aiming device 10 may be integrated on the shooting equipment 20 before the shooting equipment 20 leaves the factory. For the user side of the shooting equipment 20, the aiming device 10 is pre-installed on the shooting equipment 20. However, this situation also belongs to an optional application instance in which the aiming device 10 can be installed as an accessory of the shooting equipment 20, so that the shooting equipment that originally does not have a safety reminder function can increase the detection and early warning of human targets, and can automatically start the self-destruction function when it identifies and aims at a human target and performs a shooting action.

[0035] See also Figure 2 In another embodiment, a schematic diagram of another optional application scenario of the aiming control method based on human detection provided in the embodiment of the present application is provided, wherein an independent human detection warning device 30 loaded with a computer program for executing the aiming control method based on human detection provided in the embodiment of the present application is designed. At this time, the human detection warning device 30 includes a memory and a processor, and can be formed into two relatively independent and separate accessories with the known aiming device 10, and cooperate with the aiming device 10 to complete the aiming control method based on human detection described in the embodiment of the present application. The human detection warning device 30 can be pre-installed or post-installed on the shooting equipment 20, so that the shooting equipment that originally does not have the safety prompt performance can add the detection and warning function of the human target. It can be understood that although the human detection warning device 30 is an independent and separate component, at this time, the human detection warning device 30 can also be regarded as one of the components of the aiming device 10.

[0036] It should be noted that in the following embodiments provided in the present application, the aiming control method based on human body detection is mainly described by taking the application of the aiming device (i.e. the aiming device is the execution subject) as an example. The aiming device is an independent sighting tool and can be installed on the shooting equipment for use, but this is not intended to limit the present invention.

[0037] See also Figure 3 , a sighting device control method based on human body detection provided in an embodiment of the present application comprises the following steps:

[0038] S101, obtaining a current scene image within a current field of view of a sighting device.

[0039] S103, judging whether a human target is currently being aimed at based on the target recognition result of the current scene image and the position of the aiming mark.

[0040] S105, if the current aiming is at a human target, detecting whether a shooting action occurs.

[0041] S107: If a shooting action occurs, the sighting device is controlled to self-destruct.

[0042] The current scene image refers to the image formed in real time for the current field of view by the aiming device during use. The target refers to the object of interest in the image detection in the current scene image. In the embodiment of the present application, the target can be divided into an aiming target and a human target. For example, in a hunting scene, the aiming target mainly includes various prey in the hunting scene image. The human target refers to the full or partial imaging of any human body contained in the current scene image.

[0043] Target recognition can be various known methods for detecting images to identify the type and position of specified targets in the images. The aiming control method based on human body detection provided in the embodiment of the present application can be applied to the aiming device, and specifically can refer to the processor in the aiming device being implemented by executing a computer program. In the process of the aiming device executing the aiming control method based on human body detection, the human body target is one of the objects of interest in the image detection in the current scene image. According to the target recognition result and the position of the aiming mark in the current scene image, it is used to judge whether a shooting action occurs when aiming at the human body target when the shooting equipment is aimed at the human body target. If the user ignores the current situation of aiming at the human body target and performs a shooting operation, the aiming device is controlled to self-destruct, making the aiming device permanently invalid. In this way, the aiming device provided in the embodiment of the present application is only used to support users to use shooting equipment for shooting activities in civilian scenes, restricting the shooting equipment from being used in military scenes or scenes that are not allowed to be used according to law, which can effectively improve the safety of the use of shooting equipment.

[0044] Determining whether a human target is currently being aimed at may refer to performing global target detection and recognition on the current scene image based on target recognition, identifying and marking all human targets contained in the current scene image, and at the same time, judging whether the aiming mark overlaps with the position of any marked human target based on the position of the aiming mark in the current scene image, thereby judging whether a human target is currently being aimed at.

[0045] In another optional embodiment, to determine whether a human target is currently being aimed at, the position of the aiming mark in the current scene image may be first determined, and a preset area image may be determined with the position of the aiming mark as a reference position, such as a rectangular area of ​​a preset size centered on the position of the aiming mark as the preset area image, and then through target recognition, only confirmation may be performed on whether a human target exists in the preset area image corresponding to the aiming mark in the current scene image, that is, only local target detection and recognition may be performed on the preset area image in the current scene image, thereby determining whether a human target is currently being aimed at.

[0046] Whether it is global target detection or local target detection, judging whether the current target is a human body can be: Figure 4As shown in FIG. 1 , it is a schematic diagram for determining the current aiming at the human target based on the overlap between the position of the human target and the position of the aiming mark; Figure 5 and Figure 6 As shown, it is a schematic diagram of determining the current human target to be aimed at based on the existence of the human target within a set time in the preset area image corresponding to the aiming mark.

[0047] For any shooting equipment that originally has no restrictions on usage scenarios, the sighting device provided by the embodiments of the present application can be installed to limit its applicable usage scenarios to only civilian scenarios such as hunting, and cannot support military scenarios. Once the usage restrictions are violated, the sighting device is directly controlled to self-destruct, making the sighting device permanently invalid, so as to effectively improve the safety of shooting equipment.

[0048] In some embodiments, after the human target is currently aimed at, the method further includes:

[0049] triggering the sighting device to enter an abnormal aiming mode; or,

[0050] Timing starts from the current aiming at the human target. If the aiming at the human target is maintained or the human target is maintained within the preset range of the aiming mark for more than a preset time or more than a preset number of consecutive frames, the aiming device is triggered to enter an abnormal aiming mode.

[0051] The abnormal aiming mode refers to another working mode opposite to the normal aiming mode of the sighting device. It is used to remind the user of the shooting equipment that he cannot shoot at the moment by breaking the normal aiming function of the sighting device.

[0052] In the process of executing the aiming control method based on human detection, the aiming device determines, based on the target recognition result and the position of the aiming mark in the current scene image, that when the shooting equipment is aimed at a human target, the aiming device is triggered to automatically enter the abnormal aiming mode. In this way, the user of the shooting equipment is reminded through the abnormal aiming mode that he cannot shoot at the moment, which can effectively avoid the situation of misshooting or harming others in some situations where the illumination is insufficient or unforeseen, thereby improving the safety of the use of civilian shooting equipment. Optionally, when the shooting equipment is aimed at a human target, it is further determined whether the aiming at the human target or the human target is kept within the preset range of the aiming mark for more than a preset time or more than a preset number of consecutive frames. If it exceeds the preset time or more than a preset number of consecutive frames, the aiming device is triggered to enter the abnormal aiming mode.

[0053] Usually, after aiming at the target, the user will have a continuous aiming time before deciding to shoot. Considering that the shooting equipment may accidentally aim at a human target at some point during the rapid movement, timing is performed after the current aiming at the human target is detected. For the situation where the human target is aimed at but not stopped, it can be considered that the user actually has no intention to shoot the human target. The aiming device maintains the normal aiming mode and will not trigger the abnormal aiming mode. It can take into account the usage habits of different users without causing inappropriate restrictions. If, after aiming at the human target, the human target is aimed at or the human target remains within the preset range of the aiming mark for more than a preset time or more than a preset number of consecutive frames, rather than moving away from the human target, it can be considered that the user currently has the intention to shoot and abnormal aiming needs to be triggered.

[0054] The preset range of the aiming mark may refer to an image area determined based on the position of the aiming mark in the current scene image and taking the position of the aiming mark as a reference position. During the continuous aiming time after aiming at the target and before the user determines to shoot, the user may have a process of calibrating the aiming. Therefore, after aiming at a human target, if the human target remains within the preset range of the aiming mark for more than a preset time or more than a preset number of consecutive frames, it can be regarded that the user has the intention to shoot the currently aimed target.

[0055] The preset time may be a time value preset by the aiming device before leaving the factory, or may refer to a time value set or adjusted by the aiming device through a human-computer interaction interface. Optionally, the preset time may also be the length of time that the current user usually aims at the target, calculated by the aiming device based on the user's individual historical usage records and the user's usage habits. The preset time may be modified and updated based on the user's historical usage records.

[0056] The continuous preset number of frames is usually related to the length of time the user will maintain continuous aiming after aiming at the target and before deciding to shoot, and the image acquisition frequency of the aiming device. For example, the user usually maintains continuous aiming time for 1 second, and the aiming device captures 30 frames of images within 1 second, then the continuous preset number of frames M can be set to a value less than 30 frames, such as 10 frames.

[0057] In the above embodiment, by loading a computer program with the aiming device control method based on human detection provided by the embodiment of the present application, the aiming screen can be analyzed in real time, and whether a human target appears in the current aiming screen can be identified in time. According to the target recognition result and the position of the aiming mark, it is judged that the human target is aimed at or the user has the intention to shoot after aiming at the human target, and the aiming device is triggered to enter the abnormal aiming mode. The abnormal aiming mode reminds the user of the shooting equipment that he cannot shoot at the moment, which can effectively avoid the occurrence of accidental shooting or injury to others in some situations where the illumination is insufficient or unforeseen, greatly enhances the user of civilian shooting equipment's perception of the surrounding environment, and greatly reduces the probability of accidents.

[0058] It should be noted that, during the use of civilian shooting equipment, due to the complexity of various usage scenarios, there may be various situations where it is inevitable that people appear in the imaging field of view, such as wolves and shepherds mixed in with the sheep on the pasture. Due to the movement characteristics of wolves, the imaging field of view of the sighting equipment needs to be large in order to obtain a current scene image that covers as much image information as possible, so as to facilitate the analysis and prediction of the movement characteristics of the wolves in the imaging field of view. At this time, the image of the shepherd may also appear in the corresponding current scene image. After the sighting equipment is installed on the shooting equipment, by executing the sighting control method based on human detection, it is possible to calculate in real time whether the shooting equipment is currently aiming at a human target based on the current scene image of the current field of view. When aiming at a human target and judging that there is a shooting intention, the sighting equipment will automatically trigger to enter the abnormal aiming mode to remind the user to quickly switch the aiming target. When not aiming at a human target, the sighting equipment can maintain the normal aiming mode to assist the user to aim at the wolf he originally wanted to aim at.

[0059] For another example, on a shooting training ground, shooting equipment such as bows and arrows or guns used for target shooting training can also be equipped with sighting devices to assist in aiming at shooting targets. By executing a sighting control method based on human detection through the sighting device, it can calculate in real time based on the current scene image in the current field of view to determine whether the shooting equipment is currently aiming at a human target and whether the user has the intention to shoot. When it is determined that the human target is mistakenly aimed at and the shooting is performed accurately, the sighting device will automatically trigger to enter an abnormal aiming mode to remind the user to quickly switch the aiming target to ensure the safety of the training process.

[0060] In this way, for any shooting equipment that originally had no restrictions on usage scenarios, by adding sighting equipment, its applicable scenarios can be limited to civilian scenarios such as hunting, and it cannot support military scenarios, which can effectively improve the safety of shooting equipment.

[0061] In some embodiments, target recognition of the current scene image may be performed by performing global detection of the current scene image based on target recognition to identify the aiming target, performing global detection of the current scene image based on target recognition to identify the human target, or performing local detection of the preset area image corresponding to the position of the aiming mark in the current scene image based on target recognition to identify the human target. Target recognition may be achieved by using a known traditional target recognition algorithm or by using a method based on deep learning.

[0062] Optional, see Figure 7 , further provides detection and recognition of human targets, using an improved deep learning-based target recognition method, including:

[0063] Step S201, using a target detection model to determine whether there is a target in the current scene image;

[0064] Step S203, if there is a target in the current scene image, extract features of the current target using a feature extraction model to obtain a target feature vector of the current target;

[0065] Step S205, comparing the target feature vector with the human feature vector in a human feature vector library to determine whether the current target is a human target; wherein the human feature vector library is obtained by inputting a sample image containing a human target into the feature extraction model.

[0066] The target detection model and the feature extraction model are separate deep learning models. The target detection model is used to detect the target in the current scene image to determine whether there is a target in the current scene image (at this time, there is no need to identify the target type). In this way, the target detection model can use a general target detection model and only needs to implement a single category, that is, whether there is a general target in the image. The training requirements are low and the accuracy is high, achieving the purpose of being more lightweight and easy to deploy in the aiming device. The feature extraction model detects the current target based on the target detection model to extract features, so as to confirm whether the current target is a human target based on the feature extraction results of the current target. In this way, the feature extraction model only needs to focus on the feature extraction of the target in the image, which is also conducive to reducing training requirements and achieving the purpose of being more lightweight and easy to deploy in the aiming device. Among them, the feature extraction model also includes taking a sample image containing a human target as input, extracting features to obtain a human feature vector, and constructing a human feature vector library.

[0067] Optionally, the human body feature vector library includes human body feature vectors of different postures, different viewing angles and different occlusion degrees.

[0068] In a specific example, the feature extraction model uses a pre-trained Openpose feature extractor. A large-scale data set containing human images is collected to ensure the diversity and representativeness of the human image data, including different human postures, perspectives, occlusion levels, and environmental backgrounds. The human images are then preprocessed, such as noise removal, grayscale, normalization, and accurate bounding box annotation to form a specific target data set. The Openpose feature extractor is trained in a self-learning manner based on the specific target data set. During the training process, the output of the part before the last fully connected layer is used as a human feature vector. It can be understood that these human feature vectors have a fixed length and are highly abstract, and can effectively capture the structural information of the human body and its infrared visual features. Finally, these human feature vectors are stored to form a human feature vector library. It can be understood that in the human feature vector library, each human feature vector can be a human sample corresponding to a specific posture, a specific perspective, and different occlusion levels.

[0069] The target detection model is obtained by training the deep learning model with a training data set, wherein the training data set can first adopt a general target data set, and the general target detection model is obtained by training the general target data set. In an optional example, first, a large number of real infrared images of real shooting scenes (such as hunting scenes) are obtained through actual shooting and other methods, and the specific location of the target is marked therein, and finally a data pair such as an image-annotation file is formed. A large number of such data pairs constitute the general target data set required for training, and the general target data set is randomly divided into a training set and a test set at a ratio of 8:2. Secondly, a convolutional neural network model is built, and the convolutional neural network model is trained based on the training set data, and then the detection accuracy of the convolutional neural network model is verified on the test set. This is repeated and iterated. When the preset iteration termination condition is reached, such as when the accuracy of the convolutional neural network model on the test set reaches 95%, it can be considered that a general target detection model with high credibility is obtained.

[0070] The target recognition model is composed of the target detection model and the feature extraction model. In actual deployment, that is, the application stage of the target recognition model, the current scene image is first used as the input of the target detection model. The target detection model detects in real time whether there is a target in the current scene image. If there is a target, the feature extraction model is used to extract features at the position corresponding to the target to generate a target feature vector. The target feature vector is compared with the human feature vector library to confirm whether the target detected by the target detection model is a human target.

[0071] In the above embodiment, a preferred target recognition method is provided for the detection and recognition of human targets. The inventors of the present application have found in their research that target detection is an important issue in the field of computer vision, which has two main tasks: identifying the target category and determining the target position. The convolutional neural network model is an important method in the deep learning algorithm. It does not require any precise mathematical expression between the input and output. It learns the complex mapping relationship between the input and output through the convolution layer connection. It only needs to train the convolutional neural network based on a large number of labeled data sets (input, ideal output). The neural network has the mapping ability between the input and output. If there are too many types of targets to be detected, the sample data of different target types are unevenly distributed, which will affect the network detection effect. In this way, the present embodiment provides a universal target detection model through training, that is, there is only one classification result (i.e., whether there is a target). In this way, the difficulty of training data collection and model training is relatively low, the trained model structure is simple, and the platform computing power requirement is low. It can be more easily deployed in the aiming device. The target detection model is used in conjunction with the feature extraction model for extracting human features to accurately and efficiently realize the recognition of human targets. That is to say, in general, the deep learning model used for target detection is a large model that can directly identify the target category, that is, identify human targets, but the model training is complex and has high requirements for training data. When deployed on the sighting device, there will be problems such as the model being too large, running slowly, and failing to meet real-time requirements. The target recognition method provided in this application is divided into two steps: first detecting general targets, and then extracting features from the targets. The corresponding target detection model and feature extraction model used are two small models with low training requirements, which can meet the requirements for real-time deployment on the sighting device.

[0072] It should be noted that target recognition for aiming targets can also be achieved under the technical guidance of this embodiment by using the above-mentioned improved target recognition method based on deep learning, which will not be elaborated here.

[0073] Optionally, step S205 includes:

[0074] The distance between the target feature vector and each of the human feature vectors in the human feature vector library is calculated, and whether the current target is a human target is determined according to the distance.

[0075] Among them, comparing the target feature vector with the human feature vector library is equivalent to comparing the target feature vector with the human feature vectors of different postures, different perspectives and different occlusion degrees in the human feature vector library, calculating the distance between the target feature vector and each human feature vector, such as Euclidean distance or cosine similarity, and obtaining the confidence that the target is a human target. If the confidence is greater than the set threshold, the target is considered to be a human target and the human target is framed at the corresponding position. Otherwise, the target is considered to be a non-human target and no processing is done on the target.

[0076] In the above embodiment, a dedicated feature extraction model is used to extract the feature vector of the target and establish a human feature vector library. The similarity of the feature vectors is judged by calculating the distance between the vectors, which can achieve a faster and more accurate judgment on whether the aiming mark in the current scene image is currently aiming at the human target.

[0077] In some embodiments, the abnormal aiming mode includes at least one of the following:

[0078] Providing an abnormal aiming warning prompt; the abnormal aiming warning prompt includes at least one of a sound warning, a light warning, and a graphic warning in a display screen;

[0079] Providing an abnormal display reminder; the abnormal display includes one of the following: disappearance of the aiming mark, deviation of the aiming mark, black screen, distorted screen, and display screen jitter;

[0080] Shut down the device;

[0081] An abnormal aiming alarm is given and timing is started. If the accumulated time reaches the threshold and the device is still aiming at a human target, an abnormal display reminder or shutdown is given.

[0082] The abnormal aiming mode of the sighting device can be any form that is different from the normal aiming mode and can restrict the current aiming and shooting operation of the user of the shooting equipment. Here, the abnormal aiming warning prompt, abnormal display reminder and shutdown multiple means mentioned here can be combined arbitrarily without conflicting with each other to achieve the effect of multiple means of reminding at the same time.

[0083] In an optional specific example, when the aiming device is executing the aiming control method based on human detection, when it is confirmed that it is currently aiming at a human target, it enters an abnormal aiming mode, including first issuing an abnormal aiming alarm prompt and starting a timer. If the cumulative time of the abnormal aiming alarm prompt reaches a threshold, such as lasting for 1 second, and the result of judging the current scene image collected in real time is still to confirm that the aiming mark is currently aiming at a human target, an abnormal display reminder is issued or the aiming device is directly controlled to shut down, thereby directly restricting the user from continuing to use the normal aiming function of the aiming device.

[0084] In some embodiments, the sighting device is provided with an inertial sensor; in step S105, detecting whether a shooting action occurs includes:

[0085] The sensor data collected in real time by the inertial sensor is analyzed to determine whether a shooting action occurs.

[0086] Inertial sensors are sensors that detect and measure acceleration, tilt, shock, vibration, rotation, and multi-degree of freedom (DOF) motion. When a shooting device is shooting, it will cause the sighting device installed on it to generate an acceleration or vibration that cannot be artificially created. In this way, the sighting device can analyze the sensor data collected by its own inertial sensor to determine whether the shooting device is shooting.

[0087] In an optional example, the inertial sensor includes an accelerometer and / or a gyroscope; and analyzing sensor data collected in real time by the inertial sensor to determine whether a shooting action occurs includes:

[0088] The sensor data collected in real time by the accelerometer and / or the gyroscope is obtained for analysis to determine whether it matches a shooting behavior template, so as to determine whether a shooting action occurs; wherein the shooting behavior template is generated by analyzing the corresponding first sensor data and second sensor data collected by the accelerometer and the gyroscope for historical shooting actions, respectively.

[0089] The shooting behavior template refers to the data features that can determine that the current sensor data is the sensor data corresponding to the shooting action. For example, when the shooting equipment performs a shooting action, the shooting equipment will also produce an acceleration that cannot be artificially produced with the aiming device installed thereon. According to the analysis of the data collected by the accelerometer during the historical shooting action, an acceleration threshold can be determined. Once the data collected by the accelerometer exceeds the acceleration threshold, it can be determined that the shooting action has occurred. Here, the acceleration threshold can be used as a shooting behavior template. For another example, when the shooting equipment performs a shooting action, the shooting equipment will also produce a vibration that cannot be artificially produced with the aiming device installed thereon. According to the analysis of the data collected by the gyroscope during the historical shooting action, a vibration threshold composed of vibration frequency, vibration amplitude and angular displacement can be determined. Once the data collected by the gyroscope exceeds the vibration threshold, it can be determined that the shooting action has occurred. Here, the vibration threshold composed of vibration frequency, vibration amplitude and angular displacement can be used as a shooting behavior template.

[0090] Optionally, the inertial sensor of the sighting device itself includes both an accelerometer and a gyroscope, and the shooting behavior template includes an acceleration threshold and a vibration threshold. When analyzing the sensor data collected by the inertial sensor to determine whether a shooting action has occurred, the sensor data collected by the accelerometer and the gyroscope simultaneously satisfying the acceleration threshold and the vibration threshold in the shooting behavior template is used as a judgment condition. In this way, the accuracy of judging whether a shooting action has occurred can be further ensured.

[0091] In the above embodiment, the accelerometer and the gyroscope are both hardware sensors, and the accuracy, timeliness and reliability of data collection can be effectively guaranteed; and a shooting behavior template is formed by analyzing the sensor data of historical shooting actions. In actual application, the sensor data can be compared with the data features constituting the shooting behavior template, which is conducive to accurately and efficiently determining whether a shooting action has occurred.

[0092] In some embodiments, the sighting device is provided with an inertial sensor; in step S105, detecting whether a shooting action occurs includes:

[0093] By analyzing the sensor data collected in real time by the inertial sensor and judging whether the human target satisfies a preset downward offset condition relative to the aiming mark based on multiple consecutive frames of the current scene image, it is determined whether a shooting action occurs.

[0094] The analysis based on the sensor data collected in real time by the inertial sensor can be the same as the above-mentioned embodiment, for example, the inertial sensor can include an accelerometer and / or the gyroscope, and whether the sensor data collected by the accelerometer exceeds the acceleration threshold, or whether the sensor data collected by the gyroscope exceeds the vibration threshold composed of the vibration frequency, vibration amplitude and angular displacement, or the accelerometer and the gyroscope meet the acceleration threshold and the vibration threshold respectively, to determine whether the sensor data collected in real time by the inertial sensor indicates that a shooting action has occurred. Furthermore, in this embodiment, it also includes combining an image analysis algorithm to determine whether a shooting action has occurred, and judging whether the human target meets the preset downward offset condition relative to the aiming mark according to the position change of the human target in multiple consecutive frames of the current scene image, to determine whether a shooting action has occurred.

[0095] In the above embodiment, the aiming device determines whether a shooting action occurs when aiming at a human target by combining hardware sensors and software algorithms. The dual judgment mechanism combining hardware and software can effectively ensure the accuracy of the judgment result, avoid misjudgment that causes the aiming device to self-destruct, and thus avoid user losses.

[0096] Optionally, analyzing the sensor data collected in real time by the inertial sensor, and judging whether the human target satisfies a preset downward offset condition relative to the aiming mark according to multiple consecutive frames of the current scene image, and determining whether a shooting action occurs, includes:

[0097] Acquire sensor data collected by the inertial sensor in real time for analysis to determine whether it matches a shooting behavior template;

[0098] Based on the sensor data of the inertial sensor, it is determined that the match with the shooting behavior template is determined. At the same time, based on the position change of the human target relative to the aiming mark in multiple consecutive frames of the current scene image, it is judged whether the human target meets the condition of rapid downward displacement and disappearance, so as to determine whether a shooting action occurs.

[0099] When the aiming mark is aligned with the target, it means that the shooting equipment is aiming at the target in the current field of view of the shooting equipment. In the process of maintaining aiming, the target is stable in the current field of view, and when the shooting action occurs, the shooting equipment will cause a large vibration with the aiming device, and the target in the field of view will instantly produce a large offset relative to the aiming mark (center of the field of view). In this way, the image analysis is used to determine whether the shooting action has occurred. It can be determined whether the target leaves the field of view with a large acceleration in the coordinate system within the field of view to determine whether the shooting action has occurred, that is, to determine whether the human target in the image meets the condition of rapid downward offset disappearance to determine whether the shooting action has occurred.

[0100] In this embodiment, the aiming device uses a combination of hardware sensors and software algorithms to determine whether a shooting action occurs when aiming at a human target. In the dual judgment mechanism, first, according to the sensor data collected by the inertial sensor, it is determined that it matches the shooting behavior template, and then according to the continuous multi-frame images collected synchronously with the collection of the sensor data, it is analyzed to determine whether the human target meets the condition of rapid downward displacement and disappearance according to the position change of the human target relative to the aiming mark in the continuous multi-frame images, so as to determine whether a shooting action occurs. Among them, the number of continuous multi-frames can be determined according to the image frame rate collected by the aiming device within 1 second and the operation time of the shooting action, which is usually much smaller than the number of image frames collected by the aiming device within 1 second, such as 5-6 frames, to determine whether the target meets the condition of instantaneous downward displacement and disappearance.

[0101] In the above embodiment, when the sensor data collected by the inertial sensor is matched with the shooting behavior template to determine whether it is satisfied, the image analysis algorithm is synchronously triggered to determine whether the human target meets the condition of rapid downward displacement and disappearance. The judgment of the software algorithm is used as an auxiliary and confirmation of the judgment of the hardware sensor, reducing the pressure on the algorithm, and effectively utilizing the dual mechanism to effectively ensure the accuracy of the judgment result, avoid misjudgment that causes the aiming device to self-destruct, thereby avoiding user losses.

[0102] In some embodiments, the sighting device includes a safety element connected between the power module and the main control module; in step S107, controlling the sighting device to self-destruct includes:

[0103] Output a self-destruct current increase instruction to control the power module to output a self-destruct current so that the fuse element forms a short circuit.

[0104] The self-destruction of the sighting device refers to the permanent failure of the sighting device. When aiming at a human target, the user operates the shooting equipment to perform a shooting action, and the sighting device automatically self-destructs and permanently fails, so as to restrict the user from continuing to use the sighting device to assist in aiming and shooting. It is also a constraint on the application scenario of the user using the sighting device, so as to achieve the purpose of limiting the sighting device to be only used for shooting equipment in civilian scenarios for assisting in aiming and shooting. In a specific example, in the self-destruction program of the sighting device, the control chip can output a control signal (low-level signal) to the control end of the switch control element of the high-power heating device, so that after the switch control element is closed, the high-power heating device starts to work, the current rises sharply, and a self-destruction current is formed, so that the fuse element will be disconnected due to excessive current, the power input of the main control chip is cut off, the system is completely powered off, and the sighting device is permanently failed. Of course, in addition to the above methods, other control methods that can make the sighting device permanently fail are also possible, and are not specifically limited here.

[0105] In some embodiments, the sighting device further includes a built-in GPS module, and the sighting control method based on human body detection, in step S107, further includes:

[0106] If a shooting action occurs, an alarm message containing current location data is sent to the target terminal or the server through the GPS module.

[0107] When aiming at a human target, the user operates the shooting equipment to perform a shooting action. The aiming device records the current position data and sends it to the target terminal or server. The time and place of the shooting action can be recorded to prepare for the legality of the historical use of the shooting equipment to be confirmed when necessary. From the data recording level, it is also a constraint on the application scenarios of the user's use of the aiming device, so as to achieve the purpose of limiting the aiming device to be only used for shooting equipment in civilian scenarios for auxiliary aiming and shooting.

[0108] On the other hand, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the aiming device control method based on human body detection described in any embodiment of the present application.

[0109] Among them, in the computer program product, the optional implementation form of the program module architecture of the computer program that implements each step of the method can be a sighting control device based on human body detection. Figure 8 The aiming control device based on human body detection includes: an acquisition module 311, used to acquire the current scene image within the current field of view of the aiming device. An identification module 312, used to determine whether the human body target is currently aimed at based on the target recognition result of the current scene image and the position of the aiming mark in the current scene image. A shooting detection module 313, used to detect whether a shooting action occurs if the human body target is currently aimed at; and a self-destruction module 315, used to control the aiming device to self-destruct if a shooting action occurs.

[0110] Optionally, a mode switching module 314 is also included, which is used to trigger the sighting device to enter an abnormal aiming mode if the human target is currently aimed at; or, to start timing from the current aiming at the human target, and if the sighting device remains aimed at the human target or the human target remains within the preset range of the aiming mark for more than a preset time or more than a preset number of consecutive frames, the sighting device is triggered to enter the abnormal aiming mode.

[0111] Optionally, an inertial sensor is provided in the sighting device; the shooting detection module 313 is used to analyze sensor data collected in real time by the inertial sensor to determine whether a shooting action occurs.

[0112] Optionally, the inertial sensor includes an accelerometer and / or a gyroscope; the shooting detection module 313 is used to obtain sensor data collected in real time by the accelerometer and / or the gyroscope for analysis, and determine whether it matches a shooting behavior template to determine whether a shooting action occurs; wherein the shooting behavior template is generated by analyzing corresponding first sensor data and second sensor data collected by the accelerometer and the gyroscope for historical shooting actions, respectively.

[0113] Optionally, an inertial sensor is provided in the sighting device; the shooting detection module 313 is used to analyze the sensor data collected in real time by the inertial sensor, and to determine whether the human target meets a preset downward offset condition relative to the aiming mark based on multiple consecutive frames of the current scene image, so as to determine whether a shooting action occurs.

[0114] Optionally, the shooting detection module 313 is specifically used to obtain sensor data collected by the inertial sensor in real time for analysis to determine whether it matches the shooting behavior template; while determining whether it matches the shooting behavior template based on the sensor data of the inertial sensor, based on the position change of the human target relative to the aiming mark in multiple consecutive frames of the current scene image, it is determined whether the human target meets the condition of rapid downward displacement and disappearance, so as to determine whether a shooting action occurs.

[0115] Optionally, the sighting device includes a safety element connected between the power module and the main control module; the self-destruct module 315 is used to output a self-destruct current increase instruction to control the power module to output a self-destruct current so that the safety element forms a short circuit.

[0116] It should be noted that: the aiming control device based on human body detection provided in the above embodiment only uses the division of the above program modules as an example to illustrate the process of executing the aiming control method based on human body detection. However, in actual application, the above processing flow can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the aiming control device based on human body detection provided in the above embodiment and the aiming control method based on human body detection embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0117] On the other hand, the present application also provides a sighting device, see Fig. 9, is an optional hardware structure diagram of an aiming device, the aiming device includes a processor 211, a memory 212 connected to the processor 211, an image sensor 213 and a display module 214, the image sensor 213 is used to collect the current scene image within the current field of view, and send the current scene image to the processor 211 and the display module 214; the display module 214 is used to perform the display in the current aiming mode, mainly displaying the current scene image and the aiming mark, and the memory 212 stores a computer program for implementing the aiming control method based on human body detection provided in any embodiment of the present application, so that when the corresponding computer program is executed by the processor, the steps of the aiming control method based on human body detection provided in any embodiment of the present application are implemented. The aiming device loaded with the corresponding computer program has the same technical effect as the corresponding method embodiment, and will not be repeated here to avoid repetition.

[0118] On the other hand, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processes of the above-mentioned embodiments of the aiming control method based on human body detection are implemented, and the same technical effects can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, infrared thermal imager or network equipment, etc.) to execute the methods described in each embodiment of the present invention.

[0121] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A sight control method based on human body detection, characterized in that: include: Get the current scene image within the current field of view of the sighting device; Based on the target recognition result of the current scene image and the position of the aiming mark in the current scene image, determining whether a human target is currently being aimed at; If the current aiming is at a human target, detect whether a shooting action occurs; If a shooting action occurs, the sighting device is controlled to self-destruct.

2. The aiming device control method based on human body detection according to claim 1, characterized in that: If the current aiming is at a human target, before detecting whether a shooting action has occurred, the following steps are performed: triggering the sighting device to enter an abnormal aiming mode; or, Timing starts from the current aiming at the human target. If the aiming at the human target is maintained or the human target is maintained within the preset range of the aiming mark for more than a preset time or more than a preset number of consecutive frames, the aiming device is triggered to enter an abnormal aiming mode.

3. The aiming device control method based on human body detection according to claim 1, characterized in that: The aiming device is provided with an inertial sensor; the detecting whether a shooting action occurs comprises: The sensor data collected in real time by the inertial sensor is analyzed to determine whether a shooting action occurs.

4. The aiming device control method based on human body detection according to claim 3, characterized in that: The inertial sensor includes an accelerometer and / or a gyroscope; and analyzing the sensor data collected in real time by the inertial sensor to determine whether a shooting action occurs includes: The sensor data collected in real time by the accelerometer and / or the gyroscope is obtained for analysis to determine whether it matches a shooting behavior template, so as to determine whether a shooting action occurs; wherein the shooting behavior template is generated by analyzing the corresponding first sensor data and second sensor data collected by the accelerometer and the gyroscope for historical shooting actions, respectively.

5. The aiming device control method based on human body detection according to claim 1, characterized in that: The aiming device is provided with an inertial sensor; the detecting whether a shooting action occurs comprises: By analyzing the sensor data collected in real time by the inertial sensor and judging whether the human target satisfies a preset downward offset condition relative to the aiming mark based on multiple consecutive frames of the current scene image, it is determined whether a shooting action occurs.

6. The aiming device control method based on human body detection according to claim 5, characterized in that: The analyzing of the sensor data collected in real time by the inertial sensor and judging whether the human target satisfies a preset downward offset condition relative to the aiming mark according to the continuous multiple frames of the current scene image to determine whether a shooting action occurs include: Acquire sensor data collected by the inertial sensor in real time for analysis to determine whether it matches a shooting behavior template; Based on the sensor data of the inertial sensor, it is determined that the match with the shooting behavior template is determined. At the same time, based on the position change of the human target relative to the aiming mark in multiple consecutive frames of the current scene image, it is judged whether the human target meets the condition of rapid downward displacement and disappearance, so as to determine whether a shooting action occurs.

7. The aiming device control method based on human body detection according to any one of claims 1 to 6, characterized in that: The sighting device includes a safety element connected between the power module and the main control module; The controlling the self-destruction of the sighting device comprises: Output a self-destruct current increase instruction to control the power module to output a self-destruct current so that the fuse element forms a short circuit.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the aiming device control method based on human body detection as described in any one of claims 1 to 7 is implemented.

9. A sighting device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the aiming device control method based on human body detection as claimed in any one of claims 1 to 7; An image sensor is used to collect an image of the current scene within the current field of view; A display module is used to display the current scene image and the aiming mark.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the aiming device control method based on human body detection as described in any one of claims 1 to 7 is implemented.