Image processing method and device, electronic device and storage medium

By obtaining the attention image in the target image and using the neural network for feature extraction and association, and directly operating on the target image dimension, the problem of low target image association accuracy in the existing technology is solved, and a more efficient and accurate Target association.

CN113261011BActive Publication Date: 2024-09-20GUANGZHOU YUYUN INFORMATION TECHNOLOGY CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202080000643.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-12-30
Filing Date
2020-03-12
Publication Date
2024-09-20
Estimated Expiration
2040-03-12

AI Technical Summary

Technical Problem

When existing computer vision technology correlates target images, it is greatly affected by the posture of the image acquisition device, resulting in low accuracy of the correlation results, and requires projection matrix calibration, which is highly complex.

Method used

By obtaining the attention image of the target image, using neural networks for feature extraction and association, directly splicing or adding in the target image dimensions, avoiding projection into a common vector space, and directly correlating targets in different target images.

Benefits of technology

The accuracy of the association between target images is improved, the dependence on the posture of the image acquisition device is reduced, the association process is simplified, and the accuracy and efficiency of the target association are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113261011B_ABST
    Figure CN113261011B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image processing method and device, an electronic device and a storage medium, the method comprising: acquiring at least two target images; determining an attention image of at least one target in each target image according to a target detection result of each of the at least two target images; wherein the attention image is used to indicate a position of a target in the target image; and determining an association result of whether there is a corresponding relationship between at least some targets in different target images based on each target image and the attention image of at least one target in each target image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Singapore Provisional Patent Application No. 10201913754X, entitled “IMAGE PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM”, filed on December 30, 2019. The entire contents of this application are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to the field of computer vision technology, and in particular to an image processing method and device, an electronic device, and a storage medium. Background Art

[0003] Computer vision is a technology that uses computers and related equipment to simulate biological vision. It can obtain three-dimensional information of the corresponding scene by processing the collected images or videos. In an application of computer vision, the collected images or videos can be used for target detection to locate the position of the target object in the image. Summary of the invention

[0004] The present disclosure proposes an image processing technology solution.

[0005] According to one aspect of the present disclosure, there is provided an image processing method, comprising:

[0006] acquiring at least two target images;

[0007] Determine, according to the target detection result of each target image in the at least two target images, an attention image of at least one target in each target image; wherein the attention image is used to indicate the position of a target in the target image;

[0008] Based on each target image and the attention image of at least one target in each target image, an association result is determined as to whether there is a corresponding relationship between at least some targets in different target images.

[0009] In a possible implementation, determining, according to the target detection result of each target image in the at least two target images, an attention image of at least one target in each target image includes:

[0010] For a target in each target image, determining a first image region where the target is located according to a target detection result of each target image;

[0011] An attention image of the target is determined according to a first image area in the target image and a second image area in the target image except the first image area.

[0012] In a possible implementation, determining the attention image of the target according to the first image area in the target image and the image area other than the first image area in the target image includes:

[0013] Acquire an initial image whose image size matches the target image;

[0014] Setting the pixel value of a pixel point in a first target image area in the initial image to a first pixel value; wherein the first target image area corresponds to the first image area;

[0015] The pixel values ​​of the pixels in the second target image area in the initial image are set to second pixel values ​​to obtain an attention image of the target, wherein the second target image area corresponds to the second image area, and the first pixel value is not equal to the second pixel value.

[0016] In a possible implementation, the determining, based on each target image and the attention image of at least one target in each target image, whether there is a corresponding relationship between at least some targets in different target images includes:

[0017] Fusing each target image with an attention image of a target in the target image to obtain each image to be processed;

[0018] Perform feature extraction on each image to be processed respectively to obtain a feature map of each image to be processed;

[0019] An association result is determined based on the feature graphs of each image to be processed to determine whether there is a corresponding relationship between at least some of the targets in different target images.

[0020] In a possible implementation, fusing each target image with an attention image of a target in the target image to obtain each image to be processed includes:

[0021] Each target image is concatenated with an attention image of a target in the target image in a set dimension to obtain each image to be processed; or,

[0022] Each target image is added to the attention image of a target in the target image in the set dimension to obtain each image to be processed.

[0023] In a possible implementation, extracting features from each image to be processed to obtain a feature map of each image to be processed includes:

[0024] Each network branch of the neural network is used to extract features of each image to be processed, so as to obtain a feature map of each image to be processed; wherein one network branch extracts features of one image to be processed, and each network branch has the same network structure and network parameters.

[0025] In a possible implementation, determining, according to the feature graphs of each image to be processed, an association result of whether there is a corresponding relationship between at least some of the targets in different target images includes:

[0026] Performing feature association on feature maps of any two images to be processed among the images to be processed to obtain an associated feature map;

[0027] Based on the associated feature graph, an association result is determined to determine whether there is a corresponding relationship between targets in the target image corresponding to the two to-be-processed images associated with the feature graph.

[0028] In a possible implementation, the determining, based on the associated feature map, whether there is a corresponding relationship between targets in the target image corresponding to the two to-be-processed images associated with the feature map, includes:

[0029] Based on the correlation feature graph, a correlation score between targets in a target image corresponding to two to-be-processed images whose feature graphs are associated is obtained;

[0030] When the association score is greater than the score threshold, a potential association between objects in the target image corresponding to the two to-be-processed images to be associated with the feature maps is determined.

[0031] In a possible implementation, the method further includes:

[0032] When the correlation score is less than or equal to the score threshold, it is determined that the objects in the target images corresponding to the two to-be-processed images to be associated with the feature maps are not associated with each other.

[0033] In a possible implementation, the determining, based on the associated feature map, whether there is a corresponding relationship between targets in the target image corresponding to the two to-be-processed images associated with the feature map, includes:

[0034] Based on the correlation feature graph, a correlation score between targets in a target image corresponding to two to-be-processed images whose feature graphs are associated is obtained;

[0035] According to the correlation scores between the respective targets in the target images corresponding to the two images to be processed which are associated with the feature graphs, the targets in different target images are matched to obtain the correlation results of whether there is a corresponding relationship between the respective targets in the different target images; wherein the matched targets belong to different target images.

