WO2019052351A1 - Image processing method and system, and computer device - Google Patents

Image processing method and system, and computer device Download PDF

Info

Publication number
WO2019052351A1
WO2019052351A1 PCT/CN2018/103541 CN2018103541W WO2019052351A1 WO 2019052351 A1 WO2019052351 A1 WO 2019052351A1 CN 2018103541 W CN2018103541 W CN 2018103541W WO 2019052351 A1 WO2019052351 A1 WO 2019052351A1
Authority
WO
WIPO (PCT)
Prior art keywords
clustering
processed
request
image
server
Prior art date
Application number
PCT/CN2018/103541
Other languages
French (fr)
Chinese (zh)
Inventor
林立安
谢世营
杨阳
刘金
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019052351A1 publication Critical patent/WO2019052351A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/94Hardware or software architectures specially adapted for image or video understanding
    • G06V10/95Hardware or software architectures specially adapted for image or video understanding structured as a network, e.g. client-server architectures

Definitions

  • the present application relates to the field of computer technology, and in particular, to an image processing method and system, and a computer device.
  • the server can respond quickly and accurately. If you face thousands of users, and a single user may have multiple requests, the server's pressure will multiply. For example, the smart terminal needs to send an album to the server for backup, and at the same time, classify the photos in the album.
  • the embodiment of the present application provides an image processing method and system, and a computer device.
  • An image processing system comprising:
  • a client configured to obtain a to-be-processed image set, send the to-be-processed image set to a first server, receive a clustering feature set sent by the first server, and generate a clustering request according to the clustering feature set Sending to the second server, and receiving the clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result;
  • a first server configured to receive the to-be-processed image set sent by the client, extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client;
  • a second server configured to receive the clustering request sent by the client, perform clustering processing according to the clustering feature set in the clustering request, and send the clustering processing result to the client.
  • An image processing method comprising:
  • a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
  • An image processing method comprising:
  • the server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
  • a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
  • the server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
  • the server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
  • An image processing method comprising:
  • a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
  • FIG. 1 is a schematic diagram of an application environment of an image processing method in an embodiment
  • FIG. 2 is a schematic diagram of an application environment of an image processing method in another embodiment
  • FIG. 3 is a hardware interaction timing diagram of an image processing method in an embodiment
  • FIG. 5 is a display diagram of a mobile terminal album classification result in an embodiment
  • FIG. 6 is a flow chart of an image processing method in another embodiment
  • Figure 7 is a flow chart of an image processing method in still another embodiment
  • Figure 8 is a system architecture diagram of an image processing system in an embodiment
  • FIG. 9 is a schematic structural diagram of an image processing apparatus in an embodiment
  • FIG. 10 is a schematic structural diagram of an image processing apparatus in another embodiment.
  • FIG. 11 is a schematic structural diagram of an image processing apparatus in still another embodiment
  • FIG. 12 is a schematic diagram showing the internal structure of a server in an embodiment
  • FIG. 13 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application.
  • first may be referred to as a second client
  • second client may be referred to as a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • FIG. 1 is a schematic diagram of an application environment of an image processing method in an embodiment.
  • the application environment includes a client 12, a first server 14, and a second server 16.
  • the client 12 is configured to acquire a to-be-processed image set, and send the obtained to-be-processed image set to the first server 14.
  • the first server 14 extracts the cluster feature set of the image set to be processed, and returns the cluster feature set to the client 12.
  • the client 12 generates a clustering request according to the clustering feature set, and sends the clustering request to the second server 16.
  • the second server 16 After receiving the clustering request sent by the client 12, the second server 16 performs clustering processing according to the clustering feature set in the clustering request, and sends the clustering processing result to the client 12.
  • the client 12 is an electronic device that is mainly used to input user information and output processing results at the outermost periphery of the computer network, and may be, for example, a personal computer, a mobile terminal, a personal digital assistant, a wearable electronic device, or the like.
  • the first server 14 and the second server 16 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers.
  • the application environment includes a client 22, a first server cluster 24, and a second server cluster 26.
  • the client 22 is configured to acquire a to-be-processed image set, and send the obtained to-be-processed image set to the first server cluster 24.
  • the first server cluster 24 extracts the cluster feature set of the image set to be processed, and returns the cluster feature set to the client 22.
  • the client 22 generates a clustering request based on the clustering feature set and sends the clustering request to the second server cluster 26.
  • the second server cluster 26 After receiving the clustering request sent by the client 22, the second server cluster 26 performs clustering processing according to the clustering feature set in the clustering request, and sends the clustering processing result to the client 22.
  • the first server cluster 24 includes one or more first servers 242 for implementing distributed task processing.
  • the second server cluster 26 includes one or more second servers 262 for implementing distributed task processing.
  • the client 22 is an electronic device that is mainly used to input user information and output processing results at the outermost periphery of the computer network, and may be, for example, a personal computer, a mobile terminal, a personal digital assistant, a wearable electronic device, or the like. In the embodiment provided by the present application, the client 22 may include one or more, which is not limited herein.
  • the first server 242 and the second server 262 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers.
  • FIG. 3 is a hardware interaction timing diagram of an image processing method in an embodiment. As shown in FIG. 3, the interaction timing diagram includes operations 302 through 316. among them:
  • the client acquires a to-be-processed image collection, and sends the to-be-processed image collection to the first server.
  • the image to be processed refers to an image that needs to be processed, for example, the image to be processed may be an image that requires process of feature recognition, classification, and the like.
  • the image set to be processed refers to a set of images to be processed, and one or more images to be processed may be included in the image set to be processed.
  • the client refers to the outermost part of the computer network, and is mainly used for inputting user information and outputting the processing result of the electronic device.
  • the first server refers to a server that can be used for feature recognition processing.
  • Feature recognition processing refers to a process of identifying specific feature attributes of an image to be processed.
  • the first server receives the image set to be processed, and extracts a cluster feature set according to the image set to be processed.
  • the clustering feature set refers to a set of features obtained by performing clustering processing.
  • the first server After receiving the image set to be processed, the first server performs feature recognition processing on each image to be processed in the image set to be processed.
  • Each image to be processed corresponds to one or more clustering features, and the clustering features extracted by all the images to be processed constitute a clustering feature set.
  • Operation 306 the first server sends the extracted cluster feature set to the client.
  • the client receives the cluster feature set, and generates a clustering request according to the cluster feature set.
  • a clustering request is a command for clustering a clustering object set.
  • the clustering object set refers to the object set used for performing the clustering process.
  • the clustering object set may be a to-be-processed image set, and the to-be-processed image in the to-be-processed image set is clustered.
  • the generated clustering request includes information such as the request originating device identifier, the request receiving device identifier, the request initiation time, and the cluster object identifier. It can be understood that, in the client, multiple application accounts can be logged in, and when the application account needs to perform clustering processing, the clustering request is initiated by the client to the second server.
  • the request originating object may refer to an application account identifier or a terminal identifier.
  • the application account identifier refers to a unique identity identifier used to represent the identity of the user.
  • the terminal identifier refers to a unique identifier that distinguishes different smart terminal devices.
  • the client sends the generated clustering request to the second server.
  • the second server after receiving the clustering request, performs clustering processing on the corresponding clustering feature set. If multiple clustering requests sent by multiple clients are received, a clustering request queue is formed according to the multiple clustering requests, and the clustering request in the clustering request queue is processed.
  • the second server receives the clustering request, and performs clustering processing according to the clustering feature set in the clustering request.
  • Clustering processing refers to dividing a clustering object set into multiple categories according to one or more clustering features. Specifically, the cluster feature set is clustered according to the clustering model, and the cluster model can be trained according to the training image set.
  • the training image set refers to an image set used for training to obtain a clustering model.
  • the training image set may be an image set generated according to a to-be-processed image set, or may be an image set specifically used for training a clustering model.
  • the second server sends the clustering processing result to the client.
  • the second server performs clustering processing to obtain a clustering processing result
  • the label data may be generated according to the clustering processing result
  • the label data is stored on the disk of the second server.
  • the clustering result can be pushed to the client through the PUSH service.
  • the PUSH service is a service for pushing data.
  • the client receives the clustering processing result, and classifies the image set to be processed according to the clustering processing result.
  • Classification refers to dividing the images to be processed in the image set to be processed into different types according to a unified standard.
  • Each image to be processed corresponds to one or more cluster features, and one cluster feature corresponds to one classification type. That is, the image to be processed may be divided into one or more types.
  • the image to be processed, the clustering feature, and the classification type have corresponding relationships.
  • the client may establish a relationship between the image to be processed and the clustering feature according to the clustering feature returned by the first server, and establish a correspondence between the clustering feature and the classification type according to the clustering processing result returned by the second server.
  • the client classifies the set of images to be processed according to this correspondence.
  • FIG. 4 is a flow chart of an image processing method in one embodiment. As shown in FIG. 4, the flowchart includes operations 402 through 406. among them:
  • Operation 402 Acquire a set of images to be processed, and send the set of images to be processed to the first server.
  • the image to be processed refers to an image that needs to be processed, for example, the image to be processed may be an image that requires process of feature recognition, classification, and the like.
  • the image set to be processed refers to a set of images to be processed, and one or more images to be processed may be included in the image set to be processed.
  • the first server refers to a server that can be used for feature recognition processing.
  • Feature recognition processing refers to a process of identifying specific feature attributes of an image to be processed.
  • the feature recognition process may be to identify information such as face features, color features, edge features, and texture features in the image to be processed. Different features are identified and the recognition models used are different. For example, commonly used edge detection models include Sobel edge detection algorithm, Canny edge detection algorithm and Roberts edge detection algorithm.
  • the feature recognition process is performed on the image to be processed, and the feature recognition values are represented by the feature values, and a feature set is formed by the feature recognition result.
  • the formed feature set can be used to cluster the image to be processed. Clustering is the process of dividing a collection of objects into multiple objects, each of which consists of one or more similar objects.
  • the first server can be a server cluster, that is, distributed processing that implements feature recognition processing through multiple servers. If the first server is a server cluster, the first server is composed of a plurality of first child servers. Each first sub-server can report the working status to the registration server in real time, and the registration server generates a list of available services according to the working status reported by the first sub-server. The server ID of the first subserver in the available state is recorded in the list of available services, and the first subserver in the available state can be selected by obtaining the list of available services.
  • the server may obtain the available service list from the registration server, obtain the server identifier in the available service list, and select the target server identifier from the obtained server identifier by using a preset routing algorithm, and the image to be processed is to be processed.
  • the collection is sent to the first subserver corresponding to the target server ID.
  • the preset routing algorithm is an algorithm for selecting a target server identifier.
  • the preset routing algorithm may be a load balancing algorithm, and the load balancing algorithm may be a random algorithm, a polling algorithm, a source address hash algorithm, or the like, which is not limited herein.
  • the server identifier refers to a unique identifier that distinguishes different servers, and searches for a server according to the server identifier.
  • Operation 404 Receive a cluster feature set sent by the first server, and send the clustering request generated according to the cluster feature set to the second server, where the cluster feature set is extracted according to the to-be-processed image set.
  • the clustering feature set refers to a set of features obtained by performing clustering processing.
  • the first server After receiving the image set to be processed, the first server performs feature recognition processing on each image to be processed in the image set to be processed.
  • One or more clustering features may be extracted from each image to be processed, and a clustering feature set is generated according to the obtained clustering features. For example, a face area of each image to be processed in the image set to be processed is traversed, and the face area is extracted to form a face area set. Then, the face region is a clustering feature, and each of the to-be-processed images includes one or more human faces, and the extracted face regions in the aggregated image to be processed form a clustering feature set.
  • the clustering request refers to a command for clustering the cluster feature set.
  • the clustering request includes information such as a requesting device identifier, a requesting device identifier, a request initiation time, and a clustering feature identifier.
  • the request initiation device identifier refers to the unique identifier of the device that initiates the clustering request
  • the request receiving device identifier refers to the unique identifier of the device that receives the clustering request
  • the cluster initiation time refers to the time when the clustering request is initiated
  • the clustering feature refers to a unique identifier corresponding to the cluster feature set, and the cluster feature set can be searched according to the cluster feature identifier.
  • the receiving device After receiving the clustering request, the receiving device performs clustering processing according to the clustering feature set. If the receiving device receives multiple clustering requests of multiple sending devices, a clustering request queue is formed according to the multiple clustering requests, and the clustering request in the clustering request queue is processed.
  • the second server refers to a server that can be used for clustering processing.
  • the client may initiate a clustering request to the second server, and the second server may connect to multiple clients and receive clustering requests sent by multiple clients.
  • multiple application accounts can be logged in, and when the application account needs to perform clustering processing, the clustering request is initiated by the client to the second server.
  • the requesting device identifier may be an application account identifier or a terminal identifier.
  • the application account identifier refers to a unique identity identifier used to represent the identity of the user.
  • the terminal identifier refers to a unique identifier that distinguishes different smart terminal devices.
  • the terminal identifier may refer to an IP (Internet Protocol) protocol, a MAC (Media Access Control) address, and the like of the smart terminal.
  • IP Internet Protocol
  • MAC Media Access Control
  • the user can log in to the client through the application account, and send a request for clustering the photos in the album to the second server through the client, and the second server receives the cluster request sent by the client, and then takes the photo in the album. Perform clustering processing and return the result of the clustering processing to the client.
  • a clustering request queue can be formed. If the same request originating object sends multiple clustering requests to the second server, the second server may merge the clustering requests corresponding to the same request initiating object.
  • the merge clustering request refers to combining multiple clustering requests into one clustering request, and processing the merged clustering request to realize simultaneous processing of multiple clustering requests.
  • the request initiation device identifier included in each cluster request in the cluster request queue is obtained, and the cluster request requesting the same device identifier in the cluster request queue is merged.
  • the requesting initiating device identifies the same clustering request, that is, the clustering request sent by the same request initiating object. It can be understood that the request initiation device identifier may refer to the terminal identifier, and may also refer to an application account identifier.
  • the clustering request queue includes three clustering requests, which are arranged in chronological order: clustering request 1, and application account A sends a clustering request at 03:30 on August 20, 2017, including Clustering feature set 1; clustering request 2, clustering request sent by application account B on August 21, 2017 at 02:41, including clustering feature set 2; clustering request 3, application account A in August 2017
  • the clustering request sent at 04:02 on the 22nd contains the clustering feature set 3.
  • the clustering request 1 and the clustering request 3 are merged, and the clustering feature set obtained after the combination is the union of the clustering feature set 1 and the clustering feature set 3.
  • the client may preset a condition for triggering a clustering request to the second server, and the set clustering triggering condition includes at least one of the following methods: the number of newly added photos in the client's album is greater than the preset number.
  • the current time is the preset time; the time from the last time the clustering request is initiated exceeds the preset time period; the mobile terminal is currently in the charging state. For example, when the mobile terminal adds more than 50 pictures, if the current time is between 2 am and 5 am, and the mobile terminal is in a charging state, the mobile terminal initiates a clustering request.
  • Operation 406 Receive a clustering processing result sent by the second server, and classify the image processing group to be processed according to the clustering processing result, where the clustering processing result is obtained by the second server performing clustering processing according to the clustering feature set.
  • the second server forms a group, and each cluster feature has a corresponding group.
  • Corresponding tag data may be formed according to the clustering feature, and the tag data is used to mark a specific grouping attribute of the clustering feature. For example, if the tag data of the clustering feature 1 is "packet 1", then the clustering feature 1 belongs to the grouping of "packet 1".
  • the formed tag data can be stored on the disk of the second server for storage.
  • Classification refers to dividing the images to be processed in the image set to be processed into different types according to a unified standard.
  • Each image to be processed corresponds to one or more cluster features, and one cluster feature corresponds to one classification type. That is to say, the image to be processed may be divided into one or more types, which is not limited in this embodiment.
  • the image to be processed, the clustering feature, and the classification type have corresponding relationships.
  • the client may establish a relationship between the image to be processed and the clustering feature according to the clustering feature returned by the first server, and establish a correspondence between the clustering feature and the classification type according to the clustering processing result returned by the second server.
  • the photos in the album are classified.
  • Each face corresponds to one category, and each photo may contain one or more faces. If a photo contains multiple faces, this photo Will belong to multiple categories.
  • the client sends the album to the first server, and the first server traverses each photo in the album, extracts the face region in each photo, and returns the extracted face region set to the client.
  • the client sends a clustering request to the second server, and sends the set of face regions to the second server for clustering processing.
  • the client classifies the photos in the album according to the clustering processing result returned by the second server.
  • FIG. 5 is a diagram showing a result of classification of a mobile terminal album in one embodiment.
  • the mobile terminal sends the album to the first server, and the first server traverses each photo in the album, extracts the cluster feature in each photo, and returns the extracted cluster feature set to the mobile terminal.
  • the mobile terminal sends a clustering request to the second server, and sends the clustering feature set to the second server for clustering processing.
  • the mobile terminal classifies the photos in the album according to the clustering processing result returned by the second server.
  • Six classification results are displayed on the interface in this embodiment, including "Class 1", “Class 2", “Class 3", “Class 4", "Class 5" and “Class 6", respectively. Contains a number of common photos, click on the corresponding category to view the photos in the category.
  • the image processing method provided in the above embodiment sends the image set to be processed to the first server for feature recognition processing, and sends the cluster feature set processed by the first server to the second server for clustering processing.
  • the image set to be processed is classified according to the clustering processing result returned by the second server. They are processed on different servers, and different servers perform different processing. In the face of huge data volume, they can also be synchronized, which improves the accuracy of image processing and improves the accuracy of image processing.
  • Figure 6 is a flow chart of an image processing method in another embodiment. As shown in FIG. 6, the flowchart includes operations 602 through 604. among them:
  • Operation 602 Receive a to-be-processed image set sent by the client.
  • the set of pending images is obtained by the client.
  • the client's storage space stores the image to be processed.
  • the client can directly obtain the image to be processed from the preset storage address, or traverse all the folders in the client to obtain the image to be processed.
  • the storage space of the client is divided into internal memory and external storage.
  • the internal memory refers to the memory that comes with the client itself and is part of the client hardware structure.
  • the external storage refers to the external storage device of the client, and the external storage amount can be transmitted to the client through a dedicated interface.
  • the external storage may be an SD card, a USB flash drive or the like.
  • the set of to-be-processed images sent by the client may include all the to-be-processed images stored by the client, or may only include a part of the to-be-processed images stored by the client.
  • the image set to be processed sent by the client may include all images in the internal memory and the external memory, and may also be included in the image included in the internal memory.
  • Operation 604 extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the cluster feature set, and sending the clustering request to the second server, and receiving the second server to return
  • the clustering processing result obtained by clustering according to the clustering feature set, and classifying the image set to be processed according to the clustering processing result.
  • the image set to be processed after receiving the image set to be processed, the image set to be processed needs to be subjected to feature recognition processing to obtain a cluster feature set.
  • the extracting the clustering feature set of the image set to be processed may include: generating a to-be-processed image queue according to the to-be-processed image set, and extracting the clustering feature set according to the to-be-processed image in the image queue to be processed.
  • the image queue to be processed refers to a queue formed by the image to be processed, and the image to be processed can be processed according to the image queue to be processed to realize the orderly processing of the image to be processed.
  • a preset number of to-be-processed images may be acquired from the image queue to be processed each time the feature recognition process is performed, and the acquired preset number of to-be-processed images are subjected to feature recognition processing.
  • the image queue to be processed may be randomly generated, or may be generated according to attributes such as the size and format of the image to be processed.
  • the images to be processed are arranged according to the format, and the images to be processed in the same format are processed together.
  • the image to be processed can be divided into JPG, PNG, TIFF, RAW and the like.
  • the processing speed of the image to be processed can also be controlled, and a preset number of images to be processed are processed each time. For example, there are a total of 500 images to be processed, 100 sheets at a time.
  • the clustering feature set of the image set to be processed may further include: performing an encryption process on the image set to be processed, and generating a to-be-processed image queue according to the image set to be processed after the encryption process;
  • the image to be processed is decrypted, and the cluster feature set is extracted according to the image to be processed after the decryption process.
  • Encryption processing refers to the process of changing the original information by a special algorithm so that unauthorized users cannot know the original information.
  • the image set to be processed can be encrypted by an encryption algorithm such as 3DES (Triple Data Encryption Algorithm) or RC5.
  • 3DES Triple Data Encryption Algorithm
  • the decryption process refers to the process of restoring the encrypted information to the original information, and the encryption process and the decryption process are the opposite processes.
  • the image to be processed is subjected to encryption processing, and the processing speed of the image to be processed is controlled by the queue.
  • the image to be processed is processed, the image to be processed after the encryption process needs to be decrypted, and then the image to be processed after the decryption process is subjected to feature recognition processing.
  • the image to be processed may be subjected to a certain degree of compression or cropping processing.
  • the image to be processed in the to-be-processed image set is compressed or clipped, and the cluster feature set is extracted according to the compressed or cropped image set to be processed.
  • the compression process refers to a process of compressing a to-be-processed image to a certain extent to make the space occupied by the image to be processed smaller.
  • the trimming process refers to a process of cutting a to-be-processed image to a certain extent, so that the occupied image takes up less space.
  • the degree of image compression or cropping processing should not be too large, and the degree of multi-compression or cropping processing is too large, which will seriously affect the feature recognition accuracy of the image to be processed.
  • the image processing method provided by the foregoing embodiment receives a set of to-be-processed images sent by a client, and extracts a cluster feature set of the image set to be processed.
  • the client sends the clustering request generated by the clustering feature set to the second server, and receives the clustering processing result obtained by the clustering process according to the clustering feature set returned by the second server, and processes the image set according to the clustering processing result. sort.
  • the processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
  • FIG. 7 is a flow chart of an image processing method in still another embodiment. As shown in FIG. 7, the flowchart includes operations 702 through 704. among them:
  • the clustering request sent by the client is received, where the clustering request is generated by the client according to the clustering feature set sent by the first server, and the clustering feature set is to be processed by the first server according to the client. Image collection extracted.
  • multiple clustering requests may be received at the same time, and the multiple clustering requests may be sent by the same client or by different clients. Then, according to the received multiple clustering requests, a clustering request queue is formed, and the clustering request in the clustering request queue is processed according to a certain rule.
  • the clustering request includes information such as the request originating device identifier, the request receiving device identifier, the request originating time, and the clustering feature set.
  • the clustering request queues are arranged in the order of the clustering request initiation time, that is, the clustering request with the top requesting time is prioritized, and the clustering request located first in the clustering request queue is preferentially processed each time. . It can be understood that the clustering request queue can also be sorted according to other rules, and is not further limited herein. For example, the clustering request queue may also perform sorting according to the space occupied by the request originating device priority and the clustering feature set.
  • the clustering request may include a requesting device identifier, which is used to distinguish different devices that initiate the clustering request.
  • the request initiation device identifier may be a terminal identifier of the client or an application account identifier. Among them, the application account can be logged in on multiple different clients.
  • the client may preset a condition for triggering a clustering request to the second server, and the set clustering triggering condition includes at least one of the following methods: the number of newly added photos in the client's album is greater than the preset number.
  • the current time is the preset time; the time from the last time the clustering request is initiated exceeds the preset time period; the mobile terminal is currently in the charging state. For example, when the mobile terminal adds more than 50 pictures, if the current time is between 2 am and 5 am, and the mobile terminal is in a charging state, the mobile terminal initiates a clustering request.
  • Operation 704 performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform classification according to the clustering processing result.
  • the clustering request with the same requesting device identifier may be merged.
  • the merge clustering request refers to combining multiple clustering requests into one clustering request, and processing the merged clustering request to realize simultaneous processing of multiple clustering requests.
  • the request initiation device identifier included in each cluster request in the cluster request queue is obtained, and the cluster request requesting the same device identifier in the cluster request queue is merged. It can be understood that the requesting initiating device identifies the same clustering request, that is, the clustering request sent by the same request initiating object.
  • the clustering feature set is clustered according to the clustering request, and the clustering processing result includes: generating a clustering request queue according to the clustering request sent by the client, and requesting the same clustering request in the clustering request queue The merging is performed; the clustering feature set is clustered according to the merged clustering request, and the clustering processing result is obtained.
  • combining the clustering request request with the same clustering request in the clustering request queue includes: sorting the clustering request in the clustering request queue according to the request initiation time, and acquiring the sorted clustering request queue The specified clustering request in the clustering request; the same clustering request in the clustering request queue as the requesting initiating object of the specified clustering request is merged.
  • the clustering request in the clustering request queue is sorted according to the request initiation time, for example, the clustering request is sorted in ascending order according to the request initiation time, or the clustering request is sorted in descending order according to the request initiation time.
  • the request receiving device after receiving a plurality of clustering requests, the request receiving device cannot process all clustering requests simultaneously due to limited processing capability. Then, the request receiving device forms a clustering request queue according to the order of the request initiation time, and processes the clustering request with the top request initiation time first, and requests the clustering request post-processing after the initiation time.
  • the specified clustering request refers to a clustering request in the clustering request queue that meets the specified conditions, and the obtained specified clustering request is used as the clustering request currently processed.
  • the specified clustering request may be obtained according to the request initiation time, and the specified clustering request may also be obtained according to the attribute parameters of the clustering object. For example, a clustering request in the clustering request queue for sorting the first position, sorting the clustering request of the last bit, or acquiring a clustering request with the largest occupied space of the image collection to be processed.
  • the specified clustering request may be a first-level clustering request, that is, a clustering requesting team to select the first clustering request in the team.
  • the merging of the same clustering request requesting the object in the clustering request queue may include: arranging the clustering request in the clustering request queue according to the request initiation time in a first-to-last order, and acquiring the clustering request queue The first clustering request; the clustering request queue is merged with the same clustering request as the first clustering request requesting object. After the clustering requests are merged, the clustering feature sets corresponding to the clustering requests also need to be merged. Then, the merged cluster feature set is a union of the cluster feature sets corresponding to each cluster request, and the merged cluster feature set is clustered.
  • Clustering feature sets are clustered to obtain clustering processing results.
  • the image processing method provided by the embodiment of the present application further includes: generating tag data according to the clustering processing result, and storing the tag data in a preset storage space.
  • the tag data refers to the identifier used to mark the clustering feature in the clustering feature set. According to the tag data generated by the clustering process result, a one-to-one correspondence can be established with the clustering feature identifier, and the tag data is stored in the pre-predetermined relationship. Set the storage space.
  • the clustering process can divide the cluster object set into a plurality of categories according to one or more features. For example, people can be divided into men and women according to their gender. They can be divided into teenagers, youth, middle-aged and so on according to age. There are more combinations according to gender and age.
  • clustering object sets can be classified according to the clustering model.
  • Commonly used clustering models include k-means clustering model, hierarchical clustering model, SOM clustering model and FCM clustering model.
  • the clustering model can be obtained by training according to the training image set.
  • the training image set refers to a set of images used for training to obtain a clustering model, and the training image set may take a part of the image set to be processed, or may be an image set specifically used for training the clustering model.
  • the training image set is trained to obtain a clustering model and a feature recognition model, and the clustering feature set is clustered according to the clustering model, and the feature recognition model is sent to the first server to extract the aggregate of the image set to be processed.
  • Class feature set refers to a set of images used for training to obtain a clustering model, and the training image set may take a part of the image set to be processed, or may be an image set specifically used for training the clustering model.
  • the training image set is trained to obtain a clustering model and a feature recognition model, and the clustering feature set is clustered according to the clustering model, and the feature recognition model is sent to the first server to extract the aggregate of the image set to be processed.
  • Class feature set is
  • the image processing method provided by the foregoing embodiment receives the clustering request sent by the client, performs clustering processing according to the clustering feature set in the clustering request, and obtains a clustering processing result, and sends the clustering processing result to the client. , so that the client classifies according to the clustering processing results.
  • the clustering request is generated by the client according to the clustering feature set sent by the first server, and the clustering feature set is extracted by the first server according to the to-be-processed image set sent by the client. It can be seen that in the face of a huge amount of data, it is also possible to perform feature recognition and clustering processing at the same time, thereby improving the accuracy of image processing.
  • the processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
  • Figure 8 is a system architecture diagram of an image processing system in one embodiment. As shown in FIG. 8, the system architecture diagram includes a client 802, a first server 804, and a second server 806. among them:
  • the client 802 is configured to obtain a to-be-processed image set, send the to-be-processed image set to the first server 804, receive the clustering feature set sent by the first server 804, and send the clustering request generated according to the clustering feature set to the first
  • the second server receives the clustering processing result sent by the second server, and classifies the image set to be processed according to the clustering processing result.
  • the first server 804 is configured to receive a set of to-be-processed images sent by the client 802, extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client 802.
  • the first server is further configured to generate a to-be-processed image queue according to the to-be-processed image set, and extract a clustering feature set according to the to-be-processed image in the image queue to be processed.
  • the image queue to be processed may be randomly generated, or may be generated according to attributes such as the size and format of the image to be processed. After the image queue to be processed is formed, the processing speed of the image to be processed can also be controlled, and a preset number of images to be processed are processed each time.
  • the first server may further perform encryption processing on the to-be-processed image set, and generate a to-be-processed image queue according to the encrypted processed image set; and decrypt the to-be-processed image in the image queue to be processed. And extracting a cluster feature set according to the to-be-processed image after decryption processing. Further, the image to be processed in the image set to be processed may be compressed or trimmed, and the cluster feature set is extracted according to the image set to be processed after compression or cropping.
  • the first server may be a server cluster, that is, distributed processing that implements feature recognition processing through multiple servers. If the first server is a server cluster, the first server is composed of a plurality of first child servers. Each first sub-server can report the working status to the registration server in real time, and the registration server generates a list of available services according to the working status reported by the first sub-server. The server ID of the first subserver in the available state is recorded in the list of available services, and the first subserver in the available state can be selected by obtaining the list of available services.
  • the server may obtain the available service list from the registration server, obtain the server identifier in the available service list, and select the target server identifier from the obtained server identifier by using a preset routing algorithm, and the image to be processed is to be processed.
  • the collection is sent to the first subserver corresponding to the target server ID.
  • the first server 804 can be, but is not limited to, providing a data transfer service, an encryption and decryption service, a feature recognition service, a storage interface service, and a storage service.
  • the data transmission service is used for data transmission, for example, receiving an image set to be processed sent by a client through an IO service, or sending a cluster feature set to a client.
  • the encryption and decryption service is used for encrypting and decrypting data.
  • the encryption and decryption service may be a Privacy service, and the image to be processed is encrypted by the Privacy service.
  • the feature recognition service refers to a service that provides feature recognition processing, such as extracting cluster features in a set of images to be processed.
  • a storage service is a service that stores data, such as storing a collection of images to be processed on a first server.
  • a storage interface service refers to a service that interfaces with a storage service, such as a docking service with a storage service.
  • the second server 806 is configured to receive the clustering request sent by the client 802, perform clustering processing according to the clustering feature set in the clustering request, and send the clustering processing result to the client 802.
  • the second server is further configured to generate a clustering request queue according to the clustering request sent by the client, and merge the clustering request queue with the same clustering request requesting object; according to the merged clustering The clustering feature set is requested to be clustered.
  • the method may further include: sorting the clustering request in the clustering request queue according to the request initiation time, and acquiring the specified clustering request in the sorted clustering request queue; and the clustering request queue and the specified clustering request The request initiates the same cluster request for the object to merge. Further, the clustering request in the clustering request queue is arranged in a first-to-last order according to the request initiation time, and the first clustering request in the clustering request queue is obtained; the clustering request queue is combined with the first clustering request The request initiates the same clustering request for the object to merge. It is also possible to generate tag data according to the clustering processing result and store the tag data in a preset storage space.
  • the second server may further train the training image set to obtain a clustering model and a feature recognition model, cluster the cluster feature set according to the clustering model, and send the feature recognition model to the first server to extract the image set to be processed.
  • a collection of clustering features may be used.
  • the second server can include, but is not limited to, a tag data service, a clustering service, a machine learning service, and a data transfer service.
  • the tag data service refers to a service that generates tag data according to a clustering process result.
  • the clustering service refers to a service that clusters data sets, for example, clustering feature sets.
  • the machine learning service refers to a service that provides model training, for example, training a cluster model and a feature recognition model according to a training image set.
  • a data transmission service refers to a service that provides data transmission, for example, pushing a cluster processing result to a client through a PUSH method.
  • the image processing system provided by the foregoing embodiment sends the image set to be processed to the first server for feature recognition processing by the client, and sends the cluster feature set processed by the first server to the second server for clustering processing.
  • the client classifies the image set to be processed according to the clustering processing result returned by the second server.
  • Instantly facing a huge amount of data it can also be processed synchronously, improving the accuracy of image processing.
  • the processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
  • FIG. 9 is a block diagram showing the structure of an image processing apparatus in an embodiment.
  • the image processing apparatus 900 includes an image acquisition module 902, a feature acquisition module 904, and an image classification module 906. among them:
  • the image obtaining module 902 is configured to acquire a to-be-processed image set, and send the to-be-processed image set to the first server.
  • the feature acquisition module 904 is configured to receive a cluster feature set that is sent by the first server according to the to-be-processed image set, and send a clustering request generated according to the cluster feature set to a second server.
  • the image classification module 906 is configured to receive a clustering processing result sent by the second server, and classify the to-be-processed image collection according to the clustering processing result, where the clustering processing result is determined by the second server according to The cluster feature set is obtained by clustering.
  • the image processing apparatus provided in the foregoing embodiment sends the image set to be processed to the first server for feature recognition processing, and sends the cluster feature set processed by the first server to the second server for clustering processing.
  • the image set to be processed is classified according to the clustering processing result returned by the second server.
  • Instantly facing a huge amount of data it can also be processed synchronously, improving the accuracy of image processing.
  • the processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
  • FIG. 10 is a block diagram showing the structure of an image processing apparatus in another embodiment.
  • the image processing apparatus 1000 includes an image receiving module 1002 and a feature acquiring module 1004. among them:
  • the image receiving module 1002 is configured to receive the to-be-processed image set sent by the client.
  • a feature acquiring module 1004 configured to extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client, instructing the client to perform generating according to the cluster feature set
  • the clustering request is sent to the second server, and the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server is received, and the to-be-processed image collection is obtained according to the clustering processing result. sort.
  • the image processing apparatus receives a set of to-be-processed images sent by a client, and extracts a cluster feature set of the image set to be processed.
  • the client sends the clustering request generated by the clustering feature set to the second server, and receives the clustering processing result obtained by the clustering process according to the clustering feature set returned by the second server, and processes the image set according to the clustering processing result. sort.
  • synchronization processing which improves the accuracy of image processing.
  • the processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
  • the feature acquiring module 1004 is further configured to generate a to-be-processed image queue according to the to-be-processed image set, and extract a clustering feature set according to the to-be-processed image in the to-be-processed image queue.
  • the feature acquiring module 1004 is further configured to perform encryption processing on the to-be-processed image set, and generate a to-be-processed image queue according to the encrypted processed image set; and set the to-be-processed image queue
  • the image to be processed is decrypted, and the cluster feature set is extracted according to the image to be processed after the decryption process.
  • the feature acquisition module 1004 is further configured to compress or trim the image to be processed in the to-be-processed image set, and extract a cluster feature set according to the compressed or trimmed image set to be processed.
  • FIG. 11 is a block diagram showing the structure of an image processing apparatus in still another embodiment.
  • the image processing apparatus 1100 includes a request receiving module 1102 and a feature clustering module 1104. among them:
  • the request receiving module 1102 is configured to receive the clustering request sent by the client, where the clustering request is generated by the client according to a clustering feature set sent by the first server, the clustering The feature set is extracted by the first server according to the set of to-be-processed images sent by the client.
  • the feature clustering module 1104 is configured to perform clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and send the clustering processing result to the client, instructing the client Performing to classify the to-be-processed image set according to the clustering processing result.
  • the image processing apparatus receives a clustering request sent by a client, performs clustering processing according to the clustering feature set in the clustering request, and obtains a clustering processing result, and sends the clustering processing result to the client. , so that the client classifies according to the clustering processing results.
  • the clustering request is generated by the client according to the clustering feature set sent by the first server, and the clustering feature set is extracted by the first server according to the to-be-processed image set sent by the client. It can be seen that in the face of a huge amount of data, it is also possible to perform feature recognition and clustering processing at the same time, thereby improving the accuracy of image processing.
  • the processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
  • the feature clustering module 1104 is further configured to generate a clustering request queue according to the clustering request sent by the client, and merge the clustering request request with the same clustering request object in the clustering request queue. And performing clustering processing on the clustering feature set according to the merged clustering request to obtain a clustering processing result.
  • the feature clustering module 1104 is further configured to sort the clustering request in the clustering request queue according to the request initiation time, and obtain a specified clustering request in the sorted clustering request queue;
  • the clustering request queue has the same clustering request as the request originating object of the specified clustering request for merging.
  • the image processing apparatus 1100 may further include a label generation module 1106, configured to generate label data according to the clustering processing result, and store the label data in a preset storage space. .
  • the image processing apparatus 1100 may further include a model training module 1108, configured to train the training image set to obtain a clustering model and a feature recognition model, according to the clustering model
  • the clustering feature set performs clustering processing, and sends the feature recognition model to the first server to extract a clustering feature set of the to-be-processed image set.
  • each module in the above image processing apparatus is for illustrative purposes only. In other embodiments, the image processing apparatus may be divided into different modules as needed to complete all or part of the functions of the image processing apparatus.
  • the embodiment of the present application also provides a computer readable storage medium.
  • One or more non-transitory computer readable storage media containing a computer program when executed by one or more processors, cause the processor to perform the image processing method described above.
  • FIG. 12 is a schematic diagram showing the internal structure of a server in an embodiment.
  • the server includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected by a system bus.
  • the non-volatile storage medium of the server stores an operating system and a computer program.
  • the computer program is executed by a processor to implement an image processing method.
  • the server's processor is used to provide computing and control capabilities that support the operation of the entire server.
  • the network interface of the server is used to communicate with an external terminal through a network connection, such as receiving a clustering request sent by the terminal and returning a clustering processing result to the terminal.
  • the server can be implemented with a stand-alone server or a server cluster consisting of multiple servers.
  • FIG. 12 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied.
  • the specific server may include More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • the embodiment of the present application also provides a computer device. As shown in FIG. 13 , for the convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, refer to the method part of the embodiment of the present application.
  • the computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking a computer device as a mobile phone as an example. :
  • FIG. 13 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 1310 , a memory 1320 , an input unit 1330 , a display unit 1340 , a sensor 1350 , an audio circuit 1360 , a wireless fidelity (WiFi) module 1370 , and a processor 1380 .
  • RF radio frequency
  • the RF circuit 1310 can be used for receiving and transmitting information during the transmission and reception of information or during the call.
  • the downlink information of the base station can be received and processed by the processor 1380.
  • the uplink data can also be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1310 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Pack
  • the memory 1320 can be used to store software programs and modules, and the processor 1380 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1320.
  • the memory 1320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.);
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • memory 1320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1330 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1300.
  • the input unit 1330 may include a touch panel 1331 and other input devices 1332.
  • the touch panel 1331 which may also be referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 1331 or near the touch panel 1331. Operation) and drive the corresponding connection device according to a preset program.
  • the touch panel 1331 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1380 is provided and can receive commands from the processor 1380 and execute them.
  • the touch panel 1331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1330 may further include other input devices 1332.
  • other input devices 1332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
  • the display unit 1340 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 1340 can include a display panel 1341.
  • the display panel 1341 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1331 may cover the display panel 1341. When the touch panel 1331 detects a touch operation thereon or nearby, the touch panel 1331 transmits to the processor 1380 to determine the type of the touch event, and then the processor 1380 is The type of touch event provides a corresponding visual output on display panel 1341.
  • the touch panel 1331 and the display panel 1341 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1331 and the display panel 1341 may be integrated. Realize the input and output functions of the phone.
  • the handset 1300 can also include at least one type of sensor 1350, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1341 and/or when the mobile phone moves to the ear. Or backlight.
  • the motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • Audio circuitry 1360, speaker 1361, and microphone 1362 can provide an audio interface between the user and the handset.
  • the audio circuit 1360 can transmit the converted electrical data of the received audio data to the speaker 1361, and convert it into a sound signal output by the speaker 1361; on the other hand, the microphone 1362 converts the collected sound signal into an electrical signal, by the audio circuit 1360. After receiving, it is converted into audio data, and then processed by the audio data output processor 1380, transmitted to another mobile phone via the RF circuit 1310, or outputted to the memory 1320 for subsequent processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1370. It provides users with wireless broadband Internet access.
  • FIG. 13 shows the WiFi module 1370, it will be understood that it does not belong to the essential configuration of the handset 1300 and may be omitted as needed.
  • the processor 1380 is a control center for the handset that connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1320, and by invoking data stored in the memory 1320.
  • processor 1380 can include one or more processing units.
  • processor 1380 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, user interface, and applications, etc.; the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1380.
  • the handset 1300 also includes a power source 1390 (such as a battery) that powers the various components.
  • a power source 1390 such as a battery
  • the power source can be logically coupled to the processor 1380 via a power management system to enable management of charging, discharging, and power management functions through the power management system.
  • the handset 1300 can also include a camera, a Bluetooth module, and the like.
  • the processor 1380 included in the mobile terminal implements the image processing method described above when executing a computer program stored in a memory.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as an external cache.
  • RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • synchronization Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

