Target tracking method, device, equipment and storage medium based on optoelectronic pod
By switching the target tracking frame state and mode in the optoelectronic pod, and using pixel coordinates and servo agility, the problem of low target tracking accuracy of the optoelectronic pod in complex environments is solved, and more efficient target locking and tracking are achieved.
Patent Information
- Application Number
- CN202211160647.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-09-22
AI Technical Summary
The existing target tracking algorithms in optoelectronic pods have low accuracy in complex environments and are difficult to effectively cope with complex backgrounds, illumination changes, target scale changes, and occlusion.
By switching the target tracking frame state when the target to be tracked is recognized, and switching the photoelectric pod mode after tracking the target multiple times within a preset time period, sending pixel coordinates for locking, combining the tracking results of the target tracking frame and the servo of the photoelectric pod Agility to achieve precise target locking.
It improves the accuracy of target tracking in complex environments, enhances the adaptability to complex backgrounds and lighting changes, reduces the identification of false tracking targets, and improves the target locking ability of the optoelectronic pod.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a target tracking method, device, equipment and storage medium based on an optoelectronic pod. Background Art
[0002] As an important reconnaissance payload for flight platforms, optoelectronic pods have developed rapidly in recent years. The ability of the image processing unit in the optoelectronic pod to track the target has become a key factor affecting the optoelectronic pod's ability to lock onto the target. Due to the limited computing resources of the image processing unit embedded in the optoelectronic pod, the target tracking algorithms transplanted in the industry are all traditional target tracking algorithms based on kernel correlation filtering. However, when such algorithms deal with tracking challenges in complex environments such as complex backgrounds, changes in illumination, changes in target scale, and occlusion, the accuracy of target tracking is low. Summary of the invention
[0003] The present invention provides a target tracking method, device, equipment and storage medium based on an optoelectronic pod, aiming to improve the accuracy of target tracking in a complex environment.
[0004] In a first aspect, the present invention provides a target tracking method based on an optoelectronic pod, comprising:
[0005] When the target to be tracked is identified, the state of the target tracking framework is switched from the to-be-identified state to the tracking state;
[0006] In the tracking state, if the target to be tracked is tracked multiple times within a first preset time, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod locks the target to be tracked according to the pixel coordinates;
[0007] When it is determined within a second preset time period that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, the optoelectronic pod is controlled to lock onto the target to be tracked according to the tracking result of the target tracking framework.
[0008] In one embodiment, controlling the optoelectronic pod to lock onto the target to be tracked according to the tracking result of the target tracking framework includes:
[0009] Determining a bull's eye offset between the tracking result and an image bull's eye of an image output by the optoelectronic pod;
[0010] Determine the difference between the Euclidean distance of the target center offset and the number of image pixels, and compare the difference with a preset threshold;
[0011] If the difference is less than or equal to the preset threshold, the optoelectronic pod is controlled to lock onto the target to be tracked.
[0012] After comparing the difference with the preset threshold, the method further includes:
[0013] If the difference is greater than the preset threshold, the real pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod can re-lock the target to be tracked according to the real pixel coordinates.
[0014] After the state of the target tracking framework is switched from the to-be-identified state to the tracking state, the method further includes:
[0015] In the tracking state, determining whether a preset number of frames of images of the target to be tracked are acquired within the first preset time period;
[0016] If a preset number of frames of images of the target to be tracked are collected within the first preset time length, it is determined that the target to be tracked is tracked multiple times within the first preset time length, and the step of switching the mode of the optoelectronic pod from the inertial mode to the tracking mode and sending the pixel coordinates of the target to be tracked to the optoelectronic pod is executed;
[0017] If a preset number of frames of images of the target to be tracked are not collected within the first preset time length, the target to be tracked is determined to be a false tracking target, and the state of the target tracking frame is switched to the to-be-recognized state, and the step of switching the state of the target tracking frame from the to-be-recognized state to the tracking state is executed when the target to be tracked is recognized.
[0018] After controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework, the method further includes:
[0019] Determining whether the number of times that the image of the target to be tracked is not acquired reaches a preset number of times within a third preset time length;
[0020] If the number of times that the image of the target to be tracked is not collected reaches a preset number within the third preset time period, it is determined that the target tracking framework has not locked onto the target to be tracked.
[0021] After determining that the target tracking framework has not locked the target to be tracked, the method further includes:
[0022] The state of the target tracking frame is switched to the state to be identified, and the mode of the optoelectronic pod is switched to the inertial mode, and the step of switching the state of the target tracking frame from the state to be identified to the tracking state is performed when the target to be tracked is identified, until it is determined within the second preset time that the target tracking frame is in the tracking state and the optoelectronic pod is in the tracking mode, and then the step of controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking frame.
[0023] After controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework, the method further includes:
[0024] Determine each frame of the video image sequence of the optoelectronic pod in which the target to be tracked appears;
[0025] According to the coordinate information of each frame of image, the running trajectory of the target to be tracked in the video image sequence is fitted.
[0026] In a second aspect, the present invention provides a target tracking device based on an optoelectronic pod, comprising:
[0027] A switching module is used to switch the state of the target tracking framework from a to-be-identified state to a tracking state when a target to be tracked is identified;
[0028] a sending module, configured to switch the mode of the optoelectronic pod from the inertial mode to the tracking mode if the target to be tracked is tracked multiple times within a first preset time period in the tracking state, and send the pixel coordinates of the target to be tracked to the optoelectronic pod, so that the optoelectronic pod can lock the target to be tracked according to the pixel coordinates;
[0029] The control module is used to control the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework when determining that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode within a second preset time period.
[0030] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the target tracking method based on the optoelectronic pod described in the first aspect is implemented.
[0031] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium comprises a computer program, and when the computer program is executed by the processor, the target tracking method based on the optoelectronic pod described in the first aspect is implemented.
[0032] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, and when the computer program is executed by the processor, the target tracking method based on the optoelectronic pod described in the first aspect is implemented.
[0033] The target tracking method, device, equipment and storage medium based on the optoelectronic pod provided by the present invention, when the target to be tracked is identified, the state of the target tracking frame is switched from the to-be-identified state to the tracking state; in the tracking state, if the target to be tracked is tracked multiple times within a first preset time length, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod can lock the target to be tracked according to the pixel coordinates; when it is determined that the target tracking frame is in the tracking state and the optoelectronic pod is in the tracking mode within a second preset time length, the optoelectronic pod is controlled to lock the target to be tracked according to the tracking result of the target tracking frame.
[0034] In the process of target tracking, the performance advantages of the target tracking algorithm in the target tracking framework and the agility of the front-end servo of the optoelectronic pod are rationally utilized to better cope with target tracking in various complex environments and improve the accuracy of target tracking in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 is a flow chart of a target tracking method based on an optoelectronic pod provided by the present invention;
[0037] Figure 2 It is a schematic diagram of data communication between an onboard mission computer and an optoelectronic pod provided by the present invention;
[0038] Figure 3 It is a structural diagram of a target tracking device based on an optoelectronic pod provided by the present invention;
[0039] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] It should be noted that in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants 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, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0042] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0043] Combination Figures 1 to 4 The present invention describes a target tracking method, device, equipment and storage medium based on an optoelectronic pod. Figure 1 is a flow chart of a target tracking method based on an optoelectronic pod provided by the present invention; Figure 2It is a schematic diagram of data communication between an onboard mission computer and an optoelectronic pod provided by the present invention; Figure 3 It is a structural diagram of a target tracking device based on an optoelectronic pod provided by the present invention; Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention.
[0044] An embodiment of the present invention provides an embodiment of a target tracking method based on an optoelectronic pod. It should be noted that although a logical sequence is shown in the flow chart, under certain data, the steps shown or described may be completed in an order different from that shown here.
[0045] The embodiment of the present invention takes an electronic device as an execution subject for example. The electronic device in the embodiment of the present invention includes but is not limited to a host computer, a ground station and an airborne mission computer. The embodiment of the present invention takes an airborne mission computer as an electronic device for example.
[0046] Reference Figure 1 , Figure 1 : is a flow chart of a target tracking method based on an optoelectronic pod provided by the present invention. The target tracking method based on an optoelectronic pod provided by an embodiment of the present invention includes:
[0047] Step 101 , when a target to be tracked is identified, the state of the target tracking framework is switched from a to-be-identified state to a tracking state.
[0048] It should be noted that the explanation of optoelectronic pod technology and its pod is: optoelectronic pod technology and its pod are important components of optoelectronic reconnaissance and warning technology and its equipment, and are the core equipment of drone reconnaissance. It will fill the role of tactical reconnaissance of special manned aircraft. For this reason, various countries are vigorously developing optoelectronic pods for various purposes. Optoelectronic pods can be widely used in reconnaissance on land, sea, air and space, and their carriers are vehicles, ships, aircraft and satellites. At present, optoelectronic pods play an important role in both military and civilian fields. They can be used for search and positioning, identification and tracking, navigation guidance and dynamic monitoring of ground targets for reconnaissance, combat analysis or long-range strikes.
[0049] Further, refer to Figure 2 , Figure 2 Schematic diagram of data communication between the onboard mission computer and the optoelectronic pod provided by the present invention. Figure 2 As shown, a high-performance target tracking algorithm based on a deep twin network runs on the onboard mission computer, and a high-efficiency target tracking algorithm closely integrated with the pod servo control is embedded in the image processing board in the optoelectronic pod.
[0050] The hardware platform on which the entire target tracking framework runs is a mission computer mounted on a flying platform such as an unmanned aerial vehicle or a manned aircraft. This hardware platform is independent of the optoelectronic pod and both are payloads of the flying platform. The target tracking framework in the onboard mission computer is the control core, and the switching of its own state and the control and switching of the pod mode are all initiated and controlled by it.
[0051] There are two aspects of data connection between the onboard mission computer and the optoelectronic pod: on the one hand, there is asynchronous serial port data, namely, the control command data of the onboard mission computer to the optoelectronic pod and the status report data of the optoelectronic pod to the onboard mission computer; on the other hand, there is image mission data, namely, the image data collected by the optoelectronic pod camera is output to the onboard mission computer.
[0052] In one embodiment, the communication interface between the onboard mission computer and the optoelectronic pod uses the common interface in the current market and industry: one is asynchronous serial port data, i.e., the control instruction data of the onboard mission computer to the optoelectronic pod and the status report data of the optoelectronic pod to the onboard mission computer, which can be used with asynchronous RS422 or RS232 interface; the other is image mission data, i.e., the image data collected by the optoelectronic pod camera is output to the onboard mission computer, which can be used with SDI or network stream or synchronous 422 interface. Figure 2 The communication protocol in the correct connection between the airborne mission computer and the optoelectronic pod. The YOLO-v5 algorithm, which takes into account both recognition performance and the computing power of the airborne mission computer, is selected as the lightweight target recognition algorithm. Of course, the algorithm can also be the Mobilenet-SSD algorithm and the YOLO-v4 algorithm. It can be selected according to the specific hardware conditions and application background, and the target of interest is used as the recognition type. The SiamFC++ algorithm, which takes into account both tracking performance and the computing power of the airborne mission computer, is selected as the target tracking algorithm of the target tracking framework. Of course, the algorithm can also be the SiamRPN algorithm, the DaSiamRPN algorithm, and the SiamRPN++ algorithm. It can be selected according to the actual situation.
[0053] It should be further explained that after the onboard mission computer and the optoelectronic pod are powered on, the original mode of the optoelectronic pod is in the inertial mode, the onboard mission computer runs the target tracking framework and the original state of the target tracking framework is in the state to be identified.
[0054] Furthermore, once a sensitive or interesting target is identified by the target tracking framework of the onboard mission computer, that is, when the target tracking framework of the onboard mission computer identifies the target to be tracked, the state of the target tracking framework is immediately activated to the tracking state, that is, the state of the target tracking framework is switched from the original state of to-be-identified to the tracking state, wherein the sensitive or interesting target can be a pedestrian or a custom object, which is set according to requirements.
[0055] Step 102, in the tracking state, if the target to be tracked is tracked multiple times within a first preset time length, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod can lock the target to be tracked according to the pixel coordinates.
[0056] In order to prevent the target tracking framework from identifying and tracking a false target, it is necessary to determine whether the target to be tracked is continuously and stably tracked, that is, whether the target to be tracked is tracked multiple times within a specified time length, which is discussed in detail below. In the tracking state, if the target to be tracked is tracked multiple times within the first preset time length, that is, the target to be tracked is continuously and stably tracked in the tracking state, the target tracking framework sends the tracking instruction to the optoelectronic pod through the asynchronous serial port, and controls the mode of the optoelectronic pod to switch from the inertial mode to the tracking mode, wherein the first preset time length is set according to the actual situation.
[0057] Furthermore, the target tracking framework sends the pixel coordinates of the target to be tracked in the image coordinate system to the optoelectronic pod through the asynchronous serial port, wherein the pixel coordinates are the coordinates of the target center point of the target to be tracked in the image coordinate system. Furthermore, the optoelectronic pod converts the pixel coordinates sent by the target tracking framework into the servo center of the optoelectronic pod according to the optoelectronic pod communication protocol, and completes the locking of the target to be tracked, wherein the servo center refers to the center point where the servo mechanism of the optoelectronic pod adjusts the direction of the optical axis, that is, the optoelectronic pod serves towards the servo center.
[0058] It should be further explained that some optoelectronic pods define the pixel coordinates of the target as the pixel distance between the target pixel center and the center of the image; some optoelectronic pods define the pixel coordinates of the target as the pixel distance between the target pixel center and the upper left corner of the image.
[0059] Step 103, when it is determined within a second preset time period that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, the optoelectronic pod is controlled to lock onto the target to be tracked according to the tracking result of the target tracking framework.
[0060] Furthermore, the onboard mission computer determines whether the target tracking framework is in the tracking state and whether the optoelectronic pod is in the tracking mode within a second preset time period, that is, determines whether the target tracking framework is continuously in the tracking state and whether the optoelectronic pod is continuously in the tracking mode, wherein the second preset time period is set according to actual conditions.
[0061] If it is determined within the second preset time that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, that is, it is determined that the target tracking framework continues to be in the tracking state and the optoelectronic pod continues to be in the tracking mode, the target tracking framework determines its own tracking result, wherein the tracking result is a rectangular target bounding box calculated by the target tracking algorithm in the target tracking framework, and the center of the target bounding box is the center of the target, that is, the target center point.
[0062] Furthermore, the target tracking framework determines whether the optoelectronic pod continues to correctly lock the target to be tracked within a second preset time period based on its own tracking results, that is, determines whether the optoelectronic pod continues to lock the target to be tracked, or deviates from or loses the target to be tracked based on the tracking results.
[0063] Furthermore, if the target tracking framework determines that the optoelectronic pod continues to correctly lock the target to be tracked within the second preset time period based on its own tracking results, the target tracking framework controls the optoelectronic pod to continuously lock the target to be tracked, thereby completing the continuous tracking of the target to be tracked.
[0064] The target tracking method based on the optoelectronic pod provided in the embodiment of the present invention rationally utilizes the performance advantages of the target tracking algorithm in the target tracking framework and the agility of the front-end servo of the optoelectronic pod, so as to better cope with target tracking in various complex environments and improve the accuracy of target tracking in complex environments.
[0065] After the state of the target tracking framework is switched from the to-be-identified state to the tracking state as recorded in step 101, it is necessary to determine whether the target to be tracked is a false tracking target, and the analysis is as follows:
[0066] In the tracking state, determining whether a preset number of frames of images of the target to be tracked are acquired within the first preset time period;
[0067] If a preset number of frames of images of the target to be tracked are collected within the first preset time length, it is determined that the target to be tracked is tracked multiple times within the first preset time length, and the step of switching the mode of the optoelectronic pod from the inertial mode to the tracking mode and sending the pixel coordinates of the target to be tracked to the optoelectronic pod is executed;
[0068] If a preset number of frames of images of the target to be tracked are not collected within the first preset time length, the target to be tracked is determined to be a false tracking target, and the state of the target tracking frame is switched to the to-be-recognized state, and the step of switching the state of the target tracking frame from the to-be-recognized state to the tracking state is executed when the target to be tracked is recognized.
[0069] Specifically, in order to prevent the target tracking framework from identifying and tracking a false target, it is necessary to determine whether the target to be tracked is tracked continuously and stably, that is, in the tracking state, determine whether a preset number of frame images of the target to be tracked are continuously collected within a first preset time length. In one embodiment, the preset number of frame images may be 30 frames of images, that is, determine whether 30 frames of images of the target to be tracked are continuously collected within the first preset time length in the tracking state.
[0070] Therefore, in the tracking state, if it is determined that 30 frames of images of the target to be tracked are continuously collected within the first preset time length, the target tracking framework determines that the target to be tracked is continuously and stably tracked. Further, the target tracking framework executes step 102 to switch the mode of the optoelectronic pod from the inertial mode to the tracking mode, and sends the pixel coordinates of the target to be tracked to the optoelectronic pod, as specifically analyzed in the embodiment of step 102. Further, in the tracking state, if it is determined that 30 frames of images of the target to be tracked are not continuously collected within the first preset time length, the target tracking framework determines that the target to be tracked is a false tracking target. Further, the target tracking framework switches its own state from the tracking state to the to-be-recognized state, and executes step 101 to switch the state of the target tracking framework from the to-be-recognized state to the tracking state when the target to be tracked is recognized, as specifically analyzed in the embodiment of step 101.
[0071] The embodiment of the present invention determines whether the tracked target is a false tracking target by determining whether the target to be tracked can be continuously tracked, thereby improving the accuracy of target tracking in a complex environment.
[0072] Further, the specific analysis of controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework recorded in step 104 is as follows:
[0073] Determining a bull's eye offset between the tracking result and an image bull's eye of an image output by the optoelectronic pod;
[0074] Determine the difference between the Euclidean distance of the target center offset and the number of image pixels, and compare the difference with a preset threshold;
[0075] If the difference is less than or equal to the preset threshold, the optoelectronic pod is controlled to lock onto the target to be tracked.
[0076] Specifically, the target tracking framework determines the bull's eye offset between its own tracking result and the image bull's eye of the image output by the optoelectronic pod. Further, the target tracking framework determines the difference between the Euclidean distance of the bull's eye offset and the number of image pixels.
[0077] Furthermore, the target tracking framework compares the difference with a preset threshold, wherein the preset threshold is set according to actual conditions. In one embodiment, the preset threshold may be 0.1.
[0078] If it is determined that the difference is less than or equal to the preset threshold value 0.1, the target tracking framework determines that the optoelectronic pod continues to correctly lock the target to be tracked. Therefore, the target tracking framework controls the optoelectronic pod to continue to lock the target to be tracked.
[0079] Further, if it is determined that the difference is greater than a preset threshold value of 0.1, the target tracking framework determines that the optoelectronic pod has not continuously and correctly locked onto the target to be tracked, that is, the target tracking framework determines that the optoelectronic pod has deviated from or lost the target to be tracked.
[0080] Furthermore, after the target tracking framework determines that the optoelectronic pod has deviated from or lost the target to be tracked, the real pixel coordinates of the target to be tracked are resent to the optoelectronic pod. The optoelectronic pod re-locks the target to be tracked according to the real pixel coordinates sent by the target tracking framework.
[0081] Specifically, when the optoelectronic pod loses or deviates from the target to be tracked, the target to be tracked is re-locked according to the communication protocol of the optoelectronic pod and through the correction method of the optoelectronic pod, wherein the correction method of the optoelectronic pod is determined according to the function of the optoelectronic pod.
[0082] For an optoelectronic pod that has the function of fine-tuning the pod's target lock center, the specific analysis of re-locking the target to be tracked through its correction method is as follows:
[0083] When the optoelectronic pod loses or deviates from the target to be tracked, the target tracking framework controls the optoelectronic pod, and based on the tracking result of the target tracking framework and the offset of the target's center of the image output by the optoelectronic pod, feedback controls the optoelectronic pod servo center to adjust upward, downward, left or right, and corrects the optoelectronic pod tracking state, thereby completing the re-locking of the target to be tracked.
[0084] For an optoelectronic pod that does not have the function of fine-tuning the pod's target lock center, the specific analysis of re-locking the target to be tracked through its correction method is as follows:
[0085] The target tracking framework resends the real pixel coordinates of the target to be tracked to the optoelectronic pod through the asynchronous serial port. After receiving the real pixel coordinates sent by the target tracking framework, the optoelectronic pod directly sets the real pixel coordinates of the target as the servo center of the optoelectronic pod, corrects the tracking state of the optoelectronic pod, and thus completes the re-locking of the target to be tracked.
[0086] The embodiment of the present invention determines whether the optoelectronic pod continues to correctly lock the target to be tracked, or deviates from or loses the target to be tracked through the Euclidean distance of the target center offset between the tracking result and the target center of the image, thereby improving the accuracy of target tracking in complex environments.
[0087] Furthermore, after the optoelectronic pod loses or deviates from the target to be tracked, the optoelectronic pod re-locks the target to be tracked through the real pixel coordinates of the target to be tracked, thereby improving the accuracy of target tracking in complex environments.
[0088] Furthermore, after the tracking result of the target tracking framework loaded in step 104 is controlled to lock the target to be tracked, it is also necessary to determine whether the target tracking framework has stably lost the target to be tracked. The specific analysis is as follows:
[0089] Determining whether the number of times that the image of the target to be tracked is not acquired reaches a preset number of times within a third preset time length;
[0090] If the number of times that the image of the target to be tracked is not collected reaches a preset number within the third preset time period, it is determined that the target tracking framework has not locked onto the target to be tracked.
[0091] Specifically, in order to improve the robustness of target tracking in the target tracking framework, after controlling the optoelectronic pod to lock the target to be tracked, it is necessary to determine whether the target to be tracked is stably lost, that is, to determine whether the number of times the image of the target to be tracked is not collected within the third preset time length reaches a preset number, where the preset number is set according to actual conditions.
[0092] In one embodiment, the preset number of times may be 10 times, that is, it is determined whether the number of times that the image of the target to be tracked is not acquired within the third preset time length reaches 10 times.
[0093] If within the third preset time length, the number of times the image of the target to be tracked is not collected reaches 10 times, that is, the target tracking framework fails to track 10 frames of images of the target to be tracked continuously, the target tracking framework determines that the target to be tracked is not locked, that is, the target tracking framework has stably lost the target to be tracked.
[0094] The embodiment of the present invention determines whether the number of times that the image of the target to be tracked is not collected reaches a preset number within a third preset time length, determines whether the target to be tracked is stably lost, and improves the robustness of target tracking in the target tracking framework.
[0095] Further, after determining that the target tracking framework has not locked the target to be tracked, it is necessary to restore the state of the target tracking framework and the mode of the optoelectronic pod. The specific analysis is as follows:
[0096] The state of the target tracking frame is switched to the state to be identified, and the mode of the optoelectronic pod is switched to the inertial mode, and the step of switching the state of the target tracking frame from the state to be identified to the tracking state is performed when the target to be tracked is identified, until it is determined within the second preset time that the target tracking frame is in the tracking state and the optoelectronic pod is in the tracking mode, and then the step of controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking frame.
[0097] Specifically, after determining that the target tracking framework has not locked the target to be tracked, that is, the target tracking framework has stably lost the target to be tracked, the target tracking framework switches the state of the target tracking framework to the original state, that is, switches the target tracking framework from the tracking state to the state to be identified. At the same time, the target tracking framework controls the mode of the optoelectronic pod to switch to the original mode through an interface, that is, controls the optoelectronic pod to switch from the tracking mode to the inertial mode.
[0098] Furthermore, when the target tracking framework executes step 101 and identifies the target to be tracked, the state of the target tracking framework is switched from the to-be-identified state to the tracking state, until step 103 determines that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode within a second preset time period, and then controls the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework.
[0099] Furthermore, after the tracking result of the target tracking framework loaded in step 103 is controlled to lock the target to be tracked, the running trajectory of the target to be tracked needs to be fitted. The specific analysis is as follows:
[0100] Determine each frame of the video image sequence of the optoelectronic pod in which the target to be tracked appears;
[0101] According to the coordinate information of each frame of image, the running trajectory of the target to be tracked in the video image sequence is fitted.
[0102] Specifically, the onboard task calculation iteratively executes steps 101 to 103 until a preset iteration stop condition is reached, and outputs the running trajectory of the target to be tracked, wherein the preset iteration stop condition can be defined according to actual detection needs. For example, if the user inputs the initial image or re-specifies a new target to be locked in the initial image, then the above step 101 is re-executed, and steps 101 to 103 are iteratively executed again to complete the optoelectronic pod's task of locking the target of interest.
[0103] Furthermore, the onboard task calculation iteratively executes all the above steps, and tracks the target for each frame of the video image sequence of the optoelectronic pod in turn, that is, determines each frame of the video image sequence of the optoelectronic pod where the target to be tracked appears. Furthermore, the onboard task calculation fits the running trajectory of the target to be tracked in the video image sequence based on the coordinate information (such as the coordinate value) of each frame of the image.
[0104] The embodiment of the present invention fits the running trajectory through the coordinate information of each frame of the target to be tracked in the video image sequence of the optoelectronic pod, so as to clearly analyze the running range of the target to be tracked and the tracking range of the target to be tracked.
[0105] In one embodiment, a high-reliability mission computer independently developed by the School of Computer Science of Northwestern Polytechnical University is used as the airborne mission computer, a high-performance reconnaissance irradiation pod generated by the Xi'an Institute of Applied Optics is used as the optoelectronic pod, an asynchronous 422 is used as the communication interface for control instructions and status reports between the airborne mission computer and the optoelectronic pod, and a synchronous 422 is used as the communication interface for mission data between the airborne mission computer and the optoelectronic pod. The YOLO-v5 algorithm trained with a self-collected data set and accelerated optimization is selected as the target recognition algorithm of the target tracking framework, and indoor pedestrians are set as the target of interest; the SiamFC++ algorithm that has been accelerated and optimized is selected as the target tracking algorithm of the target tracking framework.
[0106] The optoelectronic pod lost the pedestrian target blocked by the background (the white box tracks the wrong target), but the target tracking of the target tracking framework still tracks the pedestrian target correctly (the black box tracks the correct target), thus demonstrating the advantage of the target tracking algorithm in the present invention over the classic tracking algorithm built into the optoelectronic pod. Under the correction effect of the target tracking framework on the optoelectronic pod, the target tracking framework continues to track the target, and the optoelectronic pod re-locks the target correctly, thus demonstrating the feasibility and robustness of the fusion of the target tracking framework and the optoelectronic pod of the present invention.
[0107] Furthermore, the target tracking device based on the optoelectronic pod provided by the present invention is described below, and the target tracking device based on the optoelectronic pod and the target tracking method based on the optoelectronic pod can refer to each other.
[0108] like Figure 3 As shown, Figure 3 : is a structural diagram of a target tracking device based on an optoelectronic pod provided by the present invention, and the target tracking device based on an optoelectronic pod includes:
[0109] The switching module 301 is used to switch the state of the target tracking framework from the to-be-identified state to the tracking state when the target to be tracked is identified;
[0110] The sending module 302 is used for switching the mode of the optoelectronic pod from the inertial mode to the tracking mode if the target to be tracked is tracked multiple times within a first preset time in the tracking state, and sending the pixel coordinates of the target to be tracked to the optoelectronic pod, so that the optoelectronic pod can lock the target to be tracked according to the pixel coordinates;
[0111] The control module 303 is used to control the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework when it is determined within a second preset time that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode.
[0112] Furthermore, the control module 303 is also used for:
[0113] Determining a bull's eye offset between the tracking result and an image bull's eye of an image output by the optoelectronic pod;
[0114] Determine the difference between the Euclidean distance of the target center offset and the number of image pixels, and compare the difference with a preset threshold;
[0115] If the difference is less than or equal to the preset threshold, the optoelectronic pod is controlled to lock onto the target to be tracked.
[0116] Furthermore, the sending module 302 is further used for:
[0117] If the difference is greater than the preset threshold, the real pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod can re-lock the target to be tracked according to the real pixel coordinates.
[0118] Furthermore, the target tracking device based on the optoelectronic pod further includes: an execution module;
[0119] The execution module is used for:
[0120] In the tracking state, determining whether a preset number of frames of images of the target to be tracked are acquired within the first preset time period;
[0121] If a preset number of frames of images of the target to be tracked are collected within the first preset time length, it is determined that the target to be tracked is tracked multiple times within the first preset time length, and the step of switching the mode of the optoelectronic pod from the inertial mode to the tracking mode and sending the pixel coordinates of the target to be tracked to the optoelectronic pod is executed;
[0122] If a preset number of frames of images of the target to be tracked are not collected within the first preset time length, the target to be tracked is determined to be a false tracking target, and the state of the target tracking frame is switched to the to-be-recognized state, and the step of switching the state of the target tracking frame from the to-be-recognized state to the tracking state is executed when the target to be tracked is recognized.
[0123] Furthermore, the target tracking device based on the optoelectronic pod further includes: a determination module;
[0124] The determination module is used for:
[0125] Determining whether the number of times that the image of the target to be tracked is not acquired reaches a preset number of times within a third preset time length;
[0126] If the number of times that the image of the target to be tracked is not collected reaches a preset number within the third preset time period, it is determined that the target tracking framework has not locked onto the target to be tracked.
[0127] Furthermore, the first switching module 301 is further configured to:
[0128] The state of the target tracking frame is switched to the state to be identified, and the mode of the optoelectronic pod is switched to the inertial mode, and the step of switching the state of the target tracking frame from the state to be identified to the tracking state is performed when the target to be tracked is identified, until it is determined within the second preset time that the target tracking frame is in the tracking state and the optoelectronic pod is in the tracking mode, and then the step of controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking frame.
[0129] Furthermore, the target tracking device based on the optoelectronic pod further includes: a fitting module;
[0130] The fitting module is used to:
[0131] Determine each frame of the video image sequence of the optoelectronic pod in which the target to be tracked appears;
[0132] According to the coordinate information of each frame of image, the running trajectory of the target to be tracked in the video image sequence is fitted.
[0133] The specific embodiments of the target tracking device based on the optoelectronic pod provided by the present invention are basically the same as the embodiments of the target tracking method based on the optoelectronic pod described above, and will not be described in detail herein.
[0134] Figure 4 An example of a physical structure diagram of an electronic device is shown below. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the target tracking method based on the optoelectronic pod, and the method includes:
[0135] When the target to be tracked is identified, the state of the target tracking framework is switched from the to-be-identified state to the tracking state;
[0136] In the tracking state, if the target to be tracked is tracked multiple times within a first preset time, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod locks the target to be tracked according to the pixel coordinates;
[0137] When it is determined within a second preset time period that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, the optoelectronic pod is controlled to lock onto the target to be tracked according to the tracking result of the target tracking framework.
[0138] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0139] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the target tracking method based on the optoelectronic pod provided by the above methods, the method comprising:
[0140] When the target to be tracked is identified, the state of the target tracking framework is switched from the to-be-identified state to the tracking state;
[0141] In the tracking state, if the target to be tracked is tracked multiple times within a first preset time, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod locks the target to be tracked according to the pixel coordinates;
[0142] When it is determined within a second preset time period that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, the optoelectronic pod is controlled to lock onto the target to be tracked according to the tracking result of the target tracking framework.
[0143] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for target tracking based on an optoelectronic pod provided above is implemented, and the method comprises:
[0144] When the target to be tracked is identified, the state of the target tracking framework is switched from the to-be-identified state to the tracking state;
[0145] In the tracking state, if the target to be tracked is tracked multiple times within a first preset time, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod locks the target to be tracked according to the pixel coordinates;
[0146] When it is determined within a second preset time period that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, the optoelectronic pod is controlled to lock onto the target to be tracked according to the tracking result of the target tracking framework.
[0147] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A target tracking method based on an optoelectronic pod, characterized in that: include: When the target to be tracked is identified, the state of the target tracking framework is switched from the to-be-identified state to the tracking state; In the tracking state, if the target to be tracked is tracked multiple times within a first preset time, the mode of the optoelectronic pod is switched from the inertial mode to the tracking mode, and the pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod locks the target to be tracked according to the pixel coordinates; When it is determined within a second preset time that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode, controlling the optoelectronic pod to lock onto the target to be tracked according to the tracking result of the target tracking framework; The step of controlling the optoelectronic pod to lock onto the target to be tracked according to the tracking result of the target tracking framework comprises: Determining a bull's eye offset between the tracking result and an image bull's eye of an image output by the optoelectronic pod; Determine the difference between the Euclidean distance of the target center offset and the number of image pixels, and compare the difference with a preset threshold; If the difference is less than or equal to the preset threshold, controlling the optoelectronic pod to lock onto the target to be tracked; After controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework, the method further includes: Determining whether the number of times that the image of the target to be tracked is not acquired reaches a preset number of times within a third preset time length; If the number of times that the image of the target to be tracked is not collected reaches a preset number within the third preset time length, it is determined that the target tracking framework has not locked the target to be tracked; After determining that the target tracking framework has not locked the target to be tracked, the method further includes: The state of the target tracking frame is switched to the state to be identified, and the mode of the optoelectronic pod is switched to the inertial mode, and the step of switching the state of the target tracking frame from the state to be identified to the tracking state is performed when the target to be tracked is identified, until it is determined within the second preset time that the target tracking frame is in the tracking state and the optoelectronic pod is in the tracking mode, and then the step of controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking frame.
2. The target tracking method based on the optoelectronic pod according to claim 1 is characterized in that: After comparing the difference with the preset threshold, the method further includes: If the difference is greater than the preset threshold, the real pixel coordinates of the target to be tracked are sent to the optoelectronic pod, so that the optoelectronic pod can re-lock the target to be tracked according to the real pixel coordinates.
3. The target tracking method based on the optoelectronic pod according to claim 1 is characterized in that: After the state of the target tracking framework is switched from the to-be-identified state to the tracking state, the method further includes: In the tracking state, determining whether a preset number of frames of images of the target to be tracked are acquired within the first preset time period; If a preset number of frames of images of the target to be tracked are collected within the first preset time length, it is determined that the target to be tracked is tracked multiple times within the first preset time length, and the step of switching the mode of the optoelectronic pod from the inertial mode to the tracking mode and sending the pixel coordinates of the target to be tracked to the optoelectronic pod is executed; If a preset number of frames of images of the target to be tracked are not collected within the first preset time length, the target to be tracked is determined to be a false tracking target, and the state of the target tracking frame is switched to the to-be-recognized state, and the step of switching the state of the target tracking frame from the to-be-recognized state to the tracking state is executed when the target to be tracked is recognized.
4. The target tracking method based on the optoelectronic pod according to any one of claims 1 to 3, characterized in that: After controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework, the method further includes: Determine each frame of the video image sequence of the optoelectronic pod in which the target to be tracked appears; According to the coordinate information of each frame of image, the running trajectory of the target to be tracked in the video image sequence is fitted.
5. A target tracking device based on an optoelectronic pod, characterized in that: include: A switching module is used to switch the state of the target tracking framework from a to-be-identified state to a tracking state when a target to be tracked is identified; a sending module, configured to switch the mode of the optoelectronic pod from the inertial mode to the tracking mode if the target to be tracked is tracked multiple times within a first preset time period in the tracking state, and send the pixel coordinates of the target to be tracked to the optoelectronic pod, so that the optoelectronic pod can lock the target to be tracked according to the pixel coordinates; A control module, configured to control the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework when determining that the target tracking framework is in the tracking state and the optoelectronic pod is in the tracking mode within a second preset time period; The step of controlling the optoelectronic pod to lock onto the target to be tracked according to the tracking result of the target tracking framework comprises: Determining a bull's eye offset between the tracking result and an image bull's eye of an image output by the optoelectronic pod; Determine the difference between the Euclidean distance of the target center offset and the number of image pixels, and compare the difference with a preset threshold; If the difference is less than or equal to the preset threshold, controlling the optoelectronic pod to lock onto the target to be tracked; After controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking framework, the method further includes: Determining whether the number of times that the image of the target to be tracked is not acquired reaches a preset number of times within a third preset time length; If the number of times that the image of the target to be tracked is not collected reaches a preset number within the third preset time length, it is determined that the target tracking framework has not locked the target to be tracked; After determining that the target tracking framework has not locked the target to be tracked, the method further includes: The state of the target tracking frame is switched to the state to be identified, and the mode of the optoelectronic pod is switched to the inertial mode, and the step of switching the state of the target tracking frame from the state to be identified to the tracking state is performed when the target to be tracked is identified, until it is determined within the second preset time that the target tracking frame is in the tracking state and the optoelectronic pod is in the tracking mode, and then the step of controlling the optoelectronic pod to lock the target to be tracked according to the tracking result of the target tracking frame.
6. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the target tracking method based on the optoelectronic pod according to any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed by a processor, the target tracking method based on an optoelectronic pod according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Tracking and photographing method and equipment and unmanned aerial vehicle
CN108537726A
Quad-rotor unmanned aerial vehicle visual target tracking method based on binocular camera
CN110222581A
Photoelectric autonomous target detection and tracking method and system for unmanned aerial vehicle with loose coupling structure
CN110309731A
Target identification tracking method, device, equipment and storage medium
CN114488117A
Multi-target tracking method, equipment and medium
CN114638855A