[0036] In a possible implementation, the correlation scores between the respective targets in the target images corresponding to the two to-be-processed images that are associated according to the feature graphs are matched with the targets in different target images to obtain the correlation results of whether there is a corresponding relationship between the respective targets in the different target images, including:

[0037] Determine the sum of the association scores between the respective targets in the target images corresponding to the two to-be-processed images associated with the feature graphs and between the respective targets in the first target image and the respective targets in the second target image;

[0038] When the sum of the association scores is the largest and greater than a preset sum score threshold, it is determined that the target in the first target image matches the target in the second target image one by one.

[0039] In a possible implementation, the method further includes:

[0040] When the maximum sum of association scores in the sum of association scores is less than or equal to the sum score threshold, it is determined that the object in the first object image does not match the object in the second object image.

[0041] In a possible implementation manner, the at least two target images are obtained by synchronously capturing the same scene at different viewing angles.

[0042] According to another aspect of the present disclosure, there is provided an image processing apparatus, comprising:

[0043] An acquisition module, used for acquiring at least two target images;

[0044] A first determination module is used to determine an attention image of at least one target in each target image according to the target detection result of each target image in the at least two target images; wherein the attention image is used to indicate the position of a target in the target image;

[0045] The second determination module is used to determine the association result of whether there is a corresponding relationship between at least some of the targets in different target images based on each target image and the attention image of at least one target in each target image.

[0046] In a possible implementation, the first determining module includes:

[0047] A first determination submodule is used to determine, for a target in each target image, a first image region where the target is located according to a target detection result of each target image;

[0048] The second determination submodule is used to determine the attention image of the target according to the first image area in the target image and the second image area in the target image except the first image area.

[0049] In a possible implementation, the second determining submodule includes:

[0050] An acquisition unit, used for acquiring an initial image whose image size matches the target image;

[0051] A first setting unit, configured to set the pixel value of a pixel point in a first target image area in the initial image to a first pixel value; wherein the first target image area corresponds to the first image area;

[0052] A second setting unit is used to set the pixel value of a pixel point in a second target image area in the initial image to a second pixel value to obtain an attention image of the target, wherein the second target image area corresponds to the second image area, and the first pixel value is not equal to the second pixel value.

[0053] In a possible implementation, the second determining module includes:

[0054] A fusion submodule, used to fuse each target image with an attention image of a target in the target image to obtain each image to be processed;

[0055] The feature extraction submodule is used to extract features from each image to be processed to obtain a feature map of each image to be processed;

[0056] The judgment submodule is used to determine the association result of whether there is a corresponding relationship between at least some targets in different target images according to the feature maps of each image to be processed.

[0057] In a possible implementation, the fusion submodule includes:

[0058] A splicing unit, used for splicing each target image with an attention image of a target in the target image in a set dimension to obtain each image to be processed; or,

[0059] The adding unit is used to add each target image with the attention image of a target in the target image in a set dimension to obtain each image to be processed.

[0060] In a possible implementation, the feature extraction submodule includes:

[0061] The branch unit is used to use each network branch of the neural network to extract features from each image to be processed, so as to obtain a feature map of each image to be processed; wherein one network branch extracts features from one image to be processed, and each network branch has the same network structure and network parameters.

[0062] In a possible implementation, the feature extraction submodule includes:

[0063] An associating unit, used for performing feature association on feature maps of any two images to be processed among the images to be processed to obtain an associated feature map;

[0064] A determination unit is used to determine, based on the associated feature map, an association result indicating whether there is a corresponding relationship between targets in target images corresponding to two to-be-processed images associated with the feature maps.

[0065] In a possible implementation manner, the determining unit includes:

[0066] A first association subunit, configured to obtain, based on the association feature graph, an association score between targets in a target image corresponding to two to-be-processed images associated with the feature graph;

[0067] The first determination subunit is used to determine the potential association between the targets in the target image corresponding to the two to-be-processed images associated with the feature graphs when the association score is greater than the score threshold.

[0068] In a possible implementation manner, the device further includes:

[0069] The second determining subunit is used to determine that there is no correlation between objects in the target image corresponding to the two to-be-processed images to be associated with the feature graphs when the correlation score is less than or equal to the score threshold.

[0070] In a possible implementation manner, the determining unit includes:

[0071] A second association subunit is used to obtain, based on the association feature map, an association score between targets in a target image corresponding to two to-be-processed images associated with the feature map;

[0072] The matching subunit is used to match the targets in different target images according to the correlation scores between the targets in the target images corresponding to the two images to be processed that are associated with the feature graph, and obtain the correlation results of whether there is a corresponding relationship between the targets in the different target images; wherein the matched targets belong to different target images.

[0073] In a possible implementation, the matching subunit is used to:

[0074] Determine the sum of the association scores between the respective targets in the target images corresponding to the two to-be-processed images associated with the feature graphs and between the respective targets in the first target image and the respective targets in the second target image;

[0075] When the sum of the association scores is the largest and greater than a preset sum score threshold, it is determined that the target in the first target image matches the target in the second target image one by one.

[0076] In a possible implementation, the matching subunit is further configured to:

[0077] When the maximum sum of association scores in the sum of association scores is less than or equal to the sum score threshold, it is determined that the object in the first object image does not match the object in the second object image.

[0078] In a possible implementation manner, the at least two target images are obtained by synchronously capturing the same scene at different viewing angles.

[0079] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0080] processor;

[0081] a memory for storing processor-executable instructions;

[0082] Wherein, the processor is configured to: execute the above-mentioned image processing method.

[0083] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned image processing method is implemented.

[0084] According to one aspect of the present disclosure, a computer program is provided, including a computer-readable code. When the computer-readable code is executed on an electronic device, a processor of the electronic device is instructed to execute the aforementioned image processing method.

[0085] In the disclosed embodiment, at least two target images can be acquired, and then the attention image of at least one target in each target image can be determined based on the target detection result of each target image in the at least two target images, and then the association result of whether there is a corresponding relationship between at least some targets in different target images can be determined based on each target image and the attention image of at least one target in each target image. In this way, the obtained association results can be used to associate targets in multiple different target images, establish connections between targets in scenes captured by multiple image acquisition devices, increase the range of the field of view, and obtain more comprehensive information about the scene.

[0086] 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.

[0087] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0089] Figure 1 A flowchart of an image processing method according to an embodiment of the present disclosure is shown.

[0090] Figure 2 A flowchart showing an example of image processing according to an embodiment of the present disclosure.

[0091] Figure 3 A block diagram showing an example of obtaining an association result of two targets using a neural network according to an embodiment of the present disclosure.

[0092] Figure 4 A block diagram of an image processing apparatus according to an embodiment of the present disclosure is shown.

[0093] Figure 5 A block diagram showing an example of an electronic device according to an embodiment of the present disclosure is shown.

[0094] Figure 6 A block diagram showing an example of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0095] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0096] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0097] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0098] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0099] The image processing scheme provided by the embodiment of the present disclosure can obtain at least two target images, and then determine the attention image of at least one target in each target image based on the target detection result of each target image in the at least two target images, and the attention image can indicate the position of a target in the target image. Then, based on each target image and the attention image of at least one target in each target image, an association result can be obtained to determine whether there is a corresponding relationship between at least some targets in different target images. In this way, one or more targets in different target images can be associated based on the obtained association results to obtain more complete information about the photographed target. For example, by associating the top view and the side view of the same target, more comprehensive information about the target can be obtained.

[0100] In the related art, the targets of multiple target images are usually projected into a common vector space, and the mutually related targets in different target images are determined by calculating the distance between the projections of different targets in the common vector space. In this target association method, when projecting the target into the common vector space, it is necessary to calibrate the projection matrix used for projection, and the projection matrix will be affected by the posture of the image acquisition device, that is, the change of the posture of the image acquisition device will cause the projection matrix to be inaccurate, so that the obtained association result has a large error. The image processing scheme provided by the embodiment of the present disclosure obtains the association result of whether there is a corresponding relationship between multiple targets in different target images through each target image and the attention image of the target in each target image. It is not necessary to project the target into a common vector space, and it is not necessary to calibrate the projection matrix. The association result is less affected by the posture of the image acquisition device, and the accuracy of the association between targets can be improved.

[0101] The embodiments of the present disclosure can be applied to extended scenarios such as object tagging and image association. For example, multiple images collected from different perspectives of the same scene can be associated. As another example, the same object in multiple images can be tagged. The present disclosure is not limited to specific application scenarios. The image processing scheme provided by the embodiments of the present disclosure is described below through examples.

[0102] Figure 1 A flowchart of an image processing method according to an embodiment of the present disclosure is shown. The image processing method can be executed by a terminal device, a server or other information processing device, wherein the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the image processing method can be implemented by a processor calling a computer-readable instruction stored in a memory. The image processing scheme of the embodiment of the present disclosure is described below by taking an image processing device as an example of an execution subject.

[0103] like Figure 1 As shown, the image processing method comprises the following steps:

[0104] Step S11, acquiring at least two target images.

[0105] In the embodiment of the present disclosure, at least two target images captured by the image acquisition device may be obtained. Different target images may come from the same image acquisition device or from different image acquisition devices. The target image may be a separately captured image or an image frame in a captured video stream. Here, the target image may be a color image, which may be understood as an image formed by superimposing three colors: red (R), green (G), and blue (B).

[0106] Step S12, determining an attention image of at least one target in each target image according to the target detection result of each target image in the at least two target images; wherein the attention image is used to indicate the position of a target in the target image.

[0107] In an embodiment of the present disclosure, target detection may be performed on at least two target images respectively to obtain a target detection result for each target image, and then an attention image of one or more objects in each target image may be obtained based on the target detection result of each target image. Here, the target detection result may be a detection result for the projection of the target on the target image, and the detection result may be represented by a detection box. For example, in a traffic scene, the target may be an object that can pass on a traffic road, such as a pedestrian, a motor vehicle, or a non-motor vehicle, and the target detection result may be a detection box that is annotated for the projection of the target in the target image. Here, an attention image may indicate the position of a target in a target image, and the position may be an image position.

[0108] Here, in the case where there are multiple targets, one target can be selected from the multiple targets and an attention image can be obtained for the target, which can reduce the interference between the multiple targets.

[0109] In one possible implementation, for a target in each target image, the first image area where the target is located can be determined based on the target detection result of each target image, and then the attention image of the target can be determined based on the first image area in the target image and the second image area in the target image excluding the first image area.

[0110] In this implementation, for any target image, the first image area of ​​the target marked by the detection box in the target image can be determined based on the detection box corresponding to the target detection result of the target image, and the first image area can be a closed image area. Then, the attention image of the target can be determined based on the first image area in the target image and the second image area other than the first image area in the target image. For example, the pixel values ​​of the pixels in the first image area can be copied and the pixel values ​​of the second image area can be changed, or the pixel values ​​of the copied first image area can be increased or decreased so that the pixel values ​​of the first image area are significantly different from the pixel values ​​of the second image area, thereby obtaining an attention image of a target in the target image. In this way, the image area where the target is located in the attention image can be distinguished from other image areas, thereby improving the accuracy of the association results between targets in different target images.

[0111] In one example of this implementation, an initial image whose image size matches the target image can be obtained, pixel values ​​of pixels in a first target image area in the initial image are set to first pixel values, and pixel values ​​of pixels in a second target image area in the initial image are set to second pixel values, to obtain an attention image of the target, wherein the second target image area corresponds to the second image area, and the first pixel value is not equal to the second pixel value.

