WO2021027344A1 - Image processing method and device, electronic apparatus, and storage medium - Google Patents
Image processing method and device, electronic apparatus, and storage medium Download PDFInfo
- Publication number
- WO2021027344A1 WO2021027344A1 PCT/CN2020/089402 CN2020089402W WO2021027344A1 WO 2021027344 A1 WO2021027344 A1 WO 2021027344A1 CN 2020089402 W CN2020089402 W CN 2020089402W WO 2021027344 A1 WO2021027344 A1 WO 2021027344A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- feature
- features
- images
- similarity
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/55—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
Definitions
- the present disclosure relates to the field of computer vision technology, and in particular to an image processing method and device, electronic equipment, and storage medium.
- the present disclosure provides a technical solution for image processing.
- an image processing method including: acquiring an image data set, the image data set including a plurality of images and first indexes respectively associated with the plurality of images, the first The index is used to determine the spatio-temporal data of the object in the image; perform distributed clustering processing on the images in the image data set to obtain at least one cluster; based on the obtained first cluster associated with the images in the cluster The index determines the spatiotemporal trajectory information of the object corresponding to the cluster.
- the method further includes: acquiring image features of the input image; performing quantization processing on the image features of the input image to obtain the quantized features of the input image; based on the quantized features of the input image And the cluster center of the at least one cluster obtained by the distributed clustering process to determine the cluster where the input image is located.
- the determining the cluster where the input image is located based on the quantized feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering processing includes: Obtain the third degree of similarity between the quantized feature of the input image and the quantized feature of the cluster center of the at least one cluster obtained by the distributed clustering process; determine the degree of similarity between the quantized feature of the input image The K3 class centers with the third highest similarity, where K3 is an integer greater than or equal to 1, obtain the fourth similarity between the image features of the input image and the image features of the K3 class centers; in response to the The fourth similarity between the image feature of any one of the K3 class centers and the image feature of the input image is the highest, and the fourth similarity is greater than the third threshold, the input image is added to any one of the The cluster corresponding to the cluster center.
- the determining the cluster where the input image is located based on the quantized feature of the input image and the cluster center obtained by the distributed clustering processing further includes responding to There is no class center whose fourth similarity with the image features of the input image is greater than the third threshold, and the distributed clustering is performed based on the quantized features of the input image and the quantized features of the images in the image data set. Class processing, at least one new cluster is obtained.
- the first index includes at least one of the following information: the collection time of the image, the collection location, the identification of the image collection device that collected the image, and the installation of the image collection device s position.
- the performing distributed clustering processing on the images in the image data set to obtain at least one cluster includes: acquiring image features of the images in the image data set in a distributed and parallel manner Distributed parallel quantization processing on the image features to obtain the quantized features corresponding to the image features; based on the quantized features corresponding to the image in the image data set, the distributed clustering processing is performed to obtain the At least one cluster.
- the distributed and parallel acquisition of the image features of the images in the image data set includes: grouping the multiple images in the image data set to obtain multiple image groups Input the multiple image groups into multiple feature extraction models, and use the multiple feature extraction models to execute feature extraction processing of images in the image group corresponding to the feature extraction model in a distributed and parallel manner to obtain the multiple The image features of each image, where each feature extraction model inputs different image groups.
- the distributed and parallel quantization processing on the image features to obtain the quantized features corresponding to the image features includes: grouping the image features of the multiple images to obtain multiple The first grouping, the first grouping includes image features of at least one image; the quantization processing of the image features of the plurality of first groups is executed in parallel in a distributed manner to obtain the quantized features corresponding to the image features.
- the method before the distributed and parallel execution of the quantization processing of the image features of the multiple first groups to obtain the quantized features corresponding to the image features, the method further includes: Configure second indexes for each of the first groups to obtain multiple second indexes; the distributed and parallel execution of the quantization processing of the image features of the multiple first groups to obtain the quantized features corresponding to the image features includes: The plurality of second indexes are respectively allocated to a plurality of quantizers, and each of the plurality of quantizers is allocated a different second index; the plurality of quantizers are used to execute the allocated second indexes respectively in parallel Quantization processing of image features in the first group corresponding to the second index.
- the quantization processing includes product quantization encoding processing.
- the performing the distributed clustering process based on the quantitative features corresponding to the images in the image data set to obtain the at least one cluster includes: obtaining the image data set The first degree of similarity between the quantized feature of any image and the quantized features of the rest of the image; based on the first degree of similarity, determine the K1 neighbor image of the any image, and the quantized feature of the K1 neighbor image is The first K1 quantized features with the highest similarity of the quantized features of any image, where K1 is an integer greater than or equal to 1, and the distribution is determined by using the any image and K1 neighboring images of the any image The clustering result of the formula clustering process.
- the determining the clustering result of the distributed clustering process by using any image and K1 neighbor images of the any image includes: selecting from the K1 neighbor images A first image set whose first similarity with the quantized feature of any image is greater than a first threshold; mark all images in the first image set and any image as the first state, and based on Each image marked as a first state forms a cluster, and the first state is a state including the same object in the image.
- the determining the clustering result of the distributed clustering processing by using the any image and the K1 neighbor images of the any image includes: acquiring image features of the any image The second degree of similarity with the image features of the K1 neighbor image of any image; based on the second degree of similarity, the K2 neighbor image of the any image is determined, and the image feature of the K2 neighbor image is The K2 image features with the second highest similarity to the image features of any of the image features in the K1 neighbor images, K2 is an integer greater than or equal to 1 and less than or equal to K1; and the K2 neighbor images are selected from the K2 neighbor images.
- the method before the acquiring the first similarity between the quantized features of any image in the image data set and the quantized features of other images, the method further includes: Grouping the quantized features of the multiple images to obtain multiple second groups, where the second grouping includes the quantized features of at least one image; and, obtaining the quantized features of any image in the image data set and
- the first degree of similarity between the quantized features of the remaining images includes: obtaining the first degree of similarity between the quantized features of the images in the second group and the quantized features of the remaining images in a distributed and parallel manner.
- the method before the distributed and parallel acquisition of the first similarity between the quantized features of the images in the second group and the quantized features of the remaining images, the method further includes: The plurality of second groups respectively configure third indexes to obtain a plurality of third indexes; and, the distributed and parallel acquisition of the quantized features of the images in the second group and the quantized features of the remaining images
- the first similarity includes: establishing a similarity calculation task corresponding to the third index based on the third index, and the similarity calculation task is to obtain the target image in the second group corresponding to the third index
- the first similarity between the quantized feature and the quantized features of all images other than the target image; the similarity acquisition task corresponding to each third index of the plurality of third indexes is executed in a distributed and parallel manner.
- the method further includes: determining the cluster center of the cluster obtained by the distributed clustering processing; configuring a fourth index for the cluster center, and storing the fourth index in association with each other. Index and corresponding class center.
- the determining the cluster center of the cluster obtained by the distributed clustering processing includes: determining the cluster center based on the average value of the image features of the images in the at least one cluster. State the cluster center.
- the determining the spatiotemporal trajectory information of the object corresponding to the cluster based on the obtained first index associated with the images in the cluster includes: based on each image in the cluster The associated first index determines the time information and location information of the object corresponding to the cluster; and determines the spatiotemporal trajectory information of the object based on the time information and location information.
- the method further includes: determining an object identity corresponding to each of the clusters based on the identity feature of at least one object in the identity feature library.
- the determining the object identity corresponding to each of the clusters based on the identity feature of at least one object in the identity feature library includes: obtaining the quantitative feature of the known object in the identity feature library ; Determine the fifth similarity between the quantitative feature of the known object and the quantitative feature of the at least one cluster center, and determine the K4 with the fifth highest similarity to the quantitative feature of the cluster center Quantified features of known objects; acquiring the sixth similarity between the image features of the cluster center and the corresponding image features of K4 known objects; responding to the K4 known object’s
- the sixth similarity between the image feature and the image feature of the class center is the highest and the sixth similarity is greater than a fourth threshold, and it is determined that the known object with the highest sixth similarity corresponds to the class center
- the cluster matches includes: obtaining the quantitative feature of the known object in the identity feature library ; Determine the fifth similarity between the quantitative feature of the known object and the quantitative feature of the at least one cluster center, and determine the K4 with the fifth highest similarity to the quantitative feature of the cluster
- the determining the object identity corresponding to each of the clusters based on the identity feature of at least one object in the identity feature library further includes: responding to the image features of the K4 known objects The sixth similarity with the image feature of the corresponding cluster center is all less than the fourth threshold, and it is determined that there is no cluster matching the known object.
- an image processing device which includes: an acquisition module for acquiring an image data set, the image data set including a plurality of images and a first image associated with the plurality of images.
- An index, the first index is used to determine the spatiotemporal data of the object in the image;
- a clustering module is used to perform distributed clustering processing on the images in the image data set to obtain at least one cluster; determine The module is used to determine the spatiotemporal trajectory information of the object corresponding to the cluster based on the obtained first index associated with the image in the cluster.
- the device further includes an incremental clustering module, which is used to obtain image features of the input image; perform quantization processing on the image features of the input image to obtain the quantized features of the input image; Determine the cluster where the input image is located based on the quantitative feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process.
- an incremental clustering module which is used to obtain image features of the input image; perform quantization processing on the image features of the input image to obtain the quantized features of the input image; Determine the cluster where the input image is located based on the quantitative feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process.
- the incremental clustering module is further configured to obtain the difference between the quantitative feature of the input image and the quantitative feature of the cluster center of the at least one cluster obtained by the distributed clustering process.
- K3 is an integer greater than or equal to 1.
- the incremental clustering module is further configured to, in the case that there is no cluster center with a fourth similarity greater than a third threshold between the image features of the input image, based on the The quantized features of the input image and the quantized features of the images in the image data set execute the distributed clustering process to obtain at least one new cluster.
- the first index includes at least one of the following information: the collection time of the image, the collection location, the identification of the image collection device that collected the image, and the installation of the image collection device s position.
- the clustering module includes: a first distribution processing unit, which is used to obtain image features of the images in the image data set in a distributed and parallel manner; a second distribution processing unit, which uses Distributedly perform quantization processing on the image features in parallel to obtain the quantized features corresponding to the image features; a clustering unit is used to execute the distributed based on the quantized features corresponding to the image in the image data set Clustering processing to obtain the at least one cluster.
- the first distribution processing unit is further configured to group the multiple images in the image data set to obtain multiple image groups; and input the multiple image groups into multiple image groups respectively.
- a feature extraction model which uses the multiple feature extraction models to execute feature extraction processing of images in an image group corresponding to the feature extraction model in a distributed and parallel manner to obtain image features of the multiple images, wherein each feature extraction model The input image group is different.
- the second distribution processing unit is further configured to perform grouping processing on the image features of the multiple images to obtain multiple first groups, and the first group includes the image features of at least one image ; Distributed and parallel execution of the quantization processing of the image features of the plurality of first groups, to obtain the quantized feature corresponding to the image feature.
- the second distribution processing unit is further configured to execute the quantization processing of the image features of the plurality of first groups in the distributed parallel to obtain the quantized feature corresponding to the image feature, Respectively configure second indexes for the plurality of first groups to obtain a plurality of second indexes; and are used to allocate the plurality of second indexes to a plurality of quantizers, each of the plurality of quantizers The allocated second indexes are different; and the multiple quantizers are used to respectively execute quantization processing of image features in the first group corresponding to the allocated second indexes in parallel.
- the quantization processing includes product quantization encoding processing.
- the clustering unit is further configured to obtain a first degree of similarity between a quantized feature of any image in the image data set and quantized features of other images; based on the first degree of similarity, Determine the K1 neighbor image of any image, the quantized feature of the K1 neighbor image is the K1 quantized feature with the highest first similarity to the quantized feature of the any image, and the K1 is greater than or equal to 1 Integer; the clustering result of the distributed clustering process is determined by using the any image and the K1 neighbor image of the any image.
- the clustering unit is further configured to select, from the K1 neighboring images, a first image set whose first similarity with the quantized feature of any image is greater than a first threshold. ; Mark all the images in the first image set and any one of the images as a first state, and form a cluster based on each image marked as the first state, the first state is that the images include the same object status.
- the clustering unit is further configured to obtain a second degree of similarity between the image feature of any image and the image feature of the K1 neighbor image of the any image; based on the first Second similarity, determining the K2 neighbor image of any image, and the image feature of the K2 neighbor image is the K2 image feature with the second highest similarity between the K1 neighbor image and the image feature of the any image , K2 is an integer greater than or equal to 1 and less than or equal to K1; selecting a second image set whose second similarity with the image feature of any image is greater than a second threshold from the K2 neighboring images; All the images in the second image set and any one of the images are marked as the first state, and a cluster is formed based on each image marked as the first state, and the first state is the images that include the same object status.
- the clustering unit is further configured to compare the image data with the first similarity between the quantized features of any image in the image dataset and the quantized features of other images.
- the quantized features of the multiple images in the data set are grouped to obtain multiple second groups, where the second group includes the quantized features of at least one image; and the quantization of any image in the image data set is obtained
- the first degree of similarity between the features and the quantized features of the remaining images includes: obtaining the first degree of similarity between the quantized features of the images in the second group and the quantized features of the remaining images in a distributed and parallel manner.
- the clustering unit is further configured to obtain the first similarity between the quantized features of the images in the second group and the quantized features of the remaining images in the distributed and parallel manner.
- the first similarity between the two includes: establishing a similarity calculation task corresponding to the third index based on the third index, and the similarity calculation task is to obtain a target in the second group corresponding to the third index
- the first similarity between the quantized feature of the image and the quantized features of all the images except the target image; the similarity acquisition task corresponding to each third index of the plurality of third indexes is executed in a distributed and parallel manner.
- the class center determining module is used to determine the class center of the cluster obtained by the distributed clustering process; configure a fourth index for the class center and store it in association The fourth index and the corresponding class center.
- the cluster center determining module is further configured to determine the cluster center based on the average value of the image features of each image in the at least one cluster.
- the determining module is further configured to determine the time information and location information of the object corresponding to the cluster based on the first index associated with each image in the cluster; based on the time information and The location information determines the spatiotemporal trajectory information of the object.
- the device further includes an identity determining module, which is configured to determine the identity of the object corresponding to each cluster based on the identity feature of at least one object in the identity feature library.
- the identity determination module is further configured to obtain the quantitative characteristics of the known objects in the identity feature library; determine the quantitative characteristics of the known objects and the cluster center of the at least one cluster Quantify the fifth similarity between the quantized features, and determine the quantized features of the K4 known objects with the fifth highest similarity to the quantized features of the class center; obtain the image features of the class center and the corresponding K4
- the sixth degree of similarity between the image features of known objects; the sixth degree of similarity between the image feature of a known object in the K4 known objects and the image feature of the class center is the highest and the sixth degree of similarity When the similarity is greater than the fourth threshold, it is determined that the known object with the sixth highest similarity matches the cluster corresponding to the cluster center.
- the identity determination module is further configured to: when the sixth similarity between the image features of the K4 known objects and the image features of the corresponding class center is less than the fourth threshold , It is determined that there is no cluster matching the known object.
- an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call the instructions stored in the memory to Perform the method described in any one of the first aspect.
- a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement the method described in any one of the first aspects.
- a computer program comprising computer readable code, when the computer readable code runs in an electronic device, the processor in the electronic device executes Implement the method described in any one of the first aspect.
- each image can be configured with corresponding index information to determine the spatiotemporal data of objects in the image. Based on this configuration, the spatiotemporal trajectories of different objects can be analyzed. After performing distributed clustering, the image set corresponding to each object is obtained (a cluster is equivalent to the image set of an object), and the index information (first index) associated with each image in the cluster can be obtained.
- the spatiotemporal trajectory information of the objects corresponding to the clustering can realize the trajectory analysis of different objects.
- the embodiments of the present disclosure adopt a distributed clustering method, which can improve the efficiency of clustering, so that the spatiotemporal trajectory of the object can be obtained quickly and effectively.
- Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure
- Fig. 2 shows a flowchart of step S20 in an image processing method according to an embodiment of the present disclosure
- Fig. 3 shows a flowchart of step S21 in an image processing method according to an embodiment of the present disclosure
- Fig. 4 shows a flowchart of step S22 in an image processing method according to an embodiment of the present disclosure
- Fig. 5 shows a flowchart of step S23 in an image processing method according to an embodiment of the present disclosure
- Fig. 6 shows a flowchart of step S233 in an image processing method according to an embodiment of the present disclosure
- Fig. 7 shows another flowchart of step S233 in an image processing method according to an embodiment of the present disclosure
- Fig. 8 shows a flowchart of an image processing method for performing clustering increment processing according to an embodiment of the present disclosure
- Fig. 9 shows a flowchart of step S43 in an image processing method according to an embodiment of the present disclosure
- FIG. 10 shows a flowchart of determining the identity of objects matched by clusters in an image processing method according to an embodiment of the present disclosure
- Fig. 11 shows a block diagram of an image processing device according to an embodiment of the present disclosure
- Fig. 12 shows a block diagram of an electronic device according to an embodiment of the present disclosure
- FIG. 13 shows a block diagram of another electronic device according to an embodiment of the present disclosure.
- the present disclosure also provides image processing devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image processing method provided in the present disclosure.
- image processing devices electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image processing method provided in the present disclosure.
- the image processing method provided by the embodiments of the present disclosure can be applied to any image processing device.
- the image processing method can be executed by a terminal device or a server or other processing device.
- the terminal device can be a User Equipment (UE), Mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc., are not illustrated in this disclosure.
- the image processing method may be implemented by a processor calling computer-readable instructions stored in the memory.
- Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure.
- the image processing method may include:
- S10 Obtain an image data set, the image data set including a plurality of images and a first index respectively associated with the plurality of images, the first index being used to determine spatiotemporal data of objects in the images;
- the image data set may include multiple images, and the multiple images may be acquired by an image acquisition device, and each image may be acquired by the same image acquisition device, or may also be acquired by different image devices,
- image capture devices can be deployed in streets, shopping malls, security areas, homes, communities, or other areas, and images in corresponding places can be captured by deploying image capture devices.
- the image obtained by the embodiment of the present disclosure may be an image captured by at least one image capture device, and the image capture device may include a mobile phone, a camera, or other devices capable of capturing images, and the present disclosure will not illustrate them one by one.
- the images in the image data set of the embodiments of the present disclosure may include objects of the same type, for example, they may include person objects.
- the time and space of the same person object can be obtained through the image processing method of the embodiments of the present disclosure. Track information.
- the images in the image data set may also include other types of objects, such as animals, so that the spatiotemporal trajectory of the same animal can be determined.
- the present disclosure does not specifically limit the type of object in the image.
- the method of obtaining the image data set may include directly connecting with an image capturing device to receive the captured images, or may also connect with a server or other electronic devices to receive images transmitted by the server or other electronic devices.
- the images in the image data set in the embodiments of the present disclosure may also be preprocessed images.
- the preprocessing may intercept images including human faces (face images) from the collected images, or delete collected images.
- the image has a low signal-to-noise ratio, is blurry or does not include an image of human objects.
- the image data set further includes a first index associated with each image, where the first index is used to determine spatiotemporal data corresponding to the image, and the spatiotemporal data includes at least one of time data and spatial location data, for example
- the first index may include at least one of the following information: at least one of the collection time of the image, the collection location, the identification of the image collection device that collected the image, and the location where the image collection device is installed. Therefore, the temporal and spatial data information such as the appearance time and location of the object in the image can be determined through the first index associated with the image.
- the image capture device when it is capturing an image and sending the captured image, it may also send the first index of the image, for example, the time when the image was captured, the location where the image was captured, and the image capture device that captured the image (such as camera identification and other information.
- the image and the first index After the image and the first index are received, the image can be stored in association with the corresponding first index, such as stored in a database, which may be a local database or a cloud database.
- S20 Perform distributed clustering processing on the images in the image data set to obtain at least one cluster
- distributed clustering processing may be performed on multiple images in the image data set.
- the images in the image data set can be images of the same object or different objects.
- the embodiments of the present disclosure can perform distributed clustering processing on the images to obtain multiple clusters, wherein the obtained images in each cluster include the same The image of the object.
- the distributed clustering process can perform the clustering process in parallel at the same time, and the clustering efficiency can be improved under the premise of ensuring the clustering accuracy.
- the facial features of the human object in the image can be extracted to determine the similarity between the facial features of any two images, and the two images with the similarity greater than the threshold are determined to include the same object.
- the two images are Can be clustered together, and then get the clustering result.
- the clustering process can also be performed in other ways.
- the obtained images included in each cluster are images of the same object. Therefore, the object corresponding to the cluster can be determined through the first index associated with the images in the cluster.
- the spatiotemporal trajectory information about the object can be formed. For example, a time and location coordinate system can be established, and the appearance time and location of the object can be marked in the coordinate system through the first index of each image in a cluster, so that the spatiotemporal trajectory of the object can be displayed intuitively.
- the embodiment of the present disclosure can obtain the spatiotemporal trajectory information of the object corresponding to the cluster according to the first index associated with each image in each cluster based on the clustering result of the distributed clustering.
- the embodiment of the present disclosure effectively Mining potential trajectory information in the data, making full use of the value of the data and the resource input behind the data, and the embodiment of the present disclosure can accelerate the clustering processing speed through the distributed clustering clustering method.
- step S20 may include:
- S23 Perform the distributed clustering process based on the quantified feature corresponding to the image in the image data set to obtain the at least one cluster.
- the image may be a face image, and the corresponding image feature is the corresponding face feature.
- the image feature of the image can be extracted by a feature extraction algorithm when acquiring the image feature of the image, or the image feature can be extracted by a neural network trained to perform feature extraction.
- the feature extraction algorithm may include at least one of Principal Components Analysis (PCA), Linear Discriminant Analysis (LDA), Independent Component Analysis (ICA) and other algorithms.
- PCA Principal Components Analysis
- LDA Linear Discriminant Analysis
- ICA Independent Component Analysis
- the neural network can be a convolutional neural network, such as the VGG network (Visual Geometry Group Network), which convolutes the image through the convolutional neural network.
- the embodiment of the present disclosure does not specifically limit the feature extraction algorithm and the neural network for feature extraction, as long as the extraction of facial features (image features) can be realized, it can be used as an embodiment of the present disclosure.
- the embodiments of the present disclosure may extract image features of each image in a distributed and parallel manner.
- Fig. 3 shows a flowchart of step S21 in an image processing method according to an embodiment of the present disclosure, wherein the distributed and parallel acquisition of the image characteristics of the image in the image data set (step S21) may include:
- multiple images in the image data set may be grouped to obtain multiple image groups, and each image group may include at least one image.
- the method for grouping images may include average grouping or random grouping.
- the number of image groups obtained can be a pre-configured number of groups, and the number of groups can be less than or equal to the number of feature extraction models described below.
- S212 Input the multiple image groups into multiple feature extraction models respectively, and use the multiple feature extraction models to execute feature extraction processing of images in the image groups corresponding to the feature extraction models in a distributed and parallel manner, to obtain the multiple feature extraction models.
- a distributed parallel processing process of feature extraction may be performed.
- Each of the obtained multiple image groups can be assigned to one of the feature extraction models, and the feature extraction model is used to perform feature extraction processing of the images in the assigned image groups to obtain the image features of the corresponding images.
- the feature extraction model can use the feature extraction algorithm described above to perform feature extraction processing, or the feature extraction model can be constructed as the feature extraction neural network described above to obtain image features, which is not specifically limited in the present disclosure.
- multiple feature extraction models can be used to perform feature extraction of each image group in a distributed and parallel manner.
- each feature extraction model can perform image feature extraction of one image group or multiple image groups at the same time, thereby Speed up feature extraction.
- the first index of the image and the image feature can be stored in association, the mapping relationship between the first index and the image feature can be established, and the mapping can be stored in the database. relationship.
- the monitored real-time image stream can be input to the front-end distributed feature extraction module (feature extraction model).
- feature extraction model distributed feature extraction module
- the image features are stored in the form of persistent features based on spatio-temporal information.
- the feature database that is, the first index and image features are stored in the feature database in the form of persistent features.
- the persistence feature is stored in an index structure
- the first index key of the persistence feature in the database may include Region id, Camera idx, Captured time, and Sequence id.
- Region id is the camera area identifier
- Camera idx is the camera id in the area
- Captured time is the image capture time
- Sequence id is the self-increasing sequence identifier (such as the identifier of the number in sequence), which can be used for deduplication.
- the first index can constitute a unique identification of each image feature and can include the spatiotemporal information of the image feature. After the first index is stored in association with the corresponding image feature, the image feature (persistent feature) of each image can be easily obtained, and the spatiotemporal data information (time and location) of the object in the image can be obtained at the same time.
- the embodiment of the present disclosure may perform quantization processing on the image after obtaining the image feature of the image to obtain the quantized feature corresponding to each image, that is, step S22 may be performed.
- the embodiments of the present disclosure may adopt product quantization (PQ) coding to obtain quantized features corresponding to image features of each image in the image data set.
- PQ product quantization
- This quantization process is performed by a PQ quantizer, for example.
- the process of performing the quantization process through the PQ quantizer can include decomposing the vector space of the image feature into the Cartesian product of multiple low-dimensional vector spaces, and quantizing the low-dimensional vector space obtained by the decomposition, so that each image feature is There can be multiple quantized combination representations of low-dimensional spaces to obtain quantized features.
- Image feature data compression can be achieved through quantization processing.
- the image feature dimension of the image in the embodiment of the present disclosure can be N, and each dimension data is a float32 floating point number (ie, a 32-bit floating point number).
- the quantization feature obtained after the quantization process is The dimension can be N, and the data of each dimension is a half floating point number (that is, half-precision floating point number), that is, the amount of feature data can be reduced through quantization.
- the quantization process of all image features can be performed by one quantizer, or the quantization process of image features can be performed by multiple quantizers, that is, the image features of all images can be performed by at least one quantizer.
- the quantization process obtains the quantized features corresponding to all images.
- a distributed parallel execution method can be adopted to improve the processing speed.
- the embodiments of the present disclosure may use distributed parallel execution to execute the quantization process, where 4 shows a flowchart of step S22 in an image processing method according to an embodiment of the present disclosure, wherein the distributed and parallel quantization processing on the image features to obtain the quantized features corresponding to the image features may include :
- S221 Perform grouping processing on the image features of the multiple images to obtain multiple first groups, where the first group includes the image features of at least one image;
- the embodiments of the present disclosure can group image features, and perform quantization processing on image features of each group in a distributed and parallel manner to obtain corresponding quantized features.
- the multiple quantizers can be distributed and executed in parallel to quantize image features of different images, thereby reducing the time required for quantization and increasing the speed of calculation.
- the image features can be divided into multiple groups (multiple first groups), and the first group can also be the same as the above grouping of images (image groups), that is, grouped according to images
- image groups images
- the image features are divided into corresponding number of groups, that is, the image feature of the image group can be directly obtained to determine the group of the image feature, or multiple first groups can be re-formed, which is not specifically limited in the present disclosure.
- Each first group includes at least one image feature of the image.
- the present disclosure does not specifically limit the number of the first group, which can be determined comprehensively according to the number of quantizers, processing capabilities, and the number of images, and can be determined by a person skilled in the art or a neural network according to actual needs.
- the manner of grouping the image features of the multiple images may include: performing average grouping on the image features of the multiple images, or grouping the multiple images in a random manner. Perform grouping of image features. That is, the embodiment of the present disclosure can group the image features of each image in the image data set equally according to the number of groups, or can also group randomly to obtain multiple first groups. As long as the image features of multiple images can be divided into multiple first groups, it can be used as an embodiment of the present disclosure.
- an identifier (such as a second index) may also be assigned to each first group, and the second index and the first group may be associated storage.
- each image feature of the image data set can be formed into an image feature library T (feature database), and the image features in the image feature library T are grouped (sliced) to obtain n first groups ⁇ S 1 , S 2 ,. ..S n ⁇ , where S i represents the i-th first group, i is an integer greater than or equal to 1 and less than or equal to n, n represents the number of first groups, and n is an integer greater than or equal to 1.
- Each of the first groups may include image characteristics of at least one image. In order to easily distinguish each of the first packet and convenient quantization process may correspond to a first packet for the second index distribution ⁇ I 11, I 12, ... I 1n ⁇ , wherein the first index of the first packet may be S i I 1i .
- S222 Distributedly execute quantization processing of the image features of the multiple first groups in parallel to obtain quantized features corresponding to the image features.
- the quantization processing of the image features in each first group may be performed in parallel respectively.
- the quantization process may be performed by multiple quantizers, and each quantizer may perform quantization process of one or more image features of the first group, thereby speeding up the processing.
- each quantizer may also be assigned a corresponding quantization processing task according to the second index of each first group. That is, the second index of each first group can be assigned to multiple quantizers, where each quantizer is assigned a different second index, and the quantizers respectively execute the quantization processing tasks corresponding to the assigned second indexes in parallel. , That is, perform the quantization process of the image features in the corresponding first group.
- the number of quantizers can be greater than or equal to the number of second groups, and each quantizer can be assigned at most one second index, that is, each quantizer can only execute one second index.
- the quantization processing of the image features in the corresponding first group is not a specific limitation of the embodiments of the present disclosure.
- the number of groups and the number of quantizers, and the number of first indexes allocated to each quantizer can be set according to different requirements.
- the quantization process can reduce the data amount of image features.
- the quantization processing method in the embodiment of the present disclosure may be product quantization (PQ) coding, for example, the quantization processing is performed by a PQ quantizer.
- Image feature data compression can be achieved through quantization processing.
- the dimension of the image feature of the image in the embodiment of the present disclosure can be N, and the data of each dimension can be a float32 floating point number.
- the dimension of the quantization feature obtained after quantization can be N, and each The dimensional data is a half floating point number, that is, the amount of feature data can be reduced through quantization.
- the quantized features can also be stored in association with the first index, so that the associated storage of the first index, second index, image, image feature, and quantized feature can be established to facilitate data retrieval Read and call.
- the quantized feature of each image can be used to perform clustering processing on the image data set, that is, step S23 can be performed.
- the images in the image data set may be images of the same object or different objects.
- the embodiments of the present disclosure may perform clustering processing on the images to obtain multiple clusters, and the obtained images in each cluster are images of the same object.
- Fig. 5 shows a flowchart of step S23 in an image processing method according to an embodiment of the present disclosure, in which the distributed clustering process is executed based on the quantized feature corresponding to the image in the image data set, Obtaining the at least one cluster (step S23) may include:
- S231 Acquire a first degree of similarity between a quantized feature of any image in the image data set and quantized features of other images;
- clustering of the image can be performed based on the quantitative features, that is, clusters of the same objects (clusters of objects with the same identity) are obtained.
- the embodiment of the present disclosure may first obtain the first similarity between any two quantized features, where the first similarity may be the cosine similarity. In other embodiments, other methods may be used to determine the difference between the quantized features.
- the first degree of similarity is not specifically limited in this disclosure.
- one arithmetic unit can be used to calculate the first similarity between any two quantized features, or multiple arithmetic units can be used to calculate the first similarity between each quantized feature in a distributed and parallel manner. Parallel execution of calculations by multiple operators can speed up calculations.
- the embodiment of the present disclosure may also perform the first similarity between the quantitative features of each group and the remaining quantitative features based on the group distribution of the quantitative features.
- the quantized features of each image can be grouped to obtain multiple second groups, and each second group includes at least one quantized feature of the image.
- the second group can be determined directly based on the first group, that is, the corresponding quantized feature is determined according to the image feature of the first group, and the second group is directly formed according to the quantized feature corresponding to the image feature in the first group.
- the grouping method may be average grouping or random grouping, which is not specifically limited in the present disclosure.
- the quantitative features of each image in the image data set can be formed into a quantitative feature library L, or the quantitative features can also be stored in the aforementioned image feature library T in association with each other.
- the quantitative features are related to the image, image feature, first index, second The index and the third index can be stored correspondingly.
- each second group can be assigned a corresponding third index ⁇ I 21 , I 22 ,...I 2m ⁇ , where the third index of the second group L j can be Is I 2j .
- multiple operators may be used to respectively execute the first similarity between the quantized features in the multiple second groups and the remaining quantized features. Since the data volume of the image data set may be very large, multiple operations can be used to execute the first similarity between any one of the quantized features in each second group and all the remaining quantized features in parallel.
- each arithmetic unit may be included, and the arithmetic units may be any electronic device with arithmetic processing function, such as a CPU, a processor, a single-chip computer, etc., which is not specifically limited in the present disclosure.
- each arithmetic unit can calculate the first degree of similarity between each quantized feature in one or more second groups and the quantized features of all other images, thereby speeding up the processing.
- each arithmetic unit may also be assigned a corresponding similarity calculation task according to the third index of each second group. That is, the third index of each second group can be assigned to multiple arithmetic units, where each operation is assigned a different third index, and the similarity calculation tasks corresponding to the assigned third index can be executed in parallel through the arithmetic units.
- the similarity calculation task is to obtain the first similarity between the quantized feature of the image in the second group corresponding to the third index and the quantized feature of all images except the image. Therefore, through the parallel execution of multiple arithmetic units, the first degree of similarity between the quantized features of any two images can be quickly obtained.
- the number of operators can be greater than or equal to the number of the second group.
- each operator can be assigned at most one third index, and each operator can execute only one third index.
- the number of groups and the number of operators, and the number of third indexes allocated to each operator can be set according to different requirements.
- S232 Determine the K1 neighbor image of any image based on the first similarity, where the quantized feature of the K1 neighbor image is the K1 quantized feature with the highest first similarity to the quantized feature of the any image ,
- the K1 is an integer greater than or equal to 1;
- the K1 neighbor image of any image can be obtained, that is, the image corresponding to the K1 quantized feature with the highest first similarity of the quantized feature of any image.
- Any image corresponding to the first K1 quantized feature with the highest similarity is a neighboring image, which represents an image that may include the same object.
- the first similarity sequence for any quantized feature can be obtained.
- the first similarity sequence is a sequence of quantized features sorted from high to low or from low to high with the any quantized feature, and the first similarity sequence is obtained After that, it is convenient to determine the K1 quantized features with the highest first similarity to any quantized feature, and then determine the K1 neighbors of any image.
- the number of K1 can be determined according to the number in the image data set, such as 20, 30, or other values in other embodiments, which is not specifically limited in the present disclosure.
- S233 Determine a clustering result of the distributed clustering processing by using any image and the K1 neighbor image of the any image.
- determining the clustering result of the distributed clustering process by using the any image and the K1 neighbor image of the any image may include:
- S23301 Select, from the K1 neighboring images, a first image set that has a first similarity with the quantized feature of any image that is greater than a first threshold;
- S23302 Mark all the images and any one of the images in the first image set as a first state, and form a cluster based on each image marked as the first state, and the first state is that the images include the same The state of the object.
- the first similarity can be directly selected from the K1 neighbor images of each image (the K1 images with the highest first similarity of quantized features).
- the first image set is formed by selecting the images with the first similarity larger than the first threshold.
- the first threshold may be a set value, such as 90%, but it is not a specific limitation of the present disclosure.
- the image that is closest to any image can be selected by setting the first threshold.
- any image and all images in the selected first image set can be marked as the first state, And form a cluster according to the image in the first state. For example, if the image with the first similarity greater than the first threshold is selected from the K1 neighbor images of image A as the first image set including A1 and A2, then A and A1 and A2 can be marked as the first state respectively, from and The image with the first similarity greater than the first threshold is selected from the K1 neighbor images of A1 to include the first image set of B1. At this time, A1 and B1 can be marked as the first state, and there is no first image in the K1 neighbor images of A2. For images with similarity greater than the first threshold, A2 is no longer labeled in the first state. Through the above, A, A1, A2, and B1 can be classified into one cluster. That is, images A, A1, A2, and B1 include the same object.
- the clustering results can be easily obtained in the above manner. Since the quantized feature reduces the image feature amount, the clustering speed can be accelerated, and the clustering accuracy can be improved by setting the first threshold.
- FIG. 7 shows another flowchart of step S233 in an image processing method according to an embodiment of the present disclosure, wherein the use of any image and K1 neighbor images of any image determines the distributed cluster
- the clustering result of the class processing may also include:
- S23311 Acquire a second degree of similarity between the image feature of any image and the image feature of the K1 neighbor image of the any image;
- the image features of any image and the corresponding K1 neighbor images can be further calculated
- the second degree of similarity between features That is, after obtaining the K1 neighboring image of any image, the second similarity between the image feature of the any image and the image features of the K1 neighboring images can be further calculated.
- the second degree of similarity may also be a cosine degree of similarity, or in other embodiments, the degree of similarity may also be determined in other ways, which is not specifically limited in the present disclosure.
- S23312 Determine the K2 neighbor image of any image based on the second similarity, and the image feature of the K2 neighbor image is the second similarity between the K1 neighbor image and the image feature of any image
- the highest K2 image features, K2 is an integer greater than or equal to 1 and less than or equal to K1;
- the second similarity between the image feature of any image and the image feature of the corresponding K1 neighbor image can be obtained, and the K2 image features with the second highest similarity are further selected.
- the image corresponding to the K2 image features is determined as the K2 neighbor image of any image.
- the value of K2 can be set according to requirements.
- S23313 Select, from the K2 neighbor images, a second image set whose second similarity with the image feature of any image is greater than a second threshold;
- the second similarity can be directly selected from the K2 neighbor images of each image (the K2 images with the highest second similarity of image features).
- the selected images can form a second image set.
- the second threshold may be a set value, such as 90%, but it is not a specific limitation of the present disclosure.
- the image closest to any image can be selected by setting the second threshold.
- S23314 Mark all the images and any one of the images in the second image set as the first state, and form a cluster based on each image marked as the first state, the first state is that the images include the same The state of the object.
- the selected image may be All the images in the second image set are marked as the first state, and a cluster is formed according to the images in the first state.
- the images with the second similarity greater than the second threshold are selected as images A3 and A4, then A, A3, and A4 can be marked as the first state, from the K2 neighbor images of A3
- the image with the second similarity greater than the second threshold is selected as image B2.
- A3 and B2 can be marked as the first state, and there is no image with the second similarity greater than the second threshold in the K2 neighbor images of A4.
- A4 in the first state is marked.
- the clustering results can be easily obtained by the above method. Since the quantized feature reduces the image feature amount, and the K1 neighbor obtained based on the quantized feature further determines the closest K2 neighbor of the image feature, thereby speeding up the clustering speed and further improving the clustering. Class precision. In addition, in the process of performing the calculation of the similarity between quantized features and image features, a distributed parallel operation can also be used to speed up the clustering speed.
- the computational cost is reduced, and the parallel processing of multiple arithmetic units can further increase the computational speed.
- the images in the same cluster can be considered as a collection of images of the same object (such as a person object), and the first index associated with the images in the cluster can be used to obtain the time when the object appears Information and corresponding location information, based on the time information and location information, the spatiotemporal trajectory information of the object can be further obtained.
- each cluster may include at least one image, and the images in the same cluster may be regarded as including the same object.
- the cluster center of each cluster can be further determined.
- the average value of the image features of each image in the cluster may be used as the cluster center.
- a fourth index can be assigned to the class center to distinguish the clusters corresponding to each class center.
- each image in the embodiment of the present disclosure includes a third index as an image identifier, a first index as an identifier of the first group of image features, a second index as an identifier of the second group where the quantized feature is located, and as The fourth index of the cluster identification, the above-mentioned index and the corresponding feature, image and other data can be stored in association.
- there may be indexes of other feature data which are not specifically limited in the present disclosure.
- the third index of the image, the first index of the first group of image features, the second index of the second group of quantized features, and the fourth index of the cluster are all different, and can be represented by different symbols.
- the received image can also be clustered to determine the cluster to which the received image belongs, that is, to perform clustering increment processing, where After the received image matches the cluster, the received image can be assigned to the corresponding cluster. If the current cluster does not match the received image, the received image can be used as a cluster alone. Or merge with an existing image data set to perform clustering again.
- FIG. 8 shows a flowchart of performing clustering increment processing by an image processing method according to an embodiment of the present disclosure, where the clustering increment processing may include:
- the input image may be an image captured by an image capture device in real time, or may also be an image transmitted through other devices, or an image stored locally. This disclosure does not specifically limit this.
- the image features of the input image can be obtained.
- the image features can be obtained through a feature collection algorithm, or through at least one layer of convolution processing of a convolutional neural network.
- the image may be a face image, and the corresponding image feature is a face feature.
- S42 Perform quantization processing on the image feature of the input image to obtain the quantized feature of the input image
- the input images acquired by the embodiments of the present disclosure may be one or more.
- image feature acquisition and image feature quantization processing they can all be acquired through distributed parallel execution.
- the specific parallel execution process is the same as the above-mentioned embodiment.
- the described process is the same, so it will not be repeated here.
- S43 Determine the cluster in which the input image is located based on the quantized feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process.
- the cluster in which the input image is located can be determined according to the quantitative feature and the cluster center of each cluster.
- the specific clustering method can also refer to the above process.
- Fig. 9 shows a flowchart of step S43 in an image processing method according to an embodiment of the present disclosure.
- the determining the cluster in which the input image is located based on the quantitative feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering processing (S43) may include:
- S4301 Acquire a third degree of similarity between the quantitative feature of the input image and the quantitative feature of the cluster center of the at least one cluster obtained by the distributed clustering process;
- the cluster center (the image feature of the cluster center) can be determined according to the average value of the image features of each image in the cluster, and the corresponding quantitative features of the cluster center can also be obtained.
- the feature performs quantization processing to obtain the quantized feature of the center of the class, or the quantized feature of each image in the cluster can be averaged to obtain the quantized feature of the center of the class.
- a third degree of similarity between the input image and the quantized feature of the cluster center of each cluster can be obtained.
- the third degree of similarity may be cosine similarity, but it is not a specific limitation of the present disclosure.
- multiple class centers can be grouped to obtain multiple class center groups, and the multiple class center groups are allocated to multiple operators, each of which is assigned a different class center group ,
- the third degree of similarity between the class centers in the various center groups and the quantized features of the input image is executed in parallel through multiple arithmetic units, thereby speeding up the processing.
- S4302 Determine the K3 class centers with the third highest similarity between the quantized features of the input image, and K3 is an integer greater than or equal to 1;
- K3 cluster centers with the highest similarity can be obtained.
- the number of K3 is less than the number of clusters.
- the obtained K3 cluster centers can be expressed as K3 clusters that best match the input object.
- the third degree of similarity between the input image and the quantized features of the cluster centers of each cluster can be obtained by means of distributed parallel execution. That is, the centers can be grouped, and the similarity between the quantized features of the corresponding grouped class centers and the quantized features of the input image can be calculated through different arithmetic units, thereby increasing the calculation speed.
- S4303 Acquire a fourth degree of similarity between the image features of the input image and the image features of the K3 class centers;
- the difference between the image features of the input image and the corresponding K3 class centers can be further obtained.
- the fourth similarity degree may be a cosine similarity degree, but it is not a specific limitation of the present disclosure.
- a distributed parallel execution method can also be used.
- the K3 class centers are divided into multiple groups, and The K3 class centers are assigned to multiple arithmetic units, and the arithmetic unit can perform the fourth similarity between the image features of the assigned class centers and the image features of the input image, thereby speeding up the calculation.
- S4305 In the case that there is no class center whose fourth similarity with the image feature of the input feature is greater than the third threshold, perform the calculation based on the quantized feature of the input image and the quantized feature of the image in the image data set.
- the clustering process is described to obtain at least one new cluster.
- the fourth similarity between the image features of the input image and the image features of the K3 class centers has a fourth similarity greater than the third threshold, it can be determined that the input image and the first The cluster matching corresponding to the center of the four clusters with the highest similarity, that is, the object included in the input image and the object corresponding to the fourth cluster with the highest similarity are the same objects.
- the input image can be added to the cluster.
- the cluster identifier can be assigned to the input image for associated storage, so that the cluster to which the input image belongs can be determined.
- the input image can be used as a separate cluster, or the input image can be fused with the existing image data set to obtain a new image data set, and step S20 can be performed again on the new image data set, that is, for all images
- the distributed clustering is performed again to obtain at least one new cluster, and the image data can be accurately clustered in this way.
- the cluster center can be re-determined, thereby improving the cluster center Accurately, it is convenient for accurate clustering in the subsequent process.
- the identity of the object matched by the image in each cluster can also be determined, that is, the identity of the object corresponding to each cluster can be determined based on the identity feature of at least one object in the identity feature library.
- FIG. 10 shows a flow chart of determining the identity of objects matched by clusters in an image processing method according to an embodiment of the present disclosure, wherein the determination is based on the identity feature of at least one object in the identity feature library with each of the clusters.
- the object identity corresponding to the class including:
- the identity feature database includes multiple known identities of object information, for example, it may include the face image of the object with known identities and the identity information of the object, and the identity information may include name, age, work, etc. Basic Information.
- the identity feature library can also include the image features and quantified features of each known object.
- the corresponding image features can be obtained from the face image of each known object, and the quantized features can be obtained by quantizing the image features. .
- S52 Determine the fifth similarity between the quantitative feature of the known object and the quantitative feature of the class center of the at least one cluster, and determine K4 with the fifth highest similarity to the quantitative feature of the class center
- the quantitative characteristics of a known object, K4 is an integer greater than or equal to 1;
- the fifth similarity between the quantitative feature of the known object and the obtained quantitative feature of the cluster center can be further obtained.
- the fifth degree of similarity may be cosine similarity, but it is not a specific limitation of the present disclosure.
- the quantitative features of the K4 known objects with the fifth highest similarity to the quantitative features of each class center can be determined. That is, the K4 known objects with the fifth highest similarity to the quantitative feature of the class center can be found from the identity database, and the K4 known objects may be the K4 identities with the highest matching pair with the class center.
- the K4 class centers with the fifth highest similarity to the quantitative feature of each known object can also be obtained.
- the corresponding correspondences of the K4 class centers are the K4 class centers with the highest matching degree with the identity of the known object.
- the quantized features of known objects can be grouped, and the fifth similarity between the quantized features of the known objects and the quantized features of the cluster centers obtained by at least one quantizer can be used to improve the processing speed. .
- the sixth similarity between the image features of each class center and the corresponding K4 known objects can be further determined,
- the sixth degree of similarity may be cosine similarity, but it is not a specific limitation of the present disclosure.
- the image characteristics of the known object can be further determined.
- S54 Determine if the sixth similarity between the image feature of a known object among the K4 known objects and the image feature of the cluster center is the highest and the sixth similarity is greater than the fourth threshold. The known object with the sixth highest similarity is matched with the cluster corresponding to the cluster center.
- the image feature of the known object with the highest sixth similarity can be determined as the image feature that best matches the cluster center.
- the identity of the known object is determined as the identity that matches the center of the class, that is, the identity of each image in the cluster corresponding to the center of the class is the identity of the known object with the sixth highest similarity.
- the K4 class centers corresponding to the known object if the K4 class centers corresponding to the known object have the sixth similarity with the image feature of the known object greater than the fourth threshold
- the cluster center of the sixth highest similarity can be matched with the known object, that is, the cluster corresponding to the sixth highest similarity center is matched with the identity of the known object, thereby determining the corresponding cluster The identity of the object of the class.
- the sixth similarity between the K4 known objects and the image features of the corresponding class center All are less than the fourth threshold, indicating that there is no identity object that matches the center of the class.
- the sixth similarity between the image features of the K4 class centers and the image feature of the known object is less than the fourth threshold, then It indicates that there is no identity matching the known object in the obtained cluster.
- corresponding index information can be configured for each image to determine the spatio-temporal data of the object in the image. Based on this configuration, the analysis of the spatio-temporal trajectory of different objects can be realized. After the images in the image data set are clustered, the image set corresponding to each object is obtained (a cluster is equivalent to the image set of an object), and the index information (first index) associated with each image in the cluster is The spatiotemporal trajectory information of the object corresponding to the cluster can be obtained, so that the trajectory analysis of different objects can be realized. At the same time, the embodiments of the present disclosure adopt a distributed clustering method, which can improve clustering efficiency.
- the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
- the specific execution order of each step should be based on its function and possibility.
- the inner logic is determined.
- FIG. 11 shows a block diagram of an image processing device according to an embodiment of the present disclosure. As shown in FIG. 11, the image processing device includes:
- the acquiring module 10 is configured to acquire an image data set, the image data set including a plurality of images and a first index respectively associated with the plurality of images, and the first index is used to determine an object in the image Spatiotemporal data
- the clustering module 20 is configured to perform distributed clustering processing on the images in the image data set to obtain at least one cluster;
- the determining module 30 is configured to determine the spatiotemporal trajectory information of the object corresponding to the cluster based on the obtained first index associated with the image in the cluster.
- the device further includes an incremental clustering module, which is used to obtain image features of the input image; perform quantization processing on the image features of the input image to obtain the quantized features of the input image; Determine the cluster where the input image is located based on the quantitative feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process.
- an incremental clustering module which is used to obtain image features of the input image; perform quantization processing on the image features of the input image to obtain the quantized features of the input image; Determine the cluster where the input image is located based on the quantitative feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process.
- the incremental clustering module is further configured to obtain the difference between the quantitative feature of the input image and the quantitative feature of the cluster center of the at least one cluster obtained by the distributed clustering process.
- K3 is an integer greater than or equal to 1.
- the incremental clustering module is further configured to, in the case that there is no cluster center with a fourth similarity greater than a third threshold between the image features of the input image, based on the The quantized features of the input image and the quantized features of the images in the image data set execute the distributed clustering process to obtain at least one new cluster.
- the first index includes at least one of the following information: the collection time of the image, the collection location, the identification of the image collection device that collected the image, and the installation of the image collection device s position.
- the clustering module includes: a first distribution processing unit, which is used to obtain image features of the images in the image data set in a distributed and parallel manner; a second distribution processing unit, which uses Distributedly perform quantization processing on the image features in parallel to obtain the quantized features corresponding to the image features; a clustering unit is used to execute the distributed based on the quantized features corresponding to the image in the image data set Clustering processing to obtain the at least one cluster.
- the first distribution processing unit is further configured to group the multiple images in the image data set to obtain multiple image groups; and input the multiple image groups into multiple image groups respectively.
- a feature extraction model which uses the multiple feature extraction models to execute feature extraction processing of images in an image group corresponding to the feature extraction model in a distributed and parallel manner to obtain image features of the multiple images, wherein each feature extraction model The input image group is different.
- the second distribution processing unit is further configured to perform grouping processing on the image features of the multiple images to obtain multiple first groups, and the first group includes the image features of at least one image ; Distributed and parallel execution of the quantization processing of the image features of the plurality of first groups, to obtain the quantized feature corresponding to the image feature.
- the second distribution processing unit is further configured to execute the quantization processing of the image features of the plurality of first groups in the distributed parallel to obtain the quantized feature corresponding to the image feature, Respectively configure second indexes for the plurality of first groups to obtain a plurality of second indexes; and are used to allocate the plurality of second indexes to a plurality of quantizers, each of the plurality of quantizers The allocated second indexes are different; and the multiple quantizers are used to respectively execute quantization processing of image features in the first group corresponding to the allocated second indexes in parallel.
- the quantization processing includes product quantization encoding processing.
- the clustering unit is further configured to obtain a first degree of similarity between a quantized feature of any image in the image data set and quantized features of other images; based on the first degree of similarity, Determine the K1 neighbor image of any image, the quantized feature of the K1 neighbor image is the K1 quantized feature with the highest first similarity to the quantized feature of the any image, and the K1 is greater than or equal to 1 Integer; the clustering result of the distributed clustering process is determined by using the any image and the K1 neighbor image of the any image.
- the clustering unit is further configured to select, from the K1 neighboring images, a first image set whose first similarity with the quantized feature of any image is greater than a first threshold. ; Mark all the images in the first image set and any one of the images as a first state, and form a cluster based on each image marked as the first state, the first state is that the images include the same object status.
- the clustering unit is further configured to obtain a second degree of similarity between the image feature of any image and the image feature of the K1 neighbor image of the any image; based on the first Second similarity, determining the K2 neighbor image of any image, and the image feature of the K2 neighbor image is the K2 image feature with the second highest similarity between the K1 neighbor image and the image feature of the any image , K2 is an integer greater than or equal to 1 and less than or equal to K1; selecting a second image set whose second similarity with the image feature of any image is greater than a second threshold from the K2 neighboring images; All the images in the second image set and any one of the images are marked as the first state, and a cluster is formed based on each image marked as the first state, and the first state is the images that include the same object status.
- the clustering unit is further configured to compare the image data with the first similarity between the quantized features of any image in the image dataset and the quantized features of other images.
- the quantized features of the multiple images in the data set are grouped to obtain multiple second groups, where the second group includes the quantized features of at least one image; and the quantization of any image in the image data set is obtained
- the first degree of similarity between the features and the quantized features of the remaining images includes: obtaining the first degree of similarity between the quantized features of the images in the second group and the quantized features of the remaining images in a distributed and parallel manner.
- the clustering unit is further configured to obtain the first similarity between the quantized features of the images in the second group and the quantized features of the remaining images in the distributed and parallel manner.
- the first similarity between the two includes: establishing a similarity calculation task corresponding to the third index based on the third index, and the similarity calculation task is to obtain a target in the second group corresponding to the third index
- the first similarity between the quantized feature of the image and the quantized features of all the images except the target image; the similarity acquisition task corresponding to each third index of the plurality of third indexes is executed in a distributed and parallel manner.
- the class center determining module is used to determine the class center of the cluster obtained by the distributed clustering process; configure a fourth index for the class center and store it in association The fourth index and the corresponding class center.
- the cluster center determining module is further configured to determine the cluster center based on the average value of the image features of each image in the at least one cluster.
- the determining module is further configured to determine the time information and location information of the object corresponding to the cluster based on the first index associated with each image in the cluster; based on the time information and The location information determines the spatiotemporal trajectory information of the object.
- the device further includes an identity determining module, which is configured to determine the identity of the object corresponding to each of the clusters based on the identity feature of at least one object in the identity feature library.
- the identity determination module is further configured to obtain the quantitative characteristics of the known objects in the identity feature library; determine the quantitative characteristics of the known objects and the cluster center of the at least one cluster Quantify the fifth similarity between the quantized features, and determine the quantized features of the K4 known objects with the fifth highest similarity to the quantized features of the class center; obtain the image features of the class center and the corresponding K4
- the sixth degree of similarity between the image features of known objects; the sixth degree of similarity between the image feature of a known object in the K4 known objects and the image feature of the class center is the highest and the sixth degree of similarity When the similarity is greater than the fourth threshold, it is determined that the known object with the sixth highest similarity matches the cluster corresponding to the cluster center.
- the identity determination module is further configured to: when the sixth similarity between the image features of the K4 known objects and the image features of the corresponding class center is less than the fourth threshold , It is determined that there is no cluster matching the known object.
- the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
- the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
- the embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor.
- the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
- An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured as the above method.
- the embodiment of the present disclosure also proposes a computer program product, the computer program includes computer readable code, and when the computer readable code runs in an electronic device, the processor in the electronic device executes to realize the above An image processing method provided by any embodiment.
- the electronic device can be provided as a terminal, server or other form of device.
- Fig. 12 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
- the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
- the electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , And communication component 816.
- the processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
- the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
- the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
- the memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these 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 nonvolatile 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.
- SRAM static random access memory
- EEPROM electrically erasable programmable read-only memory
- EPROM erasable Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Magnetic Disk Magnetic Disk or Optical Disk.
- the power supply component 806 provides power for 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 the generation, management, and distribution of power for the electronic device 800.
- the multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
- 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, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
- the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 810 is configured to output and/or input audio signals.
- the audio component 810 includes a microphone (MIC).
- the microphone is configured to receive external audio signals.
- the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
- the audio component 810 further includes a speaker for outputting audio signals.
- the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
- the peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
- the sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation.
- the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components.
- the component is the display and the keypad of the electronic device 800.
- the sensor component 814 can also detect the electronic device 800 or the electronic device 800.
- the position of the component changes, 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 component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
- the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
- 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.
- the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
- 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.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- the electronic device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
- ASIC application specific integrated circuits
- DSP digital signal processors
- DSPD digital signal processing devices
- PLD programmable logic devices
- FPGA field A programmable gate array
- controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
- a non-volatile computer-readable storage medium such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
- FIG. 13 shows a block diagram of another electronic device according to an embodiment of the present disclosure.
- the electronic device 1900 may be provided as a server. 13
- 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 application programs.
- the application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
- the processing component 1922 is configured to execute instructions to perform the above-described methods.
- 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 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
- a non-volatile computer-readable storage medium such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete the foregoing method.
- the present disclosure may be a system, method, and/or computer program product.
- the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
- the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
- the computer-readable storage medium may 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 foregoing.
- Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
- RAM random access memory
- ROM read-only memory
- EPROM erasable programmable read-only memory
- flash memory flash memory
- SRAM static random access memory
- CD-ROM compact disk read-only memory
- DVD digital versatile disk
- memory stick floppy disk
- mechanical encoding device such as a printer with instructions stored thereon
- the computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
- the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, 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 may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
- the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
- the computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages.
- Source code or object code written in any combination, the programming language includes 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 can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server carried out.
- the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to access the Internet connection).
- LAN local area network
- WAN wide area network
- an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions.
- the computer-readable program instructions are executed to realize various aspects of the present disclosure.
- These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such 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 blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
- each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more functions for implementing the specified logical function.
- Executable instructions may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims (45)
- 一种图像处理方法,其特征在于,包括:An image processing method, characterized by comprising:获取图像数据集,所述图像数据集包括多个图像以及分别与所述多个图像关联的第一索引,所述第一索引用于确定所述图像中的对象的时空数据;Acquiring an image data set, the image data set including a plurality of images and first indexes respectively associated with the plurality of images, the first indexes being used to determine spatiotemporal data of objects in the images;对所述图像数据集中的图像执行分布式聚类处理,得到至少一个聚类;Perform distributed clustering processing on the images in the image data set to obtain at least one cluster;基于得到的所述聚类中的图像所关联的第一索引,确定所述聚类对应的对象的时空轨迹信息。Based on the obtained first index associated with the images in the cluster, the spatiotemporal trajectory information of the object corresponding to the cluster is determined.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:获取输入图像的图像特征;Obtain the image characteristics of the input image;对所述输入图像的图像特征执行量化处理,得到所述输入图像的量化特征;Performing quantization processing on the image feature of the input image to obtain the quantization feature of the input image;基于所述输入图像的量化特征以及所述分布式聚类处理得到的所述至少一个聚类的类中心,确定所述输入图像所在的聚类。Determine the cluster where the input image is located based on the quantitative feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process.
- 根据权利要求2所述的方法,其特征在于,所述基于所述输入图像的量化特征以及所述分布式聚类处理得到的所述至少一个聚类的类中心,确定所述输入图像所在的聚类,包括:The method according to claim 2, characterized in that, based on the quantized feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process, determine where the input image is located Clustering, including:获取所述输入图像的量化特征与所述分布式聚类处理得到的所述至少一个聚类的类中心的量化特征之间的第三相似度;Acquiring a third degree of similarity between the quantitative feature of the input image and the quantitative feature of the cluster center of the at least one cluster obtained by the distributed clustering process;确定与所述输入图像的量化特征之间的第三相似度最高的K3个类中心,K3为大于或者等于1的整数;Determine the K3 class centers with the third highest similarity between the quantized features of the input image, and K3 is an integer greater than or equal to 1;获取所述输入图像的图像特征与所述K3个类中心的图像特征之间的第四相似度;Acquiring a fourth degree of similarity between the image features of the input image and the image features of the K3 class centers;响应于所述K3个类中心中任一类中心的图像特征与所述输入图像的图像特征之间的第四相似度最高且该第四相似度大于第三阈值,将所述输入图像加入至所述任一类中心对应的聚类。In response to the fourth similarity between the image feature of any one of the K3 class centers and the image feature of the input image is the highest and the fourth similarity is greater than the third threshold, the input image is added to The cluster corresponding to any type of center.
- 根据权利要求3所述的方法,其特征在于,所述基于所述输入图像的量化特征以及所述分布式聚类处理得到的所述聚类的类中心,确定所述输入图像所在的聚类,还包括The method according to claim 3, wherein the determining the cluster where the input image is located is based on the quantized feature of the input image and the cluster center obtained by the distributed clustering process ,Also includes响应于不存在与所述输入图像的图像特征之间的第四相似度大于第三阈值的类中心,基于所述输入图像的量化特征以及所述图像数据集中的图像的量化特征执行所述分布式聚类处理,得到至少一个新的聚类。In response to the absence of a class center having a fourth similarity greater than a third threshold with the image features of the input image, the distribution is performed based on the quantized features of the input image and the quantized features of the images in the image data set In order to obtain at least one new cluster.
- 根据权利要求1-4中任意一项所述的方法,其特征在于,所述第一索引包括以下信息中的至少一种:所述图像的采集时间、采集地点以及采集所述图像的图像采集设备的标识、所述图像采集设备所安装的位置。The method according to any one of claims 1 to 4, wherein the first index includes at least one of the following information: the collection time of the image, the collection location, and the image collection used to collect the image The identification of the device and the location where the image capture device is installed.
- 根据权利要求1-5中任意一项所述的方法,其特征在于,所述对所述图像数据集中的图像执行分布式聚类处理,得到至少一个聚类,包括:The method according to any one of claims 1-5, wherein the performing distributed clustering processing on the images in the image data set to obtain at least one cluster comprises:分布式并行地获取所述图像数据集中的所述图像的图像特征;Acquiring image features of the images in the image data set in a distributed and parallel manner;分布式并行地对所述图像特征执行量化处理得到所述图像特征对应的量化特征;Distributed and parallelly perform quantization processing on the image feature to obtain the quantized feature corresponding to the image feature;基于所述图像数据集中的所述图像对应的量化特征,执行所述分布式聚类处理,得到所述至少一个聚类。The distributed clustering process is executed based on the quantified feature corresponding to the image in the image data set to obtain the at least one cluster.
- 根据权利要求6所述的方法,其特征在于,所述分布式并行地获取所述图像数据集中的所述图像的图像特征,包括:The method according to claim 6, wherein the distributed and parallel acquisition of the image features of the images in the image data set comprises:将所述图像数据集中的多个所述图像进行分组,得到多个图像组;Grouping the multiple images in the image data set to obtain multiple image groups;将所述多个图像组分别输入多个特征提取模型,利用所述多个特征提取模型分布式并行地执行与所述特征提取模型对应图像组中的图像的特征提取处理,得到所述多个图像的图像特征,其中每个特征提取模型所输入的图像组不同。The multiple image groups are respectively input to multiple feature extraction models, and the multiple feature extraction models are used to execute feature extraction processing of images in the image group corresponding to the feature extraction models in a distributed and parallel manner to obtain the multiple feature extraction models. The image features of the image, where each feature extraction model inputs different image groups.
- 根据权利要求6或7所述的方法,其特征在于,所述分布式并行地对所述图像特征执行量化处理得到所述图像特征对应的量化特征,包括:The method according to claim 6 or 7, wherein the distributed and parallel quantization process on the image feature to obtain the quantized feature corresponding to the image feature comprises:对所述多个图像的图像特征进行分组处理,得到多个第一分组,所述第一分组包括至少一个图像的图像特征;Grouping the image features of the multiple images to obtain multiple first groups, where the first group includes the image features of at least one image;分布式并行执行所述多个第一分组的图像特征的量化处理,得到所述图像特征对应的量化特征。The quantization processing of the image features of the plurality of first groups is executed in a distributed and parallel manner to obtain the quantized feature corresponding to the image feature.
- 根据权利要求8所述的方法,其特征在于,在所述分布式并行执行所述多个第一分组的图像特 征的量化处理,得到所述图像特征对应的量化特征之前,所述方法还包括:The method according to claim 8, characterized in that, before the quantization processing of the image features of the plurality of first groups is executed in parallel in the distributed manner to obtain the quantized feature corresponding to the image feature, the method further comprises :为所述多个第一分组分别配置第二索引,得到多个第二索引;Respectively configuring second indexes for the plurality of first groups to obtain a plurality of second indexes;所述分布式并行执行所述多个第一分组的图像特征的量化处理,得到所述图像特征对应的量化特征,包括:The distributed and parallel execution of the quantization processing of the image features of the plurality of first groups to obtain the quantized features corresponding to the image features includes:将所述多个第二索引分别分配给多个量化器,所述多个量化器中每个量化器被分配的所述第二索引不同;Allocating the plurality of second indexes to a plurality of quantizers, each of the plurality of quantizers is allocated a different second index;利用所述多个量化器分别并行执行分配的所述第二索引对应的第一分组内的图像特征的量化处理。The multiple quantizers are used to perform quantization processing of the image features in the first group corresponding to the assigned second index respectively in parallel.
- 根据权利要求6-9中任意一项所述的方法,其特征在于,所述量化处理包括乘积量化编码处理。The method according to any one of claims 6-9, wherein the quantization processing comprises product quantization coding processing.
- 根据权利要求6-10中任意一项所述的方法,其特征在于,所述基于所述图像数据集中的所述图像对应的量化特征,执行所述分布式聚类处理,得到所述至少一个聚类,包括:The method according to any one of claims 6-10, wherein the distributed clustering process is executed based on the quantized feature corresponding to the image in the image data set to obtain the at least one Clustering, including:获取所述图像数据集中任一图像的量化特征与其余图像的量化特征之间的第一相似度;Acquiring the first degree of similarity between the quantized features of any image in the image data set and the quantized features of other images;基于所述第一相似度,确定所述任一图像的K1近邻图像,所述K1近邻图像的量化特征是与所述任一图像的量化特征的第一相似度最高的K1个量化特征,所述K1为大于或等于1的整数;Based on the first similarity, determine the K1 neighbor image of any image, and the quantized feature of the K1 neighbor image is the K1 quantized feature with the highest first similarity to the quantized feature of any image, so Said K1 is an integer greater than or equal to 1;利用所述任一图像以及所述任一图像的K1近邻图像确定所述分布式聚类处理的聚类结果。The clustering result of the distributed clustering process is determined by using the any image and the K1 neighbor image of the any image.
- 根据权利要求11所述的方法,其特征在于,所述利用所述任一图像以及所述任一图像的K1近邻图像确定所述分布式聚类处理的聚类结果,包括:The method according to claim 11, wherein the determining the clustering result of the distributed clustering process by using the any image and the K1 neighbor image of the any image comprises:从所述K1近邻图像中选择出与所述任一图像的量化特征之间的第一相似度大于第一阈值的第一图像集;Selecting, from the K1 neighboring images, a first image set that has a first similarity with a quantized feature of any image greater than a first threshold;将所述第一图像集中的全部图像和所述任一图像标注为第一状态,并基于被标注为第一状态的各图像形成一个聚类,所述第一状态为图像中包括相同对象的状态。All the images in the first image set and any one of the images are marked as a first state, and a cluster is formed based on each image marked as the first state, and the first state is the images that include the same object status.
- 根据权利要求11所述的方法,其特征在于,所述利用所述任一图像以及所述任一图像的K1近邻图像确定所述分布式聚类处理的聚类结果,包括:The method according to claim 11, wherein the determining the clustering result of the distributed clustering process by using the any image and the K1 neighbor image of the any image comprises:获取所述任一图像的图像特征与所述任一图像的K1近邻图像的图像特征之间的第二相似度;Acquiring a second degree of similarity between the image feature of the any image and the image feature of the K1 neighbor image of the any image;基于所述第二相似度,确定所述任一图像的K2近邻图像,所述K2近邻图像的图像特征为所述K1近邻图像中与所述任一图像的图像特征的第二相似度最高的K2个图像特征,K2为大于或者等于1且小于或者等于K1的整数;Based on the second similarity, determine the K2 neighbor image of any image, and the image feature of the K2 neighbor image is the second highest similarity between the K1 neighbor image and the image feature of any image K2 image features, K2 is an integer greater than or equal to 1 and less than or equal to K1;从所述K2近邻图像中选择出与所述任一图像的图像特征的所述第二相似度大于第二阈值的第二图像集;Selecting, from the K2 neighboring images, a second image set whose second similarity to the image feature of any image is greater than a second threshold;将所述第二图像集中的全部图像和所述任一图像标注为第一状态,并基于被标注为第一状态的各图像形成一个聚类,所述第一状态为图像中包括相同对象的状态。All the images in the second image set and any one of the images are marked as the first state, and a cluster is formed based on each image marked as the first state, and the first state is the images that include the same object status.
- 根据权利要求11-13中任意一项所述的方法,其特征在于,在所述获取所述图像数据集中任一图像的量化特征与其余图像的量化特征之间的第一相似度之前,所述方法还包括:The method according to any one of claims 11-13, characterized in that before said acquiring the first degree of similarity between the quantized features of any image in the image data set and the quantized features of other images, The method also includes:对所述图像数据集中的所述多个图像的量化特征进行分组处理,得到多个第二分组,所述第二分组包括至少一个图像的量化特征;Grouping the quantized features of the multiple images in the image data set to obtain multiple second groups, the second groupings including the quantized features of at least one image;并且,所述获取所述图像数据集中任一图像的量化特征与其余图像的量化特征之间的第一相似度,包括:And, the acquiring the first degree of similarity between the quantized features of any image in the image data set and the quantized features of other images includes:分布式并行地获取所述第二分组内图像的量化特征与所述其余图像的量化特征之间的第一相似度。The first degree of similarity between the quantized features of the images in the second group and the quantized features of the remaining images is acquired in a distributed and parallel manner.
- 根据权利要求14所述的方法,其特征在于,在所述分布式并行地获取所述第二分组内图像的量化特征与所述其余图像的量化特征之间的第一相似度之前,所述方法还包括:The method according to claim 14, characterized in that, before the distributed and parallel acquisition of the first similarity between the quantized features of the images in the second group and the quantized features of the remaining images, the Methods also include:为所述多个第二分组分别配置第三索引,得到多个第三索引;Configure third indexes for the plurality of second groups respectively to obtain a plurality of third indexes;并且,所述分布式并行地获取所述第二分组内图像的量化特征与所述其余图像的量化特征之间的第一相似度,包括:In addition, the distributed and parallel acquisition of the first similarity between the quantized features of the images in the second group and the quantized features of the remaining images includes:基于所述第三索引,建立所述第三索引对应的相似度运算任务,所述相似度运算任务为获取所述 第三索引对应的第二分组内的目标图像的量化特征与所述目标图像以外的全部图像的量化特征之间的第一相似度;Based on the third index, a similarity calculation task corresponding to the third index is established, and the similarity calculation task is to obtain the quantized feature of the target image in the second group corresponding to the third index and the target image The first degree of similarity between the quantized features of all images other than those;分布式并行执行所述多个第三索引中每个第三索引对应的相似度获取任务。Distributed and parallel execution of the similarity acquisition task corresponding to each third index of the plurality of third indexes.
- 根据权利要求1-15中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-15, wherein the method further comprises:确定所述分布式聚类处理得到的所述聚类的类中心;Determining the cluster center of the cluster obtained by the distributed clustering process;为所述类中心配置第四索引,并关联地存储所述第四索引和相应的类中心。A fourth index is configured for the class center, and the fourth index and the corresponding class center are stored in association.
- 根据权利要求16所述的方法,其特征在于,所述确定所述分布式聚类处理得到的所述聚类的类中心,包括:The method according to claim 16, wherein the determining the cluster center obtained by the distributed clustering processing comprises:基于所述至少一个聚类内的各图像的图像特征的平均值,确定所述聚类的类中心。Based on the average value of the image features of the images in the at least one cluster, the cluster center is determined.
- 根据权利要求1-17中任意一项所述的方法,其特征在于,所述基于得到的所述聚类中的图像所关联的第一索引,确定所述聚类对应的对象的时空轨迹信息,包括:The method according to any one of claims 1-17, characterized in that, based on the obtained first index associated with the images in the cluster, the spatiotemporal trajectory information of the object corresponding to the cluster is determined ,include:基于所述聚类中各图像关联的第一索引确定所述聚类对应的对象出现的时间信息和位置信息;Determining, based on the first index associated with each image in the cluster, the time information and location information of the object corresponding to the cluster;基于所述时间信息和位置信息确定所述对象的时空轨迹信息。The spatiotemporal trajectory information of the object is determined based on the time information and the position information.
- 根据权利要求1-18中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-18, wherein the method further comprises:基于身份特征库中的至少一个对象的身份特征,确定与各所述聚类对应的对象身份。Based on the identity feature of at least one object in the identity feature library, the object identity corresponding to each cluster is determined.
- 根据权利要求19所述的方法,其特征在于,所述基于身份特征库中的至少一个对象的身份特征,确定与各所述聚类对应的对象身份,包括:The method according to claim 19, wherein the determining the identity of the object corresponding to each of the clusters based on the identity feature of at least one object in the identity feature library comprises:获得所述身份特征库中已知对象的量化特征;Obtaining quantitative features of known objects in the identity feature library;确定所述已知对象的量化特征与所述至少一个聚类的类中心的量化特征之间的第五相似度,并确定与所述类中心的量化特征的第五相似度最高的K4个已知对象的量化特征;Determine the fifth degree of similarity between the quantitative feature of the known object and the quantitative feature of the cluster center of the at least one cluster, and determine the K4 has the fifth highest degree of similarity with the quantitative feature of the cluster center Know the quantitative characteristics of the object;获取所述类中心的图像特征与对应的K4个已知对象的图像特征之间的第六相似度;Acquiring the sixth similarity between the image feature of the cluster center and the image features of the corresponding K4 known objects;响应于所述K4个已知对象中的一已知对象的图像特征与所述类中心的图像特征之间的第六相似度最高且该第六相似度大于第四阈值,确定所述第六相似度最高的所述一已知对象与所述类中心对应的聚类匹配。In response to the sixth similarity between the image feature of a known object among the K4 known objects and the image feature of the cluster center being the highest and the sixth similarity is greater than a fourth threshold, determining the sixth The known object with the highest similarity is matched with the cluster corresponding to the cluster center.
- 根据权利要求20所述的方法,其特征在于,所述基于身份特征库中的至少一个对象的身份特征,确定与各所述聚类对应的对象身份,还包括:The method according to claim 20, wherein the determining the identity of the object corresponding to each of the clusters based on the identity feature of at least one object in the identity feature library further comprises:响应于所述K4个已知对象的图像特征与相应的类中心的图像特征的第六相似度均小于所述第四阈值,确定不存在与所述已知对象匹配的聚类。In response to the sixth similarity between the image features of the K4 known objects and the image features of the corresponding cluster centers are all less than the fourth threshold, it is determined that there is no cluster matching the known object.
- 一种图像处理装置,其特征在于,包括:An image processing device, characterized by comprising:获取模块,其用于获取图像数据集,所述图像数据集包括多个图像以及分别与所述多个图像关联的第一索引,所述第一索引用于确定所述图像中的对象的时空数据;An acquisition module for acquiring an image data set, the image data set including a plurality of images and a first index respectively associated with the plurality of images, the first index is used to determine the time and space of the object in the image data;聚类模块,其用于对所述图像数据集中的图像执行分布式聚类处理,得到至少一个聚类;A clustering module, configured to perform distributed clustering processing on the images in the image data set to obtain at least one cluster;确定模块,其用于基于得到的所述聚类中的图像所关联的第一索引,确定所述聚类对应的对象的时空轨迹信息。The determining module is configured to determine the spatiotemporal trajectory information of the object corresponding to the cluster based on the obtained first index associated with the image in the cluster.
- 根据权利要求22所述的装置,其特征在于,所述装置还包括增量聚类模块,其用于获取输入图像的图像特征;对所述输入图像的图像特征执行量化处理,得到所述输入图像的量化特征;基于所述输入图像的量化特征以及所述分布式聚类处理得到的所述至少一个聚类的类中心,确定所述输入图像所在的聚类。The device according to claim 22, wherein the device further comprises an incremental clustering module, which is used to obtain image features of the input image; perform quantization processing on the image features of the input image to obtain the input The quantified feature of the image; based on the quantized feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process, the cluster where the input image is located is determined.
- 根据权利要求23所述的装置,其特征在于,所述增量聚类模块还用于获取所述输入图像的量化特征与所述分布式聚类处理得到的所述至少一个聚类的类中心的量化特征之间的第三相似度;确定与所述输入图像的量化特征之间的第三相似度最高的K3个类中心;获取所述输入图像的图像特征与所述K3个类中心的图像特征之间的第四相似度;在所述K3个类中心中任一类中心的图像特征与所述输入图像的图像特征之间的第四相似度最高且该第四相似度大于第三阈值的情况下,将所述输入图像加入至所述任一类中心对应的聚类,K3为大于或者等于1的整数。The device according to claim 23, wherein the incremental clustering module is further configured to obtain the quantized feature of the input image and the cluster center of the at least one cluster obtained by the distributed clustering process. The third degree of similarity between the quantized features of the input image; determine the K3 class centers with the third highest degree of similarity between the quantized features of the input image; obtain the image features of the input image and the K3 class centers The fourth degree of similarity between image features; the fourth degree of similarity between the image feature of any one of the K3 class centers and the image feature of the input image is the highest, and the fourth degree of similarity is greater than the third In the case of a threshold, the input image is added to the cluster corresponding to the center of any type, and K3 is an integer greater than or equal to 1.
- 根据权利要求24所述的装置,其特征在于,所述增量聚类模块还用于在不存在与所述输入图 像的图像特征之间的第四相似度大于第三阈值的类中心的情况下,基于所述输入图像的量化特征以及所述图像数据集中的图像的量化特征执行所述分布式聚类处理,得到至少一个新的聚类。The device according to claim 24, wherein the incremental clustering module is further configured to: when there is no cluster center whose fourth similarity is greater than the third threshold between the image features of the input image Next, perform the distributed clustering process based on the quantized features of the input image and the quantized features of the images in the image data set to obtain at least one new cluster.
- 根据权利要求22-25中任意一项所述的装置,其特征在于,所述第一索引包括以下信息中的至少一种:所述图像的采集时间、采集地点以及采集所述图像的图像采集设备的标识、所述图像采集设备所安装的位置。The device according to any one of claims 22-25, wherein the first index includes at least one of the following information: the collection time of the image, the collection location, and the image collection used to collect the image The identification of the device and the location where the image capture device is installed.
- 根据权利要求22-26中任意一项所述的装置,其特征在于,所述聚类模块包括:The device according to any one of claims 22-26, wherein the clustering module comprises:第一分布处理单元,其用于分布式并行地获取所述图像数据集中的所述图像的图像特征;A first distributed processing unit, configured to acquire image features of the images in the image data set in a distributed and parallel manner;第二分布处理单元,其用于分布式并行地对所述图像特征执行量化处理得到所述图像特征对应的量化特征;A second distribution processing unit, configured to perform quantization processing on the image features in a distributed and parallel manner to obtain the quantized features corresponding to the image features;聚类单元,其用于基于所述图像数据集中的所述图像对应的量化特征,执行所述分布式聚类处理,得到所述至少一个聚类。The clustering unit is configured to perform the distributed clustering process based on the quantified feature corresponding to the image in the image data set to obtain the at least one cluster.
- 根据权利要求27所述的装置,其特征在于,所述第一分布处理单元还用于将所述图像数据集中的多个所述图像进行分组,得到多个图像组;The device according to claim 27, wherein the first distribution processing unit is further configured to group a plurality of the images in the image data set to obtain a plurality of image groups;将所述多个图像组分别输入多个特征提取模型,利用所述多个特征提取模型分布式并行地执行与所述特征提取模型对应图像组中的图像的特征提取处理,得到所述多个图像的图像特征,其中每个特征提取模型所输入的图像组不同。The multiple image groups are respectively input to multiple feature extraction models, and the multiple feature extraction models are used to execute feature extraction processing of images in the image group corresponding to the feature extraction models in a distributed and parallel manner to obtain the multiple feature extraction models. The image features of the image, where each feature extraction model inputs different image groups.
- 根据权利要求27或28所述的装置,其特征在于,所述第二分布处理单元还用于对所述多个图像的图像特征进行分组处理,得到多个第一分组,所述第一分组包括至少一个图像的图像特征;The device according to claim 27 or 28, wherein the second distribution processing unit is further configured to perform grouping processing on the image features of the multiple images to obtain multiple first groups, and the first group Including image features of at least one image;分布式并行执行所述多个第一分组的图像特征的量化处理,得到所述图像特征对应的量化特征。The quantization processing of the image features of the plurality of first groups is executed in a distributed and parallel manner to obtain the quantized feature corresponding to the image feature.
- 根据权利要求29所述的装置,其特征在于,所述第二分布处理单元还用于在所述分布式并行执行所述多个第一分组的图像特征的量化处理,得到所述图像特征对应的量化特征之前,为所述多个第一分组分别配置第二索引,得到多个第二索引;The apparatus according to claim 29, wherein the second distribution processing unit is further configured to perform quantization processing of the image features of the plurality of first groups in the distributed parallel to obtain the image feature corresponding Before the quantization feature of, configure second indexes for the plurality of first groups respectively to obtain a plurality of second indexes;并用于将所述多个第二索引分别分配给多个量化器,所述多个量化器中每个量化器被分配的所述第二索引不同;And used to allocate the plurality of second indexes to a plurality of quantizers, each of the plurality of quantizers is allocated a different second index;利用所述多个量化器分别并行执行分配的所述第二索引对应的第一分组内的图像特征的量化处理。The multiple quantizers are used to perform quantization processing of the image features in the first group corresponding to the assigned second index respectively in parallel.
- 根据权利要求27-30中任意一项所述的装置,其特征在于,所述量化处理包括乘积量化编码处理。The device according to any one of claims 27-30, wherein the quantization processing comprises product quantization coding processing.
- 根据权利要求27-31中任意一项所述的装置,其特征在于,所述聚类单元还用于获取所述图像数据集中任一图像的量化特征与其余图像的量化特征之间的第一相似度;The device according to any one of claims 27-31, wherein the clustering unit is further configured to obtain the first difference between the quantized features of any image in the image data set and the quantized features of other images. Similarity基于所述第一相似度,确定所述任一图像的K1近邻图像,所述K1近邻图像的量化特征是与所述任一图像的量化特征的第一相似度最高的K1个量化特征,所述K1为大于或等于1的整数;Based on the first similarity, determine the K1 neighbor image of any image, and the quantized feature of the K1 neighbor image is the K1 quantized feature with the highest first similarity to the quantized feature of any image, so Said K1 is an integer greater than or equal to 1;利用所述任一图像以及所述任一图像的K1近邻图像确定所述分布式聚类处理的聚类结果。The clustering result of the distributed clustering process is determined by using the any image and the K1 neighbor image of the any image.
- 根据权利要求32所述的装置,其特征在于,所述聚类单元还用于从所述K1近邻图像中选择出与所述任一图像的量化特征之间的第一相似度大于第一阈值的第一图像集;The device according to claim 32, wherein the clustering unit is further configured to select from the K1 neighboring images that the first similarity with the quantized feature of any image is greater than a first threshold The first collection of images;将所述第一图像集中的全部图像和所述任一图像标注为第一状态,并基于被标注为第一状态的各图像形成一个聚类,所述第一状态为图像中包括相同对象的状态。All the images in the first image set and any one of the images are marked as a first state, and a cluster is formed based on each image marked as the first state, and the first state is the images that include the same object status.
- 根据权利要求32所述的装置,其特征在于,所述聚类单元还用于获取所述任一图像的图像特征与所述任一图像的K1近邻图像的图像特征之间的第二相似度;The device according to claim 32, wherein the clustering unit is further configured to obtain a second degree of similarity between the image feature of the any image and the image feature of the K1 neighbor image of the any image ;基于所述第二相似度,确定所述任一图像的K2近邻图像,所述K2近邻图像的图像特征为所述K1近邻图像中与所述任一图像的图像特征的第二相似度最高的K2个图像特征,K2为大于或者等于1且小于或者等于K1的整数;Based on the second similarity, determine the K2 neighbor image of any image, and the image feature of the K2 neighbor image is the second highest similarity between the K1 neighbor image and the image feature of any image K2 image features, K2 is an integer greater than or equal to 1 and less than or equal to K1;从所述K2近邻图像中选择出与所述任一图像的图像特征的所述第二相似度大于第二阈值的第二图像集;Selecting, from the K2 neighboring images, a second image set whose second similarity to the image feature of any image is greater than a second threshold;将所述第二图像集中的全部图像和所述任一图像标注为第一状态,并基于被标注为第一状态的各 图像形成一个聚类,所述第一状态为图像中包括相同对象的状态。All the images in the second image set and any one of the images are marked as the first state, and a cluster is formed based on each image marked as the first state, and the first state is the images that include the same object status.
- 根据权利要求32-34中任意一项所述的装置,其特征在于,所述聚类单元还用于在所述获取所述图像数据集中任一图像的量化特征与其余图像的量化特征之间的第一相似度之前,对所述图像数据集中的所述多个图像的量化特征进行分组处理,得到多个第二分组,所述第二分组包括至少一个图像的量化特征;The device according to any one of claims 32-34, wherein the clustering unit is further configured to determine between the quantized features of any image in the acquired image data set and the quantized features of other images Before the first degree of similarity, grouping the quantized features of the multiple images in the image data set to obtain multiple second groups, where the second grouping includes the quantized features of at least one image;并且,所述获取所述图像数据集中任一图像的量化特征与其余图像的量化特征之间的第一相似度,包括:And, the acquiring the first degree of similarity between the quantized features of any image in the image data set and the quantized features of other images includes:分布式并行地获取所述第二分组内图像的量化特征与所述其余图像的量化特征之间的第一相似度。The first similarity between the quantized features of the images in the second group and the quantized features of the remaining images is acquired in a distributed and parallel manner.
- 根据权利要求35所述的装置,其特征在于,所述聚类单元还用于在所述分布式并行地获取所述第二分组内图像的量化特征与所述其余图像的量化特征之间的第一相似度之前,为所述多个第二分组分别配置第三索引,得到多个第三索引;The device according to claim 35, wherein the clustering unit is further configured to obtain the difference between the quantized features of the images in the second group and the quantized features of the remaining images in the distributed and parallel manner. Before the first degree of similarity, configure third indexes for the plurality of second groups respectively to obtain a plurality of third indexes;并且,所述分布式并行地获取所述第二分组内图像的量化特征与所述其余图像的量化特征之间的第一相似度,包括:In addition, the distributed and parallel acquisition of the first similarity between the quantized features of the images in the second group and the quantized features of the remaining images includes:基于所述第三索引,建立所述第三索引对应的相似度运算任务,所述相似度运算任务为获取所述第三索引对应的第二分组内的目标图像的量化特征与所述目标图像以外的全部图像的量化特征之间的第一相似度;Based on the third index, a similarity calculation task corresponding to the third index is established, and the similarity calculation task is to obtain the quantized feature of the target image in the second group corresponding to the third index and the target image The first degree of similarity between the quantized features of all images other than those;分布式并行执行所述多个第三索引中每个第三索引对应的相似度获取任务。Distributed and parallel execution of the similarity acquisition task corresponding to each third index of the plurality of third indexes.
- 根据权利要求22-36中任意一项所述的装置,其特征在于,所述类中心确定模块,其用于确定所述分布式聚类处理得到的所述聚类的类中心;The device according to any one of claims 22-36, wherein the class center determination module is configured to determine the class center of the cluster obtained by the distributed clustering process;为所述类中心配置第四索引,并关联地存储所述第四索引和相应的类中心。A fourth index is configured for the class center, and the fourth index and the corresponding class center are stored in association.
- 根据权利要求37所述的装置,其特征在于,所述类中心确定模块还用于基于所述至少一个聚类内的各图像的图像特征的平均值,确定所述聚类的类中心。The device according to claim 37, wherein the cluster center determining module is further configured to determine the cluster center based on the average value of the image features of each image in the at least one cluster.
- 根据权利要求37所述的装置,其特征在于,所述确定模块还用于基于所述聚类中各图像关联的第一索引确定所述聚类对应的对象出现的时间信息和位置信息;The device according to claim 37, wherein the determining module is further configured to determine the time information and location information of the object corresponding to the cluster based on the first index associated with each image in the cluster;基于所述时间信息和位置信息确定所述对象的时空轨迹信息。The spatiotemporal trajectory information of the object is determined based on the time information and the position information.
- 根据权利要求22-39中任意一项所述的装置,其特征在于,所述装置还包括身份确定模块,其用于基于身份特征库中的至少一个对象的身份特征,确定与各所述聚类对应的对象身份。The device according to any one of claims 22-39, wherein the device further comprises an identity determining module, which is configured to determine the identity of at least one object in the identity feature library to determine the identity of The object identity corresponding to the class.
- 根据权利要求40所述的装置,其特征在于,所述身份确定模块还用于获得所述身份特征库中已知对象的量化特征;The device according to claim 40, wherein the identity determination module is further configured to obtain quantitative characteristics of known objects in the identity characteristic library;确定所述已知对象的量化特征与所述至少一个聚类的类中心的量化特征之间的第五相似度,并确定与所述类中心的量化特征的第五相似度最高的K4个已知对象的量化特征;Determine the fifth degree of similarity between the quantitative feature of the known object and the quantitative feature of the cluster center of the at least one cluster, and determine the K4 has the fifth highest degree of similarity with the quantitative feature of the cluster center Know the quantitative characteristics of the object;获取所述类中心的图像特征与对应的K4个已知对象的图像特征之间的第六相似度;Acquiring the sixth similarity between the image feature of the cluster center and the image features of the corresponding K4 known objects;在所述K4个已知对象中的一已知对象的图像特征与所述类中心的图像特征之间的第六相似度最高且该第六相似度大于第四阈值的情况下,确定所述第六相似度最高的所述一已知对象与所述类中心对应的聚类匹配。In the case that the sixth similarity between the image feature of a known object among the K4 known objects and the image feature of the cluster center is the highest and the sixth similarity is greater than the fourth threshold, it is determined that the The known object with the sixth highest similarity is matched with the cluster corresponding to the cluster center.
- 根据权利要求41所述的装置,其特征在于,所述身份确定模块还用于在所述K4个已知对象的图像特征与相应的类中心的图像特征的第六相似度均小于所述第四阈值的情况下,确定不存在与所述已知对象匹配的聚类。The device according to claim 41, wherein the identity determination module is further configured to determine that the sixth similarity between the image features of the K4 known objects and the image features of the corresponding cluster centers is less than that of the first In the case of four thresholds, it is determined that there is no cluster matching the known object.
- 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:处理器;processor;用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1-21中任意一项所述的方法。Wherein, the processor is configured to call instructions stored in the memory to execute the method according to any one of claims 1-21.
- 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令 被处理器执行时实现权利要求1-21中任意一项所述的方法。A computer-readable storage medium with computer program instructions stored thereon, wherein the computer program instructions implement the method of any one of claims 1-21 when executed by a processor.
- 一种计算机程序,其特征在于,所述计算机程序包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现权利要求1-21中任意一项所述的方法。A computer program, characterized in that the computer program includes computer readable code, and when the computer readable code is executed in an electronic device, the processor in the electronic device executes for implementing claims 1-21 The method described in any one of.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022504708A JP2022542127A (en) | 2019-08-15 | 2020-05-09 | Image processing method and apparatus, electronic equipment and storage medium |
KR1020227003244A KR20220025052A (en) | 2019-08-15 | 2020-05-09 | Image processing method and apparatus, electronic device and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910755628.5A CN110502651B (en) | 2019-08-15 | 2019-08-15 | Image processing method and device, electronic equipment and storage medium |
CN201910755628.5 | 2019-08-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021027344A1 true WO2021027344A1 (en) | 2021-02-18 |
Family
ID=68586556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/089402 WO2021027344A1 (en) | 2019-08-15 | 2020-05-09 | Image processing method and device, electronic apparatus, and storage medium |
Country Status (5)
Country | Link |
---|---|
JP (1) | JP2022542127A (en) |
KR (1) | KR20220025052A (en) |
CN (1) | CN110502651B (en) |
TW (1) | TWI761851B (en) |
WO (1) | WO2021027344A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117786445A (en) * | 2024-02-26 | 2024-03-29 | 山东盈动智能科技有限公司 | Intelligent processing method for operation data of automatic yarn reeling machine |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502651B (en) * | 2019-08-15 | 2022-08-02 | 深圳市商汤科技有限公司 | Image processing method and device, electronic equipment and storage medium |
CN111325712B (en) * | 2020-01-20 | 2024-01-23 | 北京百度网讯科技有限公司 | Method and device for detecting image validity |
CN112270361B (en) * | 2020-10-30 | 2021-10-22 | 重庆紫光华山智安科技有限公司 | Face data processing method, system, storage medium and equipment |
CN112686141A (en) * | 2020-12-29 | 2021-04-20 | 杭州海康威视数字技术股份有限公司 | Personnel filing method and device and electronic equipment |
CN112949751B (en) * | 2021-03-25 | 2023-03-24 | 深圳市商汤科技有限公司 | Vehicle image clustering and track restoring method |
CN113139589B (en) * | 2021-04-12 | 2023-02-28 | 网易(杭州)网络有限公司 | Picture similarity detection method and device, processor and electronic device |
TWI803223B (en) * | 2022-03-04 | 2023-05-21 | 國立中正大學 | Method for detecting object of esophageal cancer in hyperspectral imaging |
CN116340991B (en) * | 2023-02-02 | 2023-11-07 | 魔萌动漫文化传播(深圳)有限公司 | Big data management method and device for IP gallery material resources and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050232495A1 (en) * | 2004-04-19 | 2005-10-20 | International Business Machines Corporation | Device for Outputting Character Recognition Results, Character Recognition Device, and Method and Program Therefor |
US20110103700A1 (en) * | 2007-12-03 | 2011-05-05 | National University Corporation Hokkaido University | Image classification device and image classification program |
US20150261789A1 (en) * | 2012-03-26 | 2015-09-17 | Amazon Technologies, Inc. | Cloud-based photo management |
CN108897777A (en) * | 2018-06-01 | 2018-11-27 | 深圳市商汤科技有限公司 | Target object method for tracing and device, electronic equipment and storage medium |
CN109242048A (en) * | 2018-11-07 | 2019-01-18 | 电子科技大学 | Sensation target distributed clustering method based on time series |
CN109543536A (en) * | 2018-10-23 | 2019-03-29 | 北京市商汤科技开发有限公司 | Image identification method and device, electronic equipment and storage medium |
CN109800322A (en) * | 2018-12-28 | 2019-05-24 | 上海依图网络科技有限公司 | A kind of monitoring method and device |
CN110046586A (en) * | 2019-04-19 | 2019-07-23 | 腾讯科技(深圳)有限公司 | A kind of data processing method, equipment and storage medium |
CN110502651A (en) * | 2019-08-15 | 2019-11-26 | 深圳市商汤科技有限公司 | Image processing method and device, electronic equipment and storage medium |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8971641B2 (en) * | 2010-12-16 | 2015-03-03 | Microsoft Technology Licensing, Llc | Spatial image index and associated updating functionality |
CN105022752B (en) * | 2014-04-29 | 2019-04-05 | 中国电信股份有限公司 | Image search method and device |
CN106446797B (en) * | 2016-08-31 | 2019-05-07 | 腾讯科技(深圳)有限公司 | Image clustering method and device |
CN107415806A (en) * | 2017-06-06 | 2017-12-01 | 高炎华 | Intelligent warning lamp based on image recognition |
TWM561251U (en) * | 2017-07-24 | 2018-06-01 | 正能光電股份有限公司 | Face recognition module |
CN107798354B (en) * | 2017-11-16 | 2022-11-01 | 腾讯科技(深圳)有限公司 | Image clustering method and device based on face image and storage equipment |
CN108229321B (en) * | 2017-11-30 | 2021-09-21 | 北京市商汤科技开发有限公司 | Face recognition model, and training method, device, apparatus, program, and medium therefor |
CN108229335A (en) * | 2017-12-12 | 2018-06-29 | 深圳市商汤科技有限公司 | It is associated with face identification method and device, electronic equipment, storage medium, program |
CN108876817B (en) * | 2018-06-01 | 2021-08-20 | 深圳市商汤科技有限公司 | Cross track analysis method and device, electronic equipment and storage medium |
CN109213732B (en) * | 2018-06-28 | 2022-03-18 | 努比亚技术有限公司 | Method for improving photo album classification, mobile terminal and computer readable storage medium |
CN108921876A (en) * | 2018-07-10 | 2018-11-30 | 北京旷视科技有限公司 | Method for processing video frequency, device and system and storage medium |
CN109740660A (en) * | 2018-12-27 | 2019-05-10 | 深圳云天励飞技术有限公司 | Image processing method and device |
CN109784221A (en) * | 2018-12-28 | 2019-05-21 | 上海依图网络科技有限公司 | A kind of monitoring method and device |
CN109753920B (en) * | 2018-12-29 | 2021-09-17 | 深圳市商汤科技有限公司 | Pedestrian identification method and device |
CN109800744B (en) * | 2019-03-18 | 2021-08-20 | 深圳市商汤科技有限公司 | Image clustering method and device, electronic equipment and storage medium |
-
2019
- 2019-08-15 CN CN201910755628.5A patent/CN110502651B/en active Active
-
2020
- 2020-05-09 JP JP2022504708A patent/JP2022542127A/en not_active Withdrawn
- 2020-05-09 KR KR1020227003244A patent/KR20220025052A/en not_active Application Discontinuation
- 2020-05-09 WO PCT/CN2020/089402 patent/WO2021027344A1/en active Application Filing
- 2020-06-10 TW TW109119433A patent/TWI761851B/en active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050232495A1 (en) * | 2004-04-19 | 2005-10-20 | International Business Machines Corporation | Device for Outputting Character Recognition Results, Character Recognition Device, and Method and Program Therefor |
US20110103700A1 (en) * | 2007-12-03 | 2011-05-05 | National University Corporation Hokkaido University | Image classification device and image classification program |
US20150261789A1 (en) * | 2012-03-26 | 2015-09-17 | Amazon Technologies, Inc. | Cloud-based photo management |
CN108897777A (en) * | 2018-06-01 | 2018-11-27 | 深圳市商汤科技有限公司 | Target object method for tracing and device, electronic equipment and storage medium |
CN109543536A (en) * | 2018-10-23 | 2019-03-29 | 北京市商汤科技开发有限公司 | Image identification method and device, electronic equipment and storage medium |
CN109242048A (en) * | 2018-11-07 | 2019-01-18 | 电子科技大学 | Sensation target distributed clustering method based on time series |
CN109800322A (en) * | 2018-12-28 | 2019-05-24 | 上海依图网络科技有限公司 | A kind of monitoring method and device |
CN110046586A (en) * | 2019-04-19 | 2019-07-23 | 腾讯科技(深圳)有限公司 | A kind of data processing method, equipment and storage medium |
CN110502651A (en) * | 2019-08-15 | 2019-11-26 | 深圳市商汤科技有限公司 | Image processing method and device, electronic equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117786445A (en) * | 2024-02-26 | 2024-03-29 | 山东盈动智能科技有限公司 | Intelligent processing method for operation data of automatic yarn reeling machine |
CN117786445B (en) * | 2024-02-26 | 2024-05-10 | 山东盈动智能科技有限公司 | Intelligent processing method for operation data of automatic yarn reeling machine |
Also Published As
Publication number | Publication date |
---|---|
KR20220025052A (en) | 2022-03-03 |
CN110502651B (en) | 2022-08-02 |
CN110502651A (en) | 2019-11-26 |
JP2022542127A (en) | 2022-09-29 |
TW202109514A (en) | 2021-03-01 |
TWI761851B (en) | 2022-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027344A1 (en) | Image processing method and device, electronic apparatus, and storage medium | |
TWI754855B (en) | Method and device, electronic equipment for face image recognition and storage medium thereof | |
TWI710964B (en) | Method, apparatus and electronic device for image clustering and storage medium thereof | |
WO2020228163A1 (en) | Image processing method and apparatus, and electronic device and storage medium | |
WO2021031645A1 (en) | Image processing method and apparatus, electronic device and storage medium | |
WO2021093375A1 (en) | Method, apparatus, and system for detecting people walking together, electronic device and storage medium | |
CN109389162B (en) | Sample image screening technique and device, electronic equipment and storage medium | |
TW202029055A (en) | Pedestrian recognition method and device | |
JP6101399B2 (en) | Clustering method, clustering device, terminal device, program, and recording medium | |
US20220019772A1 (en) | Image Processing Method and Device, and Storage Medium | |
WO2020181728A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN110781957A (en) | Image processing method and device, electronic equipment and storage medium | |
CN110532956B (en) | Image processing method and device, electronic equipment and storage medium | |
CN109145150B (en) | Target matching method and device, electronic equipment and storage medium | |
CN112101238A (en) | Clustering method and device, electronic equipment and storage medium | |
CN109522937B (en) | Image processing method and device, electronic equipment and storage medium | |
WO2020192113A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN112906484B (en) | Video frame processing method and device, electronic equipment and storage medium | |
EP2919136A1 (en) | Method and device for clustering | |
TWI779449B (en) | Object counting method electronic equipment computer readable storage medium | |
JP2016517110A5 (en) | ||
CN111062407A (en) | Image processing method and device, electronic equipment and storage medium | |
CN113808578B (en) | Audio signal processing method, device, equipment and storage medium | |
CN107992893B (en) | Method and device for compressing image feature space | |
CN111814631A (en) | Person detection method and device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20853443 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022504708 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20227003244 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20853443 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.08.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20853443 Country of ref document: EP Kind code of ref document: A1 |