Abstract

An image processing system comprises a client, a first server, and a second server. The client is used for sending an image set to be processed to the first server, receiving a clustering feature set sent by the first server, sending to the second server a clustering request generated according to the clustering feature set, and classifying the image set to be processed according to the clustering processing result sent by the second server. The first server is used for extracting the clustering feature set according to the image set to be processed that is sent by the client, and returning the clustering feature set to the client. The second server is used for receiving the clustering request sent by the client, performing clustering processing according to the clustering feature set in the clustering request, and sending the clustering processing result to the client.

Description

图像处理方法和系统、计算机设备Image processing method and system, computer equipment
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年09月15日提交中国专利局、申请号为201710854137.7、发明名称为“图像处理方法和装置、系统、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 200910854137.7, entitled "Image Processing Method and Apparatus, System, Computer Equipment", filed on September 15, 2017, the entire contents of which are hereby incorporated by reference. In this application.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及图像处理方法和系统、计算机设备。The present application relates to the field of computer technology, and in particular, to an image processing method and system, and a computer device.
背景技术Background technique
用户可以通过智能终端实现各种应用需求,然而由于智能终端的处理能力和存储能力有限,往往无法在本地处理大量的用户操作。因此,为了更好的为用户提供服务,智能终端在接收到用户的操作请求之后,会将该操作请求发送至服务器进行处理,然后再将处理结果返回给智能终端。这样不需要消耗太多智能终端的资源,就可以实现对用户的应用需求。Users can implement various application requirements through smart terminals. However, due to the limited processing power and storage capacity of smart terminals, it is often impossible to process a large number of user operations locally. Therefore, in order to better provide services for the user, after receiving the operation request of the user, the smart terminal sends the operation request to the server for processing, and then returns the processing result to the smart terminal. In this way, the application requirements of the user can be realized without consuming too many resources of the intelligent terminal.
对于单个用户的请求,服务器可以快速准确的响应。如果面对成千上万的用户,同时单个用户又可能会有多次请求,那么服务器的压力就会成倍数增长。例如,智能终端需要将相册发送到服务器进行备份,同时实现对相册中的照片进行分类。For a single user request, the server can respond quickly and accurately. If you face thousands of users, and a single user may have multiple requests, the server's pressure will multiply. For example, the smart terminal needs to send an album to the server for backup, and at the same time, classify the photos in the album.
发明内容Summary of the invention
本申请实施例提供一种图像处理方法和系统、计算机设备。The embodiment of the present application provides an image processing method and system, and a computer device.
一种图像处理系统,所述系统包括:An image processing system, the system comprising:
客户端,用于获取待处理图像集合,将所述待处理图像集合发送至第一服务器,接收所述第一服务器发送的聚类特征集合,将根据所述聚类特征集合生成的聚类请求发送至第二服务器,并接收第二服务器发送的聚类处理结果,根据所述聚类处理结果对所述待处理图像集合进行分类;a client, configured to obtain a to-be-processed image set, send the to-be-processed image set to a first server, receive a clustering feature set sent by the first server, and generate a clustering request according to the clustering feature set Sending to the second server, and receiving the clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result;
第一服务器,用于接收所述客户端发送的所述待处理图像集合,提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端;a first server, configured to receive the to-be-processed image set sent by the client, extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client;
第二服务器,用于接收所述客户端发送的所述聚类请求,根据所述聚类请求中的聚类特征集合进行聚类处理,并将聚类处理结果发送至所述客户端。And a second server, configured to receive the clustering request sent by the client, perform clustering processing according to the clustering feature set in the clustering request, and send the clustering processing result to the client.
一种图像处理方法,所述方法包括:An image processing method, the method comprising:
获取待处理图像集合,并将所述待处理图像集合发送至第一服务器;Obtaining a to-be-processed image collection, and sending the to-be-processed image collection to a first server;
接收所述第一服务器发送的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器,其中所述聚类特征集合是根据所述待处理图像集合提取的;Receiving a cluster feature set sent by the first server, and sending a clustering request generated according to the cluster feature set to a second server, where the cluster feature set is extracted according to the to-be-processed image set ;
接收第二服务器发送的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类,所述聚类处理结果是由所述第二服务器根据所述聚类特征集合进行聚类处理得到的。Receiving a clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result, where the clustering processing result is performed by the second server according to the clustering feature set Clustered processing.
一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
获取待处理图像集合,并将所述待处理图像集合发送至第一服务器;Obtaining a to-be-processed image collection, and sending the to-be-processed image collection to a first server;
接收所述第一服务器发送的,根据所述待处理图像集合提取的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器;Receiving, by the first server, a cluster feature set extracted according to the to-be-processed image set, and sending a clustering request generated according to the cluster feature set to a second server;
接收第二服务器发送的,根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。And receiving, by the second server, a clustering processing result obtained by performing clustering processing according to the clustering feature set, and classifying the to-be-processed image set according to the clustering processing result.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
获取待处理图像集合,并将所述待处理图像集合发送至第一服务器;Obtaining a to-be-processed image collection, and sending the to-be-processed image collection to a first server;
接收所述第一服务器发送的,根据所述待处理图像集合提取的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器;Receiving, by the first server, a cluster feature set extracted according to the to-be-processed image set, and sending a clustering request generated according to the cluster feature set to a second server;
接收第二服务器发送的,根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。And receiving, by the second server, a clustering processing result obtained by performing clustering processing according to the clustering feature set, and classifying the to-be-processed image set according to the clustering processing result.
一种图像处理方法,所述方法包括:An image processing method, the method comprising:
接收所述客户端发送的所述待处理图像集合;Receiving the to-be-processed image set sent by the client;
提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。Extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the clustering feature set, sending to a second The server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
接收所述客户端发送的所述待处理图像集合;Receiving the to-be-processed image set sent by the client;
提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。Extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the clustering feature set, sending to a second The server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
接收所述客户端发送的所述待处理图像集合;Receiving the to-be-processed image set sent by the client;
提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。Extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the clustering feature set, sending to a second The server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
一种图像处理方法,所述方法包括:An image processing method, the method comprising:
接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的;Receiving, by the client, the clustering request, where the clustering request is generated by the client according to a clustering feature set sent by the first server, where the clustering feature set is generated by the first server Extracted according to the set of to-be-processed images sent by the client;
根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。And performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform a clustering processing result according to the clustering process Sorting the set of images to be processed.
一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的;Receiving, by the client, the clustering request, where the clustering request is generated by the client according to a clustering feature set sent by the first server, where the clustering feature set is generated by the first server Extracted according to the set of to-be-processed images sent by the client;
根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。And performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform a clustering processing result according to the clustering process Sorting the set of images to be processed.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一 服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的;Receiving, by the client, the clustering request, where the clustering request is generated by the client according to a clustering feature set sent by the first server, where the clustering feature set is generated by the first server Extracted according to the set of to-be-processed images sent by the client;
根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。And performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform a clustering processing result according to the clustering process Sorting the set of images to be processed.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为一个实施例中图像处理方法的应用环境示意图;1 is a schematic diagram of an application environment of an image processing method in an embodiment;
图2为另一个实施例中图像处理方法的应用环境示意图;2 is a schematic diagram of an application environment of an image processing method in another embodiment;
图3为一个实施例中图像处理方法的硬件交互时序图;3 is a hardware interaction timing diagram of an image processing method in an embodiment;
图4为一个实施例中图像处理方法的流程图;4 is a flow chart of an image processing method in an embodiment;
图5为一个实施例中移动终端相册分类结果的展示图;5 is a display diagram of a mobile terminal album classification result in an embodiment;
图6为另一个实施例中图像处理方法的流程图;6 is a flow chart of an image processing method in another embodiment;
图7为又一个实施例中图像处理方法的流程图;Figure 7 is a flow chart of an image processing method in still another embodiment;
图8为一个实施例中图像处理系统的系统架构图;Figure 8 is a system architecture diagram of an image processing system in an embodiment;
图9为一个实施例中图像处理装置的结构示意图;FIG. 9 is a schematic structural diagram of an image processing apparatus in an embodiment; FIG.
图10为另一个实施例中图像处理装置的结构示意图;FIG. 10 is a schematic structural diagram of an image processing apparatus in another embodiment; FIG.
图11为又一个实施例中图像处理装置的结构示意图;11 is a schematic structural diagram of an image processing apparatus in still another embodiment;
图12为一个实施例中服务器的内部结构示意图;12 is a schematic diagram showing the internal structure of a server in an embodiment;
图13为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。FIG. 13 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
图1为一个实施例中图像处理方法的应用环境示意图。如图1所示,该应用环境包括客户端12、第一服务器14和第二服务器16。其中,客户端12用于获取待处理图像集合,并将获取的待处理图像集合发送至第一服务器14。第一服务器14接收到待处理图像集合之后,提取待处理图像集合的聚类特征集合,并将聚类特征集合返回至客户端12。客户端12根据聚类特征集合生成聚类请求,并将聚类请求发送至第二服务器16。第二服务器16接收到客户端12发送的聚类请求后,根据聚类请求中的聚类特征集合进行聚类处理,并将聚类处理结果发送至客户端12。客户端12为处于计算机网络最外围,主要用于输入用户信息以及输出处理结果的电子设备,例如可以是个人电脑、移动终端、个人数字助理、可穿戴电子设备等。第一服务器14和第二服务器16是用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。FIG. 1 is a schematic diagram of an application environment of an image processing method in an embodiment. As shown in FIG. 1, the application environment includes a client 12, a first server 14, and a second server 16. The client 12 is configured to acquire a to-be-processed image set, and send the obtained to-be-processed image set to the first server 14. After receiving the image set to be processed, the first server 14 extracts the cluster feature set of the image set to be processed, and returns the cluster feature set to the client 12. The client 12 generates a clustering request according to the clustering feature set, and sends the clustering request to the second server 16. After receiving the clustering request sent by the client 12, the second server 16 performs clustering processing according to the clustering feature set in the clustering request, and sends the clustering processing result to the client 12. The client 12 is an electronic device that is mainly used to input user information and output processing results at the outermost periphery of the computer network, and may be, for example, a personal computer, a mobile terminal, a personal digital assistant, a wearable electronic device, or the like. The first server 14 and the second server 16 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers.
图2为另一个实施例中图像处理方法的应用环境示意图。如图2所示,该应用环境包 括客户端22、第一服务器集群24和第二服务器集群26。其中,客户端22用于获取待处理图像集合,并将获取的待处理图像集合发送至第一服务器集群24。第一服务器集群24接收到待处理图像集合之后,提取待处理图像集合的聚类特征集合,并将聚类特征集合返回至客户端22。客户端22根据聚类特征集合生成聚类请求,并将聚类请求发送至第二服务器集群26。第二服务器集群26接收到客户端22发送的聚类请求后,根据聚类请求中的聚类特征集合进行聚类处理,并将聚类处理结果发送至客户端22。第一服务器集群24中包含一个或多个第一服务器242,用于实现分布式任务处理。第二服务器集群26中包含一个或多个第二服务器262,用于实现分布式任务处理。客户端22为处于计算机网络最外围,主要用于输入用户信息以及输出处理结果的电子设备,例如可以是个人电脑、移动终端、个人数字助理、可穿戴电子设备等。在本申请提供的实施例中,客户端22可以包括一个或多个,在此不做限定。第一服务器242和第二服务器262是用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。2 is a schematic diagram of an application environment of an image processing method in another embodiment. As shown in FIG. 2, the application environment includes a client 22, a first server cluster 24, and a second server cluster 26. The client 22 is configured to acquire a to-be-processed image set, and send the obtained to-be-processed image set to the first server cluster 24. After receiving the image set to be processed, the first server cluster 24 extracts the cluster feature set of the image set to be processed, and returns the cluster feature set to the client 22. The client 22 generates a clustering request based on the clustering feature set and sends the clustering request to the second server cluster 26. After receiving the clustering request sent by the client 22, the second server cluster 26 performs clustering processing according to the clustering feature set in the clustering request, and sends the clustering processing result to the client 22. The first server cluster 24 includes one or more first servers 242 for implementing distributed task processing. The second server cluster 26 includes one or more second servers 262 for implementing distributed task processing. The client 22 is an electronic device that is mainly used to input user information and output processing results at the outermost periphery of the computer network, and may be, for example, a personal computer, a mobile terminal, a personal digital assistant, a wearable electronic device, or the like. In the embodiment provided by the present application, the client 22 may include one or more, which is not limited herein. The first server 242 and the second server 262 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers.
图3为一个实施例中图像处理方法的硬件交互时序图。如图3所示,该交互时序图包括操作302至操作316。其中:FIG. 3 is a hardware interaction timing diagram of an image processing method in an embodiment. As shown in FIG. 3, the interaction timing diagram includes operations 302 through 316. among them:
操作302,客户端获取待处理图像集合,并将待处理图像集合发送至第一服务器。In operation 302, the client acquires a to-be-processed image collection, and sends the to-be-processed image collection to the first server.
在一个实施例中,待处理图像是指需要进行处理的图像,例如待处理图像可以是需要进行特征识别、分类等处理的图像。待处理图像集合是指待处理图像的集合,待处理图像集合中可以包括一张或多张待处理图像。客户端指计算机网络最外围,主要用于输入用户信息以及输出处理结果的电子设备。第一服务器是指可以用于进行特征识别处理的服务器。特征识别处理是指识别待处理图像的具体特征属性的处理过程。In one embodiment, the image to be processed refers to an image that needs to be processed, for example, the image to be processed may be an image that requires process of feature recognition, classification, and the like. The image set to be processed refers to a set of images to be processed, and one or more images to be processed may be included in the image set to be processed. The client refers to the outermost part of the computer network, and is mainly used for inputting user information and outputting the processing result of the electronic device. The first server refers to a server that can be used for feature recognition processing. Feature recognition processing refers to a process of identifying specific feature attributes of an image to be processed.
操作304,第一服务器接收待处理图像集合,并根据待处理图像集合提取聚类特征集合。Operation 304, the first server receives the image set to be processed, and extracts a cluster feature set according to the image set to be processed.
在本申请提供的实施例中,聚类特征集合是指用于进行聚类处理得到的特征的集合。第一服务器在接收到待处理图像集合之后,对待处理图像集合中的每一张待处理图像进行特征识别处理。每一张待处理图像对应一个或多个聚类特征,所有待处理图像提取的聚类特征就组成聚类特征集合。In the embodiment provided by the present application, the clustering feature set refers to a set of features obtained by performing clustering processing. After receiving the image set to be processed, the first server performs feature recognition processing on each image to be processed in the image set to be processed. Each image to be processed corresponds to one or more clustering features, and the clustering features extracted by all the images to be processed constitute a clustering feature set.
操作306,第一服务器将提取的聚类特征集合发送至客户端。Operation 306, the first server sends the extracted cluster feature set to the client.
操作308,客户端接收聚类特征集合,并根据聚类特征集合生成聚类请求。Operation 308, the client receives the cluster feature set, and generates a clustering request according to the cluster feature set.
聚类请求是指用于对聚类对象集合进行聚类处理的命令。其中,聚类对象集合是指用于进行聚类处理的对象集合,例如聚类对象集合可以是待处理图像集合,将待处理图像集合中的待处理图像进行聚类处理。生成的聚类请求中会包含请求发起设备标识、请求接收设备标识、请求发起时间和聚类对象标识等信息。可以理解的是,客户端中的可以登录多个应用账户,应用账户需要进行聚类处理时,通过客户端向第二服务器发起聚类请求。也就是说,当客户端向第二服务器发起聚类请求时,请求发起对象可以是指应用账户标识,也可以是终端标识。其中,应用账户标识是指用于表示用户身份的唯一身份标识。终端标识是指区分不同智能终端设备的唯一标识。A clustering request is a command for clustering a clustering object set. The clustering object set refers to the object set used for performing the clustering process. For example, the clustering object set may be a to-be-processed image set, and the to-be-processed image in the to-be-processed image set is clustered. The generated clustering request includes information such as the request originating device identifier, the request receiving device identifier, the request initiation time, and the cluster object identifier. It can be understood that, in the client, multiple application accounts can be logged in, and when the application account needs to perform clustering processing, the clustering request is initiated by the client to the second server. That is, when the client initiates a clustering request to the second server, the request originating object may refer to an application account identifier or a terminal identifier. The application account identifier refers to a unique identity identifier used to represent the identity of the user. The terminal identifier refers to a unique identifier that distinguishes different smart terminal devices.
操作310,客户端将生成的聚类请求发送至第二服务器。Operation 310, the client sends the generated clustering request to the second server.
在一个实施例中,第二服务器接收到聚类请求之后,会将对应的聚类特征集合进行聚类处理。若接收到多个客户端发送的多个聚类请求时,会根据这个多个聚类请求形成一个聚类请求队列,并对聚类请求队列中的聚类请求进行处理。In an embodiment, after receiving the clustering request, the second server performs clustering processing on the corresponding clustering feature set. If multiple clustering requests sent by multiple clients are received, a clustering request queue is formed according to the multiple clustering requests, and the clustering request in the clustering request queue is processed.
操作312,第二服务器接收聚类请求,并根据聚类请求中的聚类特征集合进行聚类处理。Operation 312, the second server receives the clustering request, and performs clustering processing according to the clustering feature set in the clustering request.
聚类处理是指根据一个和多个聚类特征将聚类对象集合分为多个分类。具体地,根据聚类模型将聚类特征集合进行聚类处理,聚类模型可以根据训练图像集合进行训练得到。训练图像集合是指用于训练得到聚类模型的图像集合,训练图像集合可以是根据待处 理图像集合生成的图像集合,也可以是专门用于训练聚类模型的图像集合。Clustering processing refers to dividing a clustering object set into multiple categories according to one or more clustering features. Specifically, the cluster feature set is clustered according to the clustering model, and the cluster model can be trained according to the training image set. The training image set refers to an image set used for training to obtain a clustering model. The training image set may be an image set generated according to a to-be-processed image set, or may be an image set specifically used for training a clustering model.
操作314,第二服务器将聚类处理结果发送至客户端。Operation 314, the second server sends the clustering processing result to the client.
在一个实施例中,第二服务器进行聚类处理得到聚类处理结果,可以根据聚类处理结果生成标签数据,并将标签数据存储在第二服务器的磁盘上。聚类处理结果可以通过PUSH服务推送给客户端。其中,PUSH服务是一种用于推送数据的服务。In an embodiment, the second server performs clustering processing to obtain a clustering processing result, and the label data may be generated according to the clustering processing result, and the label data is stored on the disk of the second server. The clustering result can be pushed to the client through the PUSH service. Among them, the PUSH service is a service for pushing data.
操作316,客户端接收聚类处理结果,并根据聚类处理结果对待处理图像集合进行分类。In operation 316, the client receives the clustering processing result, and classifies the image set to be processed according to the clustering processing result.
分类是指根据统一的标准,将待处理图像集合中的待处理图像分为不同的类型。每张待处理图像对应了一个或多个聚类特征,一个聚类特征对应了一种分类类型。也就是说,待处理图像可能被分为一个或多个类型。待处理图像、聚类特征和分类类型具有对应关系。客户端可以根据第一服务器返回的聚类特征,建立待处理图像与聚类特征的关系,根据第二服务器返回的聚类处理结果,建立聚类特征和分类类型的对应关系。客户端根据这种对应关系将待处理图像集合进行分类。Classification refers to dividing the images to be processed in the image set to be processed into different types according to a unified standard. Each image to be processed corresponds to one or more cluster features, and one cluster feature corresponds to one classification type. That is, the image to be processed may be divided into one or more types. The image to be processed, the clustering feature, and the classification type have corresponding relationships. The client may establish a relationship between the image to be processed and the clustering feature according to the clustering feature returned by the first server, and establish a correspondence between the clustering feature and the classification type according to the clustering processing result returned by the second server. The client classifies the set of images to be processed according to this correspondence.
图4为一个实施例中图像处理方法的流程图。如图4所示,该流程图包括操作402至操作406。其中:4 is a flow chart of an image processing method in one embodiment. As shown in FIG. 4, the flowchart includes operations 402 through 406. among them:
操作402,获取待处理图像集合,并将待处理图像集合发送至第一服务器。Operation 402: Acquire a set of images to be processed, and send the set of images to be processed to the first server.
在一个实施例中,待处理图像是指需要进行处理的图像,例如待处理图像可以是需要进行特征识别、分类等处理的图像。待处理图像集合是指待处理图像的集合,待处理图像集合中可以包括一张或多张待处理图像。In one embodiment, the image to be processed refers to an image that needs to be processed, for example, the image to be processed may be an image that requires process of feature recognition, classification, and the like. The image set to be processed refers to a set of images to be processed, and one or more images to be processed may be included in the image set to be processed.
第一服务器是指可以用于进行特征识别处理的服务器。特征识别处理是指识别待处理图像的具体特征属性的处理过程。例如,特征识别处理可以是识别待处理图像中的人脸特征、颜色特征、边缘特征和纹理特征等信息。识别不同的特征,采用的识别模型不同。例如,常用的边缘检测模型包括Sobel边缘检测算法、Canny边缘检测算法和Roberts边缘检测算法等。对待处理图像进行特征识别处理,可以通过特征值表示不同的特征识别结果,并通过特征识别结果形成一个特征集合。形成的特征集合可以用于将待处理图像进行聚类处理。聚类处理是指将对象集合分成多个对象组合的过程,每个对象组合是由一个或多个相似的对象组成。The first server refers to a server that can be used for feature recognition processing. Feature recognition processing refers to a process of identifying specific feature attributes of an image to be processed. For example, the feature recognition process may be to identify information such as face features, color features, edge features, and texture features in the image to be processed. Different features are identified and the recognition models used are different. For example, commonly used edge detection models include Sobel edge detection algorithm, Canny edge detection algorithm and Roberts edge detection algorithm. The feature recognition process is performed on the image to be processed, and the feature recognition values are represented by the feature values, and a feature set is formed by the feature recognition result. The formed feature set can be used to cluster the image to be processed. Clustering is the process of dividing a collection of objects into multiple objects, each of which consists of one or more similar objects.
可以理解的是,第一服务器可以是一个服务器集群,即通过多台服务器实现特征识别处理的分布式处理。若第一服务器为一个服务器集群,那么第一服务器就由多个第一子服务器构成。每个第一子服务器可以将工作状态实时上报到注册服务器,注册服务器根据第一子服务器上报的工作状态,生成可用服务列表。该可用服务列表中记录了处于可用状态的第一子服务器的服务器标识,通过获取可用服务列表就可以选择处于可用状态的第一子服务器。当客户端需要发送待处理图像集合之前,可以从注册服务器中获取可用服务列表,获取可用服务列表中的服务器标识,通过预设路由算法从获取的服务器标识中选择目标服务器标识,将待处理图像集合发送到目标服务器标识对应的第一子服务器。预设路由算法是指选择目标服务器标识的算法,例如,预设路由算法可以是负载均衡算法,负载均衡算法可以是随机算法、轮询算法、源地址哈希算法等,在此不做限定。其中,服务器标识就是指区分不同服务器的唯一标识,根据服务器标识查找服务器。It can be understood that the first server can be a server cluster, that is, distributed processing that implements feature recognition processing through multiple servers. If the first server is a server cluster, the first server is composed of a plurality of first child servers. Each first sub-server can report the working status to the registration server in real time, and the registration server generates a list of available services according to the working status reported by the first sub-server. The server ID of the first subserver in the available state is recorded in the list of available services, and the first subserver in the available state can be selected by obtaining the list of available services. Before the client needs to send the to-be-processed image set, the server may obtain the available service list from the registration server, obtain the server identifier in the available service list, and select the target server identifier from the obtained server identifier by using a preset routing algorithm, and the image to be processed is to be processed. The collection is sent to the first subserver corresponding to the target server ID. The preset routing algorithm is an algorithm for selecting a target server identifier. For example, the preset routing algorithm may be a load balancing algorithm, and the load balancing algorithm may be a random algorithm, a polling algorithm, a source address hash algorithm, or the like, which is not limited herein. The server identifier refers to a unique identifier that distinguishes different servers, and searches for a server according to the server identifier.
操作404,接收第一服务器发送的聚类特征集合,并将根据聚类特征集合生成的聚类请求发送至第二服务器,其中聚类特征集合是根据待处理图像集合提取的。Operation 404: Receive a cluster feature set sent by the first server, and send the clustering request generated according to the cluster feature set to the second server, where the cluster feature set is extracted according to the to-be-processed image set.
在本申请提供的实施例中,聚类特征集合是指用于进行聚类处理得到的特征的集合。第一服务器在接收到待处理图像集合之后,对待处理图像集合中的每一张待处理图像进行特征识别处理。每一张待处理图像中可以提取一个或多个聚类特征,根据得到的聚类特征生成聚类特征集合。例如,遍历待处理图像集合中每一张待处理图像的人脸区域,并将人 脸区域提取出来形成一个人脸区域集合。那么人脸区域即为聚类特征,每张待处理图像中包含一个或多个人脸,提取的待处理图像聚合中的人脸区域就形成聚类特征集合。In the embodiment provided by the present application, the clustering feature set refers to a set of features obtained by performing clustering processing. After receiving the image set to be processed, the first server performs feature recognition processing on each image to be processed in the image set to be processed. One or more clustering features may be extracted from each image to be processed, and a clustering feature set is generated according to the obtained clustering features. For example, a face area of each image to be processed in the image set to be processed is traversed, and the face area is extracted to form a face area set. Then, the face region is a clustering feature, and each of the to-be-processed images includes one or more human faces, and the extracted face regions in the aggregated image to be processed form a clustering feature set.
聚类请求是指用于对聚类特征集合进行聚类处理的命令。一般地,发送设备向接收设备发送聚类请求时,聚类请求中会包含请求发起设备标识、请求接收设备标识、请求发起时间和聚类特征标识等信息。其中,请求发起设备标识是指发起聚类请求的设备的唯一标识,请求接收设备标识是指接收聚类请求的设备的唯一标识,聚类发起时间是指发起聚类请求的时间,聚类特征标识是指聚类特征集合对应的唯一标识,根据聚类特征标识可以查找聚类特征集合。接收设备接收到聚类请求之后会根据聚类特征集合进行聚类处理。若接收设备接收到多个发送设备的多个聚类请求时,会根据这个多个聚类请求形成一个聚类请求队列,并对聚类请求队列中的聚类请求进行处理。The clustering request refers to a command for clustering the cluster feature set. Generally, when the sending device sends a clustering request to the receiving device, the clustering request includes information such as a requesting device identifier, a requesting device identifier, a request initiation time, and a clustering feature identifier. The request initiation device identifier refers to the unique identifier of the device that initiates the clustering request, and the request receiving device identifier refers to the unique identifier of the device that receives the clustering request, and the cluster initiation time refers to the time when the clustering request is initiated, and the clustering feature The identifier refers to a unique identifier corresponding to the cluster feature set, and the cluster feature set can be searched according to the cluster feature identifier. After receiving the clustering request, the receiving device performs clustering processing according to the clustering feature set. If the receiving device receives multiple clustering requests of multiple sending devices, a clustering request queue is formed according to the multiple clustering requests, and the clustering request in the clustering request queue is processed.
第二服务器是指可以用于进行聚类处理的服务器。客户端可以向第二服务器发起聚类请求,第二服务器可以连接多个客户端,并接收多个客户端发送的聚类请求。可以理解的是,客户端中可以登录多个应用账户,应用账户需要进行聚类处理时,通过客户端向第二服务器发起聚类请求。也就是说,当客户端向第二服务器发起聚类请求时,请求发起设备标识可以是指应用账户标识,也可以是终端标识。其中,应用账户标识是指用于表示用户身份的唯一身份标识。终端标识是指区分不同智能终端设备的唯一标识。例如终端标识可以是指智能终端的IP(Internet Protocol,网络之间互连的协议)地址、MAC(Media Access Control,媒体访问控制)地址等。例如,用户可以通过应用账户登录客户端,并通过客户端向第二服务器发送对相册中的照片进行聚类的请求,第二服务器接收到客户端发送的聚类请求之后,将相册中的照片进行聚类处理,并将聚类处理的结果返回给客户端。The second server refers to a server that can be used for clustering processing. The client may initiate a clustering request to the second server, and the second server may connect to multiple clients and receive clustering requests sent by multiple clients. It can be understood that, in the client, multiple application accounts can be logged in, and when the application account needs to perform clustering processing, the clustering request is initiated by the client to the second server. That is, when the client initiates a clustering request to the second server, the requesting device identifier may be an application account identifier or a terminal identifier. The application account identifier refers to a unique identity identifier used to represent the identity of the user. The terminal identifier refers to a unique identifier that distinguishes different smart terminal devices. For example, the terminal identifier may refer to an IP (Internet Protocol) protocol, a MAC (Media Access Control) address, and the like of the smart terminal. For example, the user can log in to the client through the application account, and send a request for clustering the photos in the album to the second server through the client, and the second server receives the cluster request sent by the client, and then takes the photo in the album. Perform clustering processing and return the result of the clustering processing to the client.
第二服务器接收到多个聚类请求之后,可以形成一个聚类请求队列。若同一个请求发起对象向第二服务器发送多次聚类请求,则第二服务器可以将同一个请求发起对象对应的聚类请求进行合并。合并聚类请求是指将多个聚类请求合并为一个聚类请求,对合并后的聚类请求进行处理即实现了多个聚类请求同时处理。具体地,获取聚类请求队列中每个聚类请求包含的请求发起设备标识,将聚类请求队列中请求发起设备标识相同的聚类请求进行合并。其中,请求发起设备标识相同的聚类请求,即为同一个请求发起对象发送的聚类请求。可以理解的是,请求发起设备标识可以是指终端标识,也可以是指应用账户标识。After the second server receives multiple clustering requests, a clustering request queue can be formed. If the same request originating object sends multiple clustering requests to the second server, the second server may merge the clustering requests corresponding to the same request initiating object. The merge clustering request refers to combining multiple clustering requests into one clustering request, and processing the merged clustering request to realize simultaneous processing of multiple clustering requests. Specifically, the request initiation device identifier included in each cluster request in the cluster request queue is obtained, and the cluster request requesting the same device identifier in the cluster request queue is merged. The requesting initiating device identifies the same clustering request, that is, the clustering request sent by the same request initiating object. It can be understood that the request initiation device identifier may refer to the terminal identifier, and may also refer to an application account identifier.
举例来说,聚类请求队列中包含了三个聚类请求,按照时间先后顺序排列分别为:聚类请求1,应用账户A在2017年8月20日03:30发送的聚类请求,包含聚类特征集合1;聚类请求2,应用账户B在2017年8月21日02:41发送的聚类请求,包含聚类特征集合2;聚类请求3,应用账户A在2017年8月22日04:02发送的聚类请求,包含聚类特征集合3。则将聚类请求1和聚类请求3进行合并,合并后获取的聚类特征集合为聚类特征集合1和聚类特征集合3的并集。For example, the clustering request queue includes three clustering requests, which are arranged in chronological order: clustering request 1, and application account A sends a clustering request at 03:30 on August 20, 2017, including Clustering feature set 1; clustering request 2, clustering request sent by application account B on August 21, 2017 at 02:41, including clustering feature set 2; clustering request 3, application account A in August 2017 The clustering request sent at 04:02 on the 22nd contains the clustering feature set 3. Then, the clustering request 1 and the clustering request 3 are merged, and the clustering feature set obtained after the combination is the union of the clustering feature set 1 and the clustering feature set 3.
在一个实施例中,客户端可以预先设置触发向第二服务器发起聚类请求的条件,设置的聚类触发条件包括以下方法中至少一种:在客户端的相册中新增照片数量大于预设数量;当前时间为预设时间;距上次发起聚类请求的时间超过预设时间段;移动终端当前处于充电状态。例如,在移动终端新增图片大于50张时,若当前时间为凌晨2点到5点,且移动终端处于充电状态,则移动终端发起聚类请求。In an embodiment, the client may preset a condition for triggering a clustering request to the second server, and the set clustering triggering condition includes at least one of the following methods: the number of newly added photos in the client's album is greater than the preset number. The current time is the preset time; the time from the last time the clustering request is initiated exceeds the preset time period; the mobile terminal is currently in the charging state. For example, when the mobile terminal adds more than 50 pictures, if the current time is between 2 am and 5 am, and the mobile terminal is in a charging state, the mobile terminal initiates a clustering request.
操作406,接收第二服务器发送的聚类处理结果,并根据聚类处理结果对待处理图像集合进行分类,聚类处理结果是由第二服务器根据聚类特征集合进行聚类处理得到的。Operation 406: Receive a clustering processing result sent by the second server, and classify the image processing group to be processed according to the clustering processing result, where the clustering processing result is obtained by the second server performing clustering processing according to the clustering feature set.
在一个实施例中,第二服务器在对聚类特征集合进行聚类处理之后,会形成一个分组,每个聚类特征都有对应的分组。可以根据聚类特征形成对应的标签数据,标签数据用于标记聚类特征具体的分组属性。例如,聚类特征1的标签数据为“分组1”,那么聚类特征1就属于“分组1”的分组里面。形成的标签数据可以存储在第二服务器的磁盘上进行保存。In an embodiment, after the clustering process is performed on the cluster feature set, the second server forms a group, and each cluster feature has a corresponding group. Corresponding tag data may be formed according to the clustering feature, and the tag data is used to mark a specific grouping attribute of the clustering feature. For example, if the tag data of the clustering feature 1 is "packet 1", then the clustering feature 1 belongs to the grouping of "packet 1". The formed tag data can be stored on the disk of the second server for storage.
分类是指根据统一的标准,将待处理图像集合中的待处理图像分为不同的类型。每张待处理图像对应了一个或多个聚类特征,一个聚类特征对应了一种分类类型。也就是说,待处理图像可能被分为一个或多个类型,在本实施例中不做限定。一般来讲,待处理图像、聚类特征和分类类型具有对应关系。客户端可以根据第一服务器返回的聚类特征,建立待处理图像与聚类特征的关系,根据第二服务器返回的聚类处理结果,建立聚类特征和分类类型的对应关系。Classification refers to dividing the images to be processed in the image set to be processed into different types according to a unified standard. Each image to be processed corresponds to one or more cluster features, and one cluster feature corresponds to one classification type. That is to say, the image to be processed may be divided into one or more types, which is not limited in this embodiment. Generally, the image to be processed, the clustering feature, and the classification type have corresponding relationships. The client may establish a relationship between the image to be processed and the clustering feature according to the clustering feature returned by the first server, and establish a correspondence between the clustering feature and the classification type according to the clustering processing result returned by the second server.
举例来说,根据人脸将相册中的照片进行分类,每个人脸对应一个分类,而每张照片中可能包含一个或多个人脸,如果一张照片中包含了多个人脸的话,这张照片就会属于多个分类。具体地,客户端将相册发送到第一服务器,第一服务器遍历相册中的每一张照片,提取每一张照片中的人脸区域,并将提取的人脸区域集合返回给客户端。客户端向第二服务器发送聚类请求,并将人脸区域集合发送到第二服务器进行聚类处理。客户端根据第二服务器返回的聚类处理结果,将相册中的照片进行分类。For example, according to the face, the photos in the album are classified. Each face corresponds to one category, and each photo may contain one or more faces. If a photo contains multiple faces, this photo Will belong to multiple categories. Specifically, the client sends the album to the first server, and the first server traverses each photo in the album, extracts the face region in each photo, and returns the extracted face region set to the client. The client sends a clustering request to the second server, and sends the set of face regions to the second server for clustering processing. The client classifies the photos in the album according to the clustering processing result returned by the second server.
图5为一个实施例中移动终端相册分类结果的展示图。如图5所示,移动终端将相册发送到第一服务器,第一服务器遍历相册中的每一张照片,提取每一张照片中的聚类特征,并将提取的聚类特征集合返回给移动终端。移动终端向第二服务器发送聚类请求,并将聚类特征集合发送到第二服务器进行聚类处理。移动终端根据第二服务器返回的聚类处理结果,将相册中的照片进行分类。本实施例中的界面上展示了六个分类结果,分别包括“分类1”、“分类2”、“分类3”、“分类4”、“分类5”和“分类6”,每个分类都包含了若干张具有共性的照片,点击对应的分类,可以查看分类中的照片。FIG. 5 is a diagram showing a result of classification of a mobile terminal album in one embodiment. As shown in FIG. 5, the mobile terminal sends the album to the first server, and the first server traverses each photo in the album, extracts the cluster feature in each photo, and returns the extracted cluster feature set to the mobile terminal. The mobile terminal sends a clustering request to the second server, and sends the clustering feature set to the second server for clustering processing. The mobile terminal classifies the photos in the album according to the clustering processing result returned by the second server. Six classification results are displayed on the interface in this embodiment, including "Class 1", "Class 2", "Class 3", "Class 4", "Class 5" and "Class 6", respectively. Contains a number of common photos, click on the corresponding category to view the photos in the category.
上述实施例提供的图像处理方法,将待处理图像集合发送至第一服务器进行特征识别处理,并将第一服务器处理得到的聚类特征集合发送至第二服务器进行聚类处理。根据第二服务器返回的聚类处理结果,对待处理图像集合进行分类。分别在不同的服务器上进行处理,不同服务器进行不同的处理,即时面对庞大的数据量,也可以进行同步处理,提高了图像处理的准确率,同时提高了图像处理的准确性。The image processing method provided in the above embodiment sends the image set to be processed to the first server for feature recognition processing, and sends the cluster feature set processed by the first server to the second server for clustering processing. The image set to be processed is classified according to the clustering processing result returned by the second server. They are processed on different servers, and different servers perform different processing. In the face of huge data volume, they can also be synchronized, which improves the accuracy of image processing and improves the accuracy of image processing.
图6为另一个实施例中图像处理方法的流程图。如图6所示,该流程图包括操作602至操作604。其中:Figure 6 is a flow chart of an image processing method in another embodiment. As shown in FIG. 6, the flowchart includes operations 602 through 604. among them:
操作602,接收客户端发送的待处理图像集合。Operation 602: Receive a to-be-processed image set sent by the client.
待处理图像集合是由客户端获取的。客户端的存储空间中存储着待处理图像,客户端可以从预设存储地址中直接获取待处理图像,也可以遍历客户端中的所有文件夹获取待处理图像。一般来说,客户端的存储空间分为内存储器和外接存储器。内存储器是指客户端本身自带的存储器,是客户端硬件结构的一部分。外接存储器是指客户端外接的存储设备,外接存储额可以通过专用接口与客户端进行数据传输。例如,外接存储器可以是SD卡、U盘等。The set of pending images is obtained by the client. The client's storage space stores the image to be processed. The client can directly obtain the image to be processed from the preset storage address, or traverse all the folders in the client to obtain the image to be processed. Generally speaking, the storage space of the client is divided into internal memory and external storage. The internal memory refers to the memory that comes with the client itself and is part of the client hardware structure. The external storage refers to the external storage device of the client, and the external storage amount can be transmitted to the client through a dedicated interface. For example, the external storage may be an SD card, a USB flash drive or the like.
在一个实施例中,客户端发送的待处理图像集合,可以包含客户端存储的所有待处理图像,也可以只包含客户端存储的一部分待处理图像。例如,客户端发送的待处理图像集合中,可以包含内存储器和外接存储器中所有的图像,也可以指包含内存储器中的图像。In one embodiment, the set of to-be-processed images sent by the client may include all the to-be-processed images stored by the client, or may only include a part of the to-be-processed images stored by the client. For example, the image set to be processed sent by the client may include all images in the internal memory and the external memory, and may also be included in the image included in the internal memory.
操作604,提取待处理图像集合的聚类特征集合,并将聚类特征集合返回至客户端,指示客户端执行根据聚类特征集合生成的聚类请求发送至第二服务器,接收第二服务器返回的根据聚类特征集合进行聚类处理得到的聚类处理结果,并根据聚类处理结果对待处理图像集合进行分类。 Operation 604, extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the cluster feature set, and sending the clustering request to the second server, and receiving the second server to return The clustering processing result obtained by clustering according to the clustering feature set, and classifying the image set to be processed according to the clustering processing result.
在本申请提供的实施例中,接收到待处理图像集合之后,需要将待处理图像集合进行特征识别处理,得到聚类特征集合。提取待处理图像集合的聚类特征集合具体可以包括:根据待处理图像集合生成待处理图像队列,并根据待处理图像队列中的待处理图像提取聚类特征集合。待处理图像队列是指待处理图像形成的队列,可以根据该待处理图像队列对 待处理图像进行处理,实现对待处理图像的有序处理。在形成待处理图像队列之后,每次进行特征识别处理时可以从待处理图像队列中获取预设数量的待处理图像,并将获取的预设数量的待处理图像进行特征识别处理。In the embodiment provided by the present application, after receiving the image set to be processed, the image set to be processed needs to be subjected to feature recognition processing to obtain a cluster feature set. The extracting the clustering feature set of the image set to be processed may include: generating a to-be-processed image queue according to the to-be-processed image set, and extracting the clustering feature set according to the to-be-processed image in the image queue to be processed. The image queue to be processed refers to a queue formed by the image to be processed, and the image to be processed can be processed according to the image queue to be processed to realize the orderly processing of the image to be processed. After forming the image queue to be processed, a preset number of to-be-processed images may be acquired from the image queue to be processed each time the feature recognition process is performed, and the acquired preset number of to-be-processed images are subjected to feature recognition processing.
待处理图像队列可以是随机生成的,也可以是根据待处理图像的大小、格式等属性进行排列生成的。例如,将待处理图像根据格式进行排列,将同一格式的待处理图像一起处理。一般地,待处理图像可以分为JPG、PNG、TIFF、RAW等格式。形成待处理图像队列之后,还可以控制待处理图像的处理速度,每次处理预设数量的待处理图像。例如,总共有500张待处理图像,每次处理100张。The image queue to be processed may be randomly generated, or may be generated according to attributes such as the size and format of the image to be processed. For example, the images to be processed are arranged according to the format, and the images to be processed in the same format are processed together. Generally, the image to be processed can be divided into JPG, PNG, TIFF, RAW and the like. After the image queue to be processed is formed, the processing speed of the image to be processed can also be controlled, and a preset number of images to be processed are processed each time. For example, there are a total of 500 images to be processed, 100 sheets at a time.
在一个实施例中,提取待处理图像集合的聚类特征集合还可以包括:将待处理图像集合进行加密处理,并根据加密处理后的待处理图像集合生成待处理图像队列;将待处理图像队列中的待处理图像进行解密处理,并根据解密处理后的待处理图像提取聚类特征集合。加密处理是指以某种特殊的算法将原有的信息进行改变,使得未授权的用户无法获知原有信息的处理方法。可通过3DES(Triple Data Encryption Algorithm,三重数据加密算法)、RC5等加密算法将待处理图像集合进行加密处理。经过加密处理后的待处理图像,在未经授权的用户进行访问时,无法获取待处理图像的真实信息。解密处理是指将加密后的信息还原为原有信息的处理,加密处理和解密处理是相反的处理过程。在形成队列之前,将待处理图像进行加密处理,通过队列控制待处理图像的处理速度。在对待处理图像进行处理的时候,需要将加密处理后的待处理图像进行解密处理,再将解密处理之后的待处理图像进行特征识别处理。In an embodiment, the clustering feature set of the image set to be processed may further include: performing an encryption process on the image set to be processed, and generating a to-be-processed image queue according to the image set to be processed after the encryption process; The image to be processed is decrypted, and the cluster feature set is extracted according to the image to be processed after the decryption process. Encryption processing refers to the process of changing the original information by a special algorithm so that unauthorized users cannot know the original information. The image set to be processed can be encrypted by an encryption algorithm such as 3DES (Triple Data Encryption Algorithm) or RC5. The image to be processed after the encryption process cannot obtain the real information of the image to be processed when accessed by an unauthorized user. The decryption process refers to the process of restoring the encrypted information to the original information, and the encryption process and the decryption process are the opposite processes. Before the queue is formed, the image to be processed is subjected to encryption processing, and the processing speed of the image to be processed is controlled by the queue. When the image to be processed is processed, the image to be processed after the encryption process needs to be decrypted, and then the image to be processed after the decryption process is subjected to feature recognition processing.
更进一步地,为了提高待处理图像的特征识别效率,可以将待处理图像进行一定程度的压缩或剪裁处理。具体地,将所述待处理图像集合中的待处理图像进行压缩或剪裁处理,并根据压缩或剪裁处理后的待处理图像集合提取聚类特征集合。压缩处理是指将待处理图像进行一定程度的压缩,使待处理图像占用空间变小的处理。剪裁处理是指将待处理图像进行一定程度的剪裁,使待处理图像占用空间变小的处理。一般对待处理图像压缩或剪裁处理的程度不宜过大,多压缩或剪裁处理的程度过大,会严重影响待处理图像的特征识别准确性。Further, in order to improve the feature recognition efficiency of the image to be processed, the image to be processed may be subjected to a certain degree of compression or cropping processing. Specifically, the image to be processed in the to-be-processed image set is compressed or clipped, and the cluster feature set is extracted according to the compressed or cropped image set to be processed. The compression process refers to a process of compressing a to-be-processed image to a certain extent to make the space occupied by the image to be processed smaller. The trimming process refers to a process of cutting a to-be-processed image to a certain extent, so that the occupied image takes up less space. Generally, the degree of image compression or cropping processing should not be too large, and the degree of multi-compression or cropping processing is too large, which will seriously affect the feature recognition accuracy of the image to be processed.
上述实施例提供的图像处理方法,接收客户端发送的待处理图像集合,并提取待处理图像集合的聚类特征集合。客户端根据聚类特征集合生成的聚类请求发送至第二服务器,接收第二服务器返回的根据聚类特征集合进行聚类处理得到的聚类处理结果,并根据聚类处理结果对待处理图像集合进行分类。这样即时面对庞大的数据量,也可以同步进行处理,提高了图像处理的准确率。分别在不同的服务器上进行处理,不同服务器进行不同的处理,这样分工式处理,提高了图像处理的准确性。The image processing method provided by the foregoing embodiment receives a set of to-be-processed images sent by a client, and extracts a cluster feature set of the image set to be processed. The client sends the clustering request generated by the clustering feature set to the second server, and receives the clustering processing result obtained by the clustering process according to the clustering feature set returned by the second server, and processes the image set according to the clustering processing result. sort. In this way, the huge amount of data can be faced in real time, and the processing can be performed simultaneously, which improves the accuracy of image processing. The processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
图7为又一个实施例中图像处理方法的流程图。如图7所示,该流程图包括操作702至操作704。其中:Figure 7 is a flow chart of an image processing method in still another embodiment. As shown in FIG. 7, the flowchart includes operations 702 through 704. among them:
操作702,接收客户端发送的聚类请求,其中,聚类请求是由客户端根据第一服务器发送的聚类特征集合生成的,聚类特征集合是由第一服务器根据客户端发送的待处理图像集合提取的。In operation 702, the clustering request sent by the client is received, where the clustering request is generated by the client according to the clustering feature set sent by the first server, and the clustering feature set is to be processed by the first server according to the client. Image collection extracted.
在一个实施例中,可以同时接收多个聚类请求,这多个聚类请求可以是同一个客户端发送的,也可以是不同客户端发送的。然后根据接收到的多个聚类请求形成一个聚类请求队列,按照一定的规律将聚类请求队列中的聚类请求进行处理。聚类请求中会包含请求发起设备标识、请求接收设备标识、请求发起时间和聚类特征集合等信息。一般来讲,聚类请求队列是按聚类请求发起时间的先后顺序来排列的,即请求发起时间靠前的聚类请求优先处理,每次都优先处理位于聚类请求队列首位的聚类请求。可以理解的是,聚类请求队列还可以是按其他规则进行排序的,在此不做进一步限定。例如,聚类请求队列还可以按照请求发起设备优先级、聚类特征集合所占用的空间来进行排序。In an embodiment, multiple clustering requests may be received at the same time, and the multiple clustering requests may be sent by the same client or by different clients. Then, according to the received multiple clustering requests, a clustering request queue is formed, and the clustering request in the clustering request queue is processed according to a certain rule. The clustering request includes information such as the request originating device identifier, the request receiving device identifier, the request originating time, and the clustering feature set. Generally, the clustering request queues are arranged in the order of the clustering request initiation time, that is, the clustering request with the top requesting time is prioritized, and the clustering request located first in the clustering request queue is preferentially processed each time. . It can be understood that the clustering request queue can also be sorted according to other rules, and is not further limited herein. For example, the clustering request queue may also perform sorting according to the space occupied by the request originating device priority and the clustering feature set.
客户端在发送聚类请求时,其中聚类请求中可以包含请求发起设备标识,用于区分发起聚类请求的不同设备。请求发起设备标识可以是客户端的终端标识,也可以是应用账户标识。其中,应用账户可以在多个不同的客户端上进行登录。When the client sends a clustering request, the clustering request may include a requesting device identifier, which is used to distinguish different devices that initiate the clustering request. The request initiation device identifier may be a terminal identifier of the client or an application account identifier. Among them, the application account can be logged in on multiple different clients.
在一个实施例中,客户端可以预先设置触发向第二服务器发起聚类请求的条件,设置的聚类触发条件包括以下方法中至少一种:在客户端的相册中新增照片数量大于预设数量;当前时间为预设时间;距上次发起聚类请求的时间超过预设时间段;移动终端当前处于充电状态。例如,在移动终端新增图片大于50张时,若当前时间为凌晨2点到5点,且移动终端处于充电状态,则移动终端发起聚类请求。In an embodiment, the client may preset a condition for triggering a clustering request to the second server, and the set clustering triggering condition includes at least one of the following methods: the number of newly added photos in the client's album is greater than the preset number. The current time is the preset time; the time from the last time the clustering request is initiated exceeds the preset time period; the mobile terminal is currently in the charging state. For example, when the mobile terminal adds more than 50 pictures, if the current time is between 2 am and 5 am, and the mobile terminal is in a charging state, the mobile terminal initiates a clustering request.
操作704,根据聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将聚类处理结果发送至客户端,指示客户端执行根据聚类处理结果对待处理图像集合进行分类。 Operation 704, performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform classification according to the clustering processing result.
在本申请提供的实施例中,若聚类请求队列中包含多个聚类请求,则可以将请求发起设备标识相同的聚类请求进行合并。合并聚类请求是指将多个聚类请求合并为一个聚类请求,对合并后的聚类请求进行处理即实现了多个聚类请求同时处理。具体地,获取聚类请求队列中每个聚类请求包含的请求发起设备标识,将聚类请求队列中请求发起设备标识相同的聚类请求进行合并。可以理解的是,请求发起设备标识相同的聚类请求,即为同一个请求发起对象发送的聚类请求。则根据聚类请求将聚类特征集合进行聚类处理得到聚类处理结果包括:根据客户端发送的聚类请求生成聚类请求队列,并将聚类请求队列中请求发起对象相同的聚类请求进行合并;根据合并后的聚类请求将聚类特征集合进行聚类处理,得到聚类处理结果。In the embodiment provided by the present application, if the cluster request queue includes multiple clustering requests, the clustering request with the same requesting device identifier may be merged. The merge clustering request refers to combining multiple clustering requests into one clustering request, and processing the merged clustering request to realize simultaneous processing of multiple clustering requests. Specifically, the request initiation device identifier included in each cluster request in the cluster request queue is obtained, and the cluster request requesting the same device identifier in the cluster request queue is merged. It can be understood that the requesting initiating device identifies the same clustering request, that is, the clustering request sent by the same request initiating object. Then, the clustering feature set is clustered according to the clustering request, and the clustering processing result includes: generating a clustering request queue according to the clustering request sent by the client, and requesting the same clustering request in the clustering request queue The merging is performed; the clustering feature set is clustered according to the merged clustering request, and the clustering processing result is obtained.
在一个实施例中,将聚类请求队列中请求发起对象相同的聚类请求进行合并包括:根据请求发起时间将聚类请求队列中的聚类请求进行排序,并获取排序后的聚类请求队列中的指定聚类请求;将聚类请求队列中与指定聚类请求的请求发起对象相同的聚类请求进行合并。根据请求发起时间将聚类请求队列中的聚类请求进行排序,例如,将聚类请求按请求发起时间进行升序排列,或者将聚类请求按请求发起时间进行降序排列。一般地,请求接收设备在接收到多个聚类请求之后,由于处理能力有限,无法将所有聚类请求同时进行处理。则请求接收设备会根据请求发起时间的先后顺序形成聚类请求队列,并将请求发起时间靠前的聚类请求先进行处理,请求发起时间靠后的聚类请求后处理。In an embodiment, combining the clustering request request with the same clustering request in the clustering request queue includes: sorting the clustering request in the clustering request queue according to the request initiation time, and acquiring the sorted clustering request queue The specified clustering request in the clustering request; the same clustering request in the clustering request queue as the requesting initiating object of the specified clustering request is merged. The clustering request in the clustering request queue is sorted according to the request initiation time, for example, the clustering request is sorted in ascending order according to the request initiation time, or the clustering request is sorted in descending order according to the request initiation time. Generally, after receiving a plurality of clustering requests, the request receiving device cannot process all clustering requests simultaneously due to limited processing capability. Then, the request receiving device forms a clustering request queue according to the order of the request initiation time, and processes the clustering request with the top request initiation time first, and requests the clustering request post-processing after the initiation time.
指定聚类请求是指聚类请求队列中符合指定条件的聚类请求,获取的指定聚类请求作为当前进行处理的聚类请求。根据请求发起时间将聚类请求队列的聚类请求进行排序之后,可以根据请求发起时间获取指定聚类请求,还可以根据聚类对象的属性参数获取指定聚类请求。例如,聚类请求队列中的排序首位的聚类请求,排序末位的聚类请求,或者获取待处理图像集合占用空间最大的聚类请求。The specified clustering request refers to a clustering request in the clustering request queue that meets the specified conditions, and the obtained specified clustering request is used as the clustering request currently processed. After the clustering request queues are sorted according to the request initiation time, the specified clustering request may be obtained according to the request initiation time, and the specified clustering request may also be obtained according to the attribute parameters of the clustering object. For example, a clustering request in the clustering request queue for sorting the first position, sorting the clustering request of the last bit, or acquiring a clustering request with the largest occupied space of the image collection to be processed.
在一个实施例中,指定聚类请求可以为首位聚类请求,即聚类请求队里俄中排序首位的聚类请求。将聚类请求队列中请求发起对象相同的聚类请求进行合并具体可以包括:根据请求发起时间由先到后的顺序将聚类请求队列中的聚类请求进行排列,获取聚类请求队列中的首位聚类请求;将聚类请求队列中与首位聚类请求的请求发起对象相同的聚类请求进行合并。将聚类请求合并之后,聚类请求对应的聚类特征集合也需要进行合并。则合并后的聚类特征集合,即为各个聚类请求对应的聚类特征集合的并集,将合并后的聚类特征集合进行聚类处理。In one embodiment, the specified clustering request may be a first-level clustering request, that is, a clustering requesting team to select the first clustering request in the team. The merging of the same clustering request requesting the object in the clustering request queue may include: arranging the clustering request in the clustering request queue according to the request initiation time in a first-to-last order, and acquiring the clustering request queue The first clustering request; the clustering request queue is merged with the same clustering request as the first clustering request requesting object. After the clustering requests are merged, the clustering feature sets corresponding to the clustering requests also need to be merged. Then, the merged cluster feature set is a union of the cluster feature sets corresponding to each cluster request, and the merged cluster feature set is clustered.
将聚类特征集合进行聚类处理,得到聚类处理结果。本申请实施例提供的图像处理方法还包括:根据聚类处理结果生成标签数据,并将标签数据存储在预设存储空间。标签数据是指用于标记聚类特征集合中聚类特征的分类的标识,根据聚类处理结果生成的标签数据,可以与聚类特征标识建立一一对应的关系,并将标签数据存储在预设存储空间中。Clustering feature sets are clustered to obtain clustering processing results. The image processing method provided by the embodiment of the present application further includes: generating tag data according to the clustering processing result, and storing the tag data in a preset storage space. The tag data refers to the identifier used to mark the clustering feature in the clustering feature set. According to the tag data generated by the clustering process result, a one-to-one correspondence can be established with the clustering feature identifier, and the tag data is stored in the pre-predetermined relationship. Set the storage space.
聚类处理可以根据一个和多个特征将聚类对象集合分为多个分类。例如,人根据性 别可以分为男性和女性,根据年龄又可以分为少年、青年、中老年等,根据性别和年龄又可以有更多的组合方式。一般可以根据聚类模型将聚类对象集合进行分类,常用的聚类模型包括k-means聚类模型、层次聚类模型、SOM聚类模型和FCM聚类模型等。在本实施例中,聚类模型可以根据训练图像集合进行训练得到。训练图像集合是指用于训练得到聚类模型的图像集合,训练图像集合可以取待处理图像集合中的部分,也可以是专门用于训练聚类模型的图像集合。具体地,对训练图像集合进行训练得到聚类模型和特征识别模型,根据聚类模型对聚类特征集合进行聚类处理,并将特征识别模型发送至第一服务器以提取待处理图像集合的聚类特征集合。The clustering process can divide the cluster object set into a plurality of categories according to one or more features. For example, people can be divided into men and women according to their gender. They can be divided into teenagers, youth, middle-aged and so on according to age. There are more combinations according to gender and age. Generally, clustering object sets can be classified according to the clustering model. Commonly used clustering models include k-means clustering model, hierarchical clustering model, SOM clustering model and FCM clustering model. In this embodiment, the clustering model can be obtained by training according to the training image set. The training image set refers to a set of images used for training to obtain a clustering model, and the training image set may take a part of the image set to be processed, or may be an image set specifically used for training the clustering model. Specifically, the training image set is trained to obtain a clustering model and a feature recognition model, and the clustering feature set is clustered according to the clustering model, and the feature recognition model is sent to the first server to extract the aggregate of the image set to be processed. Class feature set.
上述实施例提供的图像处理方法,接收客户端发送的聚类请求,根据聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将聚类处理结果发送至所述客户端,使客户端根据聚类处理结果进行分类。其中聚类请求是由客户端根据第一服务器发送的聚类特征集合生成的,聚类特征集合是由第一服务器根据客户端发送的待处理图像集合提取的。可见,这样即时面对庞大的数据量,也可以同时进行特征识别和聚类处理,提高了图像处理的准确率。分别在不同的服务器上进行处理,不同服务器进行不同的处理,这样分工式处理,提高了图像处理的准确性。The image processing method provided by the foregoing embodiment receives the clustering request sent by the client, performs clustering processing according to the clustering feature set in the clustering request, and obtains a clustering processing result, and sends the clustering processing result to the client. , so that the client classifies according to the clustering processing results. The clustering request is generated by the client according to the clustering feature set sent by the first server, and the clustering feature set is extracted by the first server according to the to-be-processed image set sent by the client. It can be seen that in the face of a huge amount of data, it is also possible to perform feature recognition and clustering processing at the same time, thereby improving the accuracy of image processing. The processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
图8为一个实施例中图像处理系统的系统架构图。如图8所示,该系统架构图中包括客户端802、第一服务器804和第二服务器806。其中:Figure 8 is a system architecture diagram of an image processing system in one embodiment. As shown in FIG. 8, the system architecture diagram includes a client 802, a first server 804, and a second server 806. among them:
客户端802,用于获取待处理图像集合,将待处理图像集合发送至第一服务器804,接收第一服务器804发送的聚类特征集合,将根据聚类特征集合生成的聚类请求发送至第二服务器,并接收第二服务器发送的聚类处理结果,根据聚类处理结果对待处理图像集合进行分类。The client 802 is configured to obtain a to-be-processed image set, send the to-be-processed image set to the first server 804, receive the clustering feature set sent by the first server 804, and send the clustering request generated according to the clustering feature set to the first The second server receives the clustering processing result sent by the second server, and classifies the image set to be processed according to the clustering processing result.
第一服务器804,用于接收客户端802发送的待处理图像集合,提取待处理图像集合的聚类特征集合,并将聚类特征集合返回至客户端802。The first server 804 is configured to receive a set of to-be-processed images sent by the client 802, extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client 802.
在其中一个实施例中,第一服务器还用于根据待处理图像集合生成待处理图像队列,并根据待处理图像队列中的待处理图像提取聚类特征集合。待处理图像队列可以是随机生成的,也可以是根据待处理图像的大小、格式等属性进行排列生成的。形成待处理图像队列之后,还可以控制待处理图像的处理速度,每次处理预设数量的待处理图像。In one embodiment, the first server is further configured to generate a to-be-processed image queue according to the to-be-processed image set, and extract a clustering feature set according to the to-be-processed image in the image queue to be processed. The image queue to be processed may be randomly generated, or may be generated according to attributes such as the size and format of the image to be processed. After the image queue to be processed is formed, the processing speed of the image to be processed can also be controlled, and a preset number of images to be processed are processed each time.
在一个实施例中,第一服务器还可以将待处理图像集合进行加密处理,并根据加密处理后的待处理图像集合生成待处理图像队列;将待处理图像队列中的待处理图像进行解密处理,并根据解密处理后的待处理图像提取聚类特征集合。更进一步,还可以将待处理图像集合中的待处理图像进行压缩或剪裁处理,并根据压缩或剪裁处理后的待处理图像集合提取聚类特征集合。In an embodiment, the first server may further perform encryption processing on the to-be-processed image set, and generate a to-be-processed image queue according to the encrypted processed image set; and decrypt the to-be-processed image in the image queue to be processed. And extracting a cluster feature set according to the to-be-processed image after decryption processing. Further, the image to be processed in the image set to be processed may be compressed or trimmed, and the cluster feature set is extracted according to the image set to be processed after compression or cropping.
第一服务器可以是一个服务器集群,即通过多台服务器实现特征识别处理的分布式处理。若第一服务器为一个服务器集群,那么第一服务器就由多个第一子服务器构成。每个第一子服务器可以将工作状态实时上报到注册服务器,注册服务器根据第一子服务器上报的工作状态,生成可用服务列表。该可用服务列表中记录了处于可用状态的第一子服务器的服务器标识,通过获取可用服务列表就可以选择处于可用状态的第一子服务器。当客户端需要发送待处理图像集合之前,可以从注册服务器中获取可用服务列表,获取可用服务列表中的服务器标识,通过预设路由算法从获取的服务器标识中选择目标服务器标识,将待处理图像集合发送到目标服务器标识对应的第一子服务器。The first server may be a server cluster, that is, distributed processing that implements feature recognition processing through multiple servers. If the first server is a server cluster, the first server is composed of a plurality of first child servers. Each first sub-server can report the working status to the registration server in real time, and the registration server generates a list of available services according to the working status reported by the first sub-server. The server ID of the first subserver in the available state is recorded in the list of available services, and the first subserver in the available state can be selected by obtaining the list of available services. Before the client needs to send the to-be-processed image set, the server may obtain the available service list from the registration server, obtain the server identifier in the available service list, and select the target server identifier from the obtained server identifier by using a preset routing algorithm, and the image to be processed is to be processed. The collection is sent to the first subserver corresponding to the target server ID.
在本申请提供的实施例中,第一服务器804可以但不限于提供数据传输服务、加解密服务、特征识别服务、存储接口服务和存储服务。其中,数据传输服务用于数据的传输,例如通过IO Service接收客户端发送的待处理图像集合,或向客户端发送聚类特征集合等。加解密服务用于对数据进行加解密处理,例如通过加解密服务可以是Privacy服务,通过 Privacy服务将待处理图像进行加密处理。特征识别服务是指提供特征识别处理的服务,例如提取待处理图像集合中的聚类特征。存储服务是存储数据的服务,例如将待处理图像集合在第一服务器上进行存储。存储接口服务是指与存储服务进行对接的服务,例如通过Storage服务实现与存储服务的对接。In the embodiments provided herein, the first server 804 can be, but is not limited to, providing a data transfer service, an encryption and decryption service, a feature recognition service, a storage interface service, and a storage service. The data transmission service is used for data transmission, for example, receiving an image set to be processed sent by a client through an IO service, or sending a cluster feature set to a client. The encryption and decryption service is used for encrypting and decrypting data. For example, the encryption and decryption service may be a Privacy service, and the image to be processed is encrypted by the Privacy service. The feature recognition service refers to a service that provides feature recognition processing, such as extracting cluster features in a set of images to be processed. A storage service is a service that stores data, such as storing a collection of images to be processed on a first server. A storage interface service refers to a service that interfaces with a storage service, such as a docking service with a storage service.
第二服务器806,用于接收客户端802发送的聚类请求,根据聚类请求中的聚类特征集合进行聚类处理,并将聚类处理结果发送至客户端802。The second server 806 is configured to receive the clustering request sent by the client 802, perform clustering processing according to the clustering feature set in the clustering request, and send the clustering processing result to the client 802.
在一个实施例中,第二服务器还用于根据客户端发送的聚类请求生成聚类请求队列,并将聚类请求队列中请求发起对象相同的聚类请求进行合并;根据合并后的聚类请求将聚类特征集合进行聚类处理。In an embodiment, the second server is further configured to generate a clustering request queue according to the clustering request sent by the client, and merge the clustering request queue with the same clustering request requesting object; according to the merged clustering The clustering feature set is requested to be clustered.
具体还可以包括:根据请求发起时间将聚类请求队列中的聚类请求进行排序,并获取排序后的聚类请求队列中的指定聚类请求;将聚类请求队列中与指定聚类请求的请求发起对象相同的聚类请求进行合并。更进一步地,根据请求发起时间由先到后的顺序将聚类请求队列中的聚类请求进行排列,获取聚类请求队列中的首位聚类请求;将聚类请求队列中与首位聚类请求的请求发起对象相同的聚类请求进行合并。还可以根据聚类处理结果生成标签数据,并将标签数据存储在预设存储空间。The method may further include: sorting the clustering request in the clustering request queue according to the request initiation time, and acquiring the specified clustering request in the sorted clustering request queue; and the clustering request queue and the specified clustering request The request initiates the same cluster request for the object to merge. Further, the clustering request in the clustering request queue is arranged in a first-to-last order according to the request initiation time, and the first clustering request in the clustering request queue is obtained; the clustering request queue is combined with the first clustering request The request initiates the same clustering request for the object to merge. It is also possible to generate tag data according to the clustering processing result and store the tag data in a preset storage space.
第二服务器还可以对训练图像集合进行训练得到聚类模型和特征识别模型,根据聚类模型对聚类特征集合进行聚类处理,并将特征识别模型发送至第一服务器以提取待处理图像集合的聚类特征集合。The second server may further train the training image set to obtain a clustering model and a feature recognition model, cluster the cluster feature set according to the clustering model, and send the feature recognition model to the first server to extract the image set to be processed. A collection of clustering features.
可以理解的是,在一个实施例中,第二服务器可以但不限于包括:标签数据服务、聚类服务、机器学习服务和数据传输服务。其中,标签数据服务是指根据生成标签数据的服务,例如根据聚类处理结果生成标签数据。聚类服务是指将数据集合进行聚类处理的服务,例如将聚类特征集合进行聚类处理。机器学习服务是指提供模型训练的服务,例如根据训练图像集合训练得到聚类模型和特征识别模型。数据传输服务是指提供数据传输的服务,例如通过PUSH方法将聚类处理结果推送给客户端。It can be understood that, in one embodiment, the second server can include, but is not limited to, a tag data service, a clustering service, a machine learning service, and a data transfer service. The tag data service refers to a service that generates tag data according to a clustering process result. The clustering service refers to a service that clusters data sets, for example, clustering feature sets. The machine learning service refers to a service that provides model training, for example, training a cluster model and a feature recognition model according to a training image set. A data transmission service refers to a service that provides data transmission, for example, pushing a cluster processing result to a client through a PUSH method.
上述实施例提供的图像处理系统,通过客户端将待处理图像集合发送至第一服务器进行特征识别处理,并将第一服务器处理得到的聚类特征集合发送至第二服务器进行聚类处理。客户端根据第二服务器返回的聚类处理结果,对待处理图像集合进行分类。即时面对庞大的数据量,也可以进行同步进行处理,提高了图像处理的准确率。分别在不同的服务器上进行处理,不同服务器进行不同的处理,这样分工式处理,提高了图像处理的准确性。The image processing system provided by the foregoing embodiment sends the image set to be processed to the first server for feature recognition processing by the client, and sends the cluster feature set processed by the first server to the second server for clustering processing. The client classifies the image set to be processed according to the clustering processing result returned by the second server. Instantly facing a huge amount of data, it can also be processed synchronously, improving the accuracy of image processing. The processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
图9为一个实施例中图像处理装置的结构示意图。如图9所示,该图像处理装置900包括图像获取模块902、特征获取模块904和图像分类模块906。其中:Figure 9 is a block diagram showing the structure of an image processing apparatus in an embodiment. As shown in FIG. 9, the image processing apparatus 900 includes an image acquisition module 902, a feature acquisition module 904, and an image classification module 906. among them:
图像获取模块902,用于获取待处理图像集合,并将所述待处理图像集合发送至第一服务器。The image obtaining module 902 is configured to acquire a to-be-processed image set, and send the to-be-processed image set to the first server.
特征获取模块904,用于接收所述第一服务器发送的,根据所述待处理图像集合提取的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器。The feature acquisition module 904 is configured to receive a cluster feature set that is sent by the first server according to the to-be-processed image set, and send a clustering request generated according to the cluster feature set to a second server.
图像分类模块906,用于接收第二服务器发送的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类,所述聚类处理结果是由所述第二服务器根据所述聚类特征集合进行聚类处理得到的。The image classification module 906 is configured to receive a clustering processing result sent by the second server, and classify the to-be-processed image collection according to the clustering processing result, where the clustering processing result is determined by the second server according to The cluster feature set is obtained by clustering.
上述实施例提供的图像处理装置,将待处理图像集合发送至第一服务器进行特征识别处理,并将第一服务器处理得到的聚类特征集合发送至第二服务器进行聚类处理。根据第二服务器返回的聚类处理结果,对待处理图像集合进行分类。即时面对庞大的数据量,也可以进行同步进行处理,提高了图像处理的准确率。分别在不同的服务器上进行处理,不同服务器进行不同的处理,这样分工式处理,提高了图像处理的准确性。The image processing apparatus provided in the foregoing embodiment sends the image set to be processed to the first server for feature recognition processing, and sends the cluster feature set processed by the first server to the second server for clustering processing. The image set to be processed is classified according to the clustering processing result returned by the second server. Instantly facing a huge amount of data, it can also be processed synchronously, improving the accuracy of image processing. The processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
图10为另一个实施例中图像处理装置的结构示意图。如图10所示,该图像处理装置1000包括图像接收模块1002和特征获取模块1004。其中:Figure 10 is a block diagram showing the structure of an image processing apparatus in another embodiment. As shown in FIG. 10, the image processing apparatus 1000 includes an image receiving module 1002 and a feature acquiring module 1004. among them:
图像接收模块1002,用于接收所述客户端发送的所述待处理图像集合;The image receiving module 1002 is configured to receive the to-be-processed image set sent by the client.
特征获取模块1004,用于提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。a feature acquiring module 1004, configured to extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client, instructing the client to perform generating according to the cluster feature set The clustering request is sent to the second server, and the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server is received, and the to-be-processed image collection is obtained according to the clustering processing result. sort.
上述实施例提供的图像处理装置,接收客户端发送的待处理图像集合,并提取待处理图像集合的聚类特征集合。客户端根据聚类特征集合生成的聚类请求发送至第二服务器,接收第二服务器返回的根据聚类特征集合进行聚类处理得到的聚类处理结果,并根据聚类处理结果对待处理图像集合进行分类。这样即时面对庞大的数据量,也可以进行同步进行处理,提高了图像处理的准确率。分别在不同的服务器上进行处理,不同服务器进行不同的处理,这样分工式处理,提高了图像处理的准确性。The image processing apparatus provided by the foregoing embodiment receives a set of to-be-processed images sent by a client, and extracts a cluster feature set of the image set to be processed. The client sends the clustering request generated by the clustering feature set to the second server, and receives the clustering processing result obtained by the clustering process according to the clustering feature set returned by the second server, and processes the image set according to the clustering processing result. sort. In this way, in the face of a huge amount of data, it is also possible to perform synchronization processing, which improves the accuracy of image processing. The processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
在一个实施例中,特征获取模块1004还用于根据所述待处理图像集合生成待处理图像队列,并根据所述待处理图像队列中的待处理图像提取聚类特征集合。In an embodiment, the feature acquiring module 1004 is further configured to generate a to-be-processed image queue according to the to-be-processed image set, and extract a clustering feature set according to the to-be-processed image in the to-be-processed image queue.
在本申请提供的实施例中,特征获取模块1004还用于将所述待处理图像集合进行加密处理,并根据加密处理后的待处理图像集合生成待处理图像队列;将所述待处理图像队列中的待处理图像进行解密处理,并根据解密处理后的待处理图像提取聚类特征集合。In the embodiment provided by the present application, the feature acquiring module 1004 is further configured to perform encryption processing on the to-be-processed image set, and generate a to-be-processed image queue according to the encrypted processed image set; and set the to-be-processed image queue The image to be processed is decrypted, and the cluster feature set is extracted according to the image to be processed after the decryption process.
在其中一个实施例中,特征获取模块1004还用于将所述待处理图像集合中的待处理图像进行压缩或剪裁处理,并根据压缩或剪裁处理后的待处理图像集合提取聚类特征集合。In one embodiment, the feature acquisition module 1004 is further configured to compress or trim the image to be processed in the to-be-processed image set, and extract a cluster feature set according to the compressed or trimmed image set to be processed.
图11为又一个实施例中图像处理装置的结构示意图。如图11所示,该图像处理装置1100包括请求接收模块1102和特征聚类模块1104。其中:Figure 11 is a block diagram showing the structure of an image processing apparatus in still another embodiment. As shown in FIG. 11, the image processing apparatus 1100 includes a request receiving module 1102 and a feature clustering module 1104. among them:
请求接收模块1102,用于接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的。The request receiving module 1102 is configured to receive the clustering request sent by the client, where the clustering request is generated by the client according to a clustering feature set sent by the first server, the clustering The feature set is extracted by the first server according to the set of to-be-processed images sent by the client.
特征聚类模块1104,用于根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。The feature clustering module 1104 is configured to perform clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and send the clustering processing result to the client, instructing the client Performing to classify the to-be-processed image set according to the clustering processing result.
上述实施例提供的图像处理装置,接收客户端发送的聚类请求,根据聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将聚类处理结果发送至所述客户端,使客户端根据聚类处理结果进行分类。其中聚类请求是由客户端根据第一服务器发送的聚类特征集合生成的,聚类特征集合是由第一服务器根据客户端发送的待处理图像集合提取的。可见,这样即时面对庞大的数据量,也可以同时进行特征识别和聚类处理,提高了图像处理的准确率。分别在不同的服务器上进行处理,不同服务器进行不同的处理,这样分工式处理,提高了图像处理的准确性。The image processing apparatus provided by the foregoing embodiment receives a clustering request sent by a client, performs clustering processing according to the clustering feature set in the clustering request, and obtains a clustering processing result, and sends the clustering processing result to the client. , so that the client classifies according to the clustering processing results. The clustering request is generated by the client according to the clustering feature set sent by the first server, and the clustering feature set is extracted by the first server according to the to-be-processed image set sent by the client. It can be seen that in the face of a huge amount of data, it is also possible to perform feature recognition and clustering processing at the same time, thereby improving the accuracy of image processing. The processing is performed on different servers, and different servers perform different processing, so that the division processing ensures the accuracy of image processing.
在其中一个实施例中,特征聚类模块1104还用于根据所述客户端发送的聚类请求生成聚类请求队列,并将所述聚类请求队列中请求发起对象相同的聚类请求进行合并;根据所述合并后的聚类请求将所述聚类特征集合进行聚类处理,得到聚类处理结果。In one embodiment, the feature clustering module 1104 is further configured to generate a clustering request queue according to the clustering request sent by the client, and merge the clustering request request with the same clustering request object in the clustering request queue. And performing clustering processing on the clustering feature set according to the merged clustering request to obtain a clustering processing result.
在一个实施例中,特征聚类模块1104还用于根据请求发起时间将聚类请求队列中的聚类请求进行排序,并获取排序后的聚类请求队列中的指定聚类请求;将所述聚类请求队列中与所述指定聚类请求的请求发起对象相同的聚类请求进行合并。In an embodiment, the feature clustering module 1104 is further configured to sort the clustering request in the clustering request queue according to the request initiation time, and obtain a specified clustering request in the sorted clustering request queue; The clustering request queue has the same clustering request as the request originating object of the specified clustering request for merging.
在本申请提供的实施例中,图像处理装置1100中还可以包括标签生成模块1106,该 标签生成模块1106用于根据聚类处理结果生成标签数据,并将所述标签数据存储在预设存储空间。In the embodiment provided by the present application, the image processing apparatus 1100 may further include a label generation module 1106, configured to generate label data according to the clustering processing result, and store the label data in a preset storage space. .
在一个实施例中,图像处理装置1100中还可以包括模型训练模块1108,该模型训练模块1108用于对训练图像集合进行训练得到聚类模型和特征识别模型,根据所述聚类模型对所述聚类特征集合进行聚类处理,并将所述特征识别模型发送至第一服务器以提取所述待处理图像集合的聚类特征集合。In an embodiment, the image processing apparatus 1100 may further include a model training module 1108, configured to train the training image set to obtain a clustering model and a feature recognition model, according to the clustering model The clustering feature set performs clustering processing, and sends the feature recognition model to the first server to extract a clustering feature set of the to-be-processed image set.
上述图像处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像处理装置按照需要划分为不同的模块,以完成上述图像处理装置的全部或部分功能。The division of each module in the above image processing apparatus is for illustrative purposes only. In other embodiments, the image processing apparatus may be divided into different modules as needed to complete all or part of the functions of the image processing apparatus.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机程序的非易失性计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,使得所述处理器执行上述图像处理方法。The embodiment of the present application also provides a computer readable storage medium. One or more non-transitory computer readable storage media containing a computer program, when executed by one or more processors, cause the processor to perform the image processing method described above.
图12为一个实施例中服务器的内部结构示意图。如图12所示,该服务器包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口。其中,该服务器的非易失性存储介质存储有操作系统和计算机程序。该计算机程序被处理器执行时以实现一种图像处理方法。该服务器的处理器用于提供计算和控制能力,支撑整个服务器的运行。该服务器的网络接口用于据以与外部的终端通过网络连接通信,比如接收终端发送的聚类请求以及向终端返回聚类处理结果等。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Figure 12 is a schematic diagram showing the internal structure of a server in an embodiment. As shown in FIG. 12, the server includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected by a system bus. The non-volatile storage medium of the server stores an operating system and a computer program. The computer program is executed by a processor to implement an image processing method. The server's processor is used to provide computing and control capabilities that support the operation of the entire server. The network interface of the server is used to communicate with an external terminal through a network connection, such as receiving a clustering request sent by the terminal and returning a clustering processing result to the terminal. The server can be implemented with a stand-alone server or a server cluster consisting of multiple servers. It will be understood by those skilled in the art that the structure shown in FIG. 12 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
本申请实施例还提供了一种计算机设备。如图13所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该计算机设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为手机为例:The embodiment of the present application also provides a computer device. As shown in FIG. 13 , for the convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, refer to the method part of the embodiment of the present application. The computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking a computer device as a mobile phone as an example. :
图13为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。参考图13,手机包括:射频(Radio Frequency,RF)电路1310、存储器1320、输入单元1330、显示单元1340、传感器1350、音频电路1360、无线保真(wireless fidelity,WiFi)模块1370、处理器1380、以及电源1390等部件。本领域技术人员可以理解,图13所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 13 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application. Referring to FIG. 13 , the mobile phone includes: a radio frequency (RF) circuit 1310 , a memory 1320 , an input unit 1330 , a display unit 1340 , a sensor 1350 , an audio circuit 1360 , a wireless fidelity (WiFi) module 1370 , and a processor 1380 . And power supply 1390 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 13 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
其中,RF电路1310可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1380处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1310还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1310 can be used for receiving and transmitting information during the transmission and reception of information or during the call. The downlink information of the base station can be received and processed by the processor 1380. The uplink data can also be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1310 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器1320可用于存储软件程序以及模块,处理器1380通过运行存储在存储器1320的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1320 可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1320 can be used to store software programs and modules, and the processor 1380 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1320. The memory 1320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.); The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. Moreover, memory 1320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1330可用于接收输入的数字或字符信息,以及产生与手机1300的用户设置以及功能控制有关的键信号输入。具体地,输入单元1330可包括触控面板1331以及其他输入设备1332。触控面板1331,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1331上或在触控面板1331附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1380,并能接收处理器1380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1331。除了触控面板1331,输入单元1330还可以包括其他输入设备1332。具体地,其他输入设备1332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1330 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1300. Specifically, the input unit 1330 may include a touch panel 1331 and other input devices 1332. The touch panel 1331, which may also be referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 1331 or near the touch panel 1331. Operation) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 1331 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1380 is provided and can receive commands from the processor 1380 and execute them. In addition, the touch panel 1331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1331, the input unit 1330 may further include other input devices 1332. Specifically, other input devices 1332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
显示单元1340可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1340可包括显示面板1341。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1341。在一个实施例中,触控面板1331可覆盖显示面板1341,当触控面板1331检测到在其上或附近的触摸操作后,传送给处理器1380以确定触摸事件的类型,随后处理器1380根据触摸事件的类型在显示面板1341上提供相应的视觉输出。虽然在图13中,触控面板1331与显示面板1341是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1331与显示面板1341集成而实现手机的输入和输出功能。The display unit 1340 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 1340 can include a display panel 1341. In one embodiment, the display panel 1341 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. In one embodiment, the touch panel 1331 may cover the display panel 1341. When the touch panel 1331 detects a touch operation thereon or nearby, the touch panel 1331 transmits to the processor 1380 to determine the type of the touch event, and then the processor 1380 is The type of touch event provides a corresponding visual output on display panel 1341. Although in FIG. 13 , the touch panel 1331 and the display panel 1341 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1331 and the display panel 1341 may be integrated. Realize the input and output functions of the phone.
手机1300还可包括至少一种传感器1350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1341的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1341和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The handset 1300 can also include at least one type of sensor 1350, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1341 and/or when the mobile phone moves to the ear. Or backlight. The motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
音频电路1360、扬声器1361和传声器1362可提供用户与手机之间的音频接口。音频电路1360可将接收到的音频数据转换后的电信号,传输到扬声器1361,由扬声器1361转换为声音信号输出;另一方面,传声器1362将收集的声音信号转换为电信号,由音频电路1360接收后转换为音频数据,再将音频数据输出处理器1380处理后,经RF电路1310可以发送给另一手机,或者将音频数据输出至存储器1320以便后续处理。 Audio circuitry 1360, speaker 1361, and microphone 1362 can provide an audio interface between the user and the handset. The audio circuit 1360 can transmit the converted electrical data of the received audio data to the speaker 1361, and convert it into a sound signal output by the speaker 1361; on the other hand, the microphone 1362 converts the collected sound signal into an electrical signal, by the audio circuit 1360. After receiving, it is converted into audio data, and then processed by the audio data output processor 1380, transmitted to another mobile phone via the RF circuit 1310, or outputted to the memory 1320 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1370可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图13示出了WiFi模块1370,但是可以理解的是,其并不属于手机1300的必须构成,可以根据需要而省略。WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1370. It provides users with wireless broadband Internet access. Although FIG. 13 shows the WiFi module 1370, it will be understood that it does not belong to the essential configuration of the handset 1300 and may be omitted as needed.
处理器1380是手机的控制中心,利用各种接口和线路连接整个手机的各个部分, 通过运行或执行存储在存储器1320内的软件程序和/或模块,以及调用存储在存储器1320内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1380可包括一个或多个处理单元。在一个实施例中,处理器1380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1380中。The processor 1380 is a control center for the handset that connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1320, and by invoking data stored in the memory 1320. The phone's various functions and processing data, so that the overall monitoring of the phone. In one embodiment, processor 1380 can include one or more processing units. In one embodiment, processor 1380 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, user interface, and applications, etc.; the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1380.
手机1300还包括给各个部件供电的电源1390(比如电池),优选的,电源可以通过电源管理系统与处理器1380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset 1300 also includes a power source 1390 (such as a battery) that powers the various components. Preferably, the power source can be logically coupled to the processor 1380 via a power management system to enable management of charging, discharging, and power management functions through the power management system.
在一个实施例中,手机1300还可以包括摄像头、蓝牙模块等。In one embodiment, the handset 1300 can also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该移动终端所包括的处理器1380执行存储在存储器上的计算机程序时实现上述图像处理方法。In the embodiment of the present application, the processor 1380 included in the mobile terminal implements the image processing method described above when executing a computer program stored in a memory.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as an external cache. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization. Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the claims. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (31)

  1. 一种图像处理系统,所述系统包括:An image processing system, the system comprising:
    客户端,用于获取待处理图像集合,将所述待处理图像集合发送至第一服务器,接收所述第一服务器发送的聚类特征集合,将根据所述聚类特征集合生成的聚类请求发送至第二服务器,并接收第二服务器发送的聚类处理结果,根据所述聚类处理结果对所述待处理图像集合进行分类;a client, configured to obtain a to-be-processed image set, send the to-be-processed image set to a first server, receive a clustering feature set sent by the first server, and generate a clustering request according to the clustering feature set Sending to the second server, and receiving the clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result;
    第一服务器,用于接收所述客户端发送的所述待处理图像集合,提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端;a first server, configured to receive the to-be-processed image set sent by the client, extract a cluster feature set of the to-be-processed image set, and return the cluster feature set to the client;
    第二服务器,用于接收所述客户端发送的所述聚类请求,根据所述聚类请求中的聚类特征集合进行聚类处理,并将聚类处理结果发送至所述客户端。And a second server, configured to receive the clustering request sent by the client, perform clustering processing according to the clustering feature set in the clustering request, and send the clustering processing result to the client.
  2. 一种图像处理方法,所述方法包括:An image processing method, the method comprising:
    获取待处理图像集合,并将所述待处理图像集合发送至第一服务器;Obtaining a to-be-processed image collection, and sending the to-be-processed image collection to a first server;
    接收所述第一服务器发送的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器,其中所述聚类特征集合是根据所述待处理图像集合提取的;Receiving a cluster feature set sent by the first server, and sending a clustering request generated according to the cluster feature set to a second server, where the cluster feature set is extracted according to the to-be-processed image set ;
    接收第二服务器发送的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类,所述聚类处理结果是由所述第二服务器根据所述聚类特征集合进行聚类处理得到的。Receiving a clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result, where the clustering processing result is performed by the second server according to the clustering feature set Clustered processing.
  3. 一种图像处理方法,所述方法包括:An image processing method, the method comprising:
    接收所述客户端发送的所述待处理图像集合;Receiving the to-be-processed image set sent by the client;
    提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。Extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the clustering feature set, sending to a second The server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
  4. 根据权利要求3所述的图像处理方法,其特征在于,所述提取所述待处理图像集合的聚类特征集合包括:The image processing method according to claim 3, wherein the extracting the cluster feature set of the to-be-processed image set comprises:
    根据所述待处理图像集合生成待处理图像队列,并根据所述待处理图像队列中的待处理图像提取聚类特征集合。Generating a queue of images to be processed according to the to-be-processed image set, and extracting a cluster feature set according to the to-be-processed image in the image queue to be processed.
  5. 根据权利要求4所述的图像处理方法,其特征在于,所述提取所述待处理图像集合的聚类特征集合包括:The image processing method according to claim 4, wherein the extracting the cluster feature set of the to-be-processed image set comprises:
    将所述待处理图像集合进行加密处理,并根据加密处理后的待处理图像集合生成待处理图像队列;Performing an encryption process on the to-be-processed image set, and generating a to-be-processed image queue according to the encrypted processed image set;
    将所述待处理图像队列中的待处理图像进行解密处理,并根据解密处理后的待处理图像提取聚类特征集合。Decoding the image to be processed in the image queue to be processed, and extracting a cluster feature set according to the image to be processed after the decryption process.
  6. 根据权利要求3至5任一项所述的图像处理方法,其特征在于,所述提取所述待处理图像集合的聚类特征集合包括:The image processing method according to any one of claims 3 to 5, wherein the extracting the cluster feature set of the to-be-processed image set comprises:
    将所述待处理图像集合中的待处理图像进行压缩或剪裁处理,并根据压缩或剪裁处理后的待处理图像集合提取聚类特征集合。The image to be processed in the image set to be processed is compressed or clipped, and the cluster feature set is extracted according to the image set to be processed after compression or cropping.
  7. 一种图像处理方法,所述方法包括:An image processing method, the method comprising:
    接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的;Receiving, by the client, the clustering request, where the clustering request is generated by the client according to a clustering feature set sent by the first server, where the clustering feature set is generated by the first server Extracted according to the set of to-be-processed images sent by the client;
    根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。And performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform a clustering processing result according to the clustering process Sorting the set of images to be processed.
  8. 根据权利要求7所述的图像处理方法,其特征在于,所述根据所述聚类请求将所 述聚类特征集合进行聚类处理得到聚类处理结果包括:The image processing method according to claim 7, wherein the clustering processing result by clustering the clustering feature set according to the clustering request comprises:
    根据所述客户端发送的聚类请求生成聚类请求队列,并将所述聚类请求队列中请求发起对象相同的聚类请求进行合并;Generating a clustering request queue according to the clustering request sent by the client, and combining the clustering request requesting the same clustering request in the clustering request queue;
    根据所述合并后的聚类请求将所述聚类特征集合进行聚类处理,得到聚类处理结果。And clustering the cluster feature set according to the merged cluster request to obtain a clustering process result.
  9. 根据权利要求8所述的图像处理方法,其特征在于,所述将所述聚类请求队列中请求发起对象相同的聚类请求进行合并包括:The image processing method according to claim 8, wherein the merging the clustering request requesting the same clustering request in the clustering request queue comprises:
    根据请求发起时间将聚类请求队列中的聚类请求进行排序,并获取排序后的聚类请求队列中的指定聚类请求;Sorting the clustering requests in the clustering request queue according to the request initiation time, and obtaining the specified clustering request in the sorted clustering request queue;
    将所述聚类请求队列中与所述指定聚类请求的请求发起对象相同的聚类请求进行合并。The clustering request in the clustering request queue that is the same as the request initiating object of the specified clustering request is merged.
  10. 根据权利要求7所述的图像处理方法,其特征在于,所述方法还包括:The image processing method according to claim 7, wherein the method further comprises:
    根据聚类处理结果生成标签数据,并将所述标签数据存储在预设存储空间。The tag data is generated according to the clustering processing result, and the tag data is stored in a preset storage space.
  11. 根据权利要求7所述的图像处理方法,其特征在于,所述方法还包括:The image processing method according to claim 7, wherein the method further comprises:
    对训练图像集合进行训练得到聚类模型和特征识别模型,根据所述聚类模型对所述聚类特征集合进行聚类处理,并将所述特征识别模型发送至第一服务器以提取所述待处理图像集合的聚类特征集合。Training the training image set to obtain a clustering model and a feature recognition model, performing clustering processing on the clustering feature set according to the clustering model, and sending the feature recognition model to the first server to extract the to-be-processed A collection of clustering features that process an image collection.
  12. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
    获取待处理图像集合,并将所述待处理图像集合发送至第一服务器;Obtaining a to-be-processed image collection, and sending the to-be-processed image collection to a first server;
    接收所述第一服务器发送的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器,其中所述聚类特征集合是根据所述待处理图像集合提取的;Receiving a cluster feature set sent by the first server, and sending a clustering request generated according to the cluster feature set to a second server, where the cluster feature set is extracted according to the to-be-processed image set ;
    接收第二服务器发送的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类,所述聚类处理结果是由所述第二服务器根据所述聚类特征集合进行聚类处理得到的。Receiving a clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result, where the clustering processing result is performed by the second server according to the clustering feature set Clustered processing.
  13. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
    接收所述客户端发送的所述待处理图像集合;Receiving the to-be-processed image set sent by the client;
    提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。Extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the clustering feature set, sending to a second The server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述提取所述待处理图像集合的聚类特征集合时,还执行如下操作:The computer device according to claim 13, wherein when the processor performs the extracting the cluster feature set of the to-be-processed image set, the processor further performs the following operations:
    根据所述待处理图像集合生成待处理图像队列,并根据所述待处理图像队列中的待处理图像提取聚类特征集合。Generating a queue of images to be processed according to the to-be-processed image set, and extracting a cluster feature set according to the to-be-processed image in the image queue to be processed.
  15. 根据权利要求14所述的计算机设备,其特征在于,所述处理器执行所述提取所述待处理图像集合的聚类特征集合时,还执行如下操作:The computer device according to claim 14, wherein when the processor performs the extracting the cluster feature set of the to-be-processed image set, the processor further performs the following operations:
    将所述待处理图像集合进行加密处理,并根据加密处理后的待处理图像集合生成待处理图像队列;Performing an encryption process on the to-be-processed image set, and generating a to-be-processed image queue according to the encrypted processed image set;
    将所述待处理图像队列中的待处理图像进行解密处理,并根据解密处理后的待处理图像提取聚类特征集合。Decoding the image to be processed in the image queue to be processed, and extracting a cluster feature set according to the image to be processed after the decryption process.
  16. 根据权利要求13至15任一项所述的计算机设备,其特征在于,所述处理器执行所述提取所述待处理图像集合的聚类特征集合时,还执行如下操作:The computer device according to any one of claims 13 to 15, wherein when the processor performs the extracting the cluster feature set of the to-be-processed image set, the processor further performs the following operations:
    将所述待处理图像集合中的待处理图像进行压缩或剪裁处理,并根据压缩或剪裁处理后的待处理图像集合提取聚类特征集合。The image to be processed in the image set to be processed is compressed or clipped, and the cluster feature set is extracted according to the image set to be processed after compression or cropping.
  17. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
    接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的;Receiving, by the client, the clustering request, where the clustering request is generated by the client according to a clustering feature set sent by the first server, where the clustering feature set is generated by the first server Extracted according to the set of to-be-processed images sent by the client;
    根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。And performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform a clustering processing result according to the clustering process Sorting the set of images to be processed.
  18. 根据权利要求17所述的计算机设备,其特征在于,所述处理器执行所述根据所述聚类请求将所述聚类特征集合进行聚类处理得到聚类处理结果时,还执行如下操作:The computer device according to claim 17, wherein when the processor performs the clustering processing on the clustering feature set according to the clustering request to obtain a clustering processing result, the processor further performs the following operations:
    根据所述客户端发送的聚类请求生成聚类请求队列,并将所述聚类请求队列中请求发起对象相同的聚类请求进行合并;Generating a clustering request queue according to the clustering request sent by the client, and combining the clustering request requesting the same clustering request in the clustering request queue;
    根据所述合并后的聚类请求将所述聚类特征集合进行聚类处理,得到聚类处理结果。And clustering the cluster feature set according to the merged cluster request to obtain a clustering process result.
  19. 根据权利要求18所述的计算机设备,其特征在于,所述处理器执行所述将所述聚类请求队列中请求发起对象相同的聚类请求进行合并时,还执行如下操作:The computer device according to claim 18, wherein when the processor performs the merging of the clustering request requesting the same object in the clustering request queue, the processor further performs the following operations:
    根据请求发起时间将聚类请求队列中的聚类请求进行排序,并获取排序后的聚类请求队列中的指定聚类请求;Sorting the clustering requests in the clustering request queue according to the request initiation time, and obtaining the specified clustering request in the sorted clustering request queue;
    将所述聚类请求队列中与所述指定聚类请求的请求发起对象相同的聚类请求进行合并。The clustering request in the clustering request queue that is the same as the request initiating object of the specified clustering request is merged.
  20. 根据权利要求17所述的计算机设备,其特征在于,所述处理器还用于执行如下操作:The computer device according to claim 17, wherein the processor is further configured to perform the following operations:
    根据聚类处理结果生成标签数据,并将所述标签数据存储在预设存储空间。The tag data is generated according to the clustering processing result, and the tag data is stored in a preset storage space.
  21. 根据权利要求17所述的计算机设备,其特征在于,所述处理器还用于执行如下操作:The computer device according to claim 17, wherein the processor is further configured to perform the following operations:
    对训练图像集合进行训练得到聚类模型和特征识别模型,根据所述聚类模型对所述聚类特征集合进行聚类处理,并将所述特征识别模型发送至第一服务器以提取所述待处理图像集合的聚类特征集合。Training the training image set to obtain a clustering model and a feature recognition model, performing clustering processing on the clustering feature set according to the clustering model, and sending the feature recognition model to the first server to extract the to-be-processed A collection of clustering features that process an image collection.
  22. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor as follows:
    获取待处理图像集合,并将所述待处理图像集合发送至第一服务器;Obtaining a to-be-processed image collection, and sending the to-be-processed image collection to a first server;
    接收所述第一服务器发送的聚类特征集合,并将根据所述聚类特征集合生成的聚类请求发送至第二服务器,其中所述聚类特征集合是根据所述待处理图像集合提取的;Receiving a cluster feature set sent by the first server, and sending a clustering request generated according to the cluster feature set to a second server, where the cluster feature set is extracted according to the to-be-processed image set ;
    接收第二服务器发送的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类,所述聚类处理结果是由所述第二服务器根据所述聚类特征集合进行聚类处理得到的。Receiving a clustering processing result sent by the second server, and classifying the to-be-processed image set according to the clustering processing result, where the clustering processing result is performed by the second server according to the clustering feature set Clustered processing.
  23. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor as follows:
    接收所述客户端发送的所述待处理图像集合;Receiving the to-be-processed image set sent by the client;
    提取所述待处理图像集合的聚类特征集合,并将所述聚类特征集合返回至所述客户端,指示所述客户端执行根据所述聚类特征集合生成的聚类请求发送至第二服务器,接收所述第二服务器返回的根据所述聚类特征集合进行聚类处理得到的聚类处理结果,并根据所述聚类处理结果对所述待处理图像集合进行分类。Extracting a cluster feature set of the to-be-processed image set, and returning the cluster feature set to the client, instructing the client to perform a clustering request generated according to the clustering feature set, sending to a second The server receives the clustering processing result obtained by performing clustering processing according to the clustering feature set returned by the second server, and classifying the to-be-processed image set according to the clustering processing result.
  24. 根据权利要求23所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述提取所述待处理图像集合的聚类特征集合时,还执行如下操作:The computer readable storage medium according to claim 23, wherein when the computer program is executed by the processor to extract the cluster feature set of the to-be-processed image set, the computer program further performs the following operations:
    根据所述待处理图像集合生成待处理图像队列,并根据所述待处理图像队列中的待处 理图像提取聚类特征集合。Generating a queue of images to be processed according to the set of images to be processed, and extracting a cluster feature set according to the to-be-processed image in the image queue to be processed.
  25. 根据权利要求24所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述提取所述待处理图像集合的聚类特征集合时,还执行如下操作:The computer readable storage medium according to claim 24, wherein when the computer program is executed by the processor to extract the cluster feature set of the to-be-processed image set, the computer program further performs the following operations:
    将所述待处理图像集合进行加密处理,并根据加密处理后的待处理图像集合生成待处理图像队列;Performing an encryption process on the to-be-processed image set, and generating a to-be-processed image queue according to the encrypted processed image set;
    将所述待处理图像队列中的待处理图像进行解密处理,并根据解密处理后的待处理图像提取聚类特征集合。Decoding the image to be processed in the image queue to be processed, and extracting a cluster feature set according to the image to be processed after the decryption process.
  26. 根据权利要求23至25任一项所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述提取所述待处理图像集合的聚类特征集合时,还执行如下操作:The computer readable storage medium according to any one of claims 23 to 25, wherein when the computer program is executed by the processor to extract the cluster feature set of the to-be-processed image set, the computer program is further executed Do the following:
    将所述待处理图像集合中的待处理图像进行压缩或剪裁处理,并根据压缩或剪裁处理后的待处理图像集合提取聚类特征集合。The image to be processed in the image set to be processed is compressed or clipped, and the cluster feature set is extracted according to the image set to be processed after compression or cropping.
  27. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor as follows:
    接收所述客户端发送的所述聚类请求,其中,所述聚类请求是由所述客户端根据第一服务器发送的聚类特征集合生成的,所述聚类特征集合是由第一服务器根据所述客户端发送的待处理图像集合提取的;Receiving, by the client, the clustering request, where the clustering request is generated by the client according to a clustering feature set sent by the first server, where the clustering feature set is generated by the first server Extracted according to the set of to-be-processed images sent by the client;
    根据所述聚类请求中的聚类特征集合进行聚类处理得到聚类处理结果,并将所述聚类处理结果发送至所述客户端,指示所述客户端执行根据所述聚类处理结果对所述待处理图像集合进行分类。And performing clustering processing according to the clustering feature set in the clustering request to obtain a clustering processing result, and sending the clustering processing result to the client, instructing the client to perform a clustering processing result according to the clustering process Sorting the set of images to be processed.
  28. 根据权利要求27所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述根据所述聚类请求将所述聚类特征集合进行聚类处理得到聚类处理结果时,还执行如下操作:The computer readable storage medium according to claim 27, wherein said computer program is executed by said processor to perform clustering processing on said clustering feature set according to said clustering request When the result is, the following operations are also performed:
    根据所述客户端发送的聚类请求生成聚类请求队列,并将所述聚类请求队列中请求发起对象相同的聚类请求进行合并;Generating a clustering request queue according to the clustering request sent by the client, and combining the clustering request requesting the same clustering request in the clustering request queue;
    根据所述合并后的聚类请求将所述聚类特征集合进行聚类处理,得到聚类处理结果。And clustering the cluster feature set according to the merged cluster request to obtain a clustering process result.
  29. 根据权利要求28所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述将所述聚类请求队列中请求发起对象相同的聚类请求进行合并时,还执行如下操作:The computer readable storage medium according to claim 28, wherein said computer program is executed by said processor when said clustering request requesting the same clustering request in said clustering request queue is merged Do the following:
    根据请求发起时间将聚类请求队列中的聚类请求进行排序,并获取排序后的聚类请求队列中的指定聚类请求;Sorting the clustering requests in the clustering request queue according to the request initiation time, and obtaining the specified clustering request in the sorted clustering request queue;
    将所述聚类请求队列中与所述指定聚类请求的请求发起对象相同的聚类请求进行合并。The clustering request in the clustering request queue that is the same as the request initiating object of the specified clustering request is merged.
  30. 根据权利要求27所述的计算机可读存储介质,其特征在于,所述处理器还用于执行如下操作:The computer readable storage medium of claim 27, wherein the processor is further configured to perform the following operations:
    根据聚类处理结果生成标签数据,并将所述标签数据存储在预设存储空间。The tag data is generated according to the clustering processing result, and the tag data is stored in a preset storage space.
  31. 根据权利要求27所述的计算机可读存储介质,其特征在于,所述处理器还用于执行如下操作:The computer readable storage medium of claim 27, wherein the processor is further configured to perform the following operations:
    对训练图像集合进行训练得到聚类模型和特征识别模型,根据所述聚类模型对所述聚类特征集合进行聚类处理,并将所述特征识别模型发送至第一服务器以提取所述待处理图像集合的聚类特征集合。Training the training image set to obtain a clustering model and a feature recognition model, performing clustering processing on the clustering feature set according to the clustering model, and sending the feature recognition model to the first server to extract the to-be-processed A collection of clustering features that process an image collection.