[0112] In this example, an initial image may be generated, or the target image may be copied to obtain the initial image. The image size of the initial image matches the target image, that is, it can be understood that the initial image may be the same as the image size of the target image. For example, if the image size of the target image is 3×3 cm, the image size of the initial image is also 3×3 cm. The initial image may include a first target image area, the image position of the first target image area in the initial image may be the same as the image position of the first image area in the target image, the pixel value of the first target image area may be set to a first pixel value, and the first pixel value may be the same as the pixel value of the pixel point in the first image area, that is, the first target image area is a color image area. Alternatively, the first pixel value may be a preset value, for example, a pixel value corresponding to white. The second target image area may be an image area in the initial image that does not include the first target image area, and the pixel value of the second image area may be set to a second pixel value. The second pixel value may be a preset pixel value, for example, a pixel value corresponding to black, and the second pixel value is different from the first pixel value, so that the second image area can be distinguished from the first image area by the pixel value of the pixel point. In this way, an attention image corresponding to the target can be obtained, and the attention image can display the image area corresponding to the target, that is, the attention image can indicate the position of the target and improve the accuracy of the association results between targets of different target images.

[0113] For example, when the target image corresponds to 1 channel, the pixel values ​​of the pixels in the first target image area of ​​the initial image can be directly set to 1, and the pixel values ​​of the pixels in the second target image area can be set to 0 to obtain the attention image. When the target image corresponds to 3 channels, the pixel values ​​of the pixels in the first image area of ​​the target image can be copied to the target image area of ​​the initial image, and the pixel values ​​of the pixels in the second image area can be set to 0 to obtain the attention image.

[0114] Step S13, based on each target image and the attention image of at least one target in each target image, determine the association result of whether there is a corresponding relationship between at least some targets in different target images.

[0115] In the disclosed embodiment, a trained neural network can be used to extract features from each target image and an attention image of a target in the target image to obtain feature maps corresponding to multiple target images. Then, an association result of whether there is a corresponding relationship between targets in different target images can be obtained based on the feature maps corresponding to each target image. The corresponding relationship here can be understood as the targets in different target images being the same target. Here, the neural network can include at least two network branches, and a target image and an attention image of a target in the target image can serve as the input of one network branch. The association result between target detection results of different target images can be the output of the neural network, or the output of the neural network can be feature processed, for example, the output results can be compared, normalized, etc., to obtain an association result between target detection results of different target images.

[0116] Here, the target image is used as the input of the neural network. Compared with the image that only includes the target as the input of the neural network, the target image also includes the image around the target, so that more comprehensive image features can be obtained from the target image. At the same time, the attention image corresponding to the target is also used as the input of the neural network, which can provide the location information of the target, so that the association result between the targets is more accurate.

[0117] In one possible implementation, each target image is fused with an attention image of a target in the target image to obtain each image to be processed, and then feature extraction is performed on each image to be processed to obtain a feature map of each image to be processed. Then, based on the feature map of each image to be processed, it is determined whether there is a corresponding relationship between at least some targets in different target images.

[0118] In this implementation, each target image can be fused with an attention image of a target in the target image to obtain multiple images to be processed. Then, the multiple images to be processed can be used as input information of the neural network, and the neural network is used to extract features of each image to be processed, and finally the association results between targets in different target images can be obtained. By fusing each target image with an attention image of a target in the target image, the image information from the two images can be better combined, and the extracted image features can be made more accurate.

[0119] In one example, each target image is concatenated with an attention image of a target in the target image on a set dimension to obtain each image to be processed; or, each target image is added with an attention image of a target in the target image on a set dimension to obtain each image to be processed.

[0120] In this example, image stitching of each target image with an attention image of a target in the target image on a set dimension can be understood as, for example, stitching of each target image with an attention image of a target in the target image on an image length, image width, or depth dimension, that is, a channel dimension (such as three RGB channels). Taking stitching on the depth dimension as an example, the target image and the attention image are stitched on the depth dimension to form a 6-channel image, and the image size of the obtained image to be processed can be the sum of the sizes of the target image and the attention image on the set dimension. Here, when the depth of the target image and the attention image are the same, the attention image can not only provide the location information of the target, but also provide the image features of the target, so that the feature map extracted by the neural network has more accurate and comprehensive image features.

[0121] In this example, each target image is added to the attention image of a target in the target image in a set dimension, which can be adding each target image to the attention image of a target in the target image in a depth dimension, that is, a channel dimension. Here, the number of channels corresponds to the depth dimension of the image. Each target image and the attention image of the target image can have the same number of channels, for example, the target image and the attention image can both be RGB images, both with 3 channels. Alternatively, the number of channels of each target image and the attention image of a target in the target image can be different, for example, the target image has 3 channels and the attention image has 1 channel. The target image and the attention image of the target image can be added in the depth dimension, for example, the R value, G value, and B value of the pixel points at the corresponding positions of the two images are added, or, when the target image has 3 channels and the attention image has 1 channel, the R value of the pixel point of the target image at the corresponding position is added to the pixel value of the pixel point of the attention image, to obtain the image to be processed, and the number of channels of the image to be processed is the same as the number of channels of the target image. .

[0122] In one example, each network branch of a neural network can be used to extract features from each image to be processed to obtain a feature map of each image to be processed; wherein one network branch extracts features from one image to be processed, and each network branch has the same network structure and network parameters.

[0123] In this example, the network branches of the neural network can be used to extract processing features for each image to be processed. For example, convolution, pooling, channel reduction and other feature extraction are performed on each input image to be processed, and a feature map of each network branch can be obtained. The network results between each network branch can be the same, and each network branch can share network parameters, thereby reducing the complexity of the neural network.

[0124] In one example, feature association may be performed on feature maps of any two images to be processed to obtain an associated feature map, and then based on the associated feature map, an association result is determined to determine whether there is a corresponding relationship between targets in target images corresponding to the two images to be processed whose feature maps are associated.

[0125] In this example, feature association can be performed on the feature maps corresponding to any two of the multiple images to be processed to obtain a correlation feature map. The obtained correlation feature map is further subjected to feature extraction using a neural network. For example, multiple convolutions, batch normalization, linear rectification, full connection and other feature extractions are performed on the obtained correlation feature map to obtain the output of the neural network, which can be used as the correlation result between the targets in the target image corresponding to any two of the above images to be processed. Alternatively, the output of the neural network can be further processed, for example, normalization and standardization can be performed to obtain the correlation result between the targets in the target image corresponding to any two of the above images to be processed. In this implementation method, the targets in different target images can be compared by feature association of the feature maps of any two images to be processed to obtain the correlation result between the targets.

[0126] In one example, based on the associated feature map, a correlation score between targets in the target image corresponding to the two images to be processed that are associated with the feature map can be obtained. When the correlation score is greater than a score threshold, the potential correlation between targets in the target image corresponding to the two images to be processed that are associated with the feature map is determined.

[0127] In this example, a neural network can be used to extract features from the association feature map. For example, the obtained association feature map can be subjected to multiple convolution, batch normalization, linear rectification, full connection and other feature extraction operations to obtain the association score between the targets in the target image corresponding to any of the above-mentioned images to be processed. The association score can represent the degree of association between any two targets in the target image corresponding to any of the above-mentioned images to be processed. For example, the higher the association score, the greater the degree of association between the two targets, and the lower the association score, the smaller the degree of association between the two targets. In this example, the association score can be compared with a preset score threshold. If the obtained association score is greater than the score threshold, it can be considered that there is a potential association between the two targets, that is, the two targets may represent the same target. In this way, targets that may have a corresponding relationship can be quickly screened out in two target images based on the association score between the targets.

[0128] In one example, when the correlation score is less than or equal to the score threshold, it is determined that there is no correlation between objects in the target image corresponding to the two to-be-processed images to be associated with the feature maps.

[0129] In this example, if the obtained association score is less than or equal to the preset score threshold, it can be considered that there is no corresponding relationship between the two targets, that is, the two targets do not represent the same target. In this way, it is possible to quickly determine whether the two targets are the same target based on the association score between any two targets.

[0130] In a possible implementation, based on the association feature map, a correlation score between targets in a target image corresponding to two to-be-processed images associated with the feature map is obtained, and then targets in different target images are matched according to the correlation score between each target in the target image corresponding to the two to-be-processed images associated with the feature map, to obtain a correlation result of whether there is a corresponding relationship between each target in the different target images, wherein the matched targets belong to different target images.

[0131] In this implementation, since each target image may include multiple targets, a target in one target image may be potentially associated with multiple target detection results of another target image, but in fact a target in one target image corresponds to a target in another target image. Therefore, according to the association scores between the targets in the target images corresponding to the image to be processed, the targets in different target images can be matched one by one, so that a target in one target image matches a target in another target image, and an association result of whether there is a corresponding relationship between the targets in different target images is obtained, so as to achieve global matching between multiple targets in different target images. Here, the matched targets can also be marked, for example, the matched targets can be marked with the same number, or marked with the same color or mark, etc., so that the same targets can be easily distinguished.

[0132] In an example of this implementation method, the sum of the association scores between the respective targets in the target images corresponding to the two images to be processed that are associated with the feature graphs can be determined, and then when the sum of the association scores is maximum and greater than a preset sum score threshold, it is determined that the targets in the first target image are matched one-to-one with the targets in the second target image to obtain the matching result.

[0133] In this example, the targets in the two target images can be matched by calculating the sum of the association scores of the association scores between the respective targets. That is, multiple targets in the first target image are matched one by one with multiple targets in the second target image, and then the sum of the association scores is obtained based on the association scores between the matched target pairs. When the sum of the association scores reaches the maximum, it can be considered that the target in the first target image and the target in the second target image are best matched. If the maximum sum of the association scores is greater than a preset sum score threshold, it can be considered that there is a corresponding relationship between the multiple targets in the first target image and the multiple targets in the second target image, and the first target image and the second target image are images taken for the same scene.

[0134] In this example, when the maximum association score sum in the association score sums is less than or equal to the sum score threshold, it is determined that the object in the first object image does not match the object in the second object image.

[0135] Here, if the maximum sum of association scores is less than or equal to the preset sum score threshold, it can be considered that even if the target in the first target image and the target in the second target image achieve the best match, the maximum sum of association scores does not reach the preset sum score threshold, and it can be considered that there is no correspondence between the multiple targets in the first target image and the multiple targets in the second target image, and the first target image and the second target image are not images taken for the same scene. For example, the first target image and the second target image contain both partially identical targets and partially different targets, or the targets contained in the first target image and the second target image are completely different.

[0136] For example, assume that there are three targets in the first target image, namely A, B and C, and there are three targets in the second target image, namely a, b and c. The correlation score between A in the first target image and a in the second target image can be expressed as Aa. The sum of the correlation scores between the targets can be obtained by adding the correlation scores of the target pairs after randomly pairing the three targets in the first target image with the three targets in the second target image. After each random pairing, one target in the first target image is assigned to one target in the second target image. That is, Aa, Bb, Cc corresponds to one random pairing, Aa, Bc, Cb corresponds to one random pairing, Ab, Ba, Cc corresponds to one random pairing, Ab, Bc, Ca corresponds to one random pairing, Ac, Ba, Cb corresponds to one random pairing, Ac, Bb, Ca corresponds to one random pairing, wherein a random pairing with the largest sum of correlation scores is selected, and the sum of correlation scores between the randomly paired target pairs can be the largest sum of correlation scores.

[0137] It should be noted that when pairing targets of different target images, the present disclosure does not limit the specific allocation method. Some related algorithms can be used here, for example, a greedy algorithm, to pair multiple targets in one target image with multiple targets in another target image, so that the sum of the association scores obtained after pairing is maximized, thereby obtaining the best match between targets in different target images.

[0138] Through the image processing solution provided by the embodiment of the present disclosure, accurate association results between different targets can be obtained based on each target image and the attention image of at least one target in each target image. In this way, the obtained association results can be used to associate targets in multiple different target images, establish connections between target images acquired by multiple image acquisition devices, increase the range of the field of view, and obtain more comprehensive information about the current scene.

[0139] Figure 2 A flowchart showing an example of image processing according to an embodiment of the present disclosure.

[0140] An example of the embodiment of the present disclosure also provides an application scenario of associating at least two target images obtained by synchronously capturing the same scene from different viewing angles by multiple image acquisition devices. Figure 2 As shown, the following steps may be included:

