WO2019056938A1 - Image processing method, and computer device, and computer-readable storage medium - Google Patents

Image processing method, and computer device, and computer-readable storage medium Download PDF

Info

Publication number
WO2019056938A1
WO2019056938A1 PCT/CN2018/103522 CN2018103522W WO2019056938A1 WO 2019056938 A1 WO2019056938 A1 WO 2019056938A1 CN 2018103522 W CN2018103522 W CN 2018103522W WO 2019056938 A1 WO2019056938 A1 WO 2019056938A1
Authority
WO
WIPO (PCT)
Prior art keywords
clustering
request
requests
same
queue
Prior art date
Application number
PCT/CN2018/103522
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 WO2019056938A1 publication Critical patent/WO2019056938A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present application relates to the field of computer technology, and in particular, to an image processing method and a computer device, and a computer readable storage medium.
  • 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.
  • An embodiment of the present application provides an image processing method, a computer device, and a computer readable storage medium.
  • An image processing method comprising:
  • Obtaining a clustering request in a request queue where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
  • the merged cluster request is 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:
  • Obtaining a clustering request in a request queue where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
  • the merged cluster request is processed.
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
  • Obtaining a clustering request in a request queue where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
  • the merged cluster request is processed.
  • 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 schematic diagram of an application environment of an image processing method in still another embodiment
  • FIG. 4 is a hardware interaction timing diagram of an image processing method in an embodiment
  • Figure 5 is a flow chart of an image processing method 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
  • FIG. 8 is a display diagram of a mobile terminal album classification result in an embodiment
  • FIG. 9 is a server architecture diagram of an image processing method implemented in an embodiment
  • FIG. 10 is a schematic structural diagram of an image processing apparatus in an embodiment
  • FIG. 11 is a schematic structural diagram of an image processing apparatus in 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 first server 12 and a second server cluster 14.
  • the first server 12 is configured to generate a request queue according to the clustering request, and merge the clustering requests corresponding to the same account in the request queue. It can be understood that the clustering request may be initiated by the first server 12 or may be sent by other terminals that are received.
  • the first server 12 is further configured to find the second server 142 in the second server cluster 14 that is in an available state, acquire an image corresponding to the merged cluster request, and send the acquired image to the second server 142. After receiving the image, the second server 142 performs clustering processing on the image.
  • the first server 12 and the second server 142 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers.
  • One or more second servers 142 may be included in the second server cluster 14.
  • the application environment includes a user terminal 22, a first server 24, and a second server cluster 26.
  • the user terminal 22 is configured to send a clustering request and a corresponding image set to the first server 24.
  • the first server 24 After receiving the clustering request, the first server 24 generates a request queue according to the clustering request, and merges the clustering requests corresponding to the same account in the request queue.
  • the first server 24 can find the second server 262 in the second server cluster 26 in an available state, acquire the image set corresponding to the merged cluster request, and send the acquired image set to the second server 262 in the available state.
  • the second server 262 processes the image set.
  • the processing result obtained by the second server 262 in the clustering process may be returned to the user terminal 22 through the first server 24, or may be directly returned to the user terminal 22.
  • the first server 24 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.
  • the second server cluster 26 may include one or more second servers 262 for implementing distributed processing on tasks.
  • the user terminal 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 user terminal 22 may include one or more.
  • FIG. 3 is a schematic diagram of an application environment of an image processing method in still another embodiment.
  • the application environment includes a user terminal 32, a first server 34, a second server cluster 36, and a third server cluster 38.
  • the user terminal 32 transmits an image set to the third server cluster 38.
  • the third server cluster 38 performs feature recognition processing on the image set, and transmits the obtained cluster feature set to the user terminal 32.
  • the user terminal 32 generates a clustering request according to the clustering feature set, and sends the clustering request to the first server 34.
  • the first server 34 generates a request queue after receiving the clustering request, and clusters the same account in the request queue. Request to merge.
  • the first server 34 may search the second server 362 in the available state of the second server cluster 36, obtain the cluster feature set corresponding to the merged cluster request, and send the acquired cluster feature set to the available state.
  • Two servers 362. After receiving the cluster feature set, the second server 362 performs clustering processing on the cluster feature set.
  • the second server 362 may transmit the clustering processing result to the user terminal 32 through the first server 34, or may directly send the clustering processing result to the user terminal 32.
  • the user terminal 32 classifies the image set based on the clustering processing result.
  • the third server cluster 38 can send the clustering feature set directly to the second server cluster 36.
  • the first server 34, the second server 362, and the third server 382 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers.
  • One or more second servers 382 may be included in the second server cluster 36, and one or more third server clusters 382 may be included in the third server cluster 38.
  • the user terminal 32 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 user terminal 32 may include one or more.
  • FIG. 4 is a hardware interaction timing diagram of an image processing method in one embodiment. As shown in FIG. 4, the hardware interaction process of the image processing method includes operations 402 through 410. among them:
  • Operation 402 the user terminal sends a clustering request to the first server.
  • clustering refers to the process of dividing a collection of objects into a plurality of combinations of objects, each combination of objects being composed of one or more similar objects.
  • the clustering request refers to a command for performing clustering processing on the clustering object set.
  • the clustering object set may be a set corresponding to the image of the terminal.
  • a request queue is a queue formed by one or more clustering requests, and the clustering request is processed according to the request queue.
  • the user terminal may preset a condition for triggering a clustering request to the first server, where the set clustering triggering condition includes at least one of the following methods: the number of newly added pictures in the mobile terminal is greater than a preset number; the current time is a preset time. The time from the last time the clustering request was initiated exceeds the preset time period; the mobile terminal is currently in the charging state.
  • the first server merges the clustering requests corresponding to the same account in the request queue.
  • the clustering request corresponding to the same account in the request queue may be acquired at a preset time interval.
  • the clustering request in the request queue is also sorted according to the request initiation time, and the specified clustering request in the sorted request queue is obtained; and the same clustering request in the request queue corresponding to the account corresponding to the specified clustering request is obtained.
  • the clustering request in the request queue is arranged in a first-to-last order according to the request initiation time, and the first clustering request in the request queue is obtained; and the same account in the request queue corresponding to the first clustering request is acquired.
  • Class request Class request.
  • the first server sends the merged clustering request to the second server.
  • the second server may be a server cluster, and may first obtain status identifiers of the respective second servers, and find a second server that is in an available state according to the status identifier. Further, the obtaining the status identifier of the second server may specifically include at least one of the following methods: the first server receives the status identifier sent by the second server; the first server obtains the status identifier from the status identifier list, where the status identifier list is It is formed according to the status identifier reported by each second server. If there are multiple servers in the available state, the file size of the cluster object set can be obtained, and the cluster object set of the corresponding file size is matched according to the carrying capacity of the plurality of servers in the available state.
  • the second server receives the merged cluster request and processes the merged cluster request.
  • the first server may perform an encryption process on the image before sending the clustering request to the second server.
  • the first server sends the encrypted processed image to the second server in an available state, instructing the second server to perform decryption processing on the clustered object set, and clustering the decrypted clustered object set deal with.
  • the second server may generate label data according to the processing result obtained by the processing, and store the label data in a preset storage space, or may send the label data to the user terminal.
  • the second server sends the processing result to the user terminal.
  • the second server performs clustering processing on the cluster object set corresponding to the clustering request, and obtains a processing result.
  • the clustering object set may be a clustering image set or a clustering feature set corresponding to the clustering image set.
  • a cluster image collection refers to a collection of images that need to be clustered. Each image corresponds to one or more features, and a set of features corresponding to all images in the cluster image set is a cluster feature set. That is to say, the second server may perform clustering processing according to the cluster image set, or may perform clustering processing according to the feature set corresponding to the cluster image set, which is not limited herein. If the second server receives the cluster image set, the cluster image set needs to be subjected to feature recognition processing, and then the cluster feature set obtained by the feature recognition process is clustered. After receiving the processing result, the user terminal classifies the image according to the processing result.
  • FIG. 5 is a flow chart of an image processing method in one embodiment. As shown in FIG. 5, the image processing method includes operations 502 through 506. among them:
  • Operation 502 Acquire a clustering request in the request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
  • clustering refers to the process of dividing a collection of objects into a plurality of combinations of objects, each combination of objects being composed of one or more similar objects.
  • the clustering request refers to a command for performing clustering processing on the clustering object set.
  • the clustering object set may be a set corresponding to the image of the terminal.
  • a request queue is a queue formed by one or more clustering requests, and the clustering request is processed according to the request queue.
  • the clustering request may be a request sent from one device to another device, or may be a request initiated and processed in the same device.
  • the clustering request initiated by the user terminal may be processed locally at the user terminal or may be sent to the server for processing.
  • 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 originating time, and a clustering object set.
  • the receiving device After receiving the clustering request, the receiving device performs clustering processing according to the clustering object set. If the receiving device receives multiple clustering requests of multiple sending devices, a request queue is formed according to the multiple clustering requests, and the clustering request in the request queue is processed.
  • 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 set may also be a cluster object identifier, that is, the receiving device may search for an image according to the cluster object identifier and perform clustering processing.
  • the image set is pre-stored on the server, and when the mobile terminal sends the clustering request, only the cluster object identifier needs to be sent, and the server can directly search for the image set according to the cluster object identifier and perform clustering processing.
  • multiple application accounts can be logged in the smart terminal.
  • the smart terminal sends a clustering request to the server.
  • the application account refers to an account that is logged in on the smart terminal and is used to distinguish different user operations. Different users can be distinguished by applying the account identifier, and smart terminals with different regions can be identified by the terminal identifier.
  • the application account identifier refers to a unique identifier used to represent the identity of the user, and the terminal identifier refers to a unique identifier that distinguishes different smart terminal devices.
  • the terminal identifier may be, but not limited to, an IP (Internet Protocol) protocol, a MAC (Media Access Control) address, and the like of the smart terminal.
  • the smart terminal may initiate a clustering request to the server, and the server may connect multiple smart terminals and receive clustering requests sent by multiple smart terminals.
  • the user can log in to the smart terminal through the application account, and send a request for clustering the photos in the album to the server through the smart terminal.
  • the server After receiving the clustering request sent by the smart terminal, the server performs clustering processing on the photos in the album. The result of the clustering process is returned to the smart terminal.
  • Operation 504 merging clustering requests corresponding to the same account according to rules.
  • the clustering requests in the request queue are arranged in a certain order. For example, it is arranged according to the request initiation time, or arranged according to the number of cluster images.
  • the clustering request corresponding to the same account is obtained, and the clustering request corresponding to the same account is merged, and the clustering request corresponding to the same application account identifier is the clustering request corresponding to the same account.
  • the merge clustering request refers to a process of combining multiple clustering requests into one clustering request and processing the merged clustering request, and implementing multiple clustering requests simultaneously. Specifically, the application account identifiers included in each cluster request in the request queue are obtained, and the clustering requests with the same application account identifiers in the request queue are merged.
  • the clustering request corresponding to the same account After obtaining the clustering request corresponding to the same account, you may first count the number of clustering requests corresponding to the same account, and determine whether the number of statistics exceeds the preset number. If the preset number is exceeded, the obtained number will be obtained. The clustering request corresponding to the same account is merged; if the preset number is not exceeded, the waiting state will be entered, and the number of clustering requests corresponding to the same account exceeds the preset number, and then the same account is aggregated. Class requests are merged. For example, the preset number may be two. If only one clustering request corresponding to the same account is obtained, the waiting state is entered, and the number of clustering requests corresponding to the same account exceeds two and then merged.
  • an upper limit value of the waiting time can be set. If the waiting time exceeds the upper limit of the waiting time, the number of clustering requests corresponding to the same account is still If it is less than the preset number, stop waiting and directly perform subsequent processing. Specifically, if the waiting time exceeds the preset waiting time, the waiting is stopped, and the acquired clustering requests corresponding to the same account are directly merged.
  • the operations 502 to 504 may specifically include: acquiring the clustering request in the request queue according to the preset time period, and combining the clustering requests in the preset time period corresponding to the same account according to the rule. Specifically, it may be that the clustering request initiated in the time period is obtained for processing at a certain interval, or may be performed after the last time the clustering request processing is completed, and the next clustering request is performed at a certain interval.
  • the clustering request of the previous time period is acquired for merging, then at 11:00, the clustering request initiated between 10:00 and 11:00 is acquired for merging. It is also possible to wait for half an hour for the next processing after the last clustering request processing is completed.
  • Operation 506 processing the merged cluster request.
  • the merged clustering request may be processed by directly clustering the image corresponding to the clustering request directly, or sending the clustering request to the server to indicate the server pairing.
  • the corresponding image is requested to be clustered, which is not limited herein.
  • the operation 506 may specifically include: sending a clustering request, and/or performing clustering processing on the image of the terminal according to the clustering request.
  • the clustering object set in each clustering request is merged. Since the application accounts of the merged clustering request are the same, after the merged clustering request is processed, the obtained clustering processing result may be Send directly to the smart terminal where the application account is logged in.
  • the clustering request may be processed by a server cluster containing one or more servers, which may be used for clustering the clustering object set.
  • the working state can be divided into an available state and a non-available state.
  • the server can receive the clustering request and cluster the clustering request; in the non-available state, the server cannot receive the clustering request and clusters the clustering request. For example, when a server is performing a task or a hardware failure occurs, it is marked as unavailable, and the server cannot perform clustering in the non-available state.
  • each server can indicate the current working status by using the status identifier, and the status identifier can be obtained to determine whether the server is available. That is, the server that is in the available state may include: obtaining the status identifier of each server, and searching for the server in the available state according to the status identifier. Further, the status identifier of the obtaining server may include at least one of the following methods: receiving a status identifier sent by the server, and obtaining a status identifier from the status identifier list, where the status identifier list is formed according to the status identifier reported by each server. .
  • the clustering request is sent to the server in the available state for clustering.
  • the cluster object set corresponding to the merged cluster request includes all cluster object sets in the plurality of clustering requests before the merge, and if there are repeated cluster objects, only one clustering process is needed.
  • the clustering object set refers to a set of objects used for performing clustering processing.
  • the clustering object set may be a set of images of the terminal, or may be a set of features corresponding to the image of the terminal.
  • the image processing method provided by the foregoing embodiment combines the clustering requests corresponding to the same account in the request queue, and performs clustering processing on the merged clustering request. In this way, the same object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
  • FIG. 6 is a flow chart of an image processing method in another embodiment. As shown in FIG. 6, the image processing method includes operations 602 through 608. among them:
  • Operation 602 Acquire a clustering request in the request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
  • the clustering request may include information such as a request originating device identifier, a request receiving device identifier, a request initiation time, a clustering object set, and an attribute parameter of the clustering object.
  • the attribute parameter of the clustering object refers to a parameter indicating an attribute of the clustering object set.
  • the attribute parameter of the clustering object may refer to a file size, a size, a file format, and the like of a picture used for clustering.
  • Operation 604 sorting the clustering requests in the request queue according to the request initiation time, and obtaining the specified clustering request in the sorted request queue.
  • the clustering requests in the request queue are sorted according to the request initiation time, and the specified clustering request is obtained according to the sorted request queue. 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, and the specified clustering request is obtained according to the sorted request queue.
  • the request receiving device may form a request queue according to the order in which the request is initiated, and process the clustering request with the request initiation time first, and request the clustering request post-processing after the initiation time.
  • the specified clustering request refers to the clustering request in the 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 acquired according to the request initiation time. For example, a clustering request for sorting the first bit in the request queue, sorting the clustering request for the last bit.
  • the operation 604 may specifically include: arranging the clustering requests in the request queue according to the request initiation time in a first-to-last order, and acquiring the first clustering request in the request queue.
  • the first clustering request obtained is the first clustering request in the request queue, that is, the clustering request with the earliest request initiation time in the request queue.
  • the operation 604 may further be: sorting the clustering requests in the request queue according to the priority of the requesting initiating device, and acquiring the specified clustering request in the sorted request queue.
  • the priority of the requesting device refers to the priority of processing the task corresponding to the requesting device, for example, the clustering request priority processing initiated by the mobile terminal, and the clustering request initiated by the PC (Personal Computer) . It is also possible to sort the clustering requests in the request queue according to the size of the clustering object set corresponding to the clustering request. For example, a clustering request that takes up a large space in an image collection is preferentially processed, and a clustering request with a small space is post-processing.
  • Operation 606 Acquire a clustering request in the request queue that is the same as the account corresponding to the specified clustering request, and merge the acquired clustering requests.
  • the clustering task list may be established according to the application account identifier in the clustering request, and the clustering task list records the application account identifier of each clustering request, the requesting device identifier, the request receiving device identifier, and the request. Initiate time and other information.
  • the operation 606 may specifically include: acquiring an application account identifier of the specified clustering request, traversing the clustering task list, and acquiring a clustering request that is the same as the application account identifier of the specified clustering request.
  • the number of clustering requests in the request queue corresponding to the account corresponding to the specified clustering request exceeds a preset number. And obtain the same clustering request in the request queue as the account corresponding to the specified clustering request. If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request is less than the preset number, the waiting state is entered; if the waiting time exceeds the preset time, the waiting is stopped, and the request is obtained. The same clustering request in the queue as the account corresponding to the specified clustering request.
  • the acquired clustering requests are merged, specifically, the clustering object sets corresponding to the respective clustering requests are merged.
  • the obtaining the cluster object set may include: acquiring a cluster object set corresponding to the clustering request of the same account, and performing clustering processing on the acquired union of the cluster object set. That is, for multiple clustering requests initiated by the same application account, the clustering object set of the clustering request may be merged and processed together, and each clustering object is processed only once without repeating clustering in the clustering request. The object is processed repeatedly multiple times.
  • 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 object set 1; clustering request 2, clustering request sent by application account B at 02:41 on August 21, 2017, including cluster object set 2; clustering request 3, application account A in August 2017
  • the clustering request sent at 04:02 on the 22nd contains the clustering object set 3.
  • the clustering request 1 and the clustering request 3 are merged, and the clustering object set obtained after the combination is the union of the clustering object set 1 and the clustering object set 3.
  • Operation 608 processing the merged cluster request.
  • the clustering process can be implemented by the server cluster, and each server can indicate the current working state through the status identifier, and the status identifier can be used to obtain the server in the available state. If there are multiple servers in the available state, the file size of the cluster object set can be obtained, and the cluster object set of the corresponding file size is matched according to the carrying capacity of the plurality of servers in the available state. For example, a cluster object collection that occupies a large space is sent to a server with a large carrying capacity for clustering processing.
  • the sending the clustering object set to the server in the available state for performing the clustering process may include: if there are two or more servers in the available state, acquiring the clustering object corresponding to the merged clustering request The attribute parameters of the collection, and the load parameters of the server; the server is searched according to the attribute parameter and the load parameter, and the cluster object set is sent to the server for clustering processing.
  • the attribute parameter may be a file size of the cluster object collection, and the load parameter refers to a parameter indicating a maximum load processing capability of the server. The larger the general load parameter, the stronger the processing power of the server; the smaller the load parameter, the weaker the processing capability of the server.
  • the image processing method provided by the foregoing embodiment first sorts the request queue according to the request initiation time, and acquires the specified cluster request in the request queue.
  • the clustering request in the request queue for the same account as the specified clustering request is then merged, and the merged clustering request is processed. In this way, when the same clustering object is used in multiple clustering requests, only one processing is needed, and multiple clustering processing is not required, which improves the efficiency of image processing and saves resources.
  • FIG. 7 is a flow chart of an image processing method in still another embodiment. As shown in FIG. 7, the image processing method includes operations 702 through 712. among them:
  • Operation 702 Acquire a clustering request in the request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
  • the clustering request includes a clustering object set
  • the clustering object set may be a clustering image set and/or a clustering feature set.
  • the cluster image set refers to a set of images used for clustering processing
  • the cluster feature set refers to a set of features corresponding to images used for clustering.
  • the operation 702 may further include: acquiring a cluster object set, wherein the cluster object set may be a cluster image set, or may be a set of features extracted according to the cluster image set. For example, if the images in the album are classified according to the face, then the cluster feature set is a set of face regions in the image.
  • the clustering feature can represent the features used for classification in the cluster image collection, and only upload the cluster feature set for clustering processing, which improves the efficiency of clustering. It can be understood that the clustering feature set may be uploaded by the smart terminal, or may be uploaded by the feature server, where the feature server refers to a server that performs feature recognition processing on the cluster image set, and the feature server sends the aggregate according to the smart terminal.
  • the clustering features extracted by the class of image collection form a clustering feature set.
  • the condition for triggering the clustering request to the first server may be set in advance, and the set clustering triggering condition includes at least one of the following methods: The number of new pictures in the smart terminal 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 smart terminal is currently in the charging state. For example, when the new terminal adds more than 50 pictures, if the current time is between 2 am and 5 am, and the smart terminal is in the charging state, the smart terminal initiates a clustering request.
  • the smart terminal stores the image in the storage space, and the smart terminal can directly obtain the image from the preset storage address, or traverse all the folders in the smart terminal to obtain the image.
  • the storage space of the smart terminal is divided into an internal memory and an external memory.
  • the internal memory refers to the memory that the mobile terminal itself has, and is a part of the hardware structure of the intelligent terminal.
  • the external storage refers to a storage device external to the mobile terminal, and the external storage can perform data transmission with the smart client through a dedicated interface.
  • the external storage may be an SD card, a USB flash drive or the like.
  • the album sent by the smart terminal may include all the pictures stored by the smart terminal, or may only include a part of the pictures stored by the smart terminal.
  • the album sent by the smart terminal may include all the pictures in the internal memory and the external memory, or may only include the pictures in the internal memory.
  • the clustering request in the request queue is arranged according to the request initiation time in a first-to-last order, obtaining the first clustering request in the request queue, and acquiring the same aggregation in the request queue corresponding to the first clustering request.
  • Class request the clustering request in the request queue is arranged according to the request initiation time in a first-to-last order, obtaining the first clustering request in the request queue, and acquiring the same aggregation in the request queue corresponding to the first clustering request.
  • the smart terminal may initiate a clustering request to the first server, and after receiving the clustering request sent by the smart terminal, the first server generates a request queue according to the received clustering request, and allocates to each by request queue control.
  • the clustering task of the second server Generally, the request queues generated by the first server are arranged in the order of the request initiation time, that is, the clustering request with the top requesting time is prioritized, and the clustering request located first in the request queue is preferentially processed each time.
  • the first clustering request is the first clustering request in the request queue.
  • the application account identifier corresponding to each clustering request in the request queue may be traversed, and the clustering request with the same application account identifier corresponding to the first clustering request is obtained, that is, the same The clustering request corresponding to the account.
  • clustering cluster image collections has a classification criterion, then it is necessary to first extract features of each image in the cluster image collection, and then classify the images according to the extracted features. That is to say, the received cluster object set may be a cluster feature set or a cluster image set.
  • the cluster image set is the entire album, and the cluster feature set is extracted from each picture in the album.
  • the clustering object set is a feature set
  • the clustering process may be directly performed according to a preset clustering algorithm; if the clustering object set is a to-be-classified object set, the feature forming feature set in the to-be-classified object set is first extracted, and The feature set is clustered according to a preset clustering algorithm, and the classified object set can be classified according to the clustering processing result.
  • the cluster object set corresponding to the cluster request of the same account is obtained, and the acquired union of the cluster object set is used as the final processed cluster object set.
  • the same account initiates two clustering requests, the first clustering request contains 50 images, and the second clustering request contains 60 images. The first and second clustering requests are included. 10 repeated pictures, then after the first and second clustering requests are merged, the 10 repeated pictures are processed only once, and then the combined clustering request contains a total of 100 pictures.
  • the obtained clustering request is classified according to the terminal identifier.
  • the same application account can log in to multiple smart terminals, and one smart terminal can only log in to one application account at the same time. Therefore, the clustering requests corresponding to the same account can be classified according to the terminal identifier. Each clustering request includes an application account identifier and a corresponding terminal identifier. After obtaining a clustering request corresponding to the same account, the clustering request is classified according to different terminal identifiers. Generally, the clustering object collections in different intelligent terminals are different. When the application accounts are logged into different intelligent terminals, different clustering object sets can be initiated to the server.
  • Operation 708 Acquire a target clustering request in each type of clustering request, and merge the obtained target clustering requests, where the target clustering request is in each type of clustering request, and the interval between the request time and the current time is the smallest. Clustering request.
  • the target clustering request refers to a clustering request for merge processing in the acquired clustering request.
  • An intelligent terminal can initiate multiple clustering requests. At this time, it can be judged according to the initiation time. It is not necessary to process each request, and only needs to process the latest request. Firstly, the clustering requests corresponding to the same account are classified according to the terminal identifier, and the clustering request recently initiated in each type of clustering request is obtained, that is, the clustering request with the smallest interval from the current time is requested.
  • the clustering request corresponding to the same account includes: clustering request 1, the clustering request sent by the terminal identifier A at 03:30 on August 20, 2017, including the clustering object set 1; the clustering request 2, the terminal identifier B The clustering request sent at 02:41 on August 21, 2017, including the clustering object set 2; the clustering request 3, the clustering request sent by the terminal identifier B at 04:02 on August 22, 2017, including clustering The object set 4; the clustering request 3, the clustering request sent by the terminal identifier B at 05:02 on August 25, 2017, includes the clustering object set 4.
  • the acquired target clustering request includes a clustering request 2 and a clustering request 4, and the clustering request 2 and the clustering request 4 are combined.
  • Operation 710 processing the merged cluster request.
  • the server may report the working status in real time or periodically, and generate a status label list according to the reported working status, where the server identifier and the corresponding status identifier are recorded in the status label list.
  • the server identifier is a unique identifier that distinguishes different servers, and the state identifier is an identifier that marks the working status of the server.
  • the status label list may include only the server identifier corresponding to the server in the available state, that is, the server corresponding to the server identifier recorded in the status label list is in an available state, and the status label list is empty, indicating that the status label list is empty. All servers are unavailable.
  • the target server can also be searched by the preset routing algorithm, and the cluster object collection is sent to the target server for clustering.
  • the preset routing algorithm may be a load balancing algorithm
  • the load balancing algorithm may be a random algorithm, a polling algorithm, a source address hash algorithm, etc., and is not limited herein.
  • the method before the operation 710, further includes: performing a cryptographic process on the cluster object set.
  • 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 clustering object set can be encrypted by an encryption algorithm such as 3DES (Triple Data Encryption Algorithm) or RC5. It can be understood that the encryption processing on the clustering object set may be before the operation 702, that is, after the first server receives the clustering request, the clustering object set after the encryption processing is cached into the clustering request queue.
  • 3DES Triple Data Encryption Algorithm
  • the operation 710 specifically includes: sending the merged clustering request and the corresponding encrypted clustering object set to the server, and instructing the server to perform decryption processing on the clustering object set, and decrypting the processed
  • the clustering object set is clustered.
  • the decryption process refers to a process of restoring the encrypted information to the original information, and the encryption process and the decryption process are opposite processes.
  • 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 their 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. Further, the clustering model can be trained according to the clustering sample set.
  • the cluster sample set refers to a sample set used for training to obtain a model, and the cluster sample set may be a sample set generated according to the cluster object set, or may be a sample set specifically used for training the cluster model.
  • the result of the clustering process is used to classify the image set.
  • the operation 710 may further include: sending, by the server, the clustering process result to the smart terminal, where the clustering process result is used to indicate the smart terminal to the terminal. The images are classified.
  • Operation 712 generating tag data according to the processing result obtained by processing the clustering request.
  • the tag data refers to an identifier for marking the classification attribute of the cluster object in the cluster object set. For example, if the cluster object 1 belongs to the category 1, the formed tag data may be “category 1”. It can be understood that each cluster object in the cluster object set has a corresponding object identifier, which is used to identify the uniqueness of the cluster object. According to the tag data generated by the clustering processing result, a one-to-one correspondence can be established with the object identifier.
  • the generated tag data may be stored in a preset storage space or may be sent to the user terminal, which is not limited herein.
  • the operation 710 may specifically include: sending the cluster object set to the server in an available state, and instructing the server to perform clustering processing on the cluster object other than the historical cluster object in the cluster object set.
  • the historical clustering object refers to the clustering object processed by history.
  • the object identifier of the cluster object in the cluster object collection may be compared with the object identifier corresponding to the label data stored in the preset storage space, and the cluster object matching the object identifier is a historical cluster object.
  • request initiation object identifier of the cluster object collection and the request initiation object identifier corresponding to the label data may be matched first. If there is a matching request initiation object identifier, the historical cluster object is searched according to the object identifier.
  • the clustering model stored on the server is updated, and each version of the clustering model has a corresponding model identifier, and the label data stored in the preset storage space also has a corresponding model version for marking.
  • the version of the clustering model that generates the tag data. If there is a historical clustering object in the clustering object set, the model identifier corresponding to the historical clustering object may be compared with the model identifier of the current clustering model. If they are the same, the historical clustering object is not re-clustering; if different , the historical clustering object is re-clustered. After re-clustering, the re-clustered processing result of the historical clustering object generates label data to cover the original label data.
  • FIG. 8 is a diagram showing a result of classification of a mobile terminal album in one embodiment.
  • the mobile terminal classifies the pictures in the album according to the clustering processing result returned by the server, and displays the classified result on the interface of the mobile terminal.
  • 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 several common images, click on the corresponding category to view the images in the category.
  • the clustering request queue is first sorted according to the request initiation time, and the first clustering request in the clustering request queue is obtained. Then, the clustering request corresponding to the same account of the first clustering request in the clustering request queue is merged, and the merged clustering request is clustered. In this way, the same clustering object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
  • FIG. 9 is a server architecture diagram of an image processing method implemented in an embodiment.
  • the server architecture diagram includes a first server and a second server cluster, and the second server cluster includes a plurality of second servers.
  • the first server is for providing a cluster access service 902 and a queue service 904 for providing a clustering service 906 and a tag data service 908.
  • the cluster access service 902 is configured to receive a clustering request
  • the queue service 904 is configured to generate a request queue according to the clustering request received by the clustering access service, and send the clustering object set to the second server to perform clustering processing.
  • the clustering service 906 is configured to perform clustering processing according to the clustering object set sent by the first server
  • the label data service 908 is configured to generate label data according to the clustering processing result, and store the label data.
  • the second server may provide a state detection interface, and the first server periodically detects the state detection interface of each second server, and obtains the state identifier through the state detection interface.
  • the second server may report the status identifier to the first server, that is, when the working status of the second server changes, the second server sends a status identifier to the first server, and reports the current working status. For example, when the current clustering task processing of the second server is completed, the current working state is reported to the first server as an available state.
  • the working status of each second server may be recorded in the form of a status list in the first server.
  • the status label of each second server may be obtained by reading the status list, and according to The status tag finds the second server that is available.
  • FIG. 10 is a block diagram showing the structure of an image processing apparatus in an embodiment.
  • the image processing apparatus 1000 includes a request acquisition module 1002, a request merge module 1004, and a request processing module 1006. among them:
  • the request obtaining module 1002 is configured to acquire a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
  • the request merge module 1004 is configured to merge the clustering requests corresponding to the same account according to rules.
  • the request processing module 1006 is configured to process the merged cluster request.
  • the image processing apparatus provided in the foregoing embodiment combines the clustering requests corresponding to the same account in the request queue, and performs clustering processing on the merged clustering request. In this way, the same object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
  • FIG. 11 is a block diagram showing the structure of an image processing apparatus in another embodiment.
  • the image processing apparatus 1100 includes a request acquisition module 1102, a request merging module 1104, a request processing module 1106, and a label generation module 1108. among them:
  • the request obtaining module 1002 is configured to acquire a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
  • the request merge module 1004 is configured to merge the clustering requests corresponding to the same account according to rules.
  • the request processing module 1006 is configured to process the merged cluster request.
  • the tag generation module 1108 is configured to generate tag data according to the processing result obtained by processing the clustering request.
  • the image processing apparatus provided in the foregoing embodiment combines the clustering requests corresponding to the same account in the request queue, and performs clustering processing on the merged clustering request. In this way, the same object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
  • the request merge module 1004 is further configured to sort the clustering request in the request queue according to the request initiation time, and obtain a specified clustering request in the sorted request queue; and obtain the request queue in the request queue The same clustering request for the account corresponding to the specified clustering request is specified, and the acquired clustering requests are merged.
  • the request merging module 1004 is further configured to arrange the clustering request in the request queue according to the request initiation time in a first-to-last order, and obtain a first clustering request in the request queue; The same clustering request in the queue corresponding to the first clustering request is requested, and the acquired clustering requests are merged.
  • the request merging module 1004 is further configured to acquire the clustering request in the request queue according to the preset time period, and merge the clustering requests in the preset time period corresponding to the same account according to the rule.
  • the request merging module 1004 is further configured to classify the clustering request corresponding to the same account according to the terminal identifier; acquire a target clustering request in each type of clustering request, and aggregate the acquired target The class request is merged, wherein the target clustering request is a clustering request in which the request time is the smallest interval from the current time in each type of clustering request.
  • the request processing module 1006 is further configured to send the clustering request, and/or perform clustering processing on the image of the terminal according to the clustering request.
  • 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 computer executable instructions that, when executed by one or more processors, cause the processor to:
  • Obtaining a clustering request in a request queue wherein the request queue includes a clustering request sequentially arranged, the clustering request is used to indicate that the image of the terminal is clustered;
  • the merged cluster request is processed.
  • the performing, by the processor, the merging the clustering request corresponding to the same account according to the rule comprises:
  • the performing, by the processor, the merging the clustering request corresponding to the same account according to the rule includes:
  • the clustering request in the acquisition request queue executed by the processor, and the clustering request corresponding to the same account according to the rule is merged, including:
  • the performing, by the processor, combining the clustering requests corresponding to the same account according to the rules includes:
  • the processing, by the processor, the processing of the merged clustering request includes:
  • the method performed by the processor further includes:
  • the tag data is generated based on the processing result obtained by processing the clustering request.
  • 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 the processor to implement a clustering 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 invoking data stored in the memory 1320, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • 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 phone 1300 implements the above image processing method 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).

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided is an image processing method. The method comprises: acquiring a clustering request in a request queue, wherein the request queue comprises clustering requests arranged in sequence, and the clustering request is used for instructing to carry out clustering on images of a terminal; merging, according to a rule, the clustering requests corresponding to the same account; and carrying out processing on the merged clustering request.

Description

图像处理方法和计算机设备、计算机可读存储介质Image processing method and computer device, computer readable storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年09月20日提交中国专利局、申请号为201710854675.6、发明名称为“图像处理方法和装置、计算机设备、计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 200910854675.6, entitled "Image Processing Method and Apparatus, Computer Equipment, Computer Readable Storage Medium", filed on September 20, 2017, the entire contents of which are hereby incorporated by reference. This is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及图像处理方法和计算机设备、计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to an image processing method and a computer device, and a computer readable storage medium.
背景技术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
本申请实施例提供一种图像处理方法和计算机设备、计算机可读存储介质。An embodiment of the present application provides an image processing method, a computer device, and a computer readable storage medium.
一种图像处理方法,所述方法包括:An image processing method, the method comprising:
获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类;Obtaining a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
对合并后的聚类请求进行处理。The merged cluster request is 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:
获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类;Obtaining a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
对合并后的聚类请求进行处理。The merged cluster request is processed.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行如下操作:A computer readable storage medium having stored thereon a computer program, the computer program being executed by the processor as follows:
获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类;Obtaining a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
对合并后的聚类请求进行处理。The merged cluster request is processed.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根 据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be 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 schematic diagram of an application environment of an image processing method in still another embodiment;
图4为一个实施例中图像处理方法的硬件交互时序图;4 is a hardware interaction timing diagram of an image processing method in an embodiment;
图5为一个实施例中图像处理方法的流程图;Figure 5 is a flow chart of an image processing method 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为一个实施例中移动终端相册分类结果的展示图;8 is a display diagram of a mobile terminal album classification result in an embodiment;
图9为一个实施例中实现图像处理方法的服务器架构图;9 is a server architecture diagram of an image processing method implemented in an embodiment;
图10为一个实施例中图像处理装置的结构示意图;FIG. 10 is a schematic structural diagram of an image processing apparatus in an embodiment; FIG.
图11为另一个实施例中图像处理装置的结构示意图;11 is a schematic structural diagram of an image processing apparatus in 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。其中,第一服务器12用于根据聚类请求生成请求队列,并将请求队列中同一账户对应的聚类请求进行合并。可以理解的是,聚类请求可以是第一服务器12发起的,也可以是接收的其他终端发送的。第一服务器12还用于查找第二服务器集群14中处于可用状态的第二服务器142,获取合并后的聚类请求对应的图像,并将获取的图像发送至第二服务器142。第二服务器142在接收到图像后,将图像进行聚类处理。其中,第一服务器12和第二服务器142是用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。第二服务器集群14中可以包含一个或多个第二服务器142。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 first server 12 and a second server cluster 14. The first server 12 is configured to generate a request queue according to the clustering request, and merge the clustering requests corresponding to the same account in the request queue. It can be understood that the clustering request may be initiated by the first server 12 or may be sent by other terminals that are received. The first server 12 is further configured to find the second server 142 in the second server cluster 14 that is in an available state, acquire an image corresponding to the merged cluster request, and send the acquired image to the second server 142. After receiving the image, the second server 142 performs clustering processing on the image. The first server 12 and the second server 142 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers. One or more second servers 142 may be included in the second server cluster 14.
图2为另一个实施例中图像处理方法的应用环境示意图。如图2所示,该应用环境包括用户终端22、第一服务器24、第二服务器集群26。其中,用户终端22用于向第一服务器24发送聚类请求及对应的图像集合。对第一服务器24在接收到聚类请求后,根据聚类请求生成请求队列,并将请求队列中同一账户对应的聚类请求进行合并。第一服务器24可以查找第二服务器集群26中处于可用状态的第二服务器262,获取合并后的聚类请求对应的图像集合,并将获取的图像集合发送至处于可用状态的第二服务器262。第二服务器262在接收到图像集合后,将图像集合进行处理。第二服务器262在进行聚类处理得到的处理结果可以通过第一服务器24返回给用户终端22,也可以直接返回给用户终端22。其中,第一服务器24和第二服务器262是用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。第二服务器集群26中可以包含一个或多个第二服务器262,用于对任务实现分布式处理。用户终端22为处于计算机网络最外围,主要用于输入用户信息以及输出处理结果的电子设备,例如可以是个人电脑、移动终端、个人数字助理、 可穿戴电子设备等。在本申请提供的实施例中,用户终端22可以包含一台或多台。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 user terminal 22, a first server 24, and a second server cluster 26. The user terminal 22 is configured to send a clustering request and a corresponding image set to the first server 24. After receiving the clustering request, the first server 24 generates a request queue according to the clustering request, and merges the clustering requests corresponding to the same account in the request queue. The first server 24 can find the second server 262 in the second server cluster 26 in an available state, acquire the image set corresponding to the merged cluster request, and send the acquired image set to the second server 262 in the available state. After receiving the image set, the second server 262 processes the image set. The processing result obtained by the second server 262 in the clustering process may be returned to the user terminal 22 through the first server 24, or may be directly returned to the user terminal 22. The first server 24 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. The second server cluster 26 may include one or more second servers 262 for implementing distributed processing on tasks. The user terminal 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 user terminal 22 may include one or more.
图3为又一个实施例中图像处理方法的应用环境示意图。如图3所示,该应用环境包括用户终端32、第一服务器34、第二服务器集群36和第三服务器集群38。其中,用户终端32向第三服务器集群38发送图像集合。第三服务器集群38对图像集合进行特征识别处理,并将得到的聚类特征集合发送至用户终端32。用户终端32根据聚类特征集合生成聚类请求,并将聚类请求发送至第一服务器34,第一服务器34接收到聚类请求之后生成请求队列,并将请求队列中同一账户对应的聚类请求进行合并。第一服务器34可以查找第二服务器集群36中处于可用状态的第二服务器362,获取合并后的聚类请求对应的聚类特征集合,并将获取的聚类特征集合发送至处于可用状态的第二服务器362。第二服务器362在接收到聚类特征集合后,将聚类特征集合进行聚类处理。第二服务器362可以通过第一服务器34将聚类处理结果发送至用户终端32,也可以直接将聚类处理结果发送至用户终端32。用户终端32根据聚类处理结果对图像集合进行分类。在一个实施例中,第三服务器集群38可以直接将聚类特征集合发送至第二服务器集群36。其中,第一服务器34、第二服务器362和第三服务器382是用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。第二服务器集群36中可以包含一个或多个第二服务器382,第三服务器集群38中可以包含一个或多个第三服务器集群382。用户终端32为处于计算机网络最外围,主要用于输入用户信息以及输出处理结果的电子设备,例如可以是个人电脑、移动终端、个人数字助理、可穿戴电子设备等。在本申请提供的实施例中,用户终端32可以包含一台或多台。FIG. 3 is a schematic diagram of an application environment of an image processing method in still another embodiment. As shown in FIG. 3, the application environment includes a user terminal 32, a first server 34, a second server cluster 36, and a third server cluster 38. The user terminal 32 transmits an image set to the third server cluster 38. The third server cluster 38 performs feature recognition processing on the image set, and transmits the obtained cluster feature set to the user terminal 32. The user terminal 32 generates a clustering request according to the clustering feature set, and sends the clustering request to the first server 34. The first server 34 generates a request queue after receiving the clustering request, and clusters the same account in the request queue. Request to merge. The first server 34 may search the second server 362 in the available state of the second server cluster 36, obtain the cluster feature set corresponding to the merged cluster request, and send the acquired cluster feature set to the available state. Two servers 362. After receiving the cluster feature set, the second server 362 performs clustering processing on the cluster feature set. The second server 362 may transmit the clustering processing result to the user terminal 32 through the first server 34, or may directly send the clustering processing result to the user terminal 32. The user terminal 32 classifies the image set based on the clustering processing result. In one embodiment, the third server cluster 38 can send the clustering feature set directly to the second server cluster 36. The first server 34, the second server 362, and the third server 382 are devices for providing a computing service in response to a service request, and may be, for example, one or more computers. One or more second servers 382 may be included in the second server cluster 36, and one or more third server clusters 382 may be included in the third server cluster 38. The user terminal 32 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 user terminal 32 may include one or more.
图4为一个实施例中图像处理方法的硬件交互时序图。如图4所示,该图像处理方法的硬件交互过程包括操作402至操作410。其中:4 is a hardware interaction timing diagram of an image processing method in one embodiment. As shown in FIG. 4, the hardware interaction process of the image processing method includes operations 402 through 410. among them:
操作402,用户终端发送聚类请求至第一服务器。Operation 402, the user terminal sends a clustering request to the first server.
在本申请提供的实施例中,聚类是指将对象集合分成多个对象组合的过程,每个对象组合是由一个或多个相似的对象组成。聚类请求是指用于对聚类对象集合进行聚类处理的命令,例如该聚类对象集合可以是终端的图像所对应的集合。请求队列是由一个或多个聚类请求形成的队列,根据请求队列对聚类请求进行处理。用户终端可以预先设置触发向第一服务器发起聚类请求的条件,设置的聚类触发条件包括以下方法中至少一种:在移动终端的新增图片数量大于预设数量;当前时间为预设时间;距上次发起聚类请求的时间超过预设时间段;移动终端当前处于充电状态。In the embodiments provided herein, clustering refers to the process of dividing a collection of objects into a plurality of combinations of objects, each combination of objects being composed of one or more similar objects. The clustering request refers to a command for performing clustering processing on the clustering object set. For example, the clustering object set may be a set corresponding to the image of the terminal. A request queue is a queue formed by one or more clustering requests, and the clustering request is processed according to the request queue. The user terminal may preset a condition for triggering a clustering request to the first server, where the set clustering triggering condition includes at least one of the following methods: the number of newly added pictures in the mobile terminal is greater than a preset number; the current time is a preset time. The time from the last time the clustering request was initiated exceeds the preset time period; the mobile terminal is currently in the charging state.
操作404,第一服务器将请求队列中同一账户对应的聚类请求进行合并。Operation 404, the first server merges the clustering requests corresponding to the same account in the request queue.
在一个实施例中,可以间隔预设时间获取一次请求队列中同一账户对应的聚类请求。还根据请求发起时间将请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;获取请求队列中与指定聚类请求对应的账户相同的聚类请求。更进一步地,根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取请求队列中的首位聚类请求;获取请求队列中与首位聚类请求对应的账户相同的聚类请求。In an embodiment, the clustering request corresponding to the same account in the request queue may be acquired at a preset time interval. The clustering request in the request queue is also sorted according to the request initiation time, and the specified clustering request in the sorted request queue is obtained; and the same clustering request in the request queue corresponding to the account corresponding to the specified clustering request is obtained. Further, the clustering request in the request queue is arranged in a first-to-last order according to the request initiation time, and the first clustering request in the request queue is obtained; and the same account in the request queue corresponding to the first clustering request is acquired. Class request.
操作406,第一服务器将发送合并后的聚类请求发送至第二服务器。Operation 406, the first server sends the merged clustering request to the second server.
在一个实施例中,第二服务器可以是一个服务器集群,可以首先获取各个第二服务器的状态标识,根据状态标识查找处于可用状态的第二服务器。更进一步,获取第二服务器的状态标识具体可以包括以下方法中的至少一种:第一服务器接收第二服务器发送的状态标识;第一服务器从状态标识列表中获取状态标识,其中状态标识列表是根据各个第二服务器上报的状态标识形成的。如果存在多个处于可用状态的服务器,则可以获取聚类对象集合的文件大小,根据多个处于可用状态的服务器的承载能力,来匹配相应文件大小的聚类对象集合。In an embodiment, the second server may be a server cluster, and may first obtain status identifiers of the respective second servers, and find a second server that is in an available state according to the status identifier. Further, the obtaining the status identifier of the second server may specifically include at least one of the following methods: the first server receives the status identifier sent by the second server; the first server obtains the status identifier from the status identifier list, where the status identifier list is It is formed according to the status identifier reported by each second server. If there are multiple servers in the available state, the file size of the cluster object set can be obtained, and the cluster object set of the corresponding file size is matched according to the carrying capacity of the plurality of servers in the available state.
操作408,第二服务器接收对合并后的聚类请求,并对合并后的聚类请求进行处理。Operation 408, the second server receives the merged cluster request and processes the merged cluster request.
在一个实施例中,第一服务器在向第二服务器发送聚类请求之前,可以将图像进行加密处理。第一服务器将加密处理后的图像发送至处于可用状态的第二服务器,用于指示该第二服务器执行将该聚类对象集合进行解密处理,并将解密处理后的聚类对象集合进行聚类处理。第二服务器可以根据处理得到的处理结果生成标签数据,并将所述标签数据存储在预设存储空间,也可以发送到用户终端。In one embodiment, the first server may perform an encryption process on the image before sending the clustering request to the second server. The first server sends the encrypted processed image to the second server in an available state, instructing the second server to perform decryption processing on the clustered object set, and clustering the decrypted clustered object set deal with. The second server may generate label data according to the processing result obtained by the processing, and store the label data in a preset storage space, or may send the label data to the user terminal.
操作410,第二服务器将处理结果发送至用户终端。Operation 410, the second server sends the processing result to the user terminal.
在一个实施例中,第二服务器对聚类请求对应的聚类对象集合进行聚类处理,得到处理结果。其中,聚类对象集合可以是聚类图像集合,也可以是聚类图像集合对应的聚类特征集合。聚类图像集合是指需要进行聚类处理的图像的集合,每张图像对应一个或多个特征,由聚类图像集合中所有图像对应的特征构成的集合即为聚类特征集合。也就是说,第二服务器可以是根据聚类图像集合进行聚类处理,也可以是根据聚类图像集合对应的特征集合进行聚类处理,在此不做限定。若第二服务器接收到的是聚类图像集合,则首先需要对聚类图像集合进行特征识别处理,再对特征识别处理得到的聚类特征集合进行聚类处理。用户终端在接收到处理结果之后,根据处理结果将图像进行分类。In an embodiment, the second server performs clustering processing on the cluster object set corresponding to the clustering request, and obtains a processing result. The clustering object set may be a clustering image set or a clustering feature set corresponding to the clustering image set. A cluster image collection refers to a collection of images that need to be clustered. Each image corresponds to one or more features, and a set of features corresponding to all images in the cluster image set is a cluster feature set. That is to say, the second server may perform clustering processing according to the cluster image set, or may perform clustering processing according to the feature set corresponding to the cluster image set, which is not limited herein. If the second server receives the cluster image set, the cluster image set needs to be subjected to feature recognition processing, and then the cluster feature set obtained by the feature recognition process is clustered. After receiving the processing result, the user terminal classifies the image according to the processing result.
图5为一个实施例中图像处理方法的流程图。如图5所示,该图像处理方法包括操作502至操作506。其中:Figure 5 is a flow chart of an image processing method in one embodiment. As shown in FIG. 5, the image processing method includes operations 502 through 506. among them:
操作502,获取请求队列中的聚类请求,其中请求队列包括顺序排列的聚类请求,聚类请求用于指示对终端的图像进行聚类。Operation 502: Acquire a clustering request in the request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
在本申请提供的实施例中,聚类是指将对象集合分成多个对象组合的过程,每个对象组合是由一个或多个相似的对象组成。聚类请求是指用于对聚类对象集合进行聚类处理的命令,例如该聚类对象集合可以是终端的图像所对应的集合。请求队列是由一个或多个聚类请求形成的队列,根据请求队列对聚类请求进行处理。In the embodiments provided herein, clustering refers to the process of dividing a collection of objects into a plurality of combinations of objects, each combination of objects being composed of one or more similar objects. The clustering request refers to a command for performing clustering processing on the clustering object set. For example, the clustering object set may be a set corresponding to the image of the terminal. A request queue is a queue formed by one or more clustering requests, and the clustering request is processed according to the request queue.
可以理解的是,聚类请求可以是从一个设备发送到另一个设备的请求,也可以是在同一个设备中发起并处理的请求。例如,用户终端发起的聚类请求可以在用户终端本地进行处理,也可以发送到服务器中进行处理。一般地,发送设备向接收设备发送聚类请求时,聚类请求中会包含请求发起设备标识、请求接收设备标识、请求发起时间和聚类对象集合等信息。接收设备接收到聚类请求之后会根据聚类对象集合进行聚类处理。若接收设备接收到多个发送设备的多个聚类请求时,会根据这个多个聚类请求形成一个请求队列,并对请求队列中的聚类请求进行处理。其中,请求发起设备标识是指发起聚类请求的设备的唯一标识,请求接收设备标识是指接收聚类请求的设备的唯一标识,聚类发起时间是指发起聚类请求的时间,聚类对象集合也可以是聚类对象标识,即接收设备可以根据聚类对象标识查找图像,并进行聚类处理。例如,服务器上预先存储着图像集合,移动终端在发送聚类请求的时候,只需要发送聚类对象标识,服务器就可以直接根据聚类对象标识查找图像集合,并进行聚类处理。It can be understood that the clustering request may be a request sent from one device to another device, or may be a request initiated and processed in the same device. For example, the clustering request initiated by the user terminal may be processed locally at the user terminal or may be sent to the server for processing. 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 originating time, and a clustering object set. After receiving the clustering request, the receiving device performs clustering processing according to the clustering object set. If the receiving device receives multiple clustering requests of multiple sending devices, a request queue is formed according to the multiple clustering requests, and the clustering request in the request queue is processed. 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 object The set may also be a cluster object identifier, that is, the receiving device may search for an image according to the cluster object identifier and perform clustering processing. For example, the image set is pre-stored on the server, and when the mobile terminal sends the clustering request, only the cluster object identifier needs to be sent, and the server can directly search for the image set according to the cluster object identifier and perform clustering processing.
在一个实施例中,智能终端中可以登录多个应用账户,应用账户需要进行聚类处理时,通过智能终端向服务器发起聚类请求。其中,应用账户是指智能终端上登录的账户,用于区分不同的用户操作。通过应用账户标识可以区分不同的用户,通过终端标识可以区域不同的智能终端。应用账户标识是指用于表示用户身份的唯一身份标识,终端标识是指区分不同智能终端设备的唯一标识。终端标识可以但不限于是智能终端的IP(Internet Protocol,网络之间互连的协议)地址、MAC(Media Access Control,媒体访问控制)地址等。例如,智能终端可以向服务器发起聚类请求,服务器可以连接多个智能终端,并接收多个智能终端发送的聚类请求。用户可以通过应用账户登录智能终端,并通过智能终端向服务器发送对相册中的照片进行聚类处理的请求,服务器接收到智能终端发送的聚类请求之后,将相册中的照片进行聚类处理,并将聚类处理的结果返回给智能终端。In an embodiment, multiple application accounts can be logged in the smart terminal. When the application account needs to perform clustering processing, the smart terminal sends a clustering request to the server. The application account refers to an account that is logged in on the smart terminal and is used to distinguish different user operations. Different users can be distinguished by applying the account identifier, and smart terminals with different regions can be identified by the terminal identifier. The application account identifier refers to a unique identifier used to represent the identity of the user, and the terminal identifier refers to a unique identifier that distinguishes different smart terminal devices. The terminal identifier may be, but not limited to, an IP (Internet Protocol) protocol, a MAC (Media Access Control) address, and the like of the smart terminal. For example, the smart terminal may initiate a clustering request to the server, and the server may connect multiple smart terminals and receive clustering requests sent by multiple smart terminals. The user can log in to the smart terminal through the application account, and send a request for clustering the photos in the album to the server through the smart terminal. After receiving the clustering request sent by the smart terminal, the server performs clustering processing on the photos in the album. The result of the clustering process is returned to the smart terminal.
操作504,按照规则对同一账户对应的聚类请求进行合并。 Operation 504, merging clustering requests corresponding to the same account according to rules.
在一个实施例中,请求队列中的聚类请求是按照一定顺序进行排列的。例如,按照请求发起时间进行排列,或者按照聚类图像的多少进行排列。获取同一账户对应的聚类请求,对同一账户对应的聚类请求进行合并,同一应用账户标识对应的聚类请求即为同一账户对应的聚类请求。合并聚类请求是指将多个聚类请求合并为一个聚类请求,并对合并后的聚类请求进行处理的过程,实现了多个聚类请求同时处理。具体地,获取请求队列中每个聚类请求包含的应用账户标识,并将请求队列中应用账户标识相同的聚类请求进行合并。In one embodiment, the clustering requests in the request queue are arranged in a certain order. For example, it is arranged according to the request initiation time, or arranged according to the number of cluster images. The clustering request corresponding to the same account is obtained, and the clustering request corresponding to the same account is merged, and the clustering request corresponding to the same application account identifier is the clustering request corresponding to the same account. The merge clustering request refers to a process of combining multiple clustering requests into one clustering request and processing the merged clustering request, and implementing multiple clustering requests simultaneously. Specifically, the application account identifiers included in each cluster request in the request queue are obtained, and the clustering requests with the same application account identifiers in the request queue are merged.
在获取到同一账户对应的聚类请求之后,可以首先统计同一账户对应的聚类请求的个数,并判断统计的个数是否超过预设个数,若超过预设个数,则将获取的同一账户对应的聚类请求进行合并;若未超过预设个数,则将进入等待状态,等到接收到同一账户对应的聚类请求的个数超过预设个数,再将同一账户对应的聚类请求进行合并。例如,预设个数可以为两个,若获取的同一账户对应的聚类请求只有一个,则进入等待状态,等到同一账户对应的聚类请求的个数超过两个再进行合并。在此基础上,为了防止系统一直等待而影响图像的处理,可以设置一个等待时间的上限值,若进入等待的时间超过等待时间的上限值,同一账户对应的聚类请求的个数还是少于预设个数,则停止等待,直接进行后续的处理。具体地,若进入等待的时间超过预设等待时间,则停止等待,直接将获取的同一账户对应的聚类请求进行合并。After obtaining the clustering request corresponding to the same account, you may first count the number of clustering requests corresponding to the same account, and determine whether the number of statistics exceeds the preset number. If the preset number is exceeded, the obtained number will be obtained. The clustering request corresponding to the same account is merged; if the preset number is not exceeded, the waiting state will be entered, and the number of clustering requests corresponding to the same account exceeds the preset number, and then the same account is aggregated. Class requests are merged. For example, the preset number may be two. If only one clustering request corresponding to the same account is obtained, the waiting state is entered, and the number of clustering requests corresponding to the same account exceeds two and then merged. On this basis, in order to prevent the system from waiting to affect the processing of the image, an upper limit value of the waiting time can be set. If the waiting time exceeds the upper limit of the waiting time, the number of clustering requests corresponding to the same account is still If it is less than the preset number, stop waiting and directly perform subsequent processing. Specifically, if the waiting time exceeds the preset waiting time, the waiting is stopped, and the acquired clustering requests corresponding to the same account are directly merged.
可以理解的是,在对请求队列中的聚类请求进行处理的时候,可以控制处理的速度,每次处理的时候,获取某个时间段内的聚类请求进行处理。那么,操作502到504具体可以包括:根据预设时段获取请求队列中的聚类请求,按照规则对同一账户对应的在预设时段内的聚类请求进行合并。具体可以是指每间隔一定时间,获取该时段内发起的聚类请求进行处理,也可以是在上一次聚类请求处理完成之后,间隔一定时段再进行下一次聚类请求的处理。例如,可以是每到整点时,获取上一个时间段的聚类请求进行合并,那么在11:00时,就获取10:00到11:00之间发起的聚类请求进行合并。也可以是在上一次聚类请求处理完成之后,等待半小时再进行下一次处理。It can be understood that when the clustering request in the request queue is processed, the processing speed can be controlled, and each time the processing is performed, the clustering request in a certain time period is acquired for processing. Then, the operations 502 to 504 may specifically include: acquiring the clustering request in the request queue according to the preset time period, and combining the clustering requests in the preset time period corresponding to the same account according to the rule. Specifically, it may be that the clustering request initiated in the time period is obtained for processing at a certain interval, or may be performed after the last time the clustering request processing is completed, and the next clustering request is performed at a certain interval. For example, it may be that when the whole point is obtained, the clustering request of the previous time period is acquired for merging, then at 11:00, the clustering request initiated between 10:00 and 11:00 is acquired for merging. It is also possible to wait for half an hour for the next processing after the last clustering request processing is completed.
操作506,对合并后的聚类请求进行处理。 Operation 506, processing the merged cluster request.
在一个实施例中,对合并后的聚类请求进行处理,可以是直接在本地对聚类请求对应的图像进行聚类处理,也可以是将聚类请求发送至服务器,以指示服务器对聚类请求对应的图像进行聚类处理,在此不做限定。则操作506具体可以包括:发送聚类请求,和/或,根据聚类请求,对终端的图像进行聚类处理。聚类请求合并之后会将各个聚类请求中的聚类对象集合进行合并,由于合并的聚类请求的应用账户相同,那么将合并后的聚类请求进行处理后,得到的聚类处理结果可以直接发送给应用账户所登录的智能终端。In an embodiment, the merged clustering request may be processed by directly clustering the image corresponding to the clustering request directly, or sending the clustering request to the server to indicate the server pairing. The corresponding image is requested to be clustered, which is not limited herein. The operation 506 may specifically include: sending a clustering request, and/or performing clustering processing on the image of the terminal according to the clustering request. After the clustering request is merged, the clustering object set in each clustering request is merged. Since the application accounts of the merged clustering request are the same, after the merged clustering request is processed, the obtained clustering processing result may be Send directly to the smart terminal where the application account is logged in.
在本申请提供的实施例中,可以通过一个服务器集群来处理聚类请求,该服务器集群中包含一个或多个服务器,这些服务器可以用于对聚类对象集合进行聚类处理。一般地,服务器在提供聚类服务时,工作状态可以分为可用状态和非可用状态。在可用状态下,服务器可以接收聚类请求,并对聚类请求进行聚类处理;非可用状态下,服务器无法接收聚类请求,并对聚类请求进行聚类处理。例如,服务器正在执行任务或者硬件出现故障时,会标记为非可用状态,在非可用状态下服务器无法进行聚类处理。In the embodiment provided by the present application, the clustering request may be processed by a server cluster containing one or more servers, which may be used for clustering the clustering object set. Generally, when a server provides a clustering service, the working state can be divided into an available state and a non-available state. In the available state, the server can receive the clustering request and cluster the clustering request; in the non-available state, the server cannot receive the clustering request and clusters the clustering request. For example, when a server is performing a task or a hardware failure occurs, it is marked as unavailable, and the server cannot perform clustering in the non-available state.
具体地,每个服务器都可以通过状态标识来表示当前的工作状态,获取到该状态标识即可判断服务器是否可用。即查找处于可用状态的服务器具体可以包括:获取各个服务器的状态标识,根据状态标识查找处于可用状态的服务器。更进一步地,获取服务器的状态标识具体可以包括以下方法中的至少一种:接收服务器发送的状态标识;从状态标识列表中获取状态标识,其中状态标识列表是根据各个服务器上报的状态标识形成的。Specifically, each server can indicate the current working status by using the status identifier, and the status identifier can be obtained to determine whether the server is available. That is, the server that is in the available state may include: obtaining the status identifier of each server, and searching for the server in the available state according to the status identifier. Further, the status identifier of the obtaining server may include at least one of the following methods: receiving a status identifier sent by the server, and obtaining a status identifier from the status identifier list, where the status identifier list is formed according to the status identifier reported by each server. .
查找到处于可用状态的服务器之后,将聚类请求发送至该处于可用状态的服务器进 行聚类处理。合并后的聚类请求对应的聚类对象集合,包含了合并之前的多个聚类请求中的所有聚类对象集合,若有重复的聚类对象,则只需要进行一次聚类处理。其中,聚类对象集合是指用于进行聚类处理的对象的集合,例如聚类对象集合可以是终端的图像所构成的集合,还可以是终端的图像对应的特征所构成的集合。After the server in the available state is found, the clustering request is sent to the server in the available state for clustering. The cluster object set corresponding to the merged cluster request includes all cluster object sets in the plurality of clustering requests before the merge, and if there are repeated cluster objects, only one clustering process is needed. The clustering object set refers to a set of objects used for performing clustering processing. For example, the clustering object set may be a set of images of the terminal, or may be a set of features corresponding to the image of the terminal.
上述实施例提供的图像处理方法,将请求队列中同一账户对应的聚类请求进行合并,并将合并之后的聚类请求进行聚类处理。这样在多个聚类请求中相同的对象,只需要进行一次聚类处理即可,而不需要进行多次聚类处理,提高了图像处理的效率,节省了资源。The image processing method provided by the foregoing embodiment combines the clustering requests corresponding to the same account in the request queue, and performs clustering processing on the merged clustering request. In this way, the same object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
图6为另一个实施例中图像处理方法的流程图。如图6所示,该图像处理方法包括操作602至操作608。其中:Figure 6 is a flow chart of an image processing method in another embodiment. As shown in FIG. 6, the image processing method includes operations 602 through 608. among them:
操作602,获取请求队列中的聚类请求,其中请求队列包括顺序排列的聚类请求,聚类请求用于指示对终端的图像进行聚类。Operation 602: Acquire a clustering request in the request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
在本申请提供的实施例中,聚类请求中可以包含请求发起设备标识、请求接收设备标识、请求发起时间、聚类对象集合和聚类对象的属性参数等信息。其中,聚类对象的属性参数是指表示聚类对象集合的属性的参数,例如聚类对象的属性参数可以是指用于聚类的图片的文件大小、尺寸大小、文件格式等。In the embodiment provided by the present application, the clustering request may include information such as a request originating device identifier, a request receiving device identifier, a request initiation time, a clustering object set, and an attribute parameter of the clustering object. The attribute parameter of the clustering object refers to a parameter indicating an attribute of the clustering object set. For example, the attribute parameter of the clustering object may refer to a file size, a size, a file format, and the like of a picture used for clustering.
操作604,根据请求发起时间将请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求。 Operation 604, sorting the clustering requests in the request queue according to the request initiation time, and obtaining the specified clustering request in the sorted request queue.
根据请求发起时间将请求队列中的聚类请求进行排序,并根据排序后的请求队列获取指定聚类请求。例如,将聚类请求按请求发起时间进行升序排列,或者将聚类请求按请求发起时间进行降序排列,并根据排序后的请求队列获取指定聚类请求。一般地,请求接收设备在接收到多个聚类请求之后,由于处理能力有限,无法将所有聚类请求同时进行处理。那么请求接收设备可以根据请求发起时间的先后顺序形成请求队列,并将请求发起时间靠前的聚类请求先进行处理,请求发起时间靠后的聚类请求后处理。指定聚类请求是指请求队列中符合指定条件的聚类请求,获取的指定聚类请求作为当前进行处理的聚类请求。根据请求发起时间将请求队列的聚类请求进行排序之后,可以根据请求发起时间获取指定聚类请求。例如,请求队列中的排序首位的聚类请求,排序末位的聚类请求。操作604具体可以包括:根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取请求队列中的首位聚类请求。获取的首位聚类请求,即为请求队列中第一个聚类请求,也就是请求队列中请求发起时间最早的聚类请求。The clustering requests in the request queue are sorted according to the request initiation time, and the specified clustering request is obtained according to the sorted request queue. 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, and the specified clustering request is obtained according to the sorted request queue. 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 may form a request queue according to the order in which the request is initiated, and process the clustering request with the request initiation time first, and request the clustering request post-processing after the initiation time. The specified clustering request refers to the clustering request in the 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 of the request queue is sorted according to the request initiation time, the specified clustering request may be acquired according to the request initiation time. For example, a clustering request for sorting the first bit in the request queue, sorting the clustering request for the last bit. The operation 604 may specifically include: arranging the clustering requests in the request queue according to the request initiation time in a first-to-last order, and acquiring the first clustering request in the request queue. The first clustering request obtained is the first clustering request in the request queue, that is, the clustering request with the earliest request initiation time in the request queue.
在本申请提供的其他实施例中,操作604还可以是:根据请求发起设备的优先级将请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求。其中,请求发起设备的优先级是指对请求发起设备对应的任务进行处理的优先级,例如移动终端发起的聚类请求优先处理,PC(Personal Computer,个人电脑)端发起的聚类请求后处。还可以是根据聚类请求对应的聚类对象集合的大小将请求队列中的聚类请求进行排序。例如,图像集合占用空间较大的聚类请求优先处理,占用空间较小的聚类请求后处理。In other embodiments provided by the present application, the operation 604 may further be: sorting the clustering requests in the request queue according to the priority of the requesting initiating device, and acquiring the specified clustering request in the sorted request queue. The priority of the requesting device refers to the priority of processing the task corresponding to the requesting device, for example, the clustering request priority processing initiated by the mobile terminal, and the clustering request initiated by the PC (Personal Computer) . It is also possible to sort the clustering requests in the request queue according to the size of the clustering object set corresponding to the clustering request. For example, a clustering request that takes up a large space in an image collection is preferentially processed, and a clustering request with a small space is post-processing.
操作606,获取请求队列中与指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Operation 606: Acquire a clustering request in the request queue that is the same as the account corresponding to the specified clustering request, and merge the acquired clustering requests.
在一个实施例中,在获取到指定聚类请求之后,将指定聚类请求与请求队列中的各个聚类请求进行对比,获取与指定聚类请求的应用账户标识相同的聚类请求,并将获取的聚类请求进行合并。接收到聚类请求之后,可以根据聚类请求中的应用账户标识建立聚类任务列表,聚类任务列表中记录了各个聚类请求的应用账户标识、请求发起设备标识、请求接收设备标识、请求发起时间等信息。则操作606具体可以包括:获取指定聚类请求的应用账户标识,遍历聚类任务列表,获取与指定聚类请求的应用账户标识相同的聚类请求。In one embodiment, after obtaining the specified clustering request, comparing the specified clustering request with each clustering request in the request queue, obtaining the same clustering request as the application account identifier of the specified clustering request, and The acquired clustering requests are merged. After receiving the clustering request, the clustering task list may be established according to the application account identifier in the clustering request, and the clustering task list records the application account identifier of each clustering request, the requesting device identifier, the request receiving device identifier, and the request. Initiate time and other information. The operation 606 may specifically include: acquiring an application account identifier of the specified clustering request, traversing the clustering task list, and acquiring a clustering request that is the same as the application account identifier of the specified clustering request.
更进一步地,统计请求队列中与指定聚类请求对应的账户相同的聚类请求的个数, 若请求队列中与指定聚类请求对应的账户相同的聚类请求的个数超过预设个数,则获取请求队列中与指定聚类请求对应的账户相同的聚类请求。若请求队列中与指定聚类请求对应的账户相同的聚类请求的个数小于预设个数,则进入等待状态;若在进入等待状态的时间超过预设时间,则停止等待,并获取请求队列中与指定聚类请求对应的账户相同的聚类请求。Further, if the number of clustering requests in the request queue corresponding to the account corresponding to the specified clustering request is the same, the number of clustering requests in the request queue corresponding to the account corresponding to the specified clustering request exceeds a preset number. And obtain the same clustering request in the request queue as the account corresponding to the specified clustering request. If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request is less than the preset number, the waiting state is entered; if the waiting time exceeds the preset time, the waiting is stopped, and the request is obtained. The same clustering request in the queue as the account corresponding to the specified clustering request.
在本申请提供的实施例中,将获取的聚类请求进行合并,具体是指将各个聚类请求对应的聚类对象集合进行合并。获取聚类对象集合具体可以包括:获取同一账户的聚类请求对应的聚类对象集合,并将获取的聚类对象集合的并集进行聚类处理。即对于同一个应用账户的发起的多个聚类请求,可以将聚类请求的聚类对象集合合并到一起处理,每个聚类对象只处理一次,而无需将聚类请求中重复的聚类对象重复多次进行处理。举例来说,聚类请求队列中包含了三个聚类请求,按照时间先后顺序排列分别为:聚类请求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的并集。In the embodiment provided by the present application, the acquired clustering requests are merged, specifically, the clustering object sets corresponding to the respective clustering requests are merged. The obtaining the cluster object set may include: acquiring a cluster object set corresponding to the clustering request of the same account, and performing clustering processing on the acquired union of the cluster object set. That is, for multiple clustering requests initiated by the same application account, the clustering object set of the clustering request may be merged and processed together, and each clustering object is processed only once without repeating clustering in the clustering request. The object is processed repeatedly multiple times. 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 object set 1; clustering request 2, clustering request sent by application account B at 02:41 on August 21, 2017, including cluster object set 2; clustering request 3, application account A in August 2017 The clustering request sent at 04:02 on the 22nd contains the clustering object set 3. Then, the clustering request 1 and the clustering request 3 are merged, and the clustering object set obtained after the combination is the union of the clustering object set 1 and the clustering object set 3.
操作608,对合并后的聚类请求进行处理。 Operation 608, processing the merged cluster request.
在其中一个实施例中,可以通过服务器集群来实现聚类处理,每个服务器都可以通过状态标识来表示当前的工作状态,通过状态标识可以获取处于可用状态的服务器。如果存在多个处于可用状态的服务器,则可以获取聚类对象集合的文件大小,根据多个处于可用状态的服务器的承载能力,来匹配相应文件大小的聚类对象集合。例如,将占用空间较大的聚类对象集合,发送到承载能力较大的服务器进行聚类处理。In one of the embodiments, the clustering process can be implemented by the server cluster, and each server can indicate the current working state through the status identifier, and the status identifier can be used to obtain the server in the available state. If there are multiple servers in the available state, the file size of the cluster object set can be obtained, and the cluster object set of the corresponding file size is matched according to the carrying capacity of the plurality of servers in the available state. For example, a cluster object collection that occupies a large space is sent to a server with a large carrying capacity for clustering processing.
将所述聚类对象集合发送至处于可用状态的服务器进行聚类处理具体可以包括:若存在两个或两个以上的处于可用状态的服务器,则获取合并后的聚类请求对应的聚类对象集合的属性参数,以及服务器的负载参数;根据属性参数和负载参数来查找服务器,并将聚类对象集合送至该服务器进行聚类处理。其中,属性参数可以是聚类对象集合的文件大小,负载参数是指表示服务器的最大负载处理能力的参数。一般负载参数越大,服务器的处理能力越强;负载参数越小,服务器的处理能力越弱。The sending the clustering object set to the server in the available state for performing the clustering process may include: if there are two or more servers in the available state, acquiring the clustering object corresponding to the merged clustering request The attribute parameters of the collection, and the load parameters of the server; the server is searched according to the attribute parameter and the load parameter, and the cluster object set is sent to the server for clustering processing. The attribute parameter may be a file size of the cluster object collection, and the load parameter refers to a parameter indicating a maximum load processing capability of the server. The larger the general load parameter, the stronger the processing power of the server; the smaller the load parameter, the weaker the processing capability of the server.
上述实施例提供的图像处理方法,先根据请求发起时间对请求队列进行排序,并获取请求队列中的指定聚类请求。然后将请求队列中与指定聚类请求的同一账户的聚类请求进行合并,并将合并之后的聚类请求进行处理。这样在多个聚类请求中相同的聚类对象时,只需要进行一次处理即可,而不需要进行多次聚类处理,提高了图像处理的效率,节省了资源。The image processing method provided by the foregoing embodiment first sorts the request queue according to the request initiation time, and acquires the specified cluster request in the request queue. The clustering request in the request queue for the same account as the specified clustering request is then merged, and the merged clustering request is processed. In this way, when the same clustering object is used in multiple clustering requests, only one processing is needed, and multiple clustering processing is not required, which improves the efficiency of image processing and saves resources.
图7为又一个实施例中图像处理方法的流程图。如图7所示,该图像处理方法包括操作702至操作712。其中:Figure 7 is a flow chart of an image processing method in still another embodiment. As shown in FIG. 7, the image processing method includes operations 702 through 712. among them:
操作702,获取请求队列中的聚类请求,其中请求队列包括顺序排列的聚类请求,聚类请求用于指示对终端的图像进行聚类。Operation 702: Acquire a clustering request in the request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
在一个实施例中,聚类请求中包含聚类对象集合,聚类对象集合可以是聚类图像集合和/或聚类特征集合。聚类图像集合是指用于聚类处理的图像的集合,聚类特征集合是指用于聚类的图像对应的特征的集合。操作702之前还可以包括:获取聚类对象集合,其中聚类对象集合可以是聚类图像集合,也可以是根据聚类图像集合提取的特征的集合。例如,将相册中的图像根据人脸进行分类,那么聚类特征集合就是图像中的人脸区域组成的集合。聚类特征可以表示聚类图像集合中的用于分类的特征,只上传聚类特征集合进行聚类处理,提高了聚类的效率。可以理解是,聚类特征集合可以是由智能终端上传的,还可 以是由特征服务器上传的,其中特征服务器是指对聚类图像集合进行特征识别处理的服务器,特征服务器根据智能终端发送的聚类图像集合提取的聚类特征,形成聚类特征集合。In one embodiment, the clustering request includes a clustering object set, and the clustering object set may be a clustering image set and/or a clustering feature set. The cluster image set refers to a set of images used for clustering processing, and the cluster feature set refers to a set of features corresponding to images used for clustering. The operation 702 may further include: acquiring a cluster object set, wherein the cluster object set may be a cluster image set, or may be a set of features extracted according to the cluster image set. For example, if the images in the album are classified according to the face, then the cluster feature set is a set of face regions in the image. The clustering feature can represent the features used for classification in the cluster image collection, and only upload the cluster feature set for clustering processing, which improves the efficiency of clustering. It can be understood that the clustering feature set may be uploaded by the smart terminal, or may be uploaded by the feature server, where the feature server refers to a server that performs feature recognition processing on the cluster image set, and the feature server sends the aggregate according to the smart terminal. The clustering features extracted by the class of image collection form a clustering feature set.
在一个实施例中,智能终端请求对相册中的图片进行聚类的过程中,可以预先设置触发向第一服务器发起聚类请求的条件,设置的聚类触发条件包括以下方法中至少一种:在智能终端的新增图片数量大于预设数量;当前时间为预设时间;距上次发起聚类请求的时间超过预设时间段;智能终端当前处于充电状态。例如,在智能终端新增图片大于50张时,若当前时间为凌晨2点到5点,且智能终端处于充电状态,则智能终端发起聚类请求。In an embodiment, when the smart terminal requests to cluster the pictures in the album, the condition for triggering the clustering request to the first server may be set in advance, and the set clustering triggering condition includes at least one of the following methods: The number of new pictures in the smart terminal 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 smart terminal is currently in the charging state. For example, when the new terminal adds more than 50 pictures, if the current time is between 2 am and 5 am, and the smart terminal is in the charging state, the smart terminal initiates a clustering request.
智能终端的存储空间中存储着图片,智能终端可以从预设存储地址中直接获取图片,也可以遍历智能终端中的所有文件夹获取图片。一般来说,智能终端的存储空间分为内存储器和外接存储器。内存储器是指移动终端本身自带的存储器,是智能终端硬件结构的一部分。外接存储器是指移动终端外接的存储设备,外接存储可以通过专用接口与智能户端进行数据传输。例如,外接存储器可以是SD卡、U盘等。智能终端发送的相册,可以包含智能终端存储的所有图片,也可以只包含智能终端存储的一部分图片。例如,智能终端发送的相册中,可以包含内存储器和外接存储器中所有的图片,也可以只包含内存储器中的图片。The smart terminal stores the image in the storage space, and the smart terminal can directly obtain the image from the preset storage address, or traverse all the folders in the smart terminal to obtain the image. Generally, the storage space of the smart terminal is divided into an internal memory and an external memory. The internal memory refers to the memory that the mobile terminal itself has, and is a part of the hardware structure of the intelligent terminal. The external storage refers to a storage device external to the mobile terminal, and the external storage can perform data transmission with the smart client through a dedicated interface. For example, the external storage may be an SD card, a USB flash drive or the like. The album sent by the smart terminal may include all the pictures stored by the smart terminal, or may only include a part of the pictures stored by the smart terminal. For example, the album sent by the smart terminal may include all the pictures in the internal memory and the external memory, or may only include the pictures in the internal memory.
操作704,根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取请求队列中的首位聚类请求,并获取请求队列中与首位聚类请求对应的账户相同的聚类请求。 Operation 704, the clustering request in the request queue is arranged according to the request initiation time in a first-to-last order, obtaining the first clustering request in the request queue, and acquiring the same aggregation in the request queue corresponding to the first clustering request. Class request.
在一个实施例中,智能终端可以向第一服务器发起聚类请求,第一服务器接收到智能终端发送的聚类请求之后,根据接收到的聚类请求生成请求队列,通过请求队列控制分配到各个第二服务器的聚类任务。一般来讲,第一服务器生成的请求队列是按请求发起时间的先后顺序来排列的,即请求发起时间靠前的聚类请求优先处理,每次都优先处理位于请求队列首位的聚类请求。首位聚类请求即为请求队列中的排序第一个的聚类请求。In an embodiment, the smart terminal may initiate a clustering request to the first server, and after receiving the clustering request sent by the smart terminal, the first server generates a request queue according to the received clustering request, and allocates to each by request queue control. The clustering task of the second server. Generally, the request queues generated by the first server are arranged in the order of the request initiation time, that is, the clustering request with the top requesting time is prioritized, and the clustering request located first in the request queue is preferentially processed each time. The first clustering request is the first clustering request in the request queue.
在一个实施例中,获取到首位聚类请求之后,可以遍历请求队列中每个聚类请求对应的应用账户标识,获取与首位聚类请求对应的应用账户标识相同的聚类请求,即为同一账户对应的聚类请求。一般地,将聚类图像集合进行聚类,都有一个分类的标准,那么需要首先提取聚类图像集合中每一张图像的特征,然后根据提取的特征将图像进行分类。也就是说,接收到的聚类对象集合可以是聚类特征集合,也可以是聚类图像集合。例如,根据人脸将相册中的图片进行分类,需要根据提取的人脸区域才能知道图片属于哪个分类,那么聚类图像集合就是整个相册,聚类特征集合就是从相册中每张图片中提取的人脸区域的集合。若聚类对象集合为特征集合,则可以直接根据预设聚类算法进行聚类处理;若聚类对象集合为待分类对象集合,则需要首先提取待分类对象集合中的特征形成特征集合,并根据预设聚类算法将特征集合进行聚类处理,根据聚类处理结果可以将分类对象集合进行分类。In an embodiment, after obtaining the first clustering request, the application account identifier corresponding to each clustering request in the request queue may be traversed, and the clustering request with the same application account identifier corresponding to the first clustering request is obtained, that is, the same The clustering request corresponding to the account. Generally, clustering cluster image collections has a classification criterion, then it is necessary to first extract features of each image in the cluster image collection, and then classify the images according to the extracted features. That is to say, the received cluster object set may be a cluster feature set or a cluster image set. For example, according to the face classification of the pictures in the album, it is necessary to know which category the picture belongs to according to the extracted face area, then the cluster image set is the entire album, and the cluster feature set is extracted from each picture in the album. A collection of face regions. If the clustering object set is a feature set, the clustering process may be directly performed according to a preset clustering algorithm; if the clustering object set is a to-be-classified object set, the feature forming feature set in the to-be-classified object set is first extracted, and The feature set is clustered according to a preset clustering algorithm, and the classified object set can be classified according to the clustering processing result.
在一个实施例中,获取同一账户的聚类请求对应的聚类对象集合,并将获取的聚类对象集合的并集作为最终处理的聚类对象集合。例如,同一账户发起了两次聚类请求,第一次聚类请求中包含了50张图片,第二次聚类请求中包含了60张图片,第一次和第二次聚类请求中有10张重复的图片,那么将第一次和第二次聚类请求合并之后,这10张重复的图片只处理一次,那么合并之后的聚类请求中总共就包含100张图片。In one embodiment, the cluster object set corresponding to the cluster request of the same account is obtained, and the acquired union of the cluster object set is used as the final processed cluster object set. For example, the same account initiates two clustering requests, the first clustering request contains 50 images, and the second clustering request contains 60 images. The first and second clustering requests are included. 10 repeated pictures, then after the first and second clustering requests are merged, the 10 repeated pictures are processed only once, and then the combined clustering request contains a total of 100 pictures.
操作706,将获取的聚类请求按终端标识进行分类。 Operation 706, the obtained clustering request is classified according to the terminal identifier.
在一个实施例中,同一个应用账户可以登录多个智能终端,一个智能终端同时只能登录一个应用账户。因此,可以将同一账户对应的聚类请求按照终端标识进行分类。每一个聚类请求中都包含了应用账户标识和对应的终端标识,获取到同一账户对应的聚类请求之后,将聚类请求按照不同的终端标识进行分类。一般来说,不同智能终端中的聚类对象集 合是不同的,通过应用账户登录不同的智能终端,可以向服务器发起不同的聚类对象集合。In one embodiment, the same application account can log in to multiple smart terminals, and one smart terminal can only log in to one application account at the same time. Therefore, the clustering requests corresponding to the same account can be classified according to the terminal identifier. Each clustering request includes an application account identifier and a corresponding terminal identifier. After obtaining a clustering request corresponding to the same account, the clustering request is classified according to different terminal identifiers. Generally, the clustering object collections in different intelligent terminals are different. When the application accounts are logged into different intelligent terminals, different clustering object sets can be initiated to the server.
操作708,获取每一类聚类请求中的目标聚类请求,并将获取的目标聚类请求进行合并,其中目标聚类请求为每一类聚类请求中,请求时间距离当前时间的间隔最小的聚类请求。Operation 708: Acquire a target clustering request in each type of clustering request, and merge the obtained target clustering requests, where the target clustering request is in each type of clustering request, and the interval between the request time and the current time is the smallest. Clustering request.
在一个实施例中,目标聚类请求是指在获取的聚类请求中,用于合并处理的聚类请求。一个智能终端可以发起多次聚类请求,此时可以根据发起时间进行判断,无需对每次请求都进行处理,只需要对最近的一次请求进行处理即可。首先将同一账户对应的聚类请求按照终端标识进行分类,并获取每一类聚类请求中最近发起的聚类请求,即请求发起时间距离当前时间的间隔最小的聚类请求。例如,同一账户对应的聚类请求包括:聚类请求1,终端标识A在2017年8月20日03:30发送的聚类请求,包含聚类对象集合1;聚类请求2,终端标识B在2017年8月21日02:41发送的聚类请求,包含聚类对象集合2;聚类请求3,终端标识B在2017年8月22日04:02发送的聚类请求,包含聚类对象集合4;聚类请求3,终端标识B在2017年8月25日05:02发送的聚类请求,包含聚类对象集合4。则获取的目标聚类请求包括聚类请求2和聚类请求4,将聚类请求2和聚类请求4进行合并即可。In one embodiment, the target clustering request refers to a clustering request for merge processing in the acquired clustering request. An intelligent terminal can initiate multiple clustering requests. At this time, it can be judged according to the initiation time. It is not necessary to process each request, and only needs to process the latest request. Firstly, the clustering requests corresponding to the same account are classified according to the terminal identifier, and the clustering request recently initiated in each type of clustering request is obtained, that is, the clustering request with the smallest interval from the current time is requested. For example, the clustering request corresponding to the same account includes: clustering request 1, the clustering request sent by the terminal identifier A at 03:30 on August 20, 2017, including the clustering object set 1; the clustering request 2, the terminal identifier B The clustering request sent at 02:41 on August 21, 2017, including the clustering object set 2; the clustering request 3, the clustering request sent by the terminal identifier B at 04:02 on August 22, 2017, including clustering The object set 4; the clustering request 3, the clustering request sent by the terminal identifier B at 05:02 on August 25, 2017, includes the clustering object set 4. Then, the acquired target clustering request includes a clustering request 2 and a clustering request 4, and the clustering request 2 and the clustering request 4 are combined.
操作710,对合并后的聚类请求进行处理。 Operation 710, processing the merged cluster request.
在一个实施例中,服务器可以实时或定时上报工作状态,并根据上报的工作状态生成状态标签列表,该状态标签列表中记录着服务器标识和对应的状态标识。其中,服务器标识为区分不同服务器的唯一标识,状态标识是标记服务器的工作状态的标识。通过读取状态标签列表,可以获取各个服务器的状态标签,并根据状态标签获取各个服务器的工作状态。可以理解的是,该状态标签列表中,可以只包括处于可用状态的服务器对应的服务器标识,即状态标签列表中记录的服务器标识对应的服务器都处于可用状态,所状态标签列表为空,则说明所有服务器都不可用。在查找到处于可用状态的服务器后,还可以通过预设路由算法查找目标服务器,并将聚类对象集合发送至目标服务器进行聚类处理。例如,预设路由算法可以是负载均衡算法,负载均衡算法可以是随机算法、轮询算法、源地址哈希算法等,在此不做限定。In an embodiment, the server may report the working status in real time or periodically, and generate a status label list according to the reported working status, where the server identifier and the corresponding status identifier are recorded in the status label list. The server identifier is a unique identifier that distinguishes different servers, and the state identifier is an identifier that marks the working status of the server. By reading the status label list, you can obtain the status labels of each server, and obtain the working status of each server according to the status labels. It can be understood that the status label list may include only the server identifier corresponding to the server in the available state, that is, the server corresponding to the server identifier recorded in the status label list is in an available state, and the status label list is empty, indicating that the status label list is empty. All servers are unavailable. After finding the server in the available state, the target server can also be searched by the preset routing algorithm, and the cluster object collection is sent to the target server for clustering. 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, etc., and is not limited herein.
在本申请提供的实施例中,操作710之前还可以包括:将聚类对象集合进行加密处理。加密处理是指以某种特殊的算法将原有的信息进行改变,使得未授权的用户无法获知原有信息的处理方法。可通过3DES(Triple Data Encryption Algorithm,三重数据加密算法)、RC5等加密算法将聚类对象集合进行加密处理。可以理解的是,对聚类对象集合的加密处理可以是在操作702之前,即在第一服务器接收到聚类请求之后,将加密处理之后的聚类对象集合缓存到聚类请求队列中。In the embodiment provided by the present application, before the operation 710, the method further includes: performing a cryptographic process on the cluster object set. 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 clustering object set can be encrypted by an encryption algorithm such as 3DES (Triple Data Encryption Algorithm) or RC5. It can be understood that the encryption processing on the clustering object set may be before the operation 702, that is, after the first server receives the clustering request, the clustering object set after the encryption processing is cached into the clustering request queue.
若聚类对象集合是经过加密处理的,那么在聚类对象集合进行聚类处理之前,需要对聚类对象集合进行解密处理。则操作710具体包括:将合并后的聚类请求及对应的加密处理后的聚类对象集合发送至服务器,用于指示该服务器执行将该聚类对象集合进行解密处理,并将解密处理后的聚类对象集合进行聚类处理。其中,解密处理是指将加密后的信息还原为原有信息的处理,加密处理和解密处理是相反的处理过程。If the clustering object set is encrypted, the clustering object set needs to be decrypted before the clustering object set is clustered. The operation 710 specifically includes: sending the merged clustering request and the corresponding encrypted clustering object set to the server, and instructing the server to perform decryption processing on the clustering object set, and decrypting the processed The clustering object set is clustered. The decryption process refers to a process of restoring the encrypted information to the original information, and the encryption process and the decryption process are opposite processes.
聚类处理可以根据一个和多个特征将聚类对象集合分为多个分类。例如,人根据性别可以分为男性和女性,根据年龄又可以分为少年、青年、中老年等,根据性别和年龄又可以有更多的组合方式。一般可以根据聚类模型将聚类对象集合进行分类,常用的聚类模型包括k-means聚类模型、层次聚类模型、SOM聚类模型和FCM聚类模型等。更进一步地,聚类模型可以根据聚类样本集合进行训练得到。聚类样本集合是指用于训练得到模型的样本集合,聚类样本集合可以是根据聚类对象集合生成的样本集合,也可以是专门用于训练聚类模型的样本集合。聚类处理得到的聚类处理结果用于将图像集合进行分类,则操作710之后还可以包括:通过服务器将聚类处理结果发送至智能终端,所述聚类处理结果 用于指示智能终端对终端的图像进行分类。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 their 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. Further, the clustering model can be trained according to the clustering sample set. The cluster sample set refers to a sample set used for training to obtain a model, and the cluster sample set may be a sample set generated according to the cluster object set, or may be a sample set specifically used for training the cluster model. The result of the clustering process is used to classify the image set. The operation 710 may further include: sending, by the server, the clustering process result to the smart terminal, where the clustering process result is used to indicate the smart terminal to the terminal. The images are classified.
操作712,根据对聚类请求进行处理得到的处理结果生成标签数据。 Operation 712, generating tag data according to the processing result obtained by processing the clustering request.
在一个实施例中,标签数据是指用于标记聚类对象集合中聚类对象的分类属性的标识,例如,聚类对象1属于分类1,那么形成的标签数据可以是“分类1”。可以理解的是,聚类对象集合中的每个聚类对象都有对应的对象标识,用于标识聚类对象的唯一性。根据聚类处理结果生成的标签数据,可以与对象标识建立一一对应的关系。生成的标签数据可以存储在预设存储空间中,也可以发送到用户终端,在此不做限定。In one embodiment, the tag data refers to an identifier for marking the classification attribute of the cluster object in the cluster object set. For example, if the cluster object 1 belongs to the category 1, the formed tag data may be “category 1”. It can be understood that each cluster object in the cluster object set has a corresponding object identifier, which is used to identify the uniqueness of the cluster object. According to the tag data generated by the clustering processing result, a one-to-one correspondence can be established with the object identifier. The generated tag data may be stored in a preset storage space or may be sent to the user terminal, which is not limited herein.
可以理解的是,若当前发起的聚类请求对应的聚类对象集合中,存在以前进行过聚类处理的聚类对象,则可以将这些处理过的聚类对象提取出来,不进行聚类处理,当前只针对未处理过的聚类对象进行聚类处理。那么操作710具体就可以包括:将聚类对象集合发送至处于可用状态的服务器,用于指示服务器对聚类对象集合中,除历史聚类对象之外的其他聚类对象进行聚类处理。其中,历史聚类对象是指历史处理过的聚类对象。可以将聚类对象集合中聚类对象的对象标识,与预设存储空间中存储的标签数据对应的对象标识进行比较,对象标识相匹配的聚类对象为历史聚类对象。另外,还可以首先将聚类对象集合的请求发起对象标识和标签数据对应的请求发起对象标识进行匹配,若存在相匹配的请求发起对象标识,再根据对象标识查找历史聚类对象。It can be understood that if there is a clustering object that has been clustered before in the cluster object set corresponding to the currently initiated clustering request, the processed clustering objects can be extracted without clustering. Currently, only clustering processing is performed on unprocessed cluster objects. The operation 710 may specifically include: sending the cluster object set to the server in an available state, and instructing the server to perform clustering processing on the cluster object other than the historical cluster object in the cluster object set. Among them, the historical clustering object refers to the clustering object processed by history. The object identifier of the cluster object in the cluster object collection may be compared with the object identifier corresponding to the label data stored in the preset storage space, and the cluster object matching the object identifier is a historical cluster object. In addition, the request initiation object identifier of the cluster object collection and the request initiation object identifier corresponding to the label data may be matched first. If there is a matching request initiation object identifier, the historical cluster object is searched according to the object identifier.
在一个实施例中,服务器上存储的聚类模型进行更新,每个版本的聚类模型都会有对应的模型标识,预设存储空间中存储的标签数据也会有对应的模型版本,用于标记生成标签数据的聚类模型的版本。若聚类对象集合中存在历史聚类对象,可以将历史聚类对象对应的模型标识与当前聚类模型的模型标识进行比较,若相同,则历史聚类对象不再重新聚类处理;若不同,则对历史聚类对象进行重新聚类处理。重新聚类之后,将历史聚类对象的重新聚类处理结果生成标签数据覆盖原有的标签数据。In an embodiment, the clustering model stored on the server is updated, and each version of the clustering model has a corresponding model identifier, and the label data stored in the preset storage space also has a corresponding model version for marking. The version of the clustering model that generates the tag data. If there is a historical clustering object in the clustering object set, the model identifier corresponding to the historical clustering object may be compared with the model identifier of the current clustering model. If they are the same, the historical clustering object is not re-clustering; if different , the historical clustering object is re-clustered. After re-clustering, the re-clustered processing result of the historical clustering object generates label data to cover the original label data.
图8为一个实施例中移动终端相册分类结果的展示图。如图8所示,移动终端根据服务器返回的聚类处理结果将相册中的图片进行分类,并将分类的结果展示在移动终端的界面上。本实施例中的界面上展示了六个分类结果,分别包括“分类1”、“分类2”、“分类3”、“分类4”、“分类5”和“分类6”,每个分类都包含了若干张具有共性的图片,点击对应的分类,可以查看分类中的图片。FIG. 8 is a diagram showing a result of classification of a mobile terminal album in one embodiment. As shown in FIG. 8, the mobile terminal classifies the pictures in the album according to the clustering processing result returned by the server, and displays the classified result on the interface of the mobile terminal. 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 several common images, click on the corresponding category to view the images in the category.
上述实施例提供的图像处理方法,先根据请求发起时间对聚类请求队列进行排序,并获取聚类请求队列中的首位聚类请求。然后将聚类请求队列中与首位聚类请求的同一账户对应的聚类请求进行合并,并将合并之后的聚类请求进行聚类。这样在多个聚类请求中相同的聚类对象,只需要进行一次聚类处理即可,而不需要进行多次聚类处理,提高了图像处理的效率,节省了资源。In the image processing method provided by the foregoing embodiment, the clustering request queue is first sorted according to the request initiation time, and the first clustering request in the clustering request queue is obtained. Then, the clustering request corresponding to the same account of the first clustering request in the clustering request queue is merged, and the merged clustering request is clustered. In this way, the same clustering object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
图9为一个实施例中实现图像处理方法的服务器架构图。该服务器架构图中包括第一服务器和第二服务器集群,第二服务器集群中包含若干个第二服务器。第一服务器用于提供聚类接入服务902和队列服务904,第二服务器用于提供聚类服务906和标签数据服务908。聚类接入服务902用于接收聚类请求,队列服务904用于根据聚类接入服务接收的聚类请求生成请求队列,并将聚类对象集合发送至第二服务器执行聚类处理。聚类服务906用于根据第一服务器发送的聚类对象集合进行聚类处理,标签数据服务908用于根据聚类处理结果生成标签数据,并将标签数据进行存储。第二服务器可以提供状态检测接口,第一服务器定时检测各个第二服务器的状态检测接口,通过状态检测接口获取状态标识。还可以是第二服务器主动向第一服务器上报状态标识,即当第二服务器的工作状态发生变化时,第二服务器向第一服务器发送状态标识,上报当前工作状态。例如,当第二服务器当前聚类任务处理完成时,向第一服务器上报当前工作状态为可用状态。第一服务器中可以通过状态列表的形式来记录各个第二服务器的工作状态,当需要第二服务器进行聚类处 理时,通过读取该状态列表即可获取各个第二服务器的状态标签,并根据状态标签查找处于可用状态的第二服务器。FIG. 9 is a server architecture diagram of an image processing method implemented in an embodiment. The server architecture diagram includes a first server and a second server cluster, and the second server cluster includes a plurality of second servers. The first server is for providing a cluster access service 902 and a queue service 904 for providing a clustering service 906 and a tag data service 908. The cluster access service 902 is configured to receive a clustering request, and the queue service 904 is configured to generate a request queue according to the clustering request received by the clustering access service, and send the clustering object set to the second server to perform clustering processing. The clustering service 906 is configured to perform clustering processing according to the clustering object set sent by the first server, and the label data service 908 is configured to generate label data according to the clustering processing result, and store the label data. The second server may provide a state detection interface, and the first server periodically detects the state detection interface of each second server, and obtains the state identifier through the state detection interface. The second server may report the status identifier to the first server, that is, when the working status of the second server changes, the second server sends a status identifier to the first server, and reports the current working status. For example, when the current clustering task processing of the second server is completed, the current working state is reported to the first server as an available state. The working status of each second server may be recorded in the form of a status list in the first server. When the second server is required to perform clustering processing, the status label of each second server may be obtained by reading the status list, and according to The status tag finds the second server that is available.
图10为一个实施例中图像处理装置的结构示意图。如图10所示,该图像处理装置1000包括请求获取模块1002、请求合并模块1004和请求处理模块1006。其中:Figure 10 is a block diagram showing the structure of an image processing apparatus in an embodiment. As shown in FIG. 10, the image processing apparatus 1000 includes a request acquisition module 1002, a request merge module 1004, and a request processing module 1006. among them:
请求获取模块1002,用于获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类。The request obtaining module 1002 is configured to acquire a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
请求合并模块1004,用于按照规则对所述同一账户对应的聚类请求进行合并。The request merge module 1004 is configured to merge the clustering requests corresponding to the same account according to rules.
请求处理模块1006,用于对合并后的聚类请求进行处理。The request processing module 1006 is configured to process the merged cluster request.
上述实施例提供的图像处理装置,将请求队列中同一账户对应的聚类请求进行合并,并将合并之后的聚类请求进行聚类处理。这样在多个聚类请求中相同的对象,只需要进行一次聚类处理即可,而不需要进行多次聚类处理,提高了图像处理的效率,节省了资源。The image processing apparatus provided in the foregoing embodiment combines the clustering requests corresponding to the same account in the request queue, and performs clustering processing on the merged clustering request. In this way, the same object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
图11为另一个实施例中图像处理装置的结构示意图。如图11所示,该图像处理装置1100包括请求获取模块1102、请求合并模块1104、请求处理模块1106和标签生成模块1108。其中:Figure 11 is a block diagram showing the structure of an image processing apparatus in another embodiment. As shown in FIG. 11, the image processing apparatus 1100 includes a request acquisition module 1102, a request merging module 1104, a request processing module 1106, and a label generation module 1108. among them:
请求获取模块1002,用于获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类。The request obtaining module 1002 is configured to acquire a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered.
请求合并模块1004,用于按照规则对所述同一账户对应的聚类请求进行合并。The request merge module 1004 is configured to merge the clustering requests corresponding to the same account according to rules.
请求处理模块1006,用于对合并后的聚类请求进行处理。The request processing module 1006 is configured to process the merged cluster request.
标签生成模块1108,用于根据对聚类请求进行处理得到的处理结果生成标签数据。The tag generation module 1108 is configured to generate tag data according to the processing result obtained by processing the clustering request.
上述实施例提供的图像处理装置,将请求队列中同一账户对应的聚类请求进行合并,并将合并之后的聚类请求进行聚类处理。这样在多个聚类请求中相同的对象,只需要进行一次聚类处理即可,而不需要进行多次聚类处理,提高了图像处理的效率,节省了资源。The image processing apparatus provided in the foregoing embodiment combines the clustering requests corresponding to the same account in the request queue, and performs clustering processing on the merged clustering request. In this way, the same object in multiple clustering requests only needs to perform clustering processing once, without multiple clustering processing, which improves the efficiency of image processing and saves resources.
在一个实施例中,请求合并模块1004还用于根据请求发起时间将请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。In one embodiment, the request merge module 1004 is further configured to sort the clustering request in the request queue according to the request initiation time, and obtain a specified clustering request in the sorted request queue; and obtain the request queue in the request queue The same clustering request for the account corresponding to the specified clustering request is specified, and the acquired clustering requests are merged.
在其中一个实施例中,请求合并模块1004还用于根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取所述请求队列中的首位聚类请求;获取所述请求队列中与所述首位聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。In one embodiment, the request merging module 1004 is further configured to arrange the clustering request in the request queue according to the request initiation time in a first-to-last order, and obtain a first clustering request in the request queue; The same clustering request in the queue corresponding to the first clustering request is requested, and the acquired clustering requests are merged.
在本申请实施例中,请求合并模块1004还用于根据预设时段获取请求队列中的聚类请求,按照规则对所述同一账户对应的在所述预设时段内的聚类请求进行合并。In the embodiment of the present application, the request merging module 1004 is further configured to acquire the clustering request in the request queue according to the preset time period, and merge the clustering requests in the preset time period corresponding to the same account according to the rule.
在本申请实施例中,请求合并模块1004还用于将所述同一账户对应的聚类请求按终端标识进行分类;获取每一类聚类请求中的目标聚类请求,并将获取的目标聚类请求进行合并,其中所述目标聚类请求为每一类聚类请求中,请求时间距离当前时间的间隔最小的聚类请求。In the embodiment of the present application, the request merging module 1004 is further configured to classify the clustering request corresponding to the same account according to the terminal identifier; acquire a target clustering request in each type of clustering request, and aggregate the acquired target The class request is merged, wherein the target clustering request is a clustering request in which the request time is the smallest interval from the current time in each type of clustering request.
在本申请提供的实施例中,请求处理模块1006还用于发送所述聚类请求,和/或,根据所述聚类请求,对所述终端的图像进行聚类处理。In the embodiment provided by the present application, the request processing module 1006 is further configured to send the clustering request, and/or perform clustering processing on the image of the terminal according to the clustering request.
上述图像处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像处理装置按照需要划分为不同的模块,以完成上述图像处理装置的全部或部分功能。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 computer executable instructions that, when executed by one or more processors, cause the processor to:
获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类 请求用于指示对终端的图像进行聚类;Obtaining a clustering request in a request queue, wherein the request queue includes a clustering request sequentially arranged, the clustering request is used to indicate that the image of the terminal is clustered;
按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
对合并后的聚类请求进行处理。The merged cluster request is processed.
在一个实施例中,所述处理器执行的所述按照规则对同一账户对应的聚类请求进行合并包括:In an embodiment, the performing, by the processor, the merging the clustering request corresponding to the same account according to the rule comprises:
根据请求发起时间将请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the request initiation time, and obtaining the specified clustering request in the sorted request queue;
获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
在本申请提供的实施例中,所述处理器执行的所述按照规则对同一账户对应的聚类请求进行合并包括:In the embodiment provided by the application, the performing, by the processor, the merging the clustering request corresponding to the same account according to the rule includes:
根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取所述请求队列中的首位聚类请求;Arranging the clustering requests in the request queue according to the request initiation time in a first-to-last order, and acquiring the first clustering request in the request queue;
获取所述请求队列中与所述首位聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the first clustering request, and merging the acquired clustering requests.
在其中一个实施例中,所述处理器执行的所述获取请求队列中的聚类请求,按照规则对同一账户对应的聚类请求进行合并包括:In one embodiment, the clustering request in the acquisition request queue executed by the processor, and the clustering request corresponding to the same account according to the rule is merged, including:
根据预设时段获取请求队列中的聚类请求,按照规则对所述同一账户对应的在所述预设时段内的聚类请求进行合并。Acquiring the clustering request in the request queue according to the preset time period, and combining the clustering requests in the preset time period corresponding to the same account according to the rule.
在又一个实施例中,所述处理器执行的所述按照规则对同一账户对应的聚类请求进行合并包括:In still another embodiment, the performing, by the processor, combining the clustering requests corresponding to the same account according to the rules includes:
将所述同一账户对应的聚类请求按终端标识进行分类;And classifying the clustering request corresponding to the same account by the terminal identifier;
获取每一类聚类请求中的目标聚类请求,并将获取的目标聚类请求进行合并,其中所述目标聚类请求为每一类聚类请求中,请求时间距离当前时间的间隔最小的聚类请求。Obtaining a target clustering request in each type of clustering request, and merging the acquired target clustering requests, wherein the target clustering request is the smallest interval between the request time and the current time in each type of clustering request Clustering request.
在本申请提供的实施例中,所述处理器执行的所述对合并后的聚类请求进行处理,包括:In the embodiment provided by the application, the processing, by the processor, the processing of the merged clustering request includes:
发送所述聚类请求,和/或,根据所述聚类请求,对所述终端的图像进行聚类处理。Sending the clustering request, and/or performing clustering processing on the image of the terminal according to the clustering request.
在其中一个实施例中,所述处理器执行的所述方法还包括:In one embodiment, the method performed by the processor further includes:
根据对聚类请求进行处理得到的处理结果生成标签数据。The tag data is generated based on the processing result obtained by processing the clustering request.
图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 the processor to implement a clustering 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 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.
在本申请实施例中,该手机1300所包括的处理器1380执行存储在存储器上的计算机程序时实现上述图像处理方法。In the embodiment of the present application, the processor 1380 included in the mobile phone 1300 implements the above image processing method 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 invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (27)

  1. 一种图像处理方法,其特征在于,所述方法包括:An image processing method, the method comprising:
    获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类;Obtaining a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
    按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
    对合并后的聚类请求进行处理。The merged cluster request is processed.
  2. 根据权利要求1所述的图像处理方法,其特征在于,所述按照规则对同一账户对应的聚类请求进行合并包括:The image processing method according to claim 1, wherein the merging the clustering requests corresponding to the same account according to the rules comprises:
    根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取所述请求队列中的首位聚类请求;Arranging the clustering requests in the request queue according to the request initiation time in a first-to-last order, and acquiring the first clustering request in the request queue;
    获取所述请求队列中与所述首位聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the first clustering request, and merging the acquired clustering requests.
  3. 根据权利要求1所述的图像处理方法,其特征在于,所述按照规则对同一账户对应的聚类请求进行合并包括:The image processing method according to claim 1, wherein the merging the clustering requests corresponding to the same account according to the rules comprises:
    根据请求发起时间将所述请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the request initiation time, and obtaining the specified clustering request in the sorted request queue;
    获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
  4. 根据权利要求1所述的图像处理方法,其特征在于,所述按照规则对同一账户对应的聚类请求进行合并包括:The image processing method according to claim 1, wherein the merging the clustering requests corresponding to the same account according to the rules comprises:
    根据请求发起设备的优先级将所述请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the priority of the requesting device, and obtaining the specified clustering request in the sorted request queue;
    获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
  5. 根据权利要求3或4所述的图像处理方法,其特征在于,所述获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求包括:The image processing method according to claim 3 or 4, wherein the acquiring the clustering request in the request queue that is the same as the account corresponding to the specified clustering request comprises:
    统计所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数;Counting, in the request queue, the number of clustering requests that are the same as the account corresponding to the specified clustering request;
    若所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数超过预设个数,则获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求;If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request exceeds a preset number, acquiring the same number of accounts in the request queue corresponding to the specified clustering request Class request
    若所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数小于预设个数,则进入等待状态;在进入等待状态的时间超过预设时间时,停止等待,并获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求。If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request is less than the preset number, the waiting state is entered; when the waiting time exceeds the preset time, the waiting is stopped. And acquiring a clustering request in the request queue that is the same as the account corresponding to the specified clustering request.
  6. 根据权利要求1所述的图像处理方法,其特征在于,所述获取请求队列中的聚类请求,按照规则对同一账户对应的聚类请求进行合并包括:The image processing method according to claim 1, wherein the acquiring the clustering request in the request queue and merging the clustering requests corresponding to the same account according to the rules comprises:
    根据预设时段获取请求队列中的聚类请求,按照规则对所述同一账户对应的在所述预设时段内的聚类请求进行合并。Acquiring the clustering request in the request queue according to the preset time period, and combining the clustering requests in the preset time period corresponding to the same account according to the rule.
  7. 根据权利要求1所述的图像处理方法,其特征在于,所述按照规则对同一账户对应的聚类请求进行合并包括:The image processing method according to claim 1, wherein the merging the clustering requests corresponding to the same account according to the rules comprises:
    将同一账户对应的聚类请求按终端标识进行分类;The clustering request corresponding to the same account is classified according to the terminal identifier;
    获取每一类聚类请求中的目标聚类请求,并将获取的目标聚类请求进行合并,其中所述目标聚类请求为每一类聚类请求中,请求时间距离当前时间的间隔最小的聚类请求。Obtaining a target clustering request in each type of clustering request, and merging the acquired target clustering requests, wherein the target clustering request is the smallest interval between the request time and the current time in each type of clustering request Clustering request.
  8. 根据权利要求1-7任一所述的图像处理方法,其特征在于,所述对合并后的聚类请求进行处理,包括:The image processing method according to any one of claims 1 to 7, wherein the processing of the merged clustering request comprises:
    发送所述聚类请求,和/或,根据所述聚类请求,对所述终端的图像进行聚类处理。Sending the clustering request, and/or performing clustering processing on the image of the terminal according to the clustering request.
  9. 根据权利要求1所述的图像处理方法,其特征在于,所述方法还包括:The image processing method according to claim 1, wherein the method further comprises:
    根据对聚类请求进行处理得到的处理结果生成标签数据。The tag data is generated based on the processing result obtained by processing the clustering request.
  10. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作: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 clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
    按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
    对合并后的聚类请求进行处理。The merged cluster request is processed.
  11. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer device according to claim 10, wherein when the processor performs the merging of clustering requests corresponding to the same account according to rules, the processor further performs the following operations:
    根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取所述请求队列中的首位聚类请求;Arranging the clustering requests in the request queue according to the request initiation time in a first-to-last order, and acquiring the first clustering request in the request queue;
    获取所述请求队列中与所述首位聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the first clustering request, and merging the acquired clustering requests.
  12. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer device according to claim 10, wherein when the processor performs the merging of clustering requests corresponding to the same account according to rules, the processor further performs the following operations:
    根据请求发起时间将所述请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the request initiation time, and obtaining the specified clustering request in the sorted request queue;
    获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
  13. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer device according to claim 10, wherein when the processor performs the merging of clustering requests corresponding to the same account according to rules, the processor further performs the following operations:
    根据请求发起设备的优先级将所述请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the priority of the requesting device, and obtaining the specified clustering request in the sorted request queue;
    获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
  14. 根据权利要求12或13所述的计算机设备,其特征在于,所述处理器执行所述获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求时,还执行如下操作:The computer device according to claim 12 or 13, wherein the processor performs the following operation when performing the clustering request that acquires the same account in the request queue corresponding to the specified clustering request :
    统计所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数;Counting, in the request queue, the number of clustering requests that are the same as the account corresponding to the specified clustering request;
    若所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数超过预设个数,则获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求;If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request exceeds a preset number, acquiring the same number of accounts in the request queue corresponding to the specified clustering request Class request
    若所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数小于预设个数,则进入等待状态;在进入等待状态的时间超过预设时间时,停止等待,并获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求。If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request is less than the preset number, the waiting state is entered; when the waiting time exceeds the preset time, the waiting is stopped. And acquiring a clustering request in the request queue that is the same as the account corresponding to the specified clustering request.
  15. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述获取请求队列中的聚类请求,按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer device according to claim 10, wherein the processor performs a clustering request in the acquisition request queue, and when the clustering request corresponding to the same account is combined according to a rule, the following operations are also performed:
    根据预设时段获取请求队列中的聚类请求,按照规则对所述同一账户对应的在所述预设时段内的聚类请求进行合并。Acquiring the clustering request in the request queue according to the preset time period, and combining the clustering requests in the preset time period corresponding to the same account according to the rule.
  16. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer device according to claim 10, wherein when the processor performs the merging of clustering requests corresponding to the same account according to rules, the processor further performs the following operations:
    将同一账户对应的聚类请求按终端标识进行分类;The clustering request corresponding to the same account is classified according to the terminal identifier;
    获取每一类聚类请求中的目标聚类请求,并将获取的目标聚类请求进行合并,其中所述目标聚类请求为每一类聚类请求中,请求时间距离当前时间的间隔最小的聚类请求。Obtaining a target clustering request in each type of clustering request, and merging the acquired target clustering requests, wherein the target clustering request is the smallest interval between the request time and the current time in each type of clustering request Clustering request.
  17. 根据权利要求10-16任一所述的计算机设备,其特征在于,所述处理器执行所述对合并后的聚类请求进行处理,时,还执行如下操作:The computer device according to any one of claims 10-16, wherein the processor performs the processing of the merged clustering request, and further performs the following operations:
    发送所述聚类请求,和/或,根据所述聚类请求,对所述终端的图像进行聚类处理。Sending the clustering request, and/or performing clustering processing on the image of the terminal according to the clustering request.
  18. 根据权利要求10所述的计算机设备,其特征在于,所述处理器还执行如下操作:The computer device of claim 10, wherein the processor further performs the following operations:
    根据对聚类请求进行处理得到的处理结果生成标签数据。The tag data is generated based on the processing result obtained by processing the clustering request.
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行如下操作:A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by the processor as follows:
    获取请求队列中的聚类请求,其中所述请求队列包括顺序排列的聚类请求,所述聚类请求用于指示对终端的图像进行聚类;Obtaining a clustering request in a request queue, where the request queue includes a clustering request that is sequentially arranged, and the clustering request is used to indicate that the image of the terminal is clustered;
    按照规则对同一账户对应的聚类请求进行合并;Merging clustering requests corresponding to the same account according to rules;
    对合并后的聚类请求进行处理。The merged cluster request is processed.
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer readable storage medium according to claim 19, wherein when the computer program is executed by the processor to merge the clustering requests corresponding to the same account according to rules, the computer program further performs the following operations:
    根据请求发起时间由先到后的顺序将请求队列中的聚类请求进行排列,获取所述请求队列中的首位聚类请求;Arranging the clustering requests in the request queue according to the request initiation time in a first-to-last order, and acquiring the first clustering request in the request queue;
    获取所述请求队列中与所述首位聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the first clustering request, and merging the acquired clustering requests.
  21. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer readable storage medium according to claim 19, wherein when the computer program is executed by the processor to merge the clustering requests corresponding to the same account according to rules, the computer program further performs the following operations:
    根据请求发起时间将所述请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the request initiation time, and obtaining the specified clustering request in the sorted request queue;
    获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
  22. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer readable storage medium according to claim 19, wherein when the computer program is executed by the processor to merge the clustering requests corresponding to the same account according to rules, the computer program further performs the following operations:
    根据请求发起设备的优先级将所述请求队列中的聚类请求进行排序,并获取排序后的请求队列中的指定聚类请求;Sorting the clustering requests in the request queue according to the priority of the requesting device, and obtaining the specified clustering request in the sorted request queue;
    获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求,并将获取的聚类请求进行合并。Obtaining the same clustering request in the request queue as the account corresponding to the specified clustering request, and merging the acquired clustering requests.
  23. 根据权利要求21或22所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求时,还执行如下操作:A computer readable storage medium according to claim 21 or 22, wherein said computer program is executed by said processor to acquire said same number of accounts in said request queue corresponding to said specified clustering request When the class requests, it also performs the following operations:
    统计所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数;Counting, in the request queue, the number of clustering requests that are the same as the account corresponding to the specified clustering request;
    若所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数超过预设个数,则获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求;If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request exceeds a preset number, acquiring the same number of accounts in the request queue corresponding to the specified clustering request Class request
    若所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求的个数小于预设个数,则进入等待状态;在进入等待状态的时间超过预设时间时,停止等待,并获取所述请求队列中与所述指定聚类请求对应的账户相同的聚类请求。If the number of clustering requests in the request queue that are the same as the account corresponding to the specified clustering request is less than the preset number, the waiting state is entered; when the waiting time exceeds the preset time, the waiting is stopped. And acquiring a clustering request in the request queue that is the same as the account corresponding to the specified clustering request.
  24. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述获取请求队列中的聚类请求,按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer readable storage medium according to claim 19, wherein said computer program is executed by said processor to perform a clustering request in said acquisition request queue, and merges clustering requests corresponding to the same account according to rules At the same time, the following operations are also performed:
    根据预设时段获取请求队列中的聚类请求,按照规则对所述同一账户对应的在所述预设时段内的聚类请求进行合并。Acquiring the clustering request in the request queue according to the preset time period, and combining the clustering requests in the preset time period corresponding to the same account according to the rule.
  25. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述按照规则对同一账户对应的聚类请求进行合并时,还执行如下操作:The computer readable storage medium according to claim 19, wherein when the computer program is executed by the processor to merge the clustering requests corresponding to the same account according to rules, the computer program further performs the following operations:
    将同一账户对应的聚类请求按终端标识进行分类;The clustering request corresponding to the same account is classified according to the terminal identifier;
    获取每一类聚类请求中的目标聚类请求,并将获取的目标聚类请求进行合并,其中所述目标聚类请求为每一类聚类请求中,请求时间距离当前时间的间隔最小的聚类请求。Obtaining a target clustering request in each type of clustering request, and merging the acquired target clustering requests, wherein the target clustering request is the smallest interval between the request time and the current time in each type of clustering request Clustering request.
  26. 根据权利要求19-25任一所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行所述对合并后的聚类请求进行处理,时,还执行如下操作:The computer readable storage medium according to any one of claims 19-25, wherein the computer program is executed by the processor to perform the processing on the merged clustering request, and further, the following operations are performed:
    发送所述聚类请求,和/或,根据所述聚类请求,对所述终端的图像进行聚类处理。Sending the clustering request, and/or performing clustering processing on the image of the terminal according to the clustering request.
  27. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:A computer readable storage medium according to claim 19, wherein said computer program is executed by said processor such that said processor further performs the following operations:
    根据对聚类请求进行处理得到的处理结果生成标签数据。The tag data is generated based on the processing result obtained by processing the clustering request.
PCT/CN2018/103522 2017-09-20 2018-08-31 Image processing method, and computer device, and computer-readable storage medium WO2019056938A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710854675.6A CN107666515B (en) 2017-09-20 2017-09-20 Image processing method and device, computer equipment, computer readable storage medium
CN201710854675.6 2017-09-20

Publications (1)

Publication Number Publication Date
WO2019056938A1 true WO2019056938A1 (en) 2019-03-28

Family

ID=61097789

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103522 WO2019056938A1 (en) 2017-09-20 2018-08-31 Image processing method, and computer device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN107666515B (en)
WO (1) WO2019056938A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111816287A (en) * 2020-07-19 2020-10-23 贵州精准健康数据有限公司 Regional ultrasonic dynamic consultation system
CN113965772A (en) * 2021-10-29 2022-01-21 北京百度网讯科技有限公司 Live video processing method and device, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666515B (en) * 2017-09-20 2019-07-09 Oppo广东移动通信有限公司 Image processing method and device, computer equipment, computer readable storage medium
CN109886239B (en) * 2019-02-28 2021-05-04 北京旷视科技有限公司 Portrait clustering method, device and system
CN110390464B (en) * 2019-06-14 2023-09-22 平安科技(深圳)有限公司 Task allocation method, device, computer equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070079044A1 (en) * 2005-07-11 2007-04-05 Nvidia Corporation Packet Combiner for a Packetized Bus with Dynamic Holdoff time
CN102395108A (en) * 2011-11-28 2012-03-28 苏州迈普信息技术有限公司 Cooperated rescue method based on mobile localization
CN105791148A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 System and method for automatically equalizing load of server
US20160308792A1 (en) * 2015-04-14 2016-10-20 International Business Machines Corporation Pre-staging messages at a remote location
CN106202456A (en) * 2016-07-13 2016-12-07 广东欧珀移动通信有限公司 Send the method and device of picture
CN106484713A (en) * 2015-08-27 2017-03-08 中国石油化工股份有限公司 A kind of based on service-oriented Distributed Request Processing system
CN107666515A (en) * 2017-09-20 2018-02-06 广东欧珀移动通信有限公司 Image processing method and device, computer equipment, computer-readable recording medium
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8483669B2 (en) * 2009-04-03 2013-07-09 Microsoft Corporation Mobile sensor network
CN101604437A (en) * 2009-07-22 2009-12-16 阿里巴巴集团控股有限公司 Account is real time processing system and account batch real-time processing method in batches
CN103544251B (en) * 2013-10-14 2017-06-16 白天 Multi-source image processing method and its device
CN106547890B (en) * 2016-11-04 2018-04-03 深圳云天励飞技术有限公司 Quick clustering preprocess method in large nuber of images characteristic vector

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070079044A1 (en) * 2005-07-11 2007-04-05 Nvidia Corporation Packet Combiner for a Packetized Bus with Dynamic Holdoff time
CN102395108A (en) * 2011-11-28 2012-03-28 苏州迈普信息技术有限公司 Cooperated rescue method based on mobile localization
CN105791148A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 System and method for automatically equalizing load of server
US20160308792A1 (en) * 2015-04-14 2016-10-20 International Business Machines Corporation Pre-staging messages at a remote location
CN106484713A (en) * 2015-08-27 2017-03-08 中国石油化工股份有限公司 A kind of based on service-oriented Distributed Request Processing system
CN106202456A (en) * 2016-07-13 2016-12-07 广东欧珀移动通信有限公司 Send the method and device of picture
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
CN107666515A (en) * 2017-09-20 2018-02-06 广东欧珀移动通信有限公司 Image processing method and device, computer equipment, computer-readable recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111816287A (en) * 2020-07-19 2020-10-23 贵州精准健康数据有限公司 Regional ultrasonic dynamic consultation system
CN111816287B (en) * 2020-07-19 2023-12-15 贵州精准健康数据有限公司 Regional ultrasonic dynamic consultation system
CN113965772A (en) * 2021-10-29 2022-01-21 北京百度网讯科技有限公司 Live video processing method and device, electronic equipment and storage medium
CN113965772B (en) * 2021-10-29 2024-05-10 北京百度网讯科技有限公司 Live video processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107666515A (en) 2018-02-06
CN107666515B (en) 2019-07-09

Similar Documents

Publication Publication Date Title
WO2019056938A1 (en) Image processing method, and computer device, and computer-readable storage medium
CN107729815B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
WO2019052354A1 (en) Image processing method and system, and computer device
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
WO2019052351A1 (en) Image processing method and system, and computer device
CN107679560B (en) Data transmission method and device, mobile terminal and computer readable storage medium
WO2019051797A1 (en) Image processing method and apparatus, computer device, 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
WO2019001348A1 (en) Object interception method, terminal, server and storage medium
EP3493112A1 (en) Image processing method, computer device, and computer readable storage medium
WO2019052319A1 (en) Data transmission method, mobile terminal and computer-readable storage medium
US10970522B2 (en) Data processing method, electronic device, and computer-readable storage medium
US11314803B2 (en) Method for image-processing and mobile terminal
WO2019052436A1 (en) Image processing method, computer-readable storage medium and mobile terminal
WO2023173666A1 (en) Facial recognition payment method and apparatus, electronic device, storage medium, program and product
CN108021669B (en) Image classification method and device, electronic equipment and computer-readable storage medium
WO2019096207A1 (en) Image processing method and computer device, and computer readable storage medium
CN106657281B (en) File sharing method and device
WO2019051799A1 (en) Image processing method and apparatus, mobile terminal, server, and storage medium
CN113285940B (en) Equipment connection method and device
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: 18859921

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

Country of ref document: EP

Kind code of ref document: A1