PCT/CN2018/103541 2017-09-15 2018-08-31 Image processing method and system, and computer device WO2019052351A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710854137.7 2017-09-15
CN201710854137.7A CN107679563A (en) 2017-09-15 2017-09-15 Image processing method and device, system, computer equipment

Publications (1)

Publication Number Publication Date
WO2019052351A1 true WO2019052351A1 (en) 2019-03-21

Family

ID=61136542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103541 WO2019052351A1 (en) 2017-09-15 2018-08-31 Image processing method and system, and computer device

Country Status (2)

Country Link
CN (1) CN107679563A (en)
WO (1) WO2019052351A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679563A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method and device, system, computer equipment
CN107679561A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method and device, system, computer equipment
CN107666515B (en) * 2017-09-20 2019-07-09 Oppo广东移动通信有限公司 Image processing method and device, computer equipment, computer readable storage medium
CN108924187B (en) * 2018-06-07 2020-05-08 北京百度网讯科技有限公司 Task processing method and device based on machine learning and terminal equipment
CN108830217B (en) * 2018-06-15 2021-10-26 辽宁工程技术大学 Automatic signature distinguishing method based on fuzzy mean hash learning
CN113762163B (en) * 2021-09-09 2022-06-07 杭州澳亚生物技术股份有限公司 GMP workshop intelligent monitoring management method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076996A1 (en) * 2006-07-31 2009-03-19 Hull Jonathan J Multi-Classifier Selection and Monitoring for MMR-based Image Recognition
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN104765891A (en) * 2015-05-06 2015-07-08 苏州搜客信息技术有限公司 Searching shopping method based on pictures
CN105095902A (en) * 2014-05-23 2015-11-25 华为技术有限公司 Method and apparatus for extracting image features
US20160019418A1 (en) * 2008-03-26 2016-01-21 Facebook, Inc. Saving device for image sharing, image sharing system, and image sharing method
CN107679563A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method and device, system, computer equipment
CN107679561A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method and device, system, computer equipment
CN107679560A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Data transmission method, device, mobile terminal and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004294395A (en) * 2003-03-28 2004-10-21 Toshiba Corp Method of executing inspection work, server and method for control of inspection processing work, client terminal and processing method therefor, host and method for inspection work processing, and remote image inspection system
CN102546564B (en) * 2010-12-30 2015-08-19 腾讯科技(深圳)有限公司 A kind of control method of information pushing and system
US20150363660A1 (en) * 2014-06-12 2015-12-17 Asap54.Com Ltd System for automated segmentation of images through layout classification
US9477913B2 (en) * 2014-11-12 2016-10-25 Xerox Corporation Print path obfuscation method and system for document content analytics assessment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076996A1 (en) * 2006-07-31 2009-03-19 Hull Jonathan J Multi-Classifier Selection and Monitoring for MMR-based Image Recognition
US20160019418A1 (en) * 2008-03-26 2016-01-21 Facebook, Inc. Saving device for image sharing, image sharing system, and image sharing method
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN105095902A (en) * 2014-05-23 2015-11-25 华为技术有限公司 Method and apparatus for extracting image features
CN104765891A (en) * 2015-05-06 2015-07-08 苏州搜客信息技术有限公司 Searching shopping method based on pictures
CN107679563A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method and device, system, computer equipment
CN107679561A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method and device, system, computer equipment
CN107679560A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Data transmission method, device, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN107679563A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
WO2019052354A1 (en) Image processing method and system, and computer device
WO2019052351A1 (en) Image processing method and system, and computer device
CN107729815B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
EP2868065B1 (en) Apparatus and method for selection of a device for content sharing operations
CN107622117B (en) Image processing method and apparatus, computer device, computer-readable storage medium
CN107871011B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
WO2019051797A1 (en) Image processing method and apparatus, computer device, and computer-readable storage medium
WO2019056938A1 (en) Image processing method, and computer device, and computer-readable storage medium
CN107679560B (en) Data transmission method and device, mobile terminal and computer readable storage medium
CN107657045B (en) Information collection method, mobile terminal and computer readable storage medium
WO2019052316A1 (en) Image processing method and apparatus, computer-readable storage medium and mobile terminal
EP3493113B1 (en) Image processing method, computer device, and computer readable storage medium
EP3493112B1 (en) Image processing method, computer device, and computer readable storage medium
WO2019105237A1 (en) Image processing method, computer device, and computer-readable storage medium
WO2019052319A1 (en) Data transmission method, mobile terminal and computer-readable storage medium
WO2019105457A1 (en) Image processing method, computer device and computer readable storage medium
CN112287234B (en) Information retrieval method, device and storage medium
CN114694226B (en) Face recognition method, system and storage medium
CN110287719B (en) File encryption method and mobile terminal
US10970522B2 (en) Data processing method, electronic device, and computer-readable storage medium
WO2019052436A1 (en) Image processing method, computer-readable storage medium and mobile terminal
US11314803B2 (en) Method for image-processing and mobile terminal
WO2019096207A1 (en) Image processing method and computer device, and computer readable storage medium
WO2019051799A1 (en) Image processing method and apparatus, mobile terminal, server, and storage medium
WO2019041279A1 (en) Search resource recommendation method and related product

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: 18856096

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18856096

Country of ref document: EP

Kind code of ref document: A1