Image processing method and device and electronic equipment
By predicting the motion status and position of tiny targets, combined with knowledge distillation network and filter technology, it solves the problem of tracking failure of tiny targets under high magnification and improves user experience and applicability.
Patent Information
- Application Number
- CN202310327095.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
Under high magnification, tracking of tiny targets fails due to tiny jitters and leaves the screen. It is difficult for existing technology to effectively track and affects the user experience.
By determining the motion status information of the target object, using interactive multi-model and Kalman filter/particle filter to predict the target position, and combining the knowledge distillation network to extract features, accurate tracking and display of small targets can be achieved.
It can effectively track tiny targets under high magnification, improve user experience, reduce costs, and is suitable for a variety of application scenarios, including mobile phone shooting and video calls.
Smart Images

Figure CN118735957A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, device and electronic equipment. Background Art
[0002] Vision-based target tracking technology is currently widely used in many scenarios such as TV broadcasting, urban traffic management, security monitoring, video conferencing, etc. It mainly uses computer vision and target recognition technologies to keep the designated target in the center of the picture.
[0003] However, when the image is enlarged and zoomed to a high magnification, due to the reduction in the field of view, even a slight shake may cause the tracked tiny target to be lost, and then the target may be out of the frame. That is, at a high magnification, there is a problem that the tracked tiny target is out of the frame due to a slight shake, resulting in a poor user experience. However, the existing target tracking solutions are difficult to effectively and reliably track tiny targets. Summary of the invention
[0004] In view of this, the present application provides an image processing method, device and electronic device, the main purpose of which is to improve the current technical problem that tiny jitters at high magnifications can cause the tracked tiny targets to leave the screen.
[0005] In a first aspect, the present application provides an image processing method, comprising:
[0006] Determine the target object to be tracked in the current frame image;
[0007] Extracting target features from the target object;
[0008] Determine the motion state information of the target object according to the extracted target features, and determine the predicted position information of the target object in the next frame of image based on the motion state information;
[0009] According to the predicted position information, an image region where the target object is located is intercepted from the next frame image, and the image region is processed to obtain a screen display result corresponding to the next frame image.
[0010] In a second aspect, the present application provides an image processing device, comprising:
[0011] An analysis unit, configured to determine a target object to be tracked in a previous frame of image;
[0012] An extraction unit, configured to extract target features from the target object;
[0013] A prediction unit is configured to determine the motion state information of the target object according to the extracted target features, and determine the predicted position information of the target object in the current frame image according to the motion state information;
[0014] The processing unit is configured to intercept the image area where the target object is located from the current frame image according to the predicted position information, and process the image area to obtain a screen display result corresponding to the current frame image.
[0015] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the image processing method described in the first aspect.
[0016] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the image processing method described in the first aspect when executing the computer program.
[0017] By means of the above technical scheme, the present application provides an image processing method, device and electronic device, which determine the target object to be tracked from the previous frame image captured by the device and perform feature extraction, thereby determining the motion state of the target object. The possible position of the target object in the current frame image is then predicted based on the motion state to obtain the predicted position information. The current frame image is image processed in combination with the predicted position information to determine the screen display result corresponding to the current frame image. Compared with related schemes, the present application predicts the position information of the target object by the motion state of the target object, and performs image processing in the current frame image to determine the screen display result. It can improve the problem that small jitters at high magnifications will cause the tracking of small targets to be out of the screen, thereby improving the user experience.
[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A schematic diagram of a process flow of an image processing method provided in an embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram of a tiny target provided by an embodiment of the present application is shown;
[0023] Figure 3 A schematic diagram of the structure of a knowledge distillation network provided in an embodiment of the present application is shown;
[0024] Figure 4 A schematic diagram of the structure of an interactive multi-model provided in an embodiment of the present application is shown;
[0025] Figure 5 A schematic diagram showing a flow chart of another image processing method provided in an embodiment of the present application is shown;
[0026] Figure 6 A schematic structural diagram of an image processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0028] Currently, when users hold their phones to shoot at high magnifications, they have difficulty stabilizing the composition due to slight hand shaking. More specifically, when users zoom their phones to high magnifications, as the field of view decreases, even slight hand shaking can cause a huge shift in the actual composition. A typical application scenario is when shooting the moon at high magnifications, the main subject of the moon can easily move out of the frame as the arm shakes.
[0029] In order to improve the technical problem that small jitters at high magnification may cause small targets to be out of the picture, this embodiment provides an image processing method, such as Figure 1 As shown, the method includes:
[0030] S101: Determine a target object to be tracked in a previous frame of image.
[0031] In this embodiment, the target object may be an object in the image, for example, a small target with a small volume and low resolution in the image. Accordingly, the target object to be tracked may refer to a small target that needs to be captured in the image, such as Figure 2 The "walking passerby" in the figure is the tiny target that needs to be captured. It should be noted that, for the sake of convenience, the following mainly uses tiny targets as examples of target objects to introduce the scheme of this embodiment. The previous frame image is relative to the current frame image. The current frame image and the previous frame image here are not the pictures that have been obtained, but the original (RAW) images collected at the current moment during the shooting process of the device. The image includes multiple targets including tiny targets. The previous frame image refers to the RAW image collected at the previous moment. Figure 2 Take the "walking pedestrian" in the previous frame as an example. As a tiny target to be tracked in the previous frame image, then the next step is to determine the screen display result corresponding to the current frame image when the target is tracked.
[0032] S102: Extract target features of the target object.
[0033] The target features may include the appearance, pixel points, and relative position of the tiny target in the previous frame image, etc. These feature information may be subsequently used to analyze and determine the predicted position information of the tiny target in the current frame image.
[0034] S103: determining the motion state information of the target object according to the extracted target features, and determining the predicted position information of the target object in the current frame image according to the motion state information.
[0035] After feature extraction and positioning of the tiny target, in order to ensure the timeliness of tracking, it is necessary to determine the motion state information of the tiny target, and then predict the position of the tiny target in the current frame image based on the motion state such as the target's motion speed, the target's motion trajectory, etc., to obtain the predicted position information.
[0036] For example, the motion state of a small target is predicted by using an interactive multi-model + Kalman filter / particle filter structure including multiple basic motion models such as uniform speed and uniform acceleration. Multiple different basic motion models match different motion modes of small targets. The transition probability between different models is a Markov matrix. The state estimation of small targets and the update of model probability can use a Kalman filter or a particle filter. Taking the Kalman filter as an example, it is a linear, unbiased, optimal estimation algorithm based on the minimum mean square error as the criterion. It has a precise mathematical form and excellent performance. The Kalman filtering method adopts a recursive filtering method. According to the acquired measurement data (such as the target features of the small target in the previous frame image), a new state estimate is recursively given by the recursive equation, that is, the motion state information of the target object is determined, and then the predicted position information of the target object in the current frame image can be determined based on the motion state information of the target object.
[0037] S104 . According to the predicted position information, the image region where the target object is located is intercepted from the current frame image, and the image region is processed to obtain a screen display result corresponding to the current frame image.
[0038] In this embodiment, the tiny target to be tracked is first determined from the previous frame image of the device and feature extraction is performed to obtain the motion state of the tiny target. The possible position of the tiny target in the current frame image is then predicted based on the motion state to obtain predicted position information. The current frame image is processed in combination with the predicted position information to determine the screen display result of the current frame image. Compared with related schemes, this embodiment predicts the position information of the tiny target by the motion state of the tiny target, and performs image processing in the current frame image to determine the screen display result. The problem that tiny jitters at high magnifications can cause the tracked tiny target to be out of the screen is improved, thereby improving the user experience.
[0039] It should be noted that target tracking technology requires the tracking target to have a certain size (number of pixels) and high intensity to ensure that it will not be submerged in the background noise. In one type of application scenario, such as drones, stabilizers, etc., the solution for tracking a specified target requires controlling the external motor according to the motion trajectory of the object, and is only applicable when the light is bright, the object features and textures are clear and obvious, and the cost is higher. However, this embodiment can be directly based on the original signal output by the mobile phone image sensor, and the calculation and processing will not increase the user's use cost. In another type of application scenario, although the field of video calls can currently achieve target tracking and "character centering", this type of solution can only be applied to face recognition. It is not applicable to the tracking of small targets in this embodiment, and the application scenario is limited. Therefore, compared with the above two target tracking technologies, the image processing method proposed in this embodiment does not require external hardware equipment to achieve target tracking, which can greatly save user use costs; and can adapt to the tracking tasks of various targets, not just large targets such as faces. In addition, this embodiment has a wide range of applicability and is not limited to mobile phone scenarios. When it can be linked with external devices such as a gimbal, the target motion state solved by this embodiment can also be directly used to control the motor to ensure that the target is always at the optical center position, thereby improving imaging quality.
[0040] The above is a brief comparative analysis of the characteristics of this embodiment that are different from the existing target tracking technology in combination with related target tracking technologies. In addition, this embodiment can also improve the technical problem that the tracked target is out of the picture due to slight shaking at high magnification. Next, the technical details of this embodiment are introduced.
[0041] Optionally, determining the target object to be tracked in the previous frame image may include: determining the target object in the previous frame image based on the picture content dynamically updated during the shooting zoom process; or, determining the target object in the previous frame image based on a preset tracking target corresponding to a preset shooting mode; or, determining the target object in the previous frame image based on a target locked by the user in the picture.
[0042] In this embodiment, the method for determining the tiny target to be tracked can determine the tiny target in the previous frame of the image by shooting the dynamically updated picture content during the zoom process. For example, as the user manually zooms, iteratively extract the significant area containing the tiny target in the picture. It is also possible to search for a specific target in a specific shooting mode (such as the "super moon" mode for shooting the moon in the night sky). It is also possible for the user to manually click to lock a specific tiny target to be tracked. By using a variety of methods for determining tiny targets, it is easier for the user to determine the tiny target.
[0043] Furthermore, according to the picture content dynamically updated during the shooting zoom process, the target object in the previous frame image is determined, including: during the shooting zoom process, iteratively extracting the same content in the picture; and determining the target object in the previous frame image based on the same content.
[0044] In this embodiment, the process of the user enlarging the image is the process of digital zooming. As the zoomed image is iterated, the same content in each iterative picture is likely to be a small target that the user is more interested in and needs to shoot. Therefore, the target in the same content is determined as a small target. This method is essentially to determine the area of interest to the user through the user's enlarging operation of the image. And by comparing the same content in the area of interest, the small target can be determined faster and more efficiently.
[0045] Optionally, extracting target features from a target object may include: extracting target features from a target object using a knowledge distillation algorithm. The knowledge distillation algorithm may include a teacher network and a student network. The teacher network guides the training of the student network to obtain a student network model whose volume is effectively compressed. The student network model may be built into a device (camera) to accurately extract target features of the target object. In this way, while ensuring the accuracy of target feature extraction, the space used by the device to store the model can be saved, which can be applied to the needs of more scenarios.
[0046] In this embodiment, in order to overcome the defect that the existing target tracking method is difficult to effectively and reliably track small targets, a multi-level knowledge distillation network is proposed to solve the problem of low-resolution target recognition and positioning. The network structure is as follows Figure 3 As shown in the figure, it consists of two sub-networks with exactly the same architecture, namely the teacher network and the student network. The teacher network inputs the original high-resolution image for training, and the corresponding low-resolution image after degradation is used as the input of the student network. During pre-training, distillation is performed at the feature extraction level, scoring level, and intersection-over-union (IoU) level, and the teacher network is used to guide the training of the student network. In the actual application of small target tracking, only the student network is used for target feature extraction and positioning to improve tracking efficiency.
[0047] Optionally, a knowledge distillation algorithm is used to extract target features of the target object, including: extracting target features of the target object in the previous frame image through a student network model, wherein the student network model is trained under the guidance of a teacher network model, wherein distillation processing is performed at the feature extraction level, the scoring level, and the IoU level; the student network model is used to extract target features in images of a first resolution, and the teacher network model is used to extract target features in images of a second resolution, wherein the first resolution is lower than the second resolution.
[0048] In this embodiment, combined with Figure 3 The algorithm is explained. First, feature-level distillation includes a feature modulation module (FMM). Considering the problem that the background interferes with the target feature extraction, the Precise RoI Pooling (PrPool) method is used here to select the target area for feature extraction to avoid the quantization error caused by the traditional ROI Pooling method. Since the student network input is a low-resolution image, it is difficult to extract high-quality features of the target. Based on the idea of generative adversarial learning, the feature extractor of the student network is regarded as a generator, and a discriminator is used to distinguish the true and false labels of high-resolution features and generated features. The high-resolution features of the teacher network are used to guide the learning of low-resolution features of tiny objects. In the IoU-level distillation part, the IoU score of the teacher network is used as supervision to guide the learning of the student network. The loss function of this part is the L1 norm. Similarly, the score-level distillation has a similar idea, using the classification score of the teacher network to guide the learning of the student network, and the loss function is also the L1 norm. In offline pre-training, high-resolution images and their corresponding degraded images are used as inputs for the teacher network and the student network to train the student network's ability to extract and locate features of low-resolution targets. Combined with the above-mentioned method, the trained student network model can be built into the user's mobile phone. When it is necessary to extract target features, the student network will perform online feature extraction and positioning to improve tracking efficiency. In addition, the multi-level knowledge distillation network of this embodiment can be processed directly on the RAW image without the need for additional image enhancement algorithm preprocessing, and will not introduce unnecessary computing power consumption and power consumption.
[0049] Optionally, determining the motion state information of the target object based on the extracted target features, and determining the predicted position information of the target object in the current frame image based on the motion state information may include: using an interactive multi-model to determine the motion state information of the target object based on the target features, and determining the predicted position information of the target object in the current frame image based on the motion state information; wherein the interactive multi-model includes multiple basic motion models and Kalman filters, or includes multiple basic motion models and particle filters.
[0050] In this embodiment, considering that the target motion rarely follows a single motion model, a combination of multiple basic motion models including uniform speed and uniform acceleration is used to predict the motion state of the target by fusing the estimation results of the above basic motion models through the structure of interactive multi-model + Kalman / particle filter. The interactive multi-model is also called a tracker, which realizes the combination of state estimates from different motion models through the Markov principle. Its structure is as follows Figure 4As shown, it includes: input model interaction, filtering, model update and state combination, where KF / PF in the filtering module represent Kalman filter and particle filter respectively. Through this interactive multi-model, the predicted position information of the small target in the current frame image can be determined more accurately.
[0051] Optionally, an interactive multiple model is used to determine the motion state information of the target object based on the target features, and based on the motion state information, the predicted position information of the target object in the current frame image is determined, including: inputting the extracted target features into the interactive multiple model to determine the motion state information of the target object in the previous frame image, and predicting the motion state information of the target object in the current frame image based on the motion state information in the previous frame image; determining the predicted position information of the target object in the current frame image based on the motion state information of the target object in the current frame image.
[0052] In this embodiment, it is specifically assumed that the Interacting Mutiple Model (IMM) method includes r motion models. At the kth moment, the mixing probability of model i and model j is It can be calculated by the following formula:
[0053]
[0054] In the formula represents the probability of model i, p ij represents the probability of transferring from model i to model j, is the normalization factor and is calculated by
[0055]
[0056] Therefore, the input of each model at the kth time is:
[0057]
[0058]
[0059] here and are the state estimate and covariance of model j at the k-1th moment, respectively.
[0060] The initial input obtained by the interaction of the input model can be used to predict the state estimation and covariance at the kth moment using a Kalman filter or a particle filter. It should be noted that nonlinear versions of the Kalman filter: Extended Kalman Filter (EKF) and Unscented Kalman Filter (UKF), etc., are also applicable to the tracker structure proposed in this embodiment.
[0061] Taking model i as an example, the maximum likelihood function is used To update the probability of each model, is a Gaussian distribution, and are the measurement residuals and their covariances, respectively. The update at the kth moment is:
[0062]
[0063]
[0064] State estimation combining outputs from different models and covariance P k|k It is calculated by the following formula:
[0065]
[0066]
[0067] Through the above processing method, the predicted position information of the tiny target in the current frame image can be determined more accurately.
[0068] Optionally, the image area is processed to obtain a screen display result corresponding to the current frame image, including: performing super-resolution processing on the image area through a super-resolution model; enlarging the image area obtained by the super-resolution processing according to the screen display size; and determining the screen display result corresponding to the current frame image based on the image area obtained by the enlarged processing.
[0069] In this embodiment, the predicted position information of the tiny target is used in the RAW image output by the camera sensor. By cutting out the image area where the tiny target is located and performing super-resolution amplification, the image is output as a preview image of the camera, so that the tiny target of interest is kept in the viewfinder. This achieves motion compensation of the target relative to the hand. Compared with related schemes, this embodiment predicts the position information of the tiny target through the motion state of the tiny target, and performs image processing in the current frame image to determine the screen display result. This improves the problem of the tracked target being out of the screen due to tiny jitter at high magnification, and improves the user experience.
[0070] Next, combine Figure 5 , the image processing method provided in this embodiment is described. In this example, the image processing process for tracking a small target is introduced based on an example of a camera taking a photo of the moon, which specifically includes:
[0071] S201. Start the camera.
[0072] S202, determine whether the current mode is supermoon mode. If not, proceed to S2031; if so, proceed to S2032.
[0073] In this step, it is determined whether the current mode is supermoon mode, that is, whether a command to enter supermoon mode is received from the user. Supermoon mode refers to a function in a smart shooting device such as a camera or a mobile phone to search for a specific target in a specific shooting mode.
[0074] S2031. Determine the target object as the zoom process iterates.
[0075] The tiny target in the previous frame can be determined by dynamically updating the image content during the zoom process. For example, as the user manually zooms, the salient area containing the tiny target in the image is iteratively extracted. Of course, the tiny target to be tracked can also be determined by the user's means of clicking.
[0076] S2032. Directly search for the moon as the target object.
[0077] S204. Utilize the knowledge distillation network to extract target features.
[0078] The knowledge distillation network here can adopt the knowledge distillation network mentioned above, which will not be repeated here.
[0079] S205. Predict the target position through the interacting multiple models.
[0080] The extracted target features are input into the interactive multi-model to determine the motion state information of the small target in the previous frame image. Then, based on the motion state information in the previous frame image, the motion state information of the small target in the current frame image is predicted, and based on the motion state information of the small target in the current frame image, the predicted position information of the small target in the current frame image is determined. Among them, considering that the target motion rarely follows a single motion model, a combination of multiple basic motion models including uniform speed and uniform acceleration is used, and the estimation results of the above basic motion models are fused through the structure of interactive multi-model + Kalman / particle filter to predict the motion state of the target, which can more accurately determine the predicted position information of the small target in the current frame image. For details, please refer to the interactive multi-model mentioned above, which will not be repeated here.
[0081] S206 : Crop a corresponding area on the RAW image according to the predicted target position.
[0082] S207: Output through super-resolution algorithm and display on the screen.
[0083] Finally, in the image processing process, the corresponding area is cut out on the RAW image according to the predicted target position. Then, it is processed by the super-resolution algorithm and output and displayed on the screen as the screen display result. Through the above method, the position information of the tiny target is predicted according to the motion state of the tiny target, and the image processing is performed in the current frame image to determine the screen display result. It can ensure that the target moon appears in the picture even if the hand has a slight shake at high magnification, which improves the problem of the tracking target leaving the picture due to slight shake at high magnification, and improves the user experience.
[0084] Further, as Figures 1 to 5 The specific implementation of the method shown in the embodiment provides an image processing device, such as Figure 6 As shown, the device includes: an analysis unit 61, an extraction unit 62, a prediction unit 63, and a processing unit 64.
[0085] An analysis unit 61 is configured to determine a target object to be tracked in a previous frame of image;
[0086] An extraction unit 62 is configured to extract target features from the target object;
[0087] The prediction unit 63 is configured to determine the motion state information of the target object according to the extracted target features, and determine the predicted position information of the target object in the current frame image according to the motion state information;
[0088] The processing unit 64 is configured to intercept the image area where the target object is located from the current frame image according to the predicted position information, and process the image area to obtain a screen display result corresponding to the current frame image.
[0089] In a specific application scenario, the analysis unit 61 is specifically configured to determine the target object in the previous frame image based on the picture content dynamically updated during the shooting zoom process; or, to determine the target object in the previous frame image based on the preset tracking target corresponding to the preset shooting mode; or, to determine the target object in the previous frame image based on the target locked by the user in the picture.
[0090] In a specific application scenario, the analysis unit 61 is further configured to iteratively extract the same content in the picture during the shooting zoom process; and determine the target object in the previous frame image based on the same content.
[0091] In a specific application scenario, the extraction unit 62 is further configured to extract target features of the target object using a knowledge distillation algorithm.
[0092] In a specific application scenario, the extraction unit 62 is further configured to extract the target features of the target object in the previous frame image through a student network model, wherein the student network model is trained under the guidance of a teacher network model, wherein distillation processing is performed at the feature extraction level, the scoring level, and the IoU level; the student network model is used to extract the target features in an image of a first resolution, and the teacher network model is used to extract the target features in an image of a second resolution, wherein the first resolution is lower than the second resolution.
[0093] In a specific application scenario, the prediction unit 63 is further configured to utilize an interactive multi-model to determine the motion state information of the target object based on the target features, and to determine the predicted position information of the target object in the current frame image based on the motion state information; wherein the interactive multi-model includes multiple basic motion models and Kalman filters, or includes multiple basic motion models and particle filters.
[0094] In a specific application scenario, the prediction unit 63 is further configured to input the extracted target features into the interactive multi-model, determine the motion state information of the target object in the previous frame image, and predict the motion state information of the target object in the current frame image based on the motion state information in the previous frame image; and determine the predicted position information of the target object in the current frame image based on the motion state information of the target object in the current frame image.
[0095] In a specific application scenario, the processing unit 64 is further configured to perform super-resolution processing on the image area through a super-resolution model; enlarge the image area obtained by the super-resolution processing according to the screen display size; and determine the screen display result corresponding to the current frame image based on the image area obtained by the enlarged processing.
[0096] It should be noted that for other corresponding descriptions of the functional units involved in the image processing device provided in this embodiment, reference can be made to Figures 1 to 5 The corresponding description in will not be repeated here.
[0097] Based on the above Figures 1 to 5 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figures 1 to 5 The method shown.
[0098] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0099] Based on the above Figures 1 to 5 The method shown, and Figure 6 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, which can be configured on a computer terminal, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 5 The method shown.
[0100] Based on the above Figures 1 to 5 The method shown, and Figure 6 In order to achieve the above-mentioned purpose, the embodiment of the virtual device shown in the embodiment of the present application further provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, the signal including the computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the above-mentioned Figures 1 to 5 The method shown.
[0101] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0102] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0103] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, compared with the related solutions, this embodiment predicts the position information of the small target by the motion state of the small target, and performs image processing in the current frame image to determine the screen display result. Improve the problem of small jitters at high magnifications causing the tracking target to leave the screen, and improve the user experience.
[0105] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0106] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. An image processing method, characterized in that: include: Determine the target object to be tracked in the previous frame image; Extracting target features from the target object; Determining the motion state information of the target object according to the extracted target features, and determining the predicted position information of the target object in the current frame image according to the motion state information; According to the predicted position information, an image region where the target object is located is intercepted from the current frame image, and the image region is processed to obtain a screen display result corresponding to the current frame image.
2. The method according to claim 1, characterized in that The step of determining the target object to be tracked in the previous frame of image includes: Determine the target object in the previous frame of image according to the picture content dynamically updated during the shooting zoom process; or, Determine the target object in the previous frame image according to a preset tracking target corresponding to a preset shooting mode; or, The target object in the previous frame image is determined according to the target locked by the user in the picture.
3. The method according to claim 2, characterized in that The step of determining the target object in the previous frame of image according to the picture content dynamically updated during the shooting zoom process includes: During the zooming process, the same content in the picture is extracted iteratively; The target object in the previous frame image is determined according to the same content.
4. The method according to claim 1, characterized in that The extracting target features from the target object comprises: The target features of the target object are extracted by using a knowledge distillation algorithm.
5. The method according to claim 4, characterized in that The method of using the knowledge distillation algorithm to extract target features from the target object includes: The target features of the target object in the previous frame image are extracted through a student network model, wherein the student network model is trained under the guidance of a teacher network model, wherein distillation processing is performed at the feature extraction level, the scoring level and the intersection over union (IoU) level; the student network model is used to extract target features in an image of a first resolution, and the teacher network model is used to extract target features in an image of a second resolution, wherein the first resolution is lower than the second resolution.
6. The method according to claim 1, characterized in that Determining the motion state information of the target object according to the extracted target features, and determining the predicted position information of the target object in the current frame image according to the motion state information, includes: Determine the motion state information of the target object according to the target feature by using an interactive multiple model, and determine the predicted position information of the target object in the current frame image according to the motion state information; The interactive multi-model includes a plurality of basic motion models and a Kalman filter, or includes a plurality of basic motion models and a particle filter.
7. The method according to claim 6, characterized in that The using the interactive multiple model to determine the motion state information of the target object according to the target feature, and determining the predicted position information of the target object in the current frame image according to the motion state information, includes: Inputting the extracted target features into the interactive multi-model, determining the motion state information of the target object in the previous frame image, and predicting the motion state information of the target object in the current frame image based on the motion state information in the previous frame image; Based on the motion state information of the target object in the current frame image, the predicted position information of the target object in the current frame image is determined.
8. The method according to any one of claims 1 to 7, characterized in that The processing of the image area to obtain a screen display result corresponding to the current frame image includes: Performing super-resolution processing on the image region by using a super-resolution model; According to the screen display size, the image area obtained by super-resolution processing is enlarged; According to the image area obtained by the magnification process, the screen display result corresponding to the current frame image is determined.
9. An image processing device, characterized in that: include: An analysis unit, configured to determine a target object to be tracked in a previous frame of image; An extraction unit, configured to extract target features from the target object; A prediction unit is configured to determine the motion state information of the target object according to the extracted target features, and determine the predicted position information of the target object in the current frame image according to the motion state information; The processing unit is configured to intercept the image area where the target object is located from the current frame image according to the predicted position information, and process the image area to obtain a screen display result corresponding to the current frame image.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
11. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
12. A chip, characterized in that: The electronic device comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method described in any one of claims 1 to 8.