[0141] Step S21, obtaining at least two target images obtained by synchronously capturing the same scene at different viewing angles by multiple image acquisition devices; wherein different target images correspond to different image acquisition devices;

[0142] Step S22, determining an attention image of at least one target in each target image according to the target detection result of each target image in the at least two target images;

[0143] Step S23, based on each target image and the attention image of at least one target in the target image, obtain an association result of whether there is a corresponding relationship between at least some targets in different target images.

[0144] In this example, multiple image acquisition devices can synchronously shoot the same scene at different viewing angles, and each image acquisition device shoots at different angles and positions, so that target images of the same scene shot from different angles can be obtained, for example, the front view and the top view of the same object. According to the association results between the targets of different target images, the same target in the target images synchronously acquired by multiple image acquisition devices can be matched, for example, the same target in different target images can be labeled with the same number, color or shape, etc., to achieve the association of the same target in different target images.

[0145] This example is illustrated below by the process of associating objects of two object images.

[0146] Figure 3 A block diagram showing an example of obtaining an association result of two targets using a neural network according to an embodiment of the present disclosure.

[0147] Multiple image acquisition devices can synchronously shoot the same scene at different perspectives. The target images acquired by any two of the multiple image acquisition devices, that is, can be the first image of the first image acquisition device and the second image of the second image acquisition device. Target detection is performed on the first image and the second image respectively to determine the targets respectively included in the first image and the second image. Each target image can have multiple targets. Any one target can be selected from the multiple targets in each target image, and a neural network can be used to determine the association result between the two targets for the selected target. The first image includes the first target, and the attention image obtained based on the first target can be the first attention image. The second image includes the second target, and the attention image obtained based on the second target can be the second attention image.

[0148] The neural network may include two network branches, that is, a first network branch and a second network branch. The first image and the first attention image may be input into the first network branch, and the second image and the second attention image may be input into the second network branch. Taking the processing process of the first network branch as an example, the first image and the first attention image may be spliced ​​in the depth dimension to obtain an input image, wherein the first image branch corresponds to 3 channels, the first attention image corresponds to 3 channels, the input image corresponds to 6 channels, and each channel corresponds to 1 depth. Then, the first network branch may be used to perform convolution processing on the input image, reduce the number of channels of the input image from 6 to 3, and then perform feature extraction on the input image with the reduced number of channels to obtain a feature map of the first network branch, which may be a tensor with 3-dimensional features, and the 3-dimensional features may include length features, width features, and depth features. When performing feature extraction, the initial feature map with the reduced number of channels may be subjected to multiple convolution processing. In the same way, the feature map of the second network branch may be obtained.

[0149] Then, the feature graph of the first network branch and the feature graph of the second network branch are associated using the association layer of the neural network to obtain an associated feature graph. When associating the feature graph of the first network branch with the feature graph of the second network branch, the following association formula (1) can be used:

[0150]

[0151] Among them, c AB It can be a correlation feature map, ,in, represents the set of real numbers. A is the feature vector of the feature map of the first network branch, f B is the feature vector of the feature map of the second network branch, i represents the row of the feature map, corresponding to the length feature of the feature map, j represents the column of the feature map, corresponding to the width feature of the feature map, i and j are both positive integers; k represents the index corresponding to the row and column, for example, k∈{1, 2, 3..., i×j}.

[0152] Then, a global regression process is performed on the associated feature map to obtain the association score between the first target and the second target. The global regression process here may include multiple convolution processes, batch normalization processes, linear rectification processes, and fully connected layer processes. In the same way, the association score between any two targets in the first image and the second image can be obtained. Then, according to the association scores of the multiple target pairs, one-to-one matching can be performed on the multiple first targets and the multiple second targets, so that the sum of the association scores between the multiple target pairs after matching is maximized. After determining the matching target pairs, the matching target pairs can be annotated in the first image and the second image.

[0153] Through the above image processing scheme, the target image includes not only the image features of the image area where the target is located, but also the image features of the image area around the target, so that more comprehensive image features can be obtained through the target image. The attention image includes the location information and image features of the target, so that the location information and image features of the target can be further combined to obtain the association result of whether the two targets are associated.

[0154] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.

[0155] In addition, the present disclosure also provides an image processing device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any image processing method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.

[0156] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0157] Figure 4 A block diagram of an image processing device according to an embodiment of the present disclosure is shown. Figure 4 As shown, the image processing device includes:

[0158] An acquisition module 41, used to acquire at least two target images;

[0159] A first determination module 42 is used to determine an attention image of at least one target in each target image according to the target detection result of each target image in the at least two target images; wherein the attention image is used to indicate the position of a target in the target image;

[0160] The second determination module 43 is used to determine the association result of whether there is a corresponding relationship between at least some of the targets in different target images based on each target image and the attention image of at least one target in each target image.

[0161] In a possible implementation, the first determining module 42 includes:

[0162] A first determination submodule is used to determine, for a target in each target image, a first image region where the target is located according to a target detection result of each target image;

[0163] The second determination submodule is used to determine the attention image of the target according to the first image area in the target image and the second image area in the target image except the first image area.

[0164] In a possible implementation, the second determining submodule 42 includes:

[0165] An acquisition unit, used for acquiring an initial image whose image size matches the target image;

[0166] A first setting unit, configured to set the pixel value of a pixel point in a first target image area in the initial image to a first pixel value; wherein the first target image area corresponds to the first image area;

[0167] A second setting unit is used to set the pixel value of a pixel point in a second target image area in the initial image to a second pixel value to obtain an attention image of the target, wherein the second target image area corresponds to the second image area, and the first pixel value is not equal to the second pixel value.

[0168] In a possible implementation, the second determining module 42 includes:

[0169] A fusion submodule, used to fuse each target image with an attention image of a target in the target image to obtain each image to be processed;

[0170] The feature extraction submodule is used to extract features from each image to be processed to obtain a feature map of each image to be processed;

[0171] The judgment submodule is used to determine the association result of whether there is a corresponding relationship between at least some targets in different target images according to the feature maps of each image to be processed.

[0172] In a possible implementation, the fusion submodule includes:

[0173] A splicing unit, used for splicing each target image with an attention image of a target in the target image in a set dimension to obtain each image to be processed; or,

[0174] The adding unit is used to add each target image with the attention image of a target in the target image in a set dimension to obtain each image to be processed.

[0175] In a possible implementation, the feature extraction submodule includes:

[0176] The branch unit is used to use each network branch of the neural network to extract features from each image to be processed, so as to obtain a feature map of each image to be processed; wherein one network branch extracts features from one image to be processed, and each network branch has the same network structure and network parameters.

[0177] In a possible implementation, the feature extraction submodule includes:

[0178] An associating unit, used for performing feature association on feature maps of any two images to be processed among the images to be processed to obtain an associated feature map;

[0179] A determination unit is used to determine, based on the associated feature map, an association result indicating whether there is a corresponding relationship between targets in target images corresponding to two to-be-processed images associated with the feature maps.

[0180] In a possible implementation manner, the determining unit includes:

[0181] A first association subunit, configured to obtain, based on the association feature graph, an association score between targets in a target image corresponding to two to-be-processed images associated with the feature graph;

[0182] The first determination subunit is used to determine the potential association between the targets in the target image corresponding to the two to-be-processed images associated with the feature graphs when the association score is greater than the score threshold.

[0183] In a possible implementation manner, the device further includes:

[0184] The second determining subunit is used to determine that there is no correlation between objects in the target image corresponding to the two to-be-processed images to be associated with the feature graphs when the correlation score is less than or equal to the score threshold.

[0185] In a possible implementation manner, the determining unit includes:

[0186] A second association subunit is used to obtain, based on the association feature map, an association score between targets in a target image corresponding to two to-be-processed images associated with the feature map;

[0187] The matching subunit is used to match the targets in different target images according to the correlation scores between the targets in the target images corresponding to the two images to be processed that are associated with the feature graph, and obtain the correlation results of whether there is a corresponding relationship between the targets in the different target images; wherein the matched targets belong to different target images.

[0188] In a possible implementation, the matching subunit is used to:

[0189] Determine the sum of the association scores between the respective targets in the target images corresponding to the two to-be-processed images associated with the feature graphs and between the respective targets in the first target image and the respective targets in the second target image;

[0190] When the sum of the association scores is the largest and greater than a preset sum score threshold, it is determined that the target in the first target image matches the target in the second target image one by one.

[0191] In a possible implementation, the matching subunit is further configured to:

[0192] When the maximum sum of association scores in the sum of association scores is less than or equal to the sum score threshold, it is determined that the object in the first object image does not match the object in the second object image.

[0193] In a possible implementation manner, the at least two target images are obtained by synchronously capturing the same scene at different viewing angles.

[0194] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0195] The embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

[0196] The embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured as the above method.

[0197] The electronic device may be provided as a terminal, a server, or a device in other forms.

[0198] Figure 5 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0199] Reference Figure 5 , the 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 .

[0200] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0201] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0202] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0203] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. 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 the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the 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 operating 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 a focal length and optical zoom capability.

[0204] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0205] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0206] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative image processing of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change 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 an optical 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0207] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0208] 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 components to perform the above methods.

[0209] In an exemplary embodiment, a non-volatile or volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to perform the above method.

[0210] Figure 6 1 is a block diagram of an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Figure 6 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0211] The electronic device 1900 may also include a power supply 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 based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0212] In an exemplary embodiment, a non-volatile or volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0213] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0214] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, 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 disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination of the above. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0215] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0216] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0217] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0218] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0219] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0220] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0221] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. An image processing method, characterized in that: The method comprises: Acquire at least two target images of the same scene obtained by synchronously capturing multiple image acquisition devices at different viewing angles; Determine, according to the target detection result of each target image in the at least two target images, an attention image of at least one target in each target image; wherein the attention image is used to indicate the position of a target in the target image; Based on each target image and the attention image of at least one target in each target image, determining an association result of whether there is a corresponding relationship between at least some targets in different target images; The step of determining, based on each target image and the attention image of at least one target in each target image, whether there is a corresponding relationship between at least some targets in different target images includes: Fusing each target image with an attention image of a target in the target image to obtain each image to be processed; Perform feature extraction on each image to be processed respectively to obtain a feature map of each image to be processed; An association result is determined based on the feature graphs of each image to be processed to determine whether there is a corresponding relationship between at least some of the targets in different target images.

2. The method according to claim 1, characterized in that The step of determining, according to the target detection result of each target image in the at least two target images, an attention image of at least one target in each target image comprises: For a target in each target image, determining a first image region where the target is located according to a target detection result of each target image; An attention image of the target is determined according to a first image area in the target image and a second image area in the target image except the first image area.

3. The method according to claim 2, characterized in that The step of determining the attention image of the target according to the first image area in the target image and the image area other than the first image area in the target image comprises: Acquire an initial image whose image size matches the target image; Setting the pixel value of a pixel point in a first target image area in the initial image to a first pixel value; wherein the first target image area corresponds to the first image area; The pixel values ​​of the pixels in the second target image area in the initial image are set to second pixel values ​​to obtain an attention image of the target, wherein the second target image area corresponds to the second image area, and the first pixel value is not equal to the second pixel value.

4. The method according to any one of claims 1 to 3, characterized in that: The step of fusing each target image with an attention image of a target in the target image to obtain each image to be processed comprises: Each target image is concatenated with an attention image of a target in the target image in a set dimension to obtain each image to be processed; or, Each target image is added to the attention image of a target in the target image in the set dimension to obtain each image to be processed.

5. The method according to any one of claims 1 to 3, characterized in that: The correlation result of determining whether there is a corresponding relationship between at least some of the targets in different target images according to the feature graphs of each image to be processed includes: Performing feature association on feature maps of any two images to be processed among the images to be processed to obtain an associated feature map; Based on the associated feature graph, an association result is determined to determine whether there is a corresponding relationship between targets in the target image corresponding to the two to-be-processed images associated with the feature graph.

6. The method according to claim 5, characterized in that The determining, based on the associated feature graph, whether there is a corresponding relationship between targets in the target image corresponding to the two to-be-processed images associated with the feature graph, includes: Based on the correlation feature graph, a correlation score between targets in a target image corresponding to two to-be-processed images whose feature graphs are associated is obtained; When the correlation score is greater than the score threshold, determining a potential correlation between targets in the target image corresponding to the two to-be-processed images with which the feature graphs are correlated; When the correlation score is less than or equal to the score threshold, it is determined that the objects in the target images corresponding to the two to-be-processed images to be associated with the feature maps are not associated with each other.

7. The method according to claim 5, characterized in that The determining, based on the associated feature graph, whether there is a corresponding relationship between targets in the target image corresponding to the two to-be-processed images associated with the feature graph, includes: Based on the correlation feature graph, a correlation score between targets in a target image corresponding to two to-be-processed images whose feature graphs are associated is obtained; According to the correlation scores between the respective targets in the target images corresponding to the two images to be processed which are associated with the feature graphs, the targets in different target images are matched to obtain the correlation results of whether there is a corresponding relationship between the respective targets in the different target images; wherein the matched targets belong to different target images.

8. The method according to claim 7, characterized in that The correlation scores between the respective targets in the target images corresponding to the two to-be-processed images that are associated according to the feature graphs are matched to the targets in different target images to obtain the correlation results of whether there is a corresponding relationship between the respective targets in the different target images, including: Determine the sum of the association scores between the respective targets in the target images corresponding to the two to-be-processed images associated with the feature graphs and between the respective targets in the first target image and the respective targets in the second target image; When the sum of the association scores is the largest and greater than a preset sum score threshold, determining that the target in the first target image matches the target in the second target image one by one; When the maximum sum of association scores in the sum of association scores is less than or equal to the sum score threshold, it is determined that the object in the first object image does not match the object in the second object image.

9. An image processing device, characterized in that: The device comprises: An acquisition module, used to acquire at least two target images obtained by synchronously acquiring the same scene from different viewing angles by multiple image acquisition devices; A first determination module is used to determine an attention image of at least one target in each target image according to the target detection result of each target image in the at least two target images; wherein the attention image is used to indicate the position of a target in the target image; A second determination module is used to determine, based on each target image and the attention image of at least one target in each target image, whether there is an association result of a corresponding relationship between at least some targets in different target images; Wherein, the second determining module includes: A fusion submodule, used to fuse each target image with an attention image of a target in the target image to obtain each image to be processed; The feature extraction submodule is used to extract features from each image to be processed to obtain a feature map of each image to be processed; The judgment submodule is used to determine the association result of whether there is a corresponding relationship between at least some targets in different target images according to the feature maps of each image to be processed.

10. The device according to claim 9, characterized in that The first determining module includes: A first determination submodule is used to determine, for a target in each target image, a first image region where the target is located according to a target detection result of each target image; The second determination submodule is used to determine the attention image of the target according to the first image area in the target image and the second image area in the target image except the first image area.

11. The device according to claim 10, characterized in that The second determining submodule includes: An acquisition unit, used for acquiring an initial image whose image size matches the target image; A first setting unit, configured to set the pixel value of a pixel point in a first target image area in the initial image to a first pixel value; wherein the first target image area corresponds to the first image area; A second setting unit is used to set the pixel value of a pixel point in a second target image area in the initial image to a second pixel value to obtain an attention image of the target, wherein the second target image area corresponds to the second image area, and the first pixel value is not equal to the second pixel value.

12. The device according to any one of claims 9 to 11, characterized in that: The fusion submodule comprises: A splicing unit is used to splice each target image with an attention image of a target in the target image in a set dimension to obtain each image to be processed; or, The adding unit is used to add each target image with the attention image of a target in the target image in a set dimension to obtain each image to be processed.

13. The device according to any one of claims 9 to 11, characterized in that: The feature extraction submodule comprises: An associating unit, used for performing feature association on feature maps of any two images to be processed among the images to be processed to obtain an associated feature map; A determination unit is used to determine, based on the associated feature map, an association result indicating whether there is a corresponding relationship between targets in target images corresponding to two to-be-processed images associated with the feature maps.

14. The device according to claim 13, characterized in that The determining unit comprises: A first association subunit, configured to obtain, based on the association feature graph, an association score between targets in a target image corresponding to two to-be-processed images associated with the feature graph; A first determining subunit is used to determine, when the association score is greater than a score threshold, a potential association between targets in a target image corresponding to two to-be-processed images associated with the feature graphs; The second determining subunit is used to determine that there is no correlation between objects in the target image corresponding to the two to-be-processed images to be associated with the feature graphs when the correlation score is less than or equal to the score threshold.

15. The device according to claim 13, characterized in that The determining unit comprises: A second association subunit is used to obtain, based on the association feature map, an association score between targets in a target image corresponding to two to-be-processed images associated with the feature map; The matching subunit is used to match the targets in different target images according to the correlation scores between the targets in the target images corresponding to the two images to be processed that are associated with the feature graph, and obtain the correlation results of whether there is a corresponding relationship between the targets in the different target images; wherein the matched targets belong to different target images.

16. The device according to claim 15, characterized in that The matching subunit is used for: Determine the sum of the association scores between the respective targets in the target images corresponding to the two to-be-processed images associated with the feature graphs and between the respective targets in the first target image and the respective targets in the second target image; When the sum of the association scores is the largest and greater than a preset sum score threshold, determining that the target in the first target image matches the target in the second target image one by one; When the maximum sum of association scores in the sum of association scores is less than or equal to the sum score threshold, it is determined that the object in the first object image does not match the object in the second object image.

17. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 8.

18. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

19. A computer program product comprising computer program instructions, characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Monitoring video multi-target tracking method based on deep learning

    CN107330920A

  • Object verification method, device and electronic device

    CN108229493A

  • Identity verification method and device and computer readable storage medium

    CN108960209A

  • Image shooting direction identification method, server and monitoring method, system and video shooting equipment

    CN108965687A

  • Image processing method and device, electronic device, and storage medium

    CN109241835A