CN113506324B - Image processing method and device, electronic equipment and storage medium - Google Patents
Image processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113506324B CN113506324B CN202110801139.6A CN202110801139A CN113506324B CN 113506324 B CN113506324 B CN 113506324B CN 202110801139 A CN202110801139 A CN 202110801139A CN 113506324 B CN113506324 B CN 113506324B
- Authority
- CN
- China
- Prior art keywords
- feature
- feature map
- feature extraction
- target object
- sample
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000000605 extraction Methods 0.000 claims abstract description 154
- 230000000007 visual effect Effects 0.000 claims abstract description 76
- 238000000034 method Methods 0.000 claims abstract description 45
- 238000012545 processing Methods 0.000 claims description 65
- 238000010586 diagram Methods 0.000 claims description 56
- 238000012549 training Methods 0.000 claims description 27
- 230000011218 segmentation Effects 0.000 claims description 20
- 230000008859 change Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 15
- 238000013528 artificial neural network Methods 0.000 claims description 6
- 238000013527 convolutional neural network Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 8
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000003491 array Methods 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/246—Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/049—Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Biophysics (AREA)
- Evolutionary Computation (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
The present disclosure relates to an image processing method and apparatus, an electronic device, and a storage medium, the method including: inputting dynamic visual information of a preset scene acquired at a first moment in a first time period into a first feature extraction network to acquire a first feature map; inputting a first color image of a preset scene acquired at a second moment in a first time period into a second feature extraction network to obtain a second feature image; determining the feature variation between the second moment and the first moment according to the second feature map and the first feature map; and determining the position information of the target object at the first moment according to the first feature map and the feature variation. According to the image processing method of the embodiment of the disclosure, the second feature map can be obtained by utilizing the dynamic visual information with higher acquisition frequency, and the feature variation between the second feature map and the first feature map of the first color image is determined to determine the position information of the target object at the first moment, so that the tracking effect of the target object is improved.
Description
Technical Field
The disclosure relates to the field of computer technology, and in particular, to an image processing method and apparatus, an electronic device, and a storage medium.
Background
In the related art, the frame rate of the image or video frame collected by the camera or the camera is not high, and when a target moving at a high speed is tracked, the action of the target in a time period between two frames is difficult to track, so that the action or track of the target is omitted, and the tracking effect is poor.
Disclosure of Invention
The disclosure provides an image processing method and device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided an image processing method including: inputting dynamic visual information of a preset scene acquired at a first moment in a first time period into a first feature extraction network to acquire a first feature map; inputting a first color image of the preset scene acquired at a second moment in the first time period into a second feature extraction network to acquire a second feature image, wherein the acquisition frequency of dynamic visual information is higher than that of the color image, and the first feature extraction network is trained through the second feature extraction network; determining a feature variation amount between the second moment and the first moment according to the second feature map and the first feature map; and determining the position information of the target object in the preset scene at the first moment according to the first feature map and the feature variation.
In one possible implementation manner, determining, according to the first feature map and the feature variation, location information of the target object in the preset scene at the first moment includes: according to the second feature map and the feature variation, carrying out feature updating processing on the second feature map to obtain a third feature map; performing target feature extraction processing on the first color image to obtain a feature vector of the target object; performing convolution processing on the third feature map according to the feature vector of the target object to obtain a correlation thermodynamic diagram between the feature vector and the third feature map; and determining the position information of the target object at the first moment according to the related thermodynamic diagram.
In one possible implementation, the method further includes: and decoding the third feature map to obtain a second color image at the first moment.
In one possible implementation, the method further includes: and according to the position information, carrying out segmentation processing on the target object in the second color image to obtain a segmentation mask diagram of the target object.
In one possible implementation, the method further includes: performing feature extraction processing on a sample color image of a sample scene through a pre-trained second feature extraction network to obtain a first sample feature map; performing feature extraction processing on sample dynamic visual information of the sample scene through a first feature extraction network to obtain a second sample feature map, wherein the sample dynamic visual information and the sample color image are acquired simultaneously; determining network loss of a first feature extraction network according to the first sample feature map and the second sample feature map; and training the first feature extraction network according to the network loss.
According to an aspect of the present disclosure, there is provided an image processing apparatus including: the first feature extraction module is used for inputting the dynamic visual information of the preset scene acquired at the first moment in the first time period into the first feature extraction network to acquire a first feature map; the second feature extraction module is used for inputting the first color image of the preset scene acquired at the second moment in the first time period into a second feature extraction network to acquire a second feature image, wherein the acquisition frequency of dynamic visual information is higher than that of the color image, and the first feature extraction network is trained through the second feature extraction network; the characteristic change amount determining module is used for determining the characteristic change amount between the second moment and the first moment according to the second characteristic diagram and the first characteristic diagram; and the position information determining module is used for determining the position information of the target object in the preset scene at the first moment according to the first feature map and the feature variation.
In one possible implementation, the location information determining module is further configured to: according to the second feature map and the feature variation, carrying out feature updating processing on the second feature map to obtain a third feature map; performing target feature extraction processing on the first color image to obtain a feature vector of the target object; performing convolution processing on the third feature map according to the feature vector of the target object to obtain a correlation thermodynamic diagram between the feature vector and the third feature map; and determining the position information of the target object at the first moment according to the related thermodynamic diagram.
In one possible implementation, the apparatus further includes: and the decoding module is used for decoding the third feature map to obtain a second color image at the first moment.
In one possible implementation, the apparatus further includes: and the segmentation module is used for carrying out segmentation processing on the target object in the second color image according to the position information to obtain a segmentation mask diagram of the target object.
In one possible implementation, the apparatus further includes: the training module is used for carrying out feature extraction processing on the sample color image of the sample scene through a pre-trained second feature extraction network to obtain a first sample feature image; performing feature extraction processing on sample dynamic visual information of the sample scene through a first feature extraction network to obtain a second sample feature map, wherein the sample dynamic visual information and the sample color image are acquired simultaneously; determining network loss of a first feature extraction network according to the first sample feature map and the second sample feature map; and training the first feature extraction network according to the network loss.
In one possible implementation, the first feature extraction network comprises a pulsed neural network and the second feature extraction network comprises a convolutional neural network.
According to an aspect of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to perform the above method.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the technical aspects of the disclosure.
FIG. 1 shows a flow chart of an image processing method according to an embodiment of the present disclosure;
FIG. 2 shows a schematic diagram of a feature update process according to an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a thermodynamic diagram of interest in accordance with an embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of a split network according to an embodiment of the present disclosure;
fig. 5 shows an application schematic of an image processing method according to an embodiment of the present disclosure;
fig. 6 shows a block diagram of an image processing apparatus according to an embodiment of the present disclosure;
FIG. 7 shows a block diagram of an electronic device according to an embodiment of the disclosure;
fig. 8 shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure, as shown in fig. 1, including:
in step S11, inputting the dynamic visual information of the preset scene acquired at the first moment in the first time period into a first feature extraction network to obtain a first feature map;
in step S12, inputting the first color image of the preset scene acquired at the second moment in the first time period into a second feature extraction network to obtain a second feature image, where the acquisition frequency of dynamic visual information is higher than the acquisition frequency of the color image, and the first feature extraction network is trained by the second feature extraction network;
in step S13, determining a feature variation amount between the second time and the first time according to the second feature map and the first feature map;
In step S14, according to the first feature map and the feature variation, position information of the target object in the preset scene at the first moment is determined.
According to the image processing method of the embodiment of the disclosure, the first feature map can be obtained by utilizing the dynamic visual information with higher acquisition frequency, and the feature variation between the first feature map and the second feature map of the first color image is determined to determine the position information of the target object at the first moment when the dynamic visual information is acquired. Because the frequency of the dynamic visual information is higher than the acquisition frequency of the color images, the position information of a plurality of moments in the time period between two frames of color images can be determined through the characteristic change quantity, so that the tracking of the motion trail or action of a moving object is facilitated, and the tracking effect is improved.
In a possible implementation manner, the image processing method may be performed by an electronic device such as a terminal device or a server, where the terminal device may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, etc., and the method may be implemented by a processor invoking computer readable instructions stored in a memory. Alternatively, the method may be performed by a server.
In one possible implementation, the dynamic vision receptors (Dynamic visual receptors, DVS) are sensitive to the rate of change of light intensity, and each pixel can record the amount of change in light intensity at that pixel location, and when the amount of change exceeds a threshold, a positive or negative pulse, i.e., dynamic visual information, is generated.
For example, an Event Camera (Event Camera) is a dynamic vision receptor that can be used to obtain the rate of change of light intensity of a preset scene. When a target in a preset scene is abnormal or performs certain actions, the light intensity of the target in the event camera can change to a certain extent, and the event camera can acutely capture the change to obtain dynamic visual information.
In one possible implementation, the frame rate of the dynamic vision receptor is higher than that of a normal camera or webcam, e.g., the frame rate of a camera or a conventional webcam is about 100fps, while the frame rate of the dynamic vision receptor is about 1,000,000fps. Therefore, in the time interval between the photographing of two frames of images by a common camera or a video camera, multiple frames of dynamic visual information can be photographed.
In an example, the length of the first period may be equal to a time interval between two frames of color images (e.g., images or video frames) of the preset scene acquired by the camera or the camera, or may be a time interval between multiple frames of color images of the preset scene acquired. That is, the start-stop time of the first period may be the time at which the color image is acquired.
In another example, the start-stop time of the first period may not be the time when the color image is acquired, and the length of the first period may be smaller than the period between two frames of color images acquired by the camera or the video camera, which is only required to acquire at least one frame of color image in the first period. The present disclosure does not limit the length of the first time period and the starting time. For example, the start time of the first period may be before one frame of the color image is captured, and the end time of the first period may be after one frame of the color image is captured, and does not necessarily coincide with the time when the color image is captured.
In one possible implementation, the dynamic visual information is acquired at a high frequency, but the amount of information in the dynamic visual information of a single frame is small, and the pixel data is sparse. Feature extraction is performed on dynamic visual information, so that feature images rich in information are difficult to obtain. Thus, the second feature extraction network may be employed to train the first feature extraction network, and feature extraction may be performed through the trained first feature extraction network. In an example, the first feature extraction network comprises a pulsed neural network and the second feature extraction network comprises a convolutional neural network. The present disclosure is not limited in the types of the first feature extraction network and the second feature extraction network. The second feature extraction network may be used to extract a feature map of a color image, which is a common image acquired by a camera or a video camera, and may have rich image information, and the feature map may be obtained by feature extraction processing of the second feature extraction network (for example, a convolutional neural network), and may include color information, position information of a target, contour information of the target, and the like. Training the first feature extraction network through the second feature extraction network can enable the feature map of the dynamic visual information acquired by the first feature extraction network to be close to the feature map of the color image acquired by the second feature extraction network, namely, the feature information contained in the feature map of the dynamic visual information acquired by the first feature extraction network is richer and more accurate. For example, for the color image and the dynamic visual information acquired simultaneously, the feature map of the color image extracted by the second feature extraction network is identical to or close to the feature map of the dynamic visual information extracted by the first feature extraction network through the above training.
In an example, since the dynamic visual information does not include color information, the above training may enable the position information and the target contour information of the target included in the feature map of the dynamic visual information extracted by the first feature extraction network to be close to or coincide with the position information and the target contour information of the target included in the feature map of the color image extracted by the second feature extraction network. The present disclosure does not limit the category of information included in the feature map.
In a possible implementation manner, in step S11, the dynamic visual information of the preset scene acquired at the first moment in the first period of time may be input into the first feature extraction network trained as described above for processing, so as to obtain a first feature map, where the feature information included in the first feature map is consistent with or similar to the feature information obtained by feature extraction of the color image.
In one possible implementation, the first time may be a time when any frame of dynamic visual information is acquired in the first period, and the first time may be different from the second time when the first color image is acquired, that is, if the target object in the preset scene moves in a time interval between the first time and the second time, the position information and/or the contour information of the target object at the first time is different from the position information and/or the contour information of the target object at the second time.
In one possible implementation, in step S12, the second feature extraction network may acquire a second feature map of the first color image at the second time. As described above, the position information and/or the contour information of the target object in the second feature map is different from the position information and/or the contour information of the target object in the first feature map, that is, the second feature map is different from the feature information contained in the first feature map, that is, the difference in the feature information due to the movement of the target object.
In one possible implementation, since the frequency of capturing color images is low, it is difficult to track the target object by color images in the time interval between capturing two frames of color images, and the frequency of capturing dynamic visual images is high, so that the target object may be tracked by dynamic visual images, for example, the first time is the time in the time interval between capturing two frames of color images, and the position of the target object at the time may be determined using the dynamic visual information captured at the time. The method can acquire the positions of the target object at a plurality of moments in the time interval between two frames of color images, and further track the motion trail of the target object.
In an example, the location of the target object at the first time instant may be directly determined from the first feature map of the dynamic visual information acquired at the first time instant. The second feature map may also be updated by feature differences between the first feature map and the second feature map, thereby obtaining the position of the target object at the first moment. Since the first feature map is a feature map of dynamic visual information, the feature map may not include image information such as color information, if a color image at a first moment is required to be obtained after determining the position of the target object, the effect of directly decoding the first feature map may not be good, so that the second feature map may be updated by the feature difference between the first feature map and the second feature map, that is, the position, the contour and other information of the target object may be updated on the basis of the second feature map, and the image information such as the color information of the second feature map may be retained, and the obtained updated feature map includes not only the position information of the target object at the first moment but also the image information such as the color information, and a color image with higher fidelity may be obtained after decoding.
In one possible implementation, in step S13, a feature difference between the first feature map and the second feature map, that is, a feature change amount between the second time and the first time, may be determined, and the feature change amount may include a change amount of the position information of the target object. The second feature map may be updated by the feature variation amount in step S14, for example, the position of the target object in the second feature map is updated, and the position of the target object is determined by the updated feature map. Step S14 may include: according to the second feature map and the feature variation, carrying out feature updating processing on the second feature map to obtain a third feature map; performing target feature extraction processing on the first color image to obtain a feature vector of the target object; performing convolution processing on the third feature map according to the feature vector of the target object to obtain a correlation thermodynamic diagram between the feature vector and the third feature map; and determining the position information of the target object at the first moment according to the related thermodynamic diagram.
In one possible implementation, the second feature map may be updated by a feature variation, for example, the feature variation includes a variation of the position information of the target object, and the position information of the target object in the second feature map may be updated by the variation of the position information to obtain the third feature map. And determining the position information of the target object at the first moment through the third feature map. Further, in this way, the position information of the target object at a plurality of times at which the dynamic visual information is acquired can be obtained.
Fig. 2 shows a schematic diagram of a feature update process according to an embodiment of the present disclosure. As shown in FIG. 2, t can be 0 The first color image acquired at the moment (second moment) is input into a second feature extraction network for processing, and a second feature image is obtained. And can let t 1 Dynamic visual information of a moment (first moment) is input into a first feature extraction network to obtain a first feature map. The first feature map may include a target object at t 1 The position information of the moment can be utilized to update the characteristics of the second characteristic diagram by utilizing the characteristic variation between the first characteristic diagram and the second characteristic diagram, for example, the position information of the target object in the second characteristic diagram is updated to obtain a third characteristic diagram, the third characteristic diagram can retain the image information such as the color information of the second characteristic diagram and the like, and the position information of the target object can be updated to be t 1 Position information of time.
In one possible implementation, the target object may be determined at t in the third feature map 1 The positional information of the time (first time), for example, may first determine the feature vector of the target object. In an example, a target feature extraction process may be performed on the first color image to obtain a feature vector of the target object. For example, the region where the target object is located may be detected in the first color image (for example, the region where the target object is detected by a neural network method) first, and then the feature extraction is performed on the region where the target object is locatedAnd (e.g., feature extraction processing can be performed on the region where the target object is located through a neural network such as a second feature extraction network) so as to obtain a feature vector of the target object.
In one possible implementation, the third feature map may be convolved according to the feature vector of the target object, for example, a convolution kernel parameter may be determined by the feature vector of the target object, and a convolution process performed by a convolution layer having the convolution kernel parameter is performed, where in the result of the convolution process (i.e., a thermodynamic diagram of correlation between the feature vector and the third feature map), the pixel value of each pixel represents a similarity between the feature vector and each location in the third feature map. The pixel value of the position in the third feature map, at which the similarity with the feature vector of the target object is high, is higher, and the pixel value of the position in the third feature map, at which the similarity with the feature vector of the target object is low, is lower. And the position with the highest feature similarity (for example, similarity is 1) between the third feature map and the feature vector is the position of the target object at the first moment.
Fig. 3 shows a schematic diagram of a thermodynamic diagram of interest in accordance with an embodiment of the present disclosure. The pixel value of each pixel in the correlation thermodynamic diagram between the feature vector and the third feature map may represent the similarity between the feature vector and each position in the third feature map, where the position with the highest similarity is the position of the target object in the third feature map. As shown in fig. 3, positional information of the positions of the target object a, the target object B, and the target object C in the third feature map is shown, respectively. Namely, the position information of the target object a, the target object B, and the target object C at the first time.
In one possible implementation manner, based on the above manner, a feature variation amount between the first feature map and the second feature map of the dynamic visual information of the multiple moments can be further determined, and position information of the target object at the multiple moments can be determined.
In this way, the second feature map can be updated through the feature variation between the first feature map and the second feature map at the first moment to obtain the position information of the target object at the first moment, the position information of the target object can be obtained at a plurality of moments in the time interval of collecting the color image, the frequency of obtaining the position information of the target object is improved, and the tracking effect on the target object is improved.
In one possible implementation, the method further includes: and decoding the third feature map to obtain a second color image at the first moment. Since the third feature map can retain image information such as color information of the second feature map and update the position information of the target object, decoding the third feature map can obtain a color image of the target object after the position information of the target object is updated, that is, the second color image. In the color image, the position of the target object is the position of the target object at the first moment, and the color image also retains image information such as color information of the second feature image, so that the second color image has higher authenticity while accurately tracking the position information of the target object.
In one possible implementation, the method further includes: and according to the position information, carrying out segmentation processing on the target object in the second color image to obtain a segmentation mask diagram of the target object. In an example, the target object in the second color image may be subjected to a segmentation process through a segmentation network to obtain a segmentation mask map, where the segmentation mask map may be used to represent the position and the contour of the target object, and in an example, the pixel value in the region where the target object is located is 1, and the pixel values in other regions are 0. The present disclosure does not limit the pixel values of the segmentation mask map.
Fig. 4 illustrates a schematic diagram of a segmentation network, as shown in fig. 4, that may include a segmentation mask map branch that may output a segmentation mask map of the target object and a score branch that may be used for a score of each pixel in the second color image, e.g., the score of a pixel may be a probability value, may represent a probability that the pixel is a pixel within an area of the target object, e.g., if the probability is greater than a probability threshold (e.g., 50%), according to an embodiment of the disclosure. The present disclosure does not limit the network structure of the split network.
In one possible implementation, the first and second feature extraction networks may be trained prior to feature extraction processing using the first and second feature extraction networks described above. The first feature extraction network and the second feature extraction network may be trained separately.
In an example, for a second feature extraction network used to extract feature information of a color image, training may be performed with a sample color image with labeling information, for example, network loss of the second feature extraction network may be determined according to a difference between a feature map of the sample color image extracted by the second feature extraction network and the labeling information, and network parameters of the second feature extraction network may be adjusted using the network loss of the second feature extraction network to reduce the network loss. And after the training condition is met, obtaining a trained second feature extraction network. For example, the training condition may include a training number, that is, after reaching a preset training number, obtaining the trained second feature extraction network, and for another example, the training condition may include converging a network loss, that is, after converging the network loss to a preset interval, obtaining the trained second feature extraction network. The present disclosure does not limit the training conditions.
In an example, for training of the first feature extraction network, the feature map of the dynamic visual information extracted by the first feature extraction network may be made consistent or close to the feature map of the color image extracted by the second feature extraction network, and thus the first feature extraction network may be trained by the pre-trained second feature extraction network.
In one possible implementation, the method further includes: performing feature extraction processing on a sample color image of a sample scene through a pre-trained second feature extraction network to obtain a first sample feature map; performing feature extraction processing on sample dynamic visual information of the sample scene through a first feature extraction network to obtain a second sample feature map, wherein the sample dynamic visual information and the sample color image are acquired simultaneously; determining network loss of a first feature extraction network according to the first sample feature map and the second sample feature map; and training the first feature extraction network according to the network loss.
In one possible implementation, the sample color image and the sample dynamic visual information of the sample scene may be acquired simultaneously. In the sample color image and the sample dynamic visual information, the positions of the target objects are the same, and the first feature extraction network can be trained through the second feature extraction network, so that a second sample feature image obtained by the sample dynamic visual information extracted by the first feature extraction network is consistent with or close to a first sample feature image of the sample color image extracted by the first feature extraction network, for example, the position information of the target objects in the feature image can be consistent with or close to each other.
In one possible implementation, the network loss of the first feature extraction network may be determined by a feature difference between the first sample feature map and the second sample feature map, e.g., a difference in the locations of the target objects in the first sample feature map and the second sample feature map may be determined, and the network loss may be determined by the difference in the locations.
Further, network parameters of the first feature extraction network may be adjusted by the network loss to reduce network loss. And after the training conditions are met, obtaining a first trained feature extraction network. For example, the training condition may include a training number, that is, after reaching a preset training number, the trained first feature extraction network is obtained, and for another example, the training condition may include converging a network loss, that is, after converging the network loss to a preset interval, the trained first feature extraction network is obtained. The present disclosure does not limit the training conditions.
In one possible implementation manner, the first feature extraction network and the second feature extraction network after training may be used in the fields of tracking a moving target object, for example, if the moving speed of the target object is high, when the position change of the target object in a time interval of acquiring a color image is high, it is difficult to effectively track the target object only through the color image, and the feature map of dynamic visual information in the time interval may be extracted by using the first feature extraction network, and feature change amounts between the feature map of dynamic visual information and the feature map of the color image extracted by the second feature extraction network may be determined, so as to determine the position information of the target object at the moment of acquiring the dynamic visual information, so as to improve the acquisition frequency of the position information of the target object and improve the tracking effect on the target object.
According to the image processing method of the embodiment of the disclosure, the first feature extraction network may be trained through the pre-trained second feature extraction network, so that the feature map of the dynamic visual information extracted by the first feature extraction network is consistent with or close to the feature map of the color image extracted by the second feature extraction network. And the feature map of the dynamic visual information in the time interval of acquiring the color image can be extracted by utilizing the first feature extraction network, so that the feature variation between the feature map of the dynamic visual information and the feature map of the color image extracted by the second feature extraction network can be determined, the position information of the target object at the moment of acquiring the dynamic visual information can be acquired, the acquisition frequency of the position information of the target object can be improved, and the tracking effect on the target object can be improved.
FIG. 5 illustrates an application diagram of an image processing method according to an embodiment of the present disclosure, as illustrated in FIG. 5, a camera or webcam may acquire a color image A of a target object (e.g., an eagle) 0 The frequency of the camera or the camera for acquiring the color image is low, the moving speed of the target object is high, and the position information of the target object can be changed greatly in the time interval for acquiring the color image, so that the target object is tracked only through the color image.
In one possible implementation, the tracking effect may be enhanced by dynamic visual information that is acquired more frequently than the color image, so that multiple frames of dynamic visual information, e.g., A, may be acquired during the time interval that the color image is acquired t0 、A t1 、A t2 、A t3 Etc. However, the pixel data of the dynamic visual information is sparse, so that the feature map rich in information is difficult to obtain, and the dynamic visual information can be extracted through a pre-trained second feature extraction network (used for extracting color imagesTraining a first feature extraction network (for extracting feature images of dynamic visual information) such that the feature images of the dynamic visual information extracted by the first feature extraction network are identical or close to the feature images of the color images extracted by the second feature extraction network, and extracting the feature images of any dynamic visual information in the time interval through the first feature extraction network to determine the position information of the target object at the moment when the dynamic visual information is acquired through the feature images.
In one possible implementation, the color image A may be extracted by a second feature extraction network 0 And extracting the feature map of any dynamic visual information through the first feature extraction network, wherein the feature change quantity between the two feature maps is caused by the action of the target object, and the feature map of the color image can be updated by utilizing the feature map of the dynamic visual information. For example, the occurrence of a wing-out of the target object causes the above-described feature variation amount, which can be used to update the feature map of the color image.
In one possible implementation, the feature vector of the target object may be extracted, and the updated feature map may be convolved to obtain a thermodynamic diagram related to the feature vector and the feature map, so that the location information of the target object may be determined, for example, the location information of the wings of the target object at the moment when the dynamic visual information is obtained may be determined. And further, the position and the posture of the target object at the moment of obtaining the dynamic visual information can be obtained. In the above manner, the position and posture of the target object at a plurality of timings at which dynamic visual information is obtained can be obtained.
Fig. 6 shows a block diagram of an image processing apparatus according to an embodiment of the present disclosure, as shown in fig. 6, the apparatus including: the first feature extraction module 11 is configured to input dynamic visual information of a preset scene acquired at a first moment in a first period of time into a first feature extraction network to obtain a first feature map; a second feature extraction module 12, configured to input a first color image of the preset scene acquired at a second moment in the first period of time into a second feature extraction network to obtain a second feature image, where an acquisition frequency of dynamic visual information is higher than an acquisition frequency of the color image, and the first feature extraction network is trained by the second feature extraction network; a feature variation determining module 13, configured to determine a feature variation between the second time and the first time according to the second feature map and the first feature map; and the position information determining module 14 is configured to determine position information of the target object in the preset scene at the first moment according to the first feature map and the feature variation.
In one possible implementation, the location information determining module is further configured to: according to the second feature map and the feature variation, carrying out feature updating processing on the second feature map to obtain a third feature map; performing target feature extraction processing on the first color image to obtain a feature vector of the target object; performing convolution processing on the third feature map according to the feature vector of the target object to obtain a correlation thermodynamic diagram between the feature vector and the third feature map; and determining the position information of the target object at the first moment according to the related thermodynamic diagram.
In one possible implementation, the apparatus further includes: and the decoding module is used for decoding the third feature map to obtain a second color image at the first moment.
In one possible implementation, the apparatus further includes: and the segmentation module is used for carrying out segmentation processing on the target object in the second color image according to the position information to obtain a segmentation mask diagram of the target object.
In one possible implementation, the apparatus further includes: the training module is used for carrying out feature extraction processing on the sample color image of the sample scene through a pre-trained second feature extraction network to obtain a first sample feature image; performing feature extraction processing on sample dynamic visual information of the sample scene through a first feature extraction network to obtain a second sample feature map, wherein the sample dynamic visual information and the sample color image are acquired simultaneously; determining network loss of a first feature extraction network according to the first sample feature map and the second sample feature map; and training the first feature extraction network according to the network loss.
In one possible implementation, the first feature extraction network comprises a pulsed neural network and the second feature extraction network comprises a convolutional neural network.
It will be appreciated that the above-mentioned method embodiments of the present disclosure may be combined with each other to form a combined embodiment without departing from the principle logic, and are limited to the description of the present disclosure. It will be appreciated by those skilled in the art that in the above-described methods of the embodiments, the particular order of execution of the steps should be determined by their function and possible inherent logic.
In addition, the disclosure further provides an image processing apparatus, an electronic device, a computer readable storage medium, and a program, where the foregoing may be used to implement any one of the image processing methods provided in the disclosure, and corresponding technical schemes and descriptions and corresponding descriptions referring to method parts are not repeated.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The disclosed embodiments also provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method. The computer readable storage medium may be a non-volatile computer readable storage medium.
The embodiment of the disclosure also provides an electronic device, which comprises: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to perform the above method.
The disclosed embodiments also provide a computer program product comprising computer readable code which, when run on a device, causes a processor in the device to execute instructions for implementing the image processing method as provided in any of the embodiments above.
The disclosed embodiments also provide another computer program product for storing computer readable instructions that, when executed, cause a computer to perform the operations of the image processing method provided in any of the above embodiments.
The electronic device may be provided as a terminal, server or other form of device.
Fig. 7 illustrates a block diagram of an electronic device 800, according to an embodiment of the disclosure. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only an edge of a touch or slide action, but also a duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including computer program instructions executable by processor 820 of electronic device 800 to perform the above-described methods.
Fig. 8 illustrates a block diagram of an electronic device 1900 according to an embodiment of the disclosure. For example, electronic device 1900 may be provided as a server. Referring to fig. 8, electronic device 1900 includes a processing component 1922 that further includes one or more processors and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by processing component 1922. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. Further, processing component 1922 is configured to execute instructions to perform the methods described above.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate an operating system based on a memory 1932, such as Windows Server TM ,Mac OS X TM ,Unix TM ,Linux TM ,FreeBSD TM Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1932, including computer program instructions executable by processing component 1922 of electronic device 1900 to perform the methods described above.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present disclosure can be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (7)
1. An image processing method, comprising:
inputting dynamic visual information of a preset scene acquired at a first moment in a first time period into a first feature extraction network to acquire a first feature map;
Inputting a first color image of the preset scene acquired at a second moment in the first time period into a second feature extraction network to acquire a second feature image, wherein the acquisition frequency of dynamic visual information is higher than that of the color image, and the first feature extraction network is trained through the second feature extraction network;
determining a feature variation amount between the second moment and the first moment according to the second feature map and the first feature map;
determining the position information of the target object in the preset scene at the first moment according to the first feature map and the feature variation;
determining the position information of the target object in the preset scene at the first moment according to the first feature map and the feature variation, including:
according to the second feature map and the feature variation, carrying out feature updating processing on the second feature map to obtain a third feature map;
performing target feature extraction processing on the first color image to obtain a feature vector of the target object;
performing convolution processing on the third feature map according to the feature vector of the target object to obtain a correlation thermodynamic diagram between the feature vector and the third feature map;
Determining the position information of the target object at the first moment according to the related thermodynamic diagram;
the method further comprises the steps of:
performing feature extraction processing on a sample color image of a sample scene through a pre-trained second feature extraction network to obtain a first sample feature map;
performing feature extraction processing on sample dynamic visual information of the sample scene through a first feature extraction network to obtain a second sample feature map, wherein the sample dynamic visual information and the sample color image are acquired simultaneously;
determining network loss of a first feature extraction network according to the first sample feature map and the second sample feature map;
and training the first feature extraction network according to the network loss.
2. The method according to claim 1, wherein the method further comprises:
and decoding the third feature map to obtain a second color image at the first moment.
3. The method according to claim 2, wherein the method further comprises:
and according to the position information, carrying out segmentation processing on the target object in the second color image to obtain a segmentation mask diagram of the target object.
4. The method of claim 1, wherein the first feature extraction network comprises a pulsed neural network and the second feature extraction network comprises a convolutional neural network.
5. An image processing apparatus, comprising:
the first feature extraction module is used for inputting the dynamic visual information of the preset scene acquired at the first moment in the first time period into the first feature extraction network to acquire a first feature map;
the second feature extraction module is used for inputting the first color image of the preset scene acquired at the second moment in the first time period into a second feature extraction network to acquire a second feature image, wherein the acquisition frequency of dynamic visual information is higher than that of the color image, and the first feature extraction network is trained through the second feature extraction network;
the characteristic change amount determining module is used for determining the characteristic change amount between the second moment and the first moment according to the second characteristic diagram and the first characteristic diagram;
the position information determining module is used for determining the position information of the target object in the preset scene at the first moment according to the first feature map and the feature variation;
The location information determination module is further to:
according to the second feature map and the feature variation, carrying out feature updating processing on the second feature map to obtain a third feature map;
performing target feature extraction processing on the first color image to obtain a feature vector of the target object;
performing convolution processing on the third feature map according to the feature vector of the target object to obtain a correlation thermodynamic diagram between the feature vector and the third feature map;
determining the position information of the target object at the first moment according to the related thermodynamic diagram;
the apparatus further comprises: the training module is used for carrying out feature extraction processing on the sample color image of the sample scene through a pre-trained second feature extraction network to obtain a first sample feature image; performing feature extraction processing on sample dynamic visual information of the sample scene through a first feature extraction network to obtain a second sample feature map, wherein the sample dynamic visual information and the sample color image are acquired simultaneously; determining network loss of a first feature extraction network according to the first sample feature map and the second sample feature map; and training the first feature extraction network according to the network loss.
6. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the instructions stored in the memory to perform the method of any of claims 1 to 4.
7. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110801139.6A CN113506324B (en) | 2021-07-15 | 2021-07-15 | Image processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110801139.6A CN113506324B (en) | 2021-07-15 | 2021-07-15 | Image processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113506324A CN113506324A (en) | 2021-10-15 |
CN113506324B true CN113506324B (en) | 2024-04-12 |
Family
ID=78012869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110801139.6A Active CN113506324B (en) | 2021-07-15 | 2021-07-15 | Image processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113506324B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114427915A (en) * | 2022-01-21 | 2022-05-03 | 深圳市商汤科技有限公司 | Temperature control method, temperature control device, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615593A (en) * | 2018-11-29 | 2019-04-12 | 北京市商汤科技开发有限公司 | Image processing method and device, electronic equipment and storage medium |
WO2020071683A1 (en) * | 2018-10-05 | 2020-04-09 | 삼성전자 주식회사 | Object recognition method of autonomous driving device, and autonomous driving device |
CN111931844A (en) * | 2020-08-07 | 2020-11-13 | 商汤集团有限公司 | Image processing method and device, electronic equipment and storage medium |
CN113096158A (en) * | 2021-05-08 | 2021-07-09 | 北京灵汐科技有限公司 | Moving object identification method and device, electronic equipment and readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108073929B (en) * | 2016-11-15 | 2023-11-24 | 北京三星通信技术研究有限公司 | Object detection method and device based on dynamic vision sensor |
-
2021
- 2021-07-15 CN CN202110801139.6A patent/CN113506324B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020071683A1 (en) * | 2018-10-05 | 2020-04-09 | 삼성전자 주식회사 | Object recognition method of autonomous driving device, and autonomous driving device |
CN109615593A (en) * | 2018-11-29 | 2019-04-12 | 北京市商汤科技开发有限公司 | Image processing method and device, electronic equipment and storage medium |
CN111931844A (en) * | 2020-08-07 | 2020-11-13 | 商汤集团有限公司 | Image processing method and device, electronic equipment and storage medium |
CN113096158A (en) * | 2021-05-08 | 2021-07-09 | 北京灵汐科技有限公司 | Moving object identification method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113506324A (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112001321B (en) | Network training method, pedestrian re-identification method, device, electronic equipment and storage medium | |
WO2020135127A1 (en) | Pedestrian recognition method and device | |
CN109257645B (en) | Video cover generation method and device | |
CN111553864B (en) | Image restoration method and device, electronic equipment and storage medium | |
CN108985176B (en) | Image generation method and device | |
CN109934275B (en) | Image processing method and device, electronic equipment and storage medium | |
CN111104920B (en) | Video processing method and device, electronic equipment and storage medium | |
CN107784279B (en) | Target tracking method and device | |
CN111523346B (en) | Image recognition method and device, electronic equipment and storage medium | |
CN112991553B (en) | Information display method and device, electronic equipment and storage medium | |
CN111340733B (en) | Image processing method and device, electronic equipment and storage medium | |
CN110532956B (en) | Image processing method and device, electronic equipment and storage medium | |
CN110633700A (en) | Video processing method and device, electronic equipment and storage medium | |
CN109685041B (en) | Image analysis method and device, electronic equipment and storage medium | |
CN112085097A (en) | Image processing method and device, electronic equipment and storage medium | |
CN106534951A (en) | Method and apparatus for video segmentation | |
CN110633715B (en) | Image processing method, network training method and device and electronic equipment | |
CN113032627A (en) | Video classification method and device, storage medium and terminal equipment | |
CN113506229B (en) | Neural network training and image generating method and device | |
CN109376674B (en) | Face detection method, device and storage medium | |
CN110781842A (en) | Image processing method and device, electronic equipment and storage medium | |
CN113506324B (en) | Image processing method and device, electronic equipment and storage medium | |
CN113506325B (en) | Image processing method and device, electronic equipment and storage medium | |
CN110929545A (en) | Human face image sorting method and device | |
CN111339964B (en) | Image processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |