WO2019052316A1 - Image processing method and apparatus, computer-readable storage medium and mobile terminal - Google Patents

Image processing method and apparatus, computer-readable storage medium and mobile terminal Download PDF

Info

Publication number
WO2019052316A1
WO2019052316A1 PCT/CN2018/101502 CN2018101502W WO2019052316A1 WO 2019052316 A1 WO2019052316 A1 WO 2019052316A1 CN 2018101502 W CN2018101502 W CN 2018101502W WO 2019052316 A1 WO2019052316 A1 WO 2019052316A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
face
clustering
mobile terminal
target
Prior art date
Application number
PCT/CN2018/101502
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 WO2019052316A1 publication Critical patent/WO2019052316A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Definitions

  • the present application relates to the field of computer technology, and in particular, to an image processing method, apparatus, computer readable storage medium, and mobile terminal.
  • the functions of intelligent mobile terminals are more and more complete, and the performance in smart mobile is more and more perfect.
  • the smart mobile terminal can upload the image captured by the user to the server, so that the server classifies according to the image information.
  • the images are grouped according to the image time information, or according to the image location information, or according to the face information contained in the image, so that the user can view the images in different categories.
  • the embodiment of the present application provides an image processing method, apparatus, computer readable storage medium, and mobile terminal, which can cluster images according to facial feature information.
  • An image processing method comprising:
  • the receiving the image clustering request includes:
  • An image processing apparatus comprising:
  • a first acquiring module configured to: when receiving an image clustering request, acquire a target facial image corresponding to the image clustering request;
  • a second acquiring module configured to acquire first facial feature information in the target facial image
  • a clustering module configured to cluster the target facial image according to the first facial feature information
  • the receiving the image clustering request includes:
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the operations of the methods described above.
  • a mobile terminal comprising a memory and a processor, the memory storing computer readable instructions that, when executed by the processor, cause the processor to operate as described above.
  • the image processing method, the device, the computer readable storage medium, and the mobile terminal acquire a corresponding target face image according to the image clustering request when receiving different image clustering requests, and implement different image clustering requests to obtain different images.
  • the target face image does not acquire all images in the mobile terminal, saves mobile terminal resources, and reduces mobile terminal resource consumption.
  • FIG. 1 is a schematic diagram of an application environment of an image processing method in an embodiment
  • FIG. 2 is a sequence diagram of interaction between the mobile terminal 110 of FIG. 1 and the first server 120 and the second server 130 in an embodiment
  • FIG. 3 is a flow chart of an image processing method in an embodiment
  • FIG. 4 is a block diagram showing the structure of an image processing apparatus in an embodiment
  • Figure 5 is a block diagram showing the structure of an image processing apparatus in another embodiment
  • FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application.
  • first, second and the like 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.
  • the first acquisition module may be referred to as a second acquisition module without departing from the scope of the present application, and similarly, the second acquisition module may be referred to as a first acquisition module. Both the first acquisition module and the second acquisition module are acquisition modules, but they are not the same acquisition module.
  • FIG. 1 is a schematic diagram of an application environment of an image processing method in an embodiment.
  • the application environment includes a mobile terminal 110, a first server 120, and a second server 130.
  • Images can be stored in the memory of the mobile terminal 110 and the SD (Secure Digital Memory Card) card.
  • the mobile terminal 110 can perform face recognition on the image and extract a face image included in the stored image.
  • the mobile terminal 110 may extract face feature information in the face image according to the feature recognition model, and perform similarity matching on the extracted face feature information, thereby clustering the face image.
  • the mobile terminal 110 may also upload the face image to the first server 120.
  • the first server 120 extracts the face feature information in the face image according to the feature recognition model, and uploads the extracted face feature information to the second server 130, the second server. 130 may cluster the facial feature information uploaded by the first server 120.
  • the second server 130 may return the result of clustering the facial feature information to the mobile terminal 110, so that the mobile terminal 110 clusters the clustering result of the second server 130 with the face image and the clustering result of the mobile terminal 110 with the face image. Compare.
  • the feature recognition models of the mobile terminal 110 and the second server 130 may be the same or different.
  • the first server 120 and the second server 130 may be the same server, ie the mobile terminal 110 will recognize the face image upload server.
  • the server performs face feature recognition on the received face image to obtain face feature information, and the server clusters the face feature information, and sends the clustering result to the mobile terminal 110.
  • FIG. 2 is a sequence diagram of interaction between the mobile terminal 110 of FIG. 1 and the first server 120 and the second server 130 in one embodiment.
  • the process of interacting with the first server 120 and the second server 130 by the mobile terminal 110 mainly includes the following operations:
  • the mobile terminal 110 detects the feature recognition model update and clusters the face image set in the mobile terminal 110.
  • the face image stored in the mobile terminal 110 may be acquired, and the updated feature recognition model is used to extract the face feature information in the face image, and the face feature information is performed. Clustering.
  • the mobile terminal 110 detects that the mobile terminal 110 adds an image and clusters the newly added image.
  • the mobile terminal 110 detects that there is a new image, and the newly added image includes a human face, the face feature information in the newly added image is extracted, and the face feature information of the newly added image and the person who has clustered the face image are added. Face feature information is matched to cluster new images.
  • the mobile terminal 110 uploads the face image to the first server 120.
  • the mobile terminal 110 may upload the face image included in the image stored by the mobile terminal 110 to the first server 120.
  • the mobile terminal 110 may upload the face image included in the memory storage image to the first server 120, and the mobile terminal 110 may also upload the face image included in the SD card storage image to the first server 120, and the mobile terminal 110 also The memory image and the face image included in the SD card storage image may be uploaded to the first server 120.
  • the first server 120 extracts face feature information in the face image.
  • the first server 120 may extract the face feature information from the face image according to the feature recognition model.
  • the face feature recognition model in the mobile terminal 110 and the face feature recognition model in the server may be the same or different.
  • the first server 120 transmits the face feature information to the second server 130.
  • the first server 120 sends the acquired facial feature information to the second server 130, so that the second server 130 can perform clustering according to the facial feature information.
  • the mobile terminal 110 transmits a clustering request to the second server 130.
  • the clustering request may be sent to the second server 130.
  • the second server 130 clusters the face feature information.
  • the second server 130 may cluster the facial feature information.
  • the clustering of the facial feature information by the second server 130 includes: matching the facial feature information to the similarity degree, and if the similarity exceeds the specified value, dividing the facial feature information into a group.
  • the algorithm for clustering the face feature information by the mobile terminal 110 and the algorithm for clustering the face feature information by the second server 130 may be the same or different.
  • the second server 130 returns the clustering result to the mobile terminal 110.
  • the clustering result may be sent to the mobile terminal 110.
  • the mobile terminal 110 updates the cluster information of the image in the mobile terminal 110 according to the clustering result sent by the second server 130, and clusters the un-uploaded face image.
  • the mobile terminal 110 may cluster the face image uploaded by the first server 120 according to the clustering result.
  • the mobile terminal 110 may also acquire facial feature information of the un-uploaded face image, and cluster the un-uploaded face image.
  • the mobile terminal and the server can perform feature recognition on the face image, acquire face feature information, and perform face clustering on the face image according to the face feature information.
  • 3 is a flow chart of an image processing method in one embodiment. As shown in FIG. 3, an image processing method is applied to a mobile terminal, including:
  • Operation 302 when receiving an image clustering request, acquiring a target face image corresponding to the image clustering request.
  • the mobile terminal may acquire the target face image corresponding to the image clustering request.
  • the receiving, by the mobile terminal, the image clustering request includes:
  • the first image clustering request is triggered when the mobile terminal detects the feature recognition model update; the mobile terminal triggers the second image clustering request when receiving the image clustering information sent by the server; the mobile terminal detects the new image
  • the third image clustering request is triggered.
  • the feature recognition model can be used to extract face feature information from the face image, and the mobile terminal can cluster the face image according to the extracted face feature information.
  • the server can send a new version of feature recognition to the mobile terminal.
  • the mobile terminal installs a new version of the feature recognition model according to the server
  • the new version of the feature recognition model is issued for feature recognition model update.
  • the server After receiving the face image uploaded by the mobile terminal, the server performs feature recognition on the face image according to the feature recognition model, acquires face feature information, and then clusters the face feature information, and the image clustering result sent by the server to the mobile terminal That is, the first cluster information delivered by the server.
  • the feature recognition model of the mobile terminal and the feature recognition model of the server may be the same or different.
  • the face image of the mobile terminal upload server is a face image stored in the memory of the mobile terminal.
  • the image clustering information includes an image ID (Identification, ID card) and an image grouping mark. After receiving the image clustering information, the mobile terminal searches for an image according to the image ID, and divides the image into corresponding groups according to the image grouping mark.
  • the mobile terminal may acquire the target face image corresponding to the image clustering request.
  • the above target face image is the face image to be clustered.
  • the mobile terminal acquires all the images stored in the current mobile terminal, including the memory image and the SD card storage image.
  • a face scan is performed on the memory image and the SD card storage image to identify the face image included in the memory image and the SD card storage image.
  • the above-mentioned face scanning refers to recognizing a face from an image according to a face recognition algorithm, and acquiring a included face image.
  • the mobile terminal may upload the face image included in the memory image to the server, and the server performs feature recognition on the acquired face image according to the feature recognition model to obtain the facial feature in the face image.
  • the information is used to cluster the face image according to the face feature information, and the image clustering information is sent to the mobile terminal.
  • the mobile terminal adds an image
  • the mobile terminal acquires a new image, performs face scanning on the newly added image, and recognizes the face image included in the newly added image.
  • the target face image is the first face image set in the mobile terminal, that is, the mobile terminal memory and the face image stored in the SD card.
  • the target face image is a face image other than the second face image set in the first face image set.
  • face recognition is performed on the newly added image. If the newly added image includes a face, the new image is added as the target face image.
  • Operation 304 Acquire first face feature information in the target face image.
  • the mobile terminal may identify the target face image feature according to the feature recognition model, and extract the first face feature information in the target face image.
  • the face feature information refers to information for identifying a unique face, including contour features of a face, facial features, and the like.
  • Operation 306 clustering the target face image according to the first face feature information.
  • the target facial image After acquiring the first facial feature information of the target facial image, the target facial image may be clustered according to the first facial feature information.
  • the mobile terminal directly performs similarity matching on the first facial feature information of the first facial image set, and clusters the first facial feature information according to the matching result.
  • the mobile terminal After receiving the first cluster information sent by the server, the mobile terminal may perform similarity matching on the first face feature information of the target face image and the face feature information of the second face image set, according to the matching result.
  • a face feature information is clustered.
  • the mobile terminal may perform similarity matching between the first facial feature information of the target facial image and the facial feature information of the clustered facial image, and the first facial feature information according to the matching result. Perform clustering.
  • the image processing method in the embodiment of the present application when receiving different image clustering requests, acquires a corresponding target face image according to the image clustering request, and implements different image clustering requests to acquire different target face images, which are not acquired. All images in the mobile terminal save mobile terminal resources and reduce mobile terminal resource consumption.
  • the first image clustering request is received, and the acquiring the first facial feature information in the target facial image includes: performing facial recognition on the target facial image according to the updated feature recognition model, and acquiring the first facial face. Feature information; or, the stored face feature information of the target face image is converted into the first face feature information according to the feature information conversion model.
  • the mobile terminal may acquire the set of the face image in the stored image as the target face image, that is, the memory image and the SD in the mobile terminal.
  • the set of face images in the card image serves as the target face image.
  • the mobile terminal may perform face recognition on the target face image by using the updated feature recognition model to acquire first face feature information in the target face image.
  • the face feature information extracted by the updated feature recognition model is inconsistent with the face feature information extracted by the original feature recognition model.
  • the mobile terminal may The re-extracted first face feature information clusters the target face image.
  • the mobile terminal may convert the stored face feature information of the target face image into the face feature information corresponding to the updated feature recognition model, that is, the target face image.
  • the stored face feature information is converted into the first face feature information.
  • the mobile terminal may re-cluster the target facial image according to the first facial feature information.
  • the image processing method in the embodiment of the present application re-extracts the face feature information of the face image after the feature recognition model is updated in the mobile terminal. After the feature recognition model is updated, the face images are clustered in time, which improves the timeliness of face image clustering.
  • acquiring the target facial image corresponding to the image clustering request includes: acquiring a facial image other than the second facial image set in the first facial image set as the target person a face image; performing clustering on the target face image according to the first face feature information includes: matching the first face feature information with the second face feature information in the second image set, if the similarity exceeds a preset value, Obtaining a first image corresponding to the second facial feature information, and dividing the target facial image into corresponding clustering packets of the first image in the first clustering information.
  • the mobile terminal can upload the face image in the memory image to the server, and the server can perform image clustering on the received face image, and send the clustering result to the mobile terminal. If the mobile terminal detects that the image clustering information is sent by the server, and the image set corresponding to the image clustering information sent by the server is not equal to the first facial image set, the mobile terminal second party is updated according to the image clustering information sent by the server. The clustering information of the face image set, and then acquiring the face image other than the second face image set in the first face image set, that is, the face image in the SD card and the memory person not included in the image clustering information sent by the server Face image.
  • the mobile terminal can acquire the facial feature information of the target facial image, and perform similarity matching between the facial feature information of the target facial image and the facial feature information of the second facial image set. If the similarity is greater than a preset threshold, And dividing the target face image into a cluster group corresponding to the face feature information of the second face image set.
  • the image processing method in the embodiment of the present invention after receiving the image clustering information sent by the server, clusters the face image of the un-uploaded server by using the image clustering information sent by the server as a standard, and improves the face of the face.
  • the accuracy of image clustering after receiving the image clustering information sent by the server, clusters the face image of the un-uploaded server by using the image clustering information sent by the server as a standard, and improves the face of the face.
  • the mobile terminal after receiving the image clustering information sent by the server, the mobile terminal updates the local image clustering information according to the image clustering information sent by the server. If the image clustering information sent by the server is inconsistent with the local image clustering information, detecting whether the image has a user operation flag in the local image clustering information, and if so, the mobile terminal saves the image. Local clustering information, and uploading local clustering information of the image to the server, so that the server overwrites the original image clustering information with the local clustering information of the image; if not, the mobile terminal overwrites the local with the image clustering information sent by the cloud Image clustering information.
  • the image processing method of the embodiment of the present application when the image clustering information of the mobile terminal is updated according to the image clustering information sent by the server, if the image clustering result of the same image is detected to be different, and the clustering result on the mobile terminal is When the user operates, the user operation is retained, and the clustering information of the user operation is uploaded to the server.
  • the above method not only ensures multi-end data synchronization between the mobile terminal and the server, but also avoids data confusion, and retains user operations, thereby improving user stickiness.
  • acquiring the target facial image corresponding to the image clustering request includes: performing face recognition on the newly added image, and if the newly added image includes a human face, the person is included The new image of the face is used as the target face image.
  • the face scan is performed on the newly added image to identify whether the newly added image is a face image, and if so, the face feature information in the newly added image is acquired; if not, the new image is not made. deal with.
  • the facial feature information of the clustered image of the newly added image is compared with the similarity degree, and if the similarity exceeds the preset value, the new image is divided. Image clustering corresponding to the clustered image.
  • the information processing method in the embodiment of the present application compares the face feature information of the newly added image with the face feature information of the clustered image when detecting the newly added image of the mobile terminal, thereby ensuring the aggregation of the newly added image. Timeliness of the class.
  • the mobile terminal when the mobile terminal stores the image to be deleted, the mobile terminal detects whether the image has image clustering information, and if so, deletes the image clustering information corresponding to the image.
  • the first group Group1 in the mobile terminal includes an image 1.jpg
  • the second group Group2 also includes an image 1.jpg.
  • the image 1.jpg is deleted from the mobile terminal, it corresponds to the first group Group1 and the second group Group.
  • the image 1.jpg is deleted, that is, the image 1.jpg is no longer displayed in the first group Group1 and the second group Group2 of the mobile terminal album.
  • the target face image corresponding to the image clustering request before acquiring the target face image corresponding to the image clustering request, when at least one of the following conditions is met, the target face image corresponding to the image clustering request is acquired:
  • the current time is the preset time.
  • the mobile terminal is in a charging state.
  • the mobile terminal may detect whether the current condition meets the preset condition, and if the current condition is met, the target face image corresponding to the image clustering request is acquired; if the current condition is detected, When the preset condition is met, when the mobile terminal satisfies the preset condition, the image to be scanned is determined according to the type of the face scan.
  • the mobile terminal after receiving the image clustering request, the mobile terminal detects whether the current condition meets the preset condition. If not, the mobile terminal detects whether the current condition meets the preset condition according to the preset time interval.
  • the mobile terminal detects whether the current condition meets the preset condition according to the preset time interval. If the mobile terminal detects that the mobile terminal meets the preset condition, and then detects whether the mobile terminal receives the image clustering request, if the mobile terminal receives the The image clustering request acquires a target face image corresponding to the image clustering request.
  • the foregoing preset condition includes: acquiring a time when the mobile terminal last acquired the target face image, and detecting a time difference between the current time and the last time the target face image is acquired exceeds a preset duration.
  • the preset duration is 48 hours
  • the current time is 10:18 on August 11, 2017,
  • the last time to get the target face image is 9:5 on August 8, 2017,
  • the time difference is 73 hours and 13 minutes. If the preset time is longer than 48 hours, the mobile terminal satisfies the preset condition and acquires the target face image corresponding to the image clustering request.
  • the mobile terminal may also detect whether the current time is a preset time. If the current time is the preset time, the target face image corresponding to the image clustering request is acquired.
  • the target face image corresponding to the image clustering request is acquired.
  • the mobile terminal may also acquire a target face image corresponding to the image clustering request.
  • the image processing method in the embodiment of the present application determines whether the mobile terminal satisfies a preset condition before acquiring the target face image corresponding to the image clustering request, and acquires the target face corresponding to the image clustering request when the preset condition is met.
  • image Since the mobile terminal takes a long time to cluster the image and occupies the CPU resources of the mobile terminal, the mobile terminal consumes power. Enabling mobile terminal image clustering when the mobile terminal is charging can avoid the situation that the mobile terminal consumes too much power.
  • the image clustering of the mobile terminal is started, which can avoid the situation that the mobile terminal image clustering consumes a large amount of CPU resources and causes the mobile terminal to be stuck.
  • Image clustering is performed when the time difference from the last image clustering exceeds the specified duration, which ensures the timeliness of image clustering.
  • the image processing method includes: when detecting the face information change in the target face image, reacquiring the first face feature information in the target face image, and targeting the target face according to the first face feature information. Images are clustered.
  • the mobile terminal can identify the face state of the face in the face image, and after receiving the image clustering information sent by the server, the mobile terminal can adjust the person in the face image in the mobile terminal according to the image clustering information sent by the server. Face status.
  • the mobile terminal detects that the face state changes in the target face image, for example, the face state changes from display to hidden, or changes from hidden to displayed, the mobile terminal may reacquire the first face feature information in the target face image.
  • the target face image is clustered according to the re-acquired first face feature information.
  • the image processing method in the embodiment of the present application re-acquires the face feature information in the face image when the face information is changed in the face image, and re-clusters the face image according to the face feature information in the face image. It can realize the timeliness of clustering face images.
  • FIG. 4 is a block diagram showing the structure of an image processing apparatus in an embodiment. As shown in FIG. 4, an image processing apparatus includes:
  • the first obtaining module 402 is configured to acquire a target face image corresponding to the image clustering request when receiving the image clustering request.
  • the second obtaining module 404 is configured to acquire first facial feature information in the target facial image.
  • the clustering module 406 is configured to cluster the target facial image according to the first facial feature information.
  • Receiving the image clustering request includes: receiving the first image clustering request when the feature recognition model is updated; receiving the second image clustering request when receiving the first clustering information sent by the server, where the first clustering information is a server pair The clustering information of the second face image set uploaded by the mobile terminal; when the newly added image is detected, the third clustering request is received.
  • acquiring the first facial feature information in the target facial image includes: performing face recognition on the target facial image according to the updated feature recognition model, and acquiring the first person The face feature information; or, the stored face feature information of the target face image is converted into the first face feature information according to the feature information conversion model.
  • acquiring the target facial image corresponding to the image clustering request includes: acquiring a facial image other than the second facial image set in the first facial image set as the target person a face image; performing clustering on the target face image according to the first face feature information includes: matching the first face feature information with the second face feature information in the second image set, if the similarity exceeds a preset value, Obtaining a first image corresponding to the second facial feature information, and dividing the target facial image into corresponding clustering packets of the first image in the first clustering information.
  • acquiring the target facial image corresponding to the image clustering request includes: performing face recognition on the newly added image, and if the newly added image includes a human face, the person is included The new image of the face is used as the target face image.
  • FIG. 5 is a block diagram showing the structure of an image processing apparatus in another embodiment.
  • an image processing apparatus includes a first acquisition module 502, a second acquisition module 504, a clustering module 506, and a processing module 508.
  • the first obtaining module 502, the second obtaining module 504, and the clustering module 506 have the same functions as the corresponding modules.
  • the first obtaining module 502 is further configured to acquire second cluster information of the second face set of the mobile terminal.
  • the processing module 508 is configured to process the second cluster information according to the type of the comparison result when the comparison result of the first cluster information and the second cluster information is different.
  • the first obtaining module 502 is further configured to acquire a target face image corresponding to the image clustering request if the time difference between the current time and the time when the target face image was last acquired exceeds a preset duration; or If the current time is the preset time, the target face image corresponding to the image clustering request is acquired; or the mobile terminal is in the charging state, and the target face image corresponding to the image clustering request is acquired.
  • the second obtaining module 504 is further configured to re-acquire the first facial feature information in the target facial image when detecting the change of the facial information in the target facial image.
  • the clustering module 506 is configured to cluster the target face image according to the first face feature information.
  • 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 perform an image processing method as described above .
  • the embodiment of the present application further provides a mobile terminal.
  • a mobile terminal As shown in FIG. 6 , for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application.
  • the mobile terminal can be any mobile device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, or the like, and the mobile terminal is used as a mobile phone as an example. :
  • FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, and a processor 680. And power supply 690 and other components.
  • RF radio frequency
  • the RF circuit 610 can be used for receiving and transmitting information during the transmission or reception of information, and can receive and send the downlink information of the base station, and then send the uplink data 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 610 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 Packet Radio Service
  • CDMA Code Division Multiple Access
  • the memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620.
  • the memory 620 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 620 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 630 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 600.
  • the input unit 630 may include a touch panel 631 and other input devices 632.
  • the touch panel 631 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 631 or near the touch panel 631. Operation) and drive the corresponding connection device according to a preset program.
  • the touch panel 631 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 680 is provided and can receive commands from the processor 680 and execute them.
  • the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 630 may also include other input devices 632. Specifically, other input devices 632 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 640 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 640 can include a display panel 641.
  • the display panel 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 631 can cover the display panel 641. When the touch panel 631 detects a touch operation thereon or nearby, the touch panel 631 transmits to the processor 680 to determine the type of the touch event, and then the processor 680 is The type of touch event provides a corresponding visual output on display panel 641.
  • the touch panel 631 and the display panel 641 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 631 may be integrated with the display panel 641. Realize the input and output functions of the phone.
  • the handset 600 can also include at least one type of sensor 650, 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 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 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 660, speaker 661, and microphone 662 can provide an audio interface between the user and the handset.
  • the audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 661 for conversion to the sound signal output by the speaker 661; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to another mobile phone via the RF circuit 610, or outputted to the memory 620 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 670, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone 600 and can be omitted as needed.
  • the processor 680 is the control center of the handset, and 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 620, and invoking data stored in the memory 620, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • processor 680 can include one or more processing units.
  • processor 680 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 680.
  • the handset 600 also includes a power source 690 (such as a battery) that supplies power to the various components.
  • a power source 690 such as a battery
  • the power source can be logically coupled to the processor 680 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the handset 600 may also include a camera, a Bluetooth module, and the like.
  • the processor 680 included in the mobile terminal implements the image processing method as described above when executing a computer program stored in the memory.
  • 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.

Abstract

The embodiments of the present application relate to an image processing method and apparatus, a computer-readable storage medium and a mobile terminal. The method comprises: when an image clustering request is received, acquiring a target human face image corresponding to the image clustering request; acquiring characteristic information about a first human face in the target human face image; and clustering the target human face image according to the characteristic information about the first human face. The received image clustering request comprises: when a characteristic recognition model is updated, receiving a first image clustering request; when first clustering information sent by a server is received, receiving a second image clustering request, wherein the first clustering information is the server's clustering information about a set of second human face images uploaded by a mobile terminal; and when it is detected that an image is newly added, receiving a third clustering request.

Description

图像处理方法、装置、计算机可读存储介质和移动终端Image processing method, device, computer readable storage medium, and mobile terminal
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年09月15日提交中国专利局,申请号为201710850225.X,发明名称为“图像处理方法、装置、计算机可读存储介质和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201710850225.X, filed on Sep. 15, 2017, entitled "Image Processing Method, Apparatus, Computer Readable Storage Medium, and Mobile Terminal", which The entire contents are incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种图像处理方法、装置、计算机可读存储介质和移动终端。The present application relates to the field of computer technology, and in particular, to an image processing method, apparatus, computer readable storage medium, and mobile terminal.
背景技术Background technique
随着智能移动终端的飞速发展,智能移动终端的功能越来越齐全,智能移动中的性能越来越完善。用户在采用智能移动终端拍照后,智能移动终端可将用户拍摄的图像上传服务器,使服务器根据图像信息进行分类。如根据图像时间信息、或根据图像地点信息,或根据图像中包含的人脸信息对图像进行分类,将相关联的图像分组显示,使得用户可以分门别类的查看图像。With the rapid development of intelligent mobile terminals, the functions of intelligent mobile terminals are more and more complete, and the performance in smart mobile is more and more perfect. After the user takes a picture with the smart mobile terminal, the smart mobile terminal can upload the image captured by the user to the server, so that the server classifies according to the image information. The images are grouped according to the image time information, or according to the image location information, or according to the face information contained in the image, so that the user can view the images in different categories.
发明内容Summary of the invention
本申请实施例提供一种图像处理方法、装置、计算机可读存储介质和移动终端,可以对图像按照人脸特征信息进行聚类。The embodiment of the present application provides an image processing method, apparatus, computer readable storage medium, and mobile terminal, which can cluster images according to facial feature information.
一种图像处理方法,包括:An image processing method comprising:
当接收到图像聚类请求,获取所述图像聚类请求对应的目标人脸图像;When the image clustering request is received, acquiring a target face image corresponding to the image clustering request;
获取所述目标人脸图像中第一人脸特征信息;Obtaining first facial feature information in the target facial image;
根据所述第一人脸特征信息对所述目标人脸图像进行聚类;And clustering the target face image according to the first face feature information;
所述接收到图像聚类请求包括:The receiving the image clustering request includes:
当特征识别模型更新,接收第一图像聚类请求;Receiving a first image clustering request when the feature recognition model is updated;
当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,所述第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息;Receiving, by the first cluster information sent by the server, a second image clustering request, where the first clustering information is clustering information of a second facial image set uploaded by the server to the mobile terminal;
当检测到新增图像,接收第三聚类请求。When a new image is detected, a third clustering request is received.
一种图像处理装置,包括:An image processing apparatus comprising:
第一获取模块,用于当接收到图像聚类请求,获取所述图像聚类请求对应的目标人脸图像;a first acquiring module, configured to: when receiving an image clustering request, acquire a target facial image corresponding to the image clustering request;
第二获取模块,用于获取所述目标人脸图像中第一人脸特征信息;a second acquiring module, configured to acquire first facial feature information in the target facial image;
聚类模块,用于根据所述第一人脸特征信息对所述目标人脸图像进行聚类;a clustering module, configured to cluster the target facial image according to the first facial feature information;
所述接收到图像聚类请求包括:The receiving the image clustering request includes:
当特征识别模型更新,接收第一图像聚类请求;Receiving a first image clustering request when the feature recognition model is updated;
当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,所述第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息;Receiving, by the first cluster information sent by the server, a second image clustering request, where the first clustering information is clustering information of a second facial image set uploaded by the server to the mobile terminal;
当检测到新增图像,接收第三聚类请求。When a new image is detected, a third clustering request is received.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的操作。A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the operations of the methods described above.
一种移动终端,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器如上所述的方法的操作。A mobile terminal comprising a memory and a processor, the memory storing computer readable instructions that, when executed by the processor, cause the processor to operate as described above.
上述图像处理方法、装置、计算机可读存储介质和移动终端,在接收到不同的图像聚 类请求时,根据图像聚类请求获取对应的目标人脸图像,实现不同的图像聚类请求获取不同的目标人脸图像,并非获取移动终端中所有图像,节省了移动终端资源,降低了移动终端资源消耗。The image processing method, the device, the computer readable storage medium, and the mobile terminal acquire a corresponding target face image according to the image clustering request when receiving different image clustering requests, and implement different image clustering requests to obtain different images. The target face image does not acquire all images in the mobile terminal, saves mobile terminal resources, and reduces mobile terminal resource consumption.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为一个实施例中图像处理方法的应用环境示意图;1 is a schematic diagram of an application environment of an image processing method in an embodiment;
图2为一个实施例中图1中移动终端110与第一服务器120、第二服务器130进行交互的时序图;2 is a sequence diagram of interaction between the mobile terminal 110 of FIG. 1 and the first server 120 and the second server 130 in an embodiment;
图3为一个实施例中图像处理方法的流程图;3 is a flow chart of an image processing method in an embodiment;
图4为一个实施例中图像处理装置的结构框图;4 is a block diagram showing the structure of an image processing apparatus in an embodiment;
图5为另一个实施例中图像处理装置的结构框图;Figure 5 is a block diagram showing the structure of an image processing apparatus in another embodiment;
图6为与本申请实施例提供的移动终端相关的手机的部分结构的框图。FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by 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, the first acquisition module may be referred to as a second acquisition module without departing from the scope of the present application, and similarly, the second acquisition module may be referred to as a first acquisition module. Both the first acquisition module and the second acquisition module are acquisition modules, but they are not the same acquisition module.
图1为一个实施例中图像处理方法的应用环境示意图。如图1所示,该应用环境包括移动终端110、第一服务器120和第二服务器130。移动终端110内存和SD(Secure Digital Memory Card,安全数码卡)卡中可存储图像。移动终端110可对图像进行人脸识别,提取存储的图像中所包含的人脸图像。移动终端110可根据特征识别模型提取人脸图像中人脸特征信息,在将提取出人脸特征信息进行相似度匹配,从而对人脸图像进行聚类。移动终端110还可将人脸图像上传第一服务器120,第一服务器120根据特征识别模型提取人脸图像中人脸特征信息,并将提取出人脸特征信息上传第二服务器130,第二服务器130可对第一服务器120上传的人脸特征信息进行聚类。第二服务器130可将对人脸特征信息聚类的结果返回移动终端110,以使移动终端110将第二服务器130对人脸图像的聚类结果与移动终端110对人脸图像的聚类结果进行比较。其中,移动终端110和第二服务器130的特征识别模型可相同或不同。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 mobile terminal 110, a first server 120, and a second server 130. Images can be stored in the memory of the mobile terminal 110 and the SD (Secure Digital Memory Card) card. The mobile terminal 110 can perform face recognition on the image and extract a face image included in the stored image. The mobile terminal 110 may extract face feature information in the face image according to the feature recognition model, and perform similarity matching on the extracted face feature information, thereby clustering the face image. The mobile terminal 110 may also upload the face image to the first server 120. The first server 120 extracts the face feature information in the face image according to the feature recognition model, and uploads the extracted face feature information to the second server 130, the second server. 130 may cluster the facial feature information uploaded by the first server 120. The second server 130 may return the result of clustering the facial feature information to the mobile terminal 110, so that the mobile terminal 110 clusters the clustering result of the second server 130 with the face image and the clustering result of the mobile terminal 110 with the face image. Compare. The feature recognition models of the mobile terminal 110 and the second server 130 may be the same or different.
在一个实施例中,第一服务器120和第二服务器130可为同一服务器,即移动终端110将识别出人脸图像上传服务器。服务器对接收到的人脸图像进行人脸特征识别获取人脸特征信息,服务器对人脸特征信息进行聚类,并将聚类结果发送给移动终端110。In one embodiment, the first server 120 and the second server 130 may be the same server, ie the mobile terminal 110 will recognize the face image upload server. The server performs face feature recognition on the received face image to obtain face feature information, and the server clusters the face feature information, and sends the clustering result to the mobile terminal 110.
图2为一个实施例中图1中移动终端110与第一服务器120、第二服务器130进行交互的时序图。如图2所示,移动终端110与第一服务器120、第二服务器130进行交互的过程,主要包括以下操作:FIG. 2 is a sequence diagram of interaction between the mobile terminal 110 of FIG. 1 and the first server 120 and the second server 130 in one embodiment. As shown in FIG. 2, the process of interacting with the first server 120 and the second server 130 by the mobile terminal 110 mainly includes the following operations:
(1)移动终端110检测到特征识别模型更新,对移动终端110中人脸图像集合进行聚类。(1) The mobile terminal 110 detects the feature recognition model update and clusters the face image set in the mobile terminal 110.
当移动终端110检测到移动终端110中特征识别模型更新时,可获取移动终端110 中存储的人脸图像,采用更新后特征识别模型提取人脸图像中人脸特征信息,对人脸特征信息进行聚类。When the mobile terminal 110 detects the feature recognition model update in the mobile terminal 110, the face image stored in the mobile terminal 110 may be acquired, and the updated feature recognition model is used to extract the face feature information in the face image, and the face feature information is performed. Clustering.
(2)移动终端110检测到移动终端110新增图像,对新增图像进行聚类。(2) The mobile terminal 110 detects that the mobile terminal 110 adds an image and clusters the newly added image.
当移动终端110检测到有新增图像时,且新增图像中包含人脸,则提取新增图像中人脸特征信息,将新增图像的人脸特征信息与已聚类人脸图像的人脸特征信息进行匹配,对新增图像进行聚类。When the mobile terminal 110 detects that there is a new image, and the newly added image includes a human face, the face feature information in the newly added image is extracted, and the face feature information of the newly added image and the person who has clustered the face image are added. Face feature information is matched to cluster new images.
(3)移动终端110将人脸图像上传第一服务器120。(3) The mobile terminal 110 uploads the face image to the first server 120.
移动终端110可将移动终端110存储的图像中包含的人脸图像上传到第一服务器120。其中,移动终端110可将内存存储图像中包含的人脸图像上传到第一服务器120,移动终端110也可将SD卡存储图像中包含的人脸图像上传到第一服务器120,移动终端110也可将内存存储图像和SD卡存储图像中包含的人脸图像上传到第一服务器120。The mobile terminal 110 may upload the face image included in the image stored by the mobile terminal 110 to the first server 120. The mobile terminal 110 may upload the face image included in the memory storage image to the first server 120, and the mobile terminal 110 may also upload the face image included in the SD card storage image to the first server 120, and the mobile terminal 110 also The memory image and the face image included in the SD card storage image may be uploaded to the first server 120.
(4)第一服务器120提取人脸图像中人脸特征信息。(4) The first server 120 extracts face feature information in the face image.
第一服务器120接收到移动终端110上传的人脸图像后,可根据特征识别模型从人脸图像中提取人脸特征信息。其中,移动终端110中人脸特征识别模型与服务器中人脸特征识别模型可相同或不同。After receiving the face image uploaded by the mobile terminal 110, the first server 120 may extract the face feature information from the face image according to the feature recognition model. The face feature recognition model in the mobile terminal 110 and the face feature recognition model in the server may be the same or different.
(5)第一服务器120将人脸特征信息发送给第二服务器130。(5) The first server 120 transmits the face feature information to the second server 130.
第一服务器120将获取的人脸特征信息发送给第二服务器130,以使第二服务器130可根据人脸特征信息进行聚类。The first server 120 sends the acquired facial feature information to the second server 130, so that the second server 130 can perform clustering according to the facial feature information.
(6)移动终端110向第二服务器130发送聚类请求。(6) The mobile terminal 110 transmits a clustering request to the second server 130.
移动终端110将人脸图像上传完毕后,可向第二服务器130发送聚类请求。After the mobile terminal 110 uploads the face image, the clustering request may be sent to the second server 130.
(7)第二服务器130对人脸特征信息进行聚类。(7) The second server 130 clusters the face feature information.
若第二服务器130接收到第一服务器120发送的人脸特征信息,且第二服务器130接收到移动终端110发送的聚类请求,第二服务器130可对人脸特征信息进行聚类。其中,第二服务器130对人脸特征信息进行聚类包括:将人脸特征信息进行相似度匹配,若相似度超过指定值,则将人脸特征信息划分为一组。移动终端110对人脸特征信息聚类的算法与第二服务器130对人脸特征信息聚类的算法可相同或不同。If the second server 130 receives the facial feature information sent by the first server 120, and the second server 130 receives the clustering request sent by the mobile terminal 110, the second server 130 may cluster the facial feature information. The clustering of the facial feature information by the second server 130 includes: matching the facial feature information to the similarity degree, and if the similarity exceeds the specified value, dividing the facial feature information into a group. The algorithm for clustering the face feature information by the mobile terminal 110 and the algorithm for clustering the face feature information by the second server 130 may be the same or different.
(8)第二服务器130将聚类结果返还移动终端110。(8) The second server 130 returns the clustering result to the mobile terminal 110.
第二服务器130在对人脸特征信息聚类完成后,可将聚类结果发送给移动终端110。After the second server 130 clusters the facial feature information, the clustering result may be sent to the mobile terminal 110.
(9)移动终端110根据第二服务器130发送的聚类结果更新移动终端110中图像的聚类信息,对未上传的人脸图像进行聚类。(9) The mobile terminal 110 updates the cluster information of the image in the mobile terminal 110 according to the clustering result sent by the second server 130, and clusters the un-uploaded face image.
移动终端110接收到第二服务器130发送的聚类结果后,可根据上述聚类结果对上传第一服务器120的人脸图像进行聚类。移动终端110还可获取未上传的人脸图像的人脸特征信息,对未上传的人脸图像进行聚类。After receiving the clustering result sent by the second server 130, the mobile terminal 110 may cluster the face image uploaded by the first server 120 according to the clustering result. The mobile terminal 110 may also acquire facial feature information of the un-uploaded face image, and cluster the un-uploaded face image.
本申请实施例中,移动终端和服务器均可对人脸图像进行特征识别,获取人脸特征信息,在根据人脸特征信息对人脸图像进行人脸聚类。图3为一个实施例中图像处理方法的流程图。如图3所示,一种图像处理方法,应用于移动终端,包括:In the embodiment of the present application, the mobile terminal and the server can perform feature recognition on the face image, acquire face feature information, and perform face clustering on the face image according to the face feature information. 3 is a flow chart of an image processing method in one embodiment. As shown in FIG. 3, an image processing method is applied to a mobile terminal, including:
操作302,当接收到图像聚类请求,获取图像聚类请求对应的目标人脸图像。 Operation 302, when receiving an image clustering request, acquiring a target face image corresponding to the image clustering request.
移动终端在接收到图像聚类请求后,可获取图像聚类请求对应的目标人脸图像。其中,移动终端接收到图像聚类请求包括:After receiving the image clustering request, the mobile terminal may acquire the target face image corresponding to the image clustering request. The receiving, by the mobile terminal, the image clustering request includes:
(1)当特征识别模型更新,接收第一图像聚类请求。(1) When the feature recognition model is updated, the first image clustering request is received.
(2)当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息。(2) receiving the second clustering request when the first clustering information sent by the server is received, where the first clustering information is clustering information of the second facial image set uploaded by the server to the mobile terminal.
(3)当检测到新增图像,接收第三聚类请求。(3) When a new image is detected, a third clustering request is received.
当移动终端检测到特征识别模型更新时会触发第一图像聚类请求;移动终端在接收到服务器下发图像聚类信息时会触发第二图像聚类请求;移动终端在检测到有新增图像时会 触发第三图像聚类请求。特征识别模型可用于从人脸图像中提取人脸特征信息,移动终端可根据提取出的人脸特征信息对人脸图像聚类,当特征识别模型更新时,服务器可向移动终端发送新版特征识别模型,移动终端将本地特征识别模型与服务器下发的特征识别模型比较,若本地特征识别模型版本号低于服务器下发的特征识别模型版本号,则移动终端安装新版特征识别模型,并根据服务器下发的新版特征识别模型进行特征识别模型更新。服务器接收到移动终端上传的人脸图像后,根据特征识别模型对人脸图像进行特征识别,获取人脸特征信息,再对人脸特征信息进行聚类,服务器发送给移动终端的图像聚类结果即为服务器下发的第一聚类信息。其中,移动终端的特征识别模型与服务器的特征识别模型可相同或不同。移动终端上传服务器的人脸图像为移动终端内存存储的人脸图像。图像聚类信息中包括图像ID(Identification,身份证)和图像分组标记,移动终端在接收到图像聚类信息后,根据图像ID查找图像,根据图像分组标记将图像划分到对应的分组。The first image clustering request is triggered when the mobile terminal detects the feature recognition model update; the mobile terminal triggers the second image clustering request when receiving the image clustering information sent by the server; the mobile terminal detects the new image The third image clustering request is triggered. The feature recognition model can be used to extract face feature information from the face image, and the mobile terminal can cluster the face image according to the extracted face feature information. When the feature recognition model is updated, the server can send a new version of feature recognition to the mobile terminal. The mobile terminal installs a new version of the feature recognition model according to the server The new version of the feature recognition model is issued for feature recognition model update. After receiving the face image uploaded by the mobile terminal, the server performs feature recognition on the face image according to the feature recognition model, acquires face feature information, and then clusters the face feature information, and the image clustering result sent by the server to the mobile terminal That is, the first cluster information delivered by the server. The feature recognition model of the mobile terminal and the feature recognition model of the server may be the same or different. The face image of the mobile terminal upload server is a face image stored in the memory of the mobile terminal. The image clustering information includes an image ID (Identification, ID card) and an image grouping mark. After receiving the image clustering information, the mobile terminal searches for an image according to the image ID, and divides the image into corresponding groups according to the image grouping mark.
在接收到图像聚类请求后,移动终端可获取图像聚类请求对应的目标人脸图像。上述目标人脸图像即为待聚类的人脸图像。After receiving the image clustering request, the mobile terminal may acquire the target face image corresponding to the image clustering request. The above target face image is the face image to be clustered.
当特征识别模型更新时,即从人脸图像中提取人脸特征信息的算法更新,移动终端获取当前移动终端中存储的所有图像,包括内存图像和SD卡存储图像。对上述内存图像和SD卡存储图像进行人脸扫描,识别上述内存图像和SD卡存储图像中包含的人脸图像。上述人脸扫描是指根据人脸识别算法从图像中识别人脸,获取包含的人脸图像。当移动终端接收到服务器下发第一聚类信息时,即移动终端接收到服务器下发的人脸图像的分组信息时,移动终端获取SD卡存储图像,对SD卡存储图像进行人脸扫描,识别SD卡存储图像中包含的人脸图像。其中,在服务器下发图像聚类信息之前,移动终端可将内存图像中包含的人脸图像上传服务器,服务器根据特征识别模型对获取的人脸图像进行特征识别,获取人脸图像中人脸特征信息,根据人脸特征信息对人脸图像进行聚类,将图像聚类信息发送给移动终端。当移动终端新增图像时,移动终端获取新增图像,对新增图像进行人脸扫描,识别新增图像中包含的人脸图像。When the feature recognition model is updated, that is, the algorithm update of the face feature information is extracted from the face image, the mobile terminal acquires all the images stored in the current mobile terminal, including the memory image and the SD card storage image. A face scan is performed on the memory image and the SD card storage image to identify the face image included in the memory image and the SD card storage image. The above-mentioned face scanning refers to recognizing a face from an image according to a face recognition algorithm, and acquiring a included face image. When the mobile terminal receives the first cluster information sent by the server, that is, when the mobile terminal receives the group information of the face image sent by the server, the mobile terminal acquires the SD card to store the image, and performs face scanning on the SD card stored image. Identify the face image contained in the SD card storage image. Before the server sends the image clustering information, the mobile terminal may upload the face image included in the memory image to the server, and the server performs feature recognition on the acquired face image according to the feature recognition model to obtain the facial feature in the face image. The information is used to cluster the face image according to the face feature information, and the image clustering information is sent to the mobile terminal. When the mobile terminal adds an image, the mobile terminal acquires a new image, performs face scanning on the newly added image, and recognizes the face image included in the newly added image.
当特征识别模型更新时,目标人脸图像为移动终端中第一人脸图像集合,即移动终端内存和SD卡中存储的人脸图像。当接收到服务器发送的第一聚类请求时,目标人脸图像为第一人脸图像集合中除第二人脸图像集合外的人脸图像。当检测到新增图像时,对新增图像进行人脸识别,若新增图像中包含人脸,则将新增图像作为目标人脸图像。When the feature recognition model is updated, the target face image is the first face image set in the mobile terminal, that is, the mobile terminal memory and the face image stored in the SD card. When receiving the first clustering request sent by the server, the target face image is a face image other than the second face image set in the first face image set. When a new image is detected, face recognition is performed on the newly added image. If the newly added image includes a face, the new image is added as the target face image.
操作304,获取目标人脸图像中第一人脸特征信息。Operation 304: Acquire first face feature information in the target face image.
在获取目标人脸图像后,移动终端可根据特征识别模型对目标人脸图像特征识别,提取目标人脸图像中第一人脸特征信息。人脸特征信息是指用于标识唯一人脸的信息,包括人脸的轮廓特征、五官特征等。After acquiring the target face image, the mobile terminal may identify the target face image feature according to the feature recognition model, and extract the first face feature information in the target face image. The face feature information refers to information for identifying a unique face, including contour features of a face, facial features, and the like.
操作306,根据第一人脸特征信息对目标人脸图像进行聚类。 Operation 306, clustering the target face image according to the first face feature information.
在获取到目标人脸图像的第一人脸特征信息后,可根据第一人脸特征信息对目标人脸图像进行聚类。其中,当特征识别模型更新时,移动终端直接将第一人脸图像集合的第一人脸特征信息进行相似度匹配,根据匹配结果对第一人脸特征信息进行聚类。当接收到服务器发送的第一聚类信息后,移动终端可将目标人脸图像的第一人脸特征信息与第二人脸图像集合的人脸特征信息进行相似度匹配,根据匹配结果对第一人脸特征信息进行聚类。当检测到新增图像时,移动终端可将目标人脸图像的第一人脸特征信息与已聚类人脸图像的人脸特征信息进行相似度匹配,根据匹配结果对第一人脸特征信息进行聚类。After acquiring the first facial feature information of the target facial image, the target facial image may be clustered according to the first facial feature information. When the feature recognition model is updated, the mobile terminal directly performs similarity matching on the first facial feature information of the first facial image set, and clusters the first facial feature information according to the matching result. After receiving the first cluster information sent by the server, the mobile terminal may perform similarity matching on the first face feature information of the target face image and the face feature information of the second face image set, according to the matching result. A face feature information is clustered. When the newly added image is detected, the mobile terminal may perform similarity matching between the first facial feature information of the target facial image and the facial feature information of the clustered facial image, and the first facial feature information according to the matching result. Perform clustering.
本申请实施例中图像处理方法,在接收到不同的图像聚类请求时,根据图像聚类请求获取对应的目标人脸图像,实现不同的图像聚类请求获取不同的目标人脸图像,并非获取移动终端中所有图像,节省了移动终端资源,降低了移动终端资源消耗。The image processing method in the embodiment of the present application, when receiving different image clustering requests, acquires a corresponding target face image according to the image clustering request, and implements different image clustering requests to acquire different target face images, which are not acquired. All images in the mobile terminal save mobile terminal resources and reduce mobile terminal resource consumption.
在一个实施例中,接收到第一图像聚类请求,获取目标人脸图像中第一人脸特征信息包括:根据更新后特征识别模型对目标人脸图像进行人脸识别,获取第一人脸特征信息; 或,根据特征信息转换模型将目标人脸图像的已存储人脸特征信息转换为第一人脸特征信息。In an embodiment, the first image clustering request is received, and the acquiring the first facial feature information in the target facial image includes: performing facial recognition on the target facial image according to the updated feature recognition model, and acquiring the first facial face. Feature information; or, the stored face feature information of the target face image is converted into the first face feature information according to the feature information conversion model.
当移动终端中特征识别模型更新时,即对人脸图像提取人脸特征信息的算法更新,移动终端可获取存储图像中人脸图像的集合作为目标人脸图像,即移动终端中内存图像和SD卡图像中人脸图像的集合作为目标人脸图像。When the feature recognition model in the mobile terminal is updated, that is, the algorithm for extracting the face feature information of the face image is updated, the mobile terminal may acquire the set of the face image in the stored image as the target face image, that is, the memory image and the SD in the mobile terminal. The set of face images in the card image serves as the target face image.
移动终端可用更新后特征识别模型对目标人脸图像进行人脸识别,获取目标人脸图像中第一人脸特征信息。更新后特征识别模型提取的人脸特征信息与原有特征识别模型提取的人脸特征信息不一致,移动终端在采用更新后特征识别模型重新提取目标人脸中第一人脸特征信息后,可根据重新提取的第一人脸特征信息对目标人脸图像进行聚类。The mobile terminal may perform face recognition on the target face image by using the updated feature recognition model to acquire first face feature information in the target face image. The face feature information extracted by the updated feature recognition model is inconsistent with the face feature information extracted by the original feature recognition model. After the updated feature recognition model is used to re-extract the first face feature information of the target face, the mobile terminal may The re-extracted first face feature information clusters the target face image.
在一个实施例中,当移动终端中特征识别模型更新后,移动终端可将目标人脸图像的已存储人脸特征信息转换为更新后特征识别模型对应的人脸特征信息,即将目标人脸图像的已存储人脸特征信息转换为第一人脸特征信息。移动终端可根据第一人脸特征信息对目标人脸图像重新聚类。In an embodiment, after the feature recognition model is updated in the mobile terminal, the mobile terminal may convert the stored face feature information of the target face image into the face feature information corresponding to the updated feature recognition model, that is, the target face image. The stored face feature information is converted into the first face feature information. The mobile terminal may re-cluster the target facial image according to the first facial feature information.
本申请实施例中图像处理方法,在移动终端中特征识别模型更新后,重新提取人脸图像的人脸特征信息。实现在特征识别模型更新后,及时对人脸图像进行聚类,提高了人脸图像聚类的及时性。The image processing method in the embodiment of the present application re-extracts the face feature information of the face image after the feature recognition model is updated in the mobile terminal. After the feature recognition model is updated, the face images are clustered in time, which improves the timeliness of face image clustering.
在一个实施例中,当接收到第二图像聚类请求,获取图像聚类请求对应的目标人脸图像包括:获取第一人脸图像集合中除第二人脸图像集合外人脸图像作为目标人脸图像;根据第一人脸特征信息对目标人脸图像进行聚类包括:将第一人脸特征信息与第二图像集合中第二人脸特征信息进行匹配,若相似度超过预设值,获取第二人脸特征信息对应的第一图像,将目标人脸图像划分到第一图像在第一聚类信息中对应的聚类分组。In an embodiment, when the second image clustering request is received, acquiring the target facial image corresponding to the image clustering request includes: acquiring a facial image other than the second facial image set in the first facial image set as the target person a face image; performing clustering on the target face image according to the first face feature information includes: matching the first face feature information with the second face feature information in the second image set, if the similarity exceeds a preset value, Obtaining a first image corresponding to the second facial feature information, and dividing the target facial image into corresponding clustering packets of the first image in the first clustering information.
移动终端可将内存图像中人脸图像上传服务器,服务器可对接收到人脸图像进行图像聚类,并将聚类结果发送给移动终端。若移动终端检测到服务器下发图像聚类信息,且服务器下发图像聚类信息对应的图像集合与第一人脸图像集合不等同,则根据服务器下发图像聚类信息更新移动终端第二人脸图像集合的聚类信息,再获取第一人脸图像集合中除第二人脸图像集合外人脸图像,即SD卡中人脸图像和服务器下发的图像聚类信息中不包括的内存人脸图像。移动终端可获取目标人脸图像的人脸特征信息,将上述目标人脸图像的人脸特征信息与第二人脸图像集合的人脸特征信息进行相似度匹配,若相似度大于预设阈值,则将上述目标人脸图像划分到第二人脸图像集合的人脸特征信息对应的聚类分组。The mobile terminal can upload the face image in the memory image to the server, and the server can perform image clustering on the received face image, and send the clustering result to the mobile terminal. If the mobile terminal detects that the image clustering information is sent by the server, and the image set corresponding to the image clustering information sent by the server is not equal to the first facial image set, the mobile terminal second party is updated according to the image clustering information sent by the server. The clustering information of the face image set, and then acquiring the face image other than the second face image set in the first face image set, that is, the face image in the SD card and the memory person not included in the image clustering information sent by the server Face image. The mobile terminal can acquire the facial feature information of the target facial image, and perform similarity matching between the facial feature information of the target facial image and the facial feature information of the second facial image set. If the similarity is greater than a preset threshold, And dividing the target face image into a cluster group corresponding to the face feature information of the second face image set.
本申请实施例中图像处理方法,在接收到服务器下发的图像聚类信息后,以服务器下发的图像聚类信息为标准对未上传服务器的人脸图像进行聚类,提高了对人脸图像聚类的准确性。The image processing method in the embodiment of the present invention, after receiving the image clustering information sent by the server, clusters the face image of the un-uploaded server by using the image clustering information sent by the server as a standard, and improves the face of the face. The accuracy of image clustering.
在一个实施例中,移动终端在接收到服务器下发图像聚类信息后,根据服务器下发的图像聚类信息更新本地图像聚类信息。若检测到对同一图像,服务器下发的图像聚类信息与本地图像聚类信息不一致时,检测在本地图像聚类信息中,检测上述图像是否带有用户操作标记,若是,移动终端保存上述图像的本地聚类信息,并将图像的本地聚类信息上传服务器,使服务器用图像的本地聚类信息覆盖原有图像聚类信息;若否,移动终端用云端下发的图像聚类信息覆盖本地图像聚类信息。In an embodiment, after receiving the image clustering information sent by the server, the mobile terminal updates the local image clustering information according to the image clustering information sent by the server. If the image clustering information sent by the server is inconsistent with the local image clustering information, detecting whether the image has a user operation flag in the local image clustering information, and if so, the mobile terminal saves the image. Local clustering information, and uploading local clustering information of the image to the server, so that the server overwrites the original image clustering information with the local clustering information of the image; if not, the mobile terminal overwrites the local with the image clustering information sent by the cloud Image clustering information.
本申请实施例中图像处理方法,根据服务器下发的图像聚类信息更新移动终端的图像聚类信息时,若检测到对同一图像的图像聚类结果不同,且在移动终端上聚类结果为用户操作,则保留用户操作,并将用户操作的聚类信息上传服务器。上述方法,不仅保证了移动终端和服务器的多端数据同步,避免了数据混乱,又保留了用户操作,提高了用户粘性。In the image processing method of the embodiment of the present application, when the image clustering information of the mobile terminal is updated according to the image clustering information sent by the server, if the image clustering result of the same image is detected to be different, and the clustering result on the mobile terminal is When the user operates, the user operation is retained, and the clustering information of the user operation is uploaded to the server. The above method not only ensures multi-end data synchronization between the mobile terminal and the server, but also avoids data confusion, and retains user operations, thereby improving user stickiness.
在一个实施例中,当接收到第三图像聚类请求,获取图像聚类请求对应的目标人脸图像包括:对新增图像进行人脸识别,若新增图像中包含人脸,将包含人脸的新增图像作为目标人脸图像。In an embodiment, when the third image clustering request is received, acquiring the target facial image corresponding to the image clustering request includes: performing face recognition on the newly added image, and if the newly added image includes a human face, the person is included The new image of the face is used as the target face image.
移动终端检测到有新增图像时,对上述新增图像进行人脸扫描,识别新增图像是否为人脸图像,若是,获取新增图像中人脸特征信息;若否,对新增图像不做处理。在获取新增图像中人脸特征信息后,将新增图像的人脸特征信息已聚类图像的人脸特征信息进行相似度比对,若相似度超过预设值,则将新增图像划分到已聚类图像对应的图像聚类。When the mobile terminal detects that there is a new image, the face scan is performed on the newly added image to identify whether the newly added image is a face image, and if so, the face feature information in the newly added image is acquired; if not, the new image is not made. deal with. After obtaining the facial feature information in the newly added image, the facial feature information of the clustered image of the newly added image is compared with the similarity degree, and if the similarity exceeds the preset value, the new image is divided. Image clustering corresponding to the clustered image.
本申请实施例中信息处理方法,在检测到移动终端新增图像时,将新增图像的人脸特征信息与已聚类图像的人脸特征信息进行比对,保证了对新增图像进行聚类的及时性。The information processing method in the embodiment of the present application compares the face feature information of the newly added image with the face feature information of the clustered image when detecting the newly added image of the mobile terminal, thereby ensuring the aggregation of the newly added image. Timeliness of the class.
在一个实施例中,当移动终端存储图像被删除时,移动终端检测上述图像是否有图像聚类信息,若有,则删除上述图像对应的图像聚类信息。例如,移动终端中第一分组Group1包括图像1.jpg,第二分组Group2也包括图像1.jpg,当图像1.jpg从移动终端删除时,会对应从第一分组Group1和第二分组Group中删除图像1.jpg,即在移动终端相册第一分组Group1和第二分组Group2中不再显示图像1.jpg。In one embodiment, when the mobile terminal stores the image to be deleted, the mobile terminal detects whether the image has image clustering information, and if so, deletes the image clustering information corresponding to the image. For example, the first group Group1 in the mobile terminal includes an image 1.jpg, and the second group Group2 also includes an image 1.jpg. When the image 1.jpg is deleted from the mobile terminal, it corresponds to the first group Group1 and the second group Group. The image 1.jpg is deleted, that is, the image 1.jpg is no longer displayed in the first group Group1 and the second group Group2 of the mobile terminal album.
在一个实施例中,在获取图像聚类请求对应的目标人脸图像之前,当满足以下条件中至少一个时,获取图像聚类请求对应的目标人脸图像:In an embodiment, before acquiring the target face image corresponding to the image clustering request, when at least one of the following conditions is met, the target face image corresponding to the image clustering request is acquired:
(1)当前时刻与上一次获取目标人脸图像的时刻之间的时间差超过预设时长。(1) The time difference between the current time and the time when the target face image was last acquired exceeds the preset time length.
(2)当前时刻为预设时刻。(2) The current time is the preset time.
(3)移动终端处于充电状态。(3) The mobile terminal is in a charging state.
移动终端在接收到图像聚类请求后,可检测当前条件是否满足预设条件,若检测到当前条件满足预设条件,则获取图像聚类请求对应的目标人脸图像;若检测到当前条件不满足预设条件,则在移动终端满足预设条件时,再根据人脸扫描的类型确定待扫描图像。After receiving the image clustering request, the mobile terminal may detect whether the current condition meets the preset condition, and if the current condition is met, the target face image corresponding to the image clustering request is acquired; if the current condition is detected, When the preset condition is met, when the mobile terminal satisfies the preset condition, the image to be scanned is determined according to the type of the face scan.
在一个实施例中,在接收到图像聚类请求后,移动终端检测当前条件是否满足预设条件,若不满足,则移动终端按照预设的时间间隔检测当前条件是否满足预设条件。In an embodiment, after receiving the image clustering request, the mobile terminal detects whether the current condition meets the preset condition. If not, the mobile terminal detects whether the current condition meets the preset condition according to the preset time interval.
在一个实施例中,移动终端按照预设的时间间隔检测当前条件是否满足预设条件,若检测到移动终端满足预设条件,再检测移动终端是否接收到图像聚类请求,若移动终端接收到图像聚类请求,获取图像聚类请求对应的目标人脸图像。In an embodiment, the mobile terminal detects whether the current condition meets the preset condition according to the preset time interval. If the mobile terminal detects that the mobile terminal meets the preset condition, and then detects whether the mobile terminal receives the image clustering request, if the mobile terminal receives the The image clustering request acquires a target face image corresponding to the image clustering request.
上述预设条件包括:获取移动终端上一次获取目标人脸图像的时刻,检测当前时刻与上一次获取目标人脸图像的时刻之间的时间差超过预设时长。例如,预设时长为48小时,当前时刻为2017年8月11日10点18分,上一次获取目标人脸图像的时刻为2017年8月8日9点5分,时间差为73小时13分超过预设时长48小时,则移动终端满足预设条件,获取图像聚类请求对应的目标人脸图像。移动终端还可检测当前时刻是否为预设时刻,若当前时刻为预设时刻,则获取图像聚类请求对应的目标人脸图像。例如,预设时刻为2:00AM至5:00AM,移动终端检测到当前时刻为3:15AM,则获取图像聚类请求对应的目标人脸图像。当移动终端当前处于充电状态时,移动终端也可获取图像聚类请求对应的目标人脸图像。The foregoing preset condition includes: acquiring a time when the mobile terminal last acquired the target face image, and detecting a time difference between the current time and the last time the target face image is acquired exceeds a preset duration. For example, the preset duration is 48 hours, the current time is 10:18 on August 11, 2017, and the last time to get the target face image is 9:5 on August 8, 2017, the time difference is 73 hours and 13 minutes. If the preset time is longer than 48 hours, the mobile terminal satisfies the preset condition and acquires the target face image corresponding to the image clustering request. The mobile terminal may also detect whether the current time is a preset time. If the current time is the preset time, the target face image corresponding to the image clustering request is acquired. For example, if the preset time is 2:00AM to 5:00AM, and the mobile terminal detects that the current time is 3:15AM, the target face image corresponding to the image clustering request is acquired. When the mobile terminal is currently in a charging state, the mobile terminal may also acquire a target face image corresponding to the image clustering request.
本申请实施例中图像处理方法,在移动终端获取图像聚类请求对应的目标人脸图像之前,判定移动终端是否满足预设条件,在满足预设条件时获取图像聚类请求对应的目标人脸图像。由于移动终端对图像聚类耗时较长,且占用移动终端CPU资源,消耗移动终端电量。在移动终端处于充电时启用移动终端图像聚类,可以避免移动终端电量消耗过快的情况。在移动终端处于预设时刻时启动移动终端图像聚类,可避免移动终端图像聚类占用大量CPU资源造成移动终端卡顿的情况。在距离上次图像聚类的时间差超过指定时长即进行图像聚类,保证了图像聚类的及时性。The image processing method in the embodiment of the present application determines whether the mobile terminal satisfies a preset condition before acquiring the target face image corresponding to the image clustering request, and acquires the target face corresponding to the image clustering request when the preset condition is met. image. Since the mobile terminal takes a long time to cluster the image and occupies the CPU resources of the mobile terminal, the mobile terminal consumes power. Enabling mobile terminal image clustering when the mobile terminal is charging can avoid the situation that the mobile terminal consumes too much power. When the mobile terminal is at a preset time, the image clustering of the mobile terminal is started, which can avoid the situation that the mobile terminal image clustering consumes a large amount of CPU resources and causes the mobile terminal to be stuck. Image clustering is performed when the time difference from the last image clustering exceeds the specified duration, which ensures the timeliness of image clustering.
在一个实施例中,上述图像处理方法包括:当检测到目标人脸图像中人脸信息变更,重新获取目标人脸图像中第一人脸特征信息,根据第一人脸特征信息对目标人脸图像进行聚类。In an embodiment, the image processing method includes: when detecting the face information change in the target face image, reacquiring the first face feature information in the target face image, and targeting the target face according to the first face feature information. Images are clustered.
移动终端可对人脸图像中识别出人脸标识人脸状态,移动终端接收到服务器下发的图像聚类信息后,可根据服务器下发的图像聚类信息调整移动终端中人脸图像中人脸状态。 当移动终端检测到目标人脸图像中人脸状态改变,例如人脸状态由显示变为隐藏、或由隐藏变为显示后,移动终端可重新获取目标人脸图像中第一人脸特征信息,根据重新获取的第一人脸特征信息对目标人脸图像进行聚类。The mobile terminal can identify the face state of the face in the face image, and after receiving the image clustering information sent by the server, the mobile terminal can adjust the person in the face image in the mobile terminal according to the image clustering information sent by the server. Face status. When the mobile terminal detects that the face state changes in the target face image, for example, the face state changes from display to hidden, or changes from hidden to displayed, the mobile terminal may reacquire the first face feature information in the target face image. The target face image is clustered according to the re-acquired first face feature information.
本申请实施例中图像处理方法,在检测到人脸图像中人脸信息变更时,重新获取人脸图像中人脸特征信息,根据人脸图像中人脸特征信息对人脸图像重新聚类,能够实现对人脸图像聚类的及时性。The image processing method in the embodiment of the present application re-acquires the face feature information in the face image when the face information is changed in the face image, and re-clusters the face image according to the face feature information in the face image. It can realize the timeliness of clustering face images.
图4为一个实施例中图像处理装置的结构框图。如图4所示,一种图像处理装置,包括:Fig. 4 is a block diagram showing the structure of an image processing apparatus in an embodiment. As shown in FIG. 4, an image processing apparatus includes:
第一获取模块402,用于当接收到图像聚类请求,获取图像聚类请求对应的目标人脸图像。The first obtaining module 402 is configured to acquire a target face image corresponding to the image clustering request when receiving the image clustering request.
第二获取模块404,用于获取目标人脸图像中第一人脸特征信息。The second obtaining module 404 is configured to acquire first facial feature information in the target facial image.
聚类模块406,用于根据第一人脸特征信息对目标人脸图像进行聚类。The clustering module 406 is configured to cluster the target facial image according to the first facial feature information.
接收到图像聚类请求包括:当特征识别模型更新,接收第一图像聚类请求;当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息;当检测到新增图像,接收第三聚类请求。Receiving the image clustering request includes: receiving the first image clustering request when the feature recognition model is updated; receiving the second image clustering request when receiving the first clustering information sent by the server, where the first clustering information is a server pair The clustering information of the second face image set uploaded by the mobile terminal; when the newly added image is detected, the third clustering request is received.
在一个实施例中,当接收到第一图像聚类请求,获取目标人脸图像中第一人脸特征信息包括:根据更新后特征识别模型对目标人脸图像进行人脸识别,获取第一人脸特征信息;或,根据特征信息转换模型将目标人脸图像的已存储人脸特征信息转换为第一人脸特征信息。In an embodiment, when the first image clustering request is received, acquiring the first facial feature information in the target facial image includes: performing face recognition on the target facial image according to the updated feature recognition model, and acquiring the first person The face feature information; or, the stored face feature information of the target face image is converted into the first face feature information according to the feature information conversion model.
在一个实施例中,当接收到第二图像聚类请求,获取图像聚类请求对应的目标人脸图像包括:获取第一人脸图像集合中除第二人脸图像集合外人脸图像作为目标人脸图像;根据第一人脸特征信息对目标人脸图像进行聚类包括:将第一人脸特征信息与第二图像集合中第二人脸特征信息进行匹配,若相似度超过预设值,获取第二人脸特征信息对应的第一图像,将目标人脸图像划分到第一图像在第一聚类信息中对应的聚类分组。In an embodiment, when the second image clustering request is received, acquiring the target facial image corresponding to the image clustering request includes: acquiring a facial image other than the second facial image set in the first facial image set as the target person a face image; performing clustering on the target face image according to the first face feature information includes: matching the first face feature information with the second face feature information in the second image set, if the similarity exceeds a preset value, Obtaining a first image corresponding to the second facial feature information, and dividing the target facial image into corresponding clustering packets of the first image in the first clustering information.
在一个实施例中,当接收到第三图像聚类请求,获取图像聚类请求对应的目标人脸图像包括:对新增图像进行人脸识别,若新增图像中包含人脸,将包含人脸的新增图像作为目标人脸图像。In an embodiment, when the third image clustering request is received, acquiring the target facial image corresponding to the image clustering request includes: performing face recognition on the newly added image, and if the newly added image includes a human face, the person is included The new image of the face is used as the target face image.
图5为另一个实施例中图像处理装置的结构框图。如图5所示,一种图像处理装置,包括第一获取模块502、第二获取模块504、聚类模块506和处理模块508。其中,第一获取模块502、第二获取模块504、聚类模块506与对应的模块功能相同。Fig. 5 is a block diagram showing the structure of an image processing apparatus in another embodiment. As shown in FIG. 5, an image processing apparatus includes a first acquisition module 502, a second acquisition module 504, a clustering module 506, and a processing module 508. The first obtaining module 502, the second obtaining module 504, and the clustering module 506 have the same functions as the corresponding modules.
第一获取模块502还用于获取移动终端对第二人脸集合的第二聚类信息。The first obtaining module 502 is further configured to acquire second cluster information of the second face set of the mobile terminal.
处理模块508,用于当第一聚类信息与第二聚类信息的对比结果不相同时,根据对比结果的类型对应处理第二聚类信息。The processing module 508 is configured to process the second cluster information according to the type of the comparison result when the comparison result of the first cluster information and the second cluster information is different.
在一个实施例中,第一获取模块502还用于若当前时刻与上一次获取目标人脸图像的时刻之间的时间差超过预设时长,获取图像聚类请求对应的目标人脸图像;或,若当前时刻为预设时刻,获取图像聚类请求对应的目标人脸图像;或,移动终端处于充电状态,获取图像聚类请求对应的目标人脸图像。In an embodiment, the first obtaining module 502 is further configured to acquire a target face image corresponding to the image clustering request if the time difference between the current time and the time when the target face image was last acquired exceeds a preset duration; or If the current time is the preset time, the target face image corresponding to the image clustering request is acquired; or the mobile terminal is in the charging state, and the target face image corresponding to the image clustering request is acquired.
在一个实施例中,第二获取模块504还用于当检测到目标人脸图像中人脸信息变更,重新获取目标人脸图像中第一人脸特征信息。聚类模块506用于根据第一人脸特征信息对目标人脸图像进行聚类。In an embodiment, the second obtaining module 504 is further configured to re-acquire the first facial feature information in the target facial image when detecting the change of the facial information in the target facial image. The clustering module 506 is configured to cluster the target face image according to the first face feature information.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上所述的图像处理方法。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 perform an image processing method as described above .
本申请实施例还提供了一种移动终端。如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终 端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiment of the present application further provides a mobile terminal. As shown in FIG. 6 , for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application. The mobile terminal can be any mobile device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, or the like, and the mobile terminal is used as a mobile phone as an example. :
图6为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、传感器650、音频电路660、无线保真(wireless fidelity,WiFi)模块670、处理器680、以及电源690等部件。本领域技术人员可以理解,图6所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application. Referring to FIG. 6, the mobile phone includes: a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, and a processor 680. And power supply 690 and other components. It will be understood by those skilled in the art that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation to the mobile phone, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
其中,RF电路610可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器680处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(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 610 can be used for receiving and transmitting information during the transmission or reception of information, and can receive and send the downlink information of the base station, and then send the uplink data 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 610 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.
存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620. The memory 620 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 620 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.
输入单元630可用于接收输入的数字或字符信息,以及产生与手机600的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括触控面板631以及其他输入设备632。触控面板631,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上或在触控面板631附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器680,并能接收处理器680发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 630 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 600. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, 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 631 or near the touch panel 631. Operation) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 631 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 680 is provided and can receive commands from the processor 680 and execute them. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元640可包括显示面板641。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。在一个实施例中,触控面板631可覆盖显示面板641,当触控面板631检测到在其上或附近的触摸操作后,传送给处理器680以确定触摸事件的类型,随后处理器680根据触摸事件的类型在显示面板641上提供相应的视觉输出。虽然在图6中,触控面板631与显示面板641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板631与显示面板641集成而实现手机的输入和输出 功能。The display unit 640 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 640 can include a display panel 641. In one embodiment, the display panel 641 can 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 631 can cover the display panel 641. When the touch panel 631 detects a touch operation thereon or nearby, the touch panel 631 transmits to the processor 680 to determine the type of the touch event, and then the processor 680 is The type of touch event provides a corresponding visual output on display panel 641. Although in FIG. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 631 may be integrated with the display panel 641. Realize the input and output functions of the phone.
手机600还可包括至少一种传感器650,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板641的亮度,接近传感器可在手机移动到耳边时,关闭显示面板641和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The handset 600 can also include at least one type of sensor 650, 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 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 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.
音频电路660、扬声器661和传声器662可提供用户与手机之间的音频接口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器661,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610可以发送给另一手机,或者将音频数据输出至存储器620以便后续处理。 Audio circuitry 660, speaker 661, and microphone 662 can provide an audio interface between the user and the handset. The audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 661 for conversion to the sound signal output by the speaker 661; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to another mobile phone via the RF circuit 610, or outputted to the memory 620 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块670,但是可以理解的是,其并不属于手机600的必须构成,可以根据需要而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 670, which provides users with wireless broadband Internet access. Although FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone 600 and can be omitted as needed.
处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器680可包括一个或多个处理单元。在一个实施例中,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。The processor 680 is the control center of the handset, and 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 620, and invoking data stored in the memory 620, executing The phone's various functions and processing data, so that the overall monitoring of the phone. In one embodiment, processor 680 can include one or more processing units. In one embodiment, processor 680 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 680.
手机600还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset 600 also includes a power source 690 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 680 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
在一个实施例中,手机600还可以包括摄像头、蓝牙模块等。In one embodiment, the handset 600 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该移动终端所包括的处理器680执行存储在存储器上的计算机程序时实现如上所述的图像处理方法。In the embodiment of the present application, the processor 680 included in the mobile terminal implements the image processing method as described above when executing a computer program stored in the memory.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(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 used herein may include non-volatile and/or volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as an external cache. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization. Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM). The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the claims. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (16)

  1. 一种图像处理方法,其特征在于,包括:An image processing method, comprising:
    当接收到图像聚类请求,获取所述图像聚类请求对应的目标人脸图像;When the image clustering request is received, acquiring a target face image corresponding to the image clustering request;
    获取所述目标人脸图像中第一人脸特征信息;及Obtaining first facial feature information in the target facial image; and
    根据所述第一人脸特征信息对所述目标人脸图像进行聚类;And clustering the target face image according to the first face feature information;
    所述接收到图像聚类请求包括:The receiving the image clustering request includes:
    当特征识别模型更新,接收第一图像聚类请求;Receiving a first image clustering request when the feature recognition model is updated;
    当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,所述第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息;Receiving, by the first cluster information sent by the server, a second image clustering request, where the first clustering information is clustering information of a second facial image set uploaded by the server to the mobile terminal;
    当检测到新增图像,接收第三聚类请求。When a new image is detected, a third clustering request is received.
  2. 根据权利要求1所述的方法,其特征在于,当接收到所述第一图像聚类请求,所述获取所述目标人脸图像中第一人脸特征信息包括:The method according to claim 1, wherein when the first image clustering request is received, the acquiring the first facial feature information in the target facial image comprises:
    根据更新后特征识别模型对所述目标人脸图像进行人脸识别,获取所述第一人脸特征信息;Performing face recognition on the target face image according to the updated feature recognition model, and acquiring the first face feature information;
    或,根据特征信息转换模型将所述目标人脸图像的已存储人脸特征信息转换为所述第一人脸特征信息。Or converting the stored face feature information of the target face image into the first face feature information according to the feature information conversion model.
  3. 根据权利要求1所述的方法,其特征在于,当接收到所述第二图像聚类请求,所述获取所述图像聚类请求对应的目标人脸图像包括:The method according to claim 1, wherein when the second image clustering request is received, the acquiring the target face image corresponding to the image clustering request comprises:
    获取第一人脸图像集合中除所述第二人脸图像集合外人脸图像作为所述目标人脸图像;Acquiring a face image other than the second face image set in the first face image set as the target face image;
    所述根据所述第一人脸特征信息对所述目标人脸图像进行聚类包括:The clustering the target facial image according to the first facial feature information includes:
    将所述第一人脸特征信息与第二图像集合中第二人脸特征信息进行匹配,若相似度超过预设值,获取第二人脸特征信息对应的第一图像,将所述目标人脸图像划分到所述第一图像在所述第一聚类信息中对应的聚类分组。Matching the first facial feature information with the second facial feature information in the second image set, and if the similarity exceeds a preset value, acquiring a first image corresponding to the second facial feature information, and the target person The face image is divided into corresponding clustering packets of the first image in the first clustering information.
  4. 根据权利要求1所述的方法,其特征在于,当接收到所述第三图像聚类请求,所述获取所述图像聚类请求对应的目标人脸图像包括:The method according to claim 1, wherein when the third image clustering request is received, the acquiring the target face image corresponding to the image clustering request comprises:
    对所述新增图像进行人脸识别,若所述新增图像中包含人脸,将包含人脸的新增图像作为所述目标人脸图像。Face recognition is performed on the newly added image, and if the newly added image includes a face, a new image including the face is used as the target face image.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    获取所述移动终端对所述第二人脸集合的第二聚类信息;及Obtaining, by the mobile terminal, second cluster information of the second face set; and
    当所述第一聚类信息与所述第二聚类信息的对比结果不相同时,根据所述对比结果的类型对应处理所述第二聚类信息。When the comparison result of the first cluster information and the second cluster information is different, the second cluster information is correspondingly processed according to the type of the comparison result.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,在所述获取所述图像聚类请求对应的目标人脸图像之前,所述方法还包括:The method according to any one of claims 1 to 5, wherein before the acquiring the target face image corresponding to the image clustering request, the method further comprises:
    若当前时刻与上一次获取所述目标人脸图像的时刻之间的时间差超过预设时长,获取所述图像聚类请求对应的目标人脸图像;Obtaining a target face image corresponding to the image clustering request if a time difference between a current time and a time when the target face image was last acquired exceeds a preset time length;
    或,若当前时刻为预设时刻,获取所述图像聚类请求对应的目标人脸图像;Or, if the current time is a preset time, acquiring a target face image corresponding to the image clustering request;
    或,所述移动终端处于充电状态,获取所述图像聚类请求对应的目标人脸图像。Or, the mobile terminal is in a charging state, and acquires a target face image corresponding to the image clustering request.
  7. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    当检测到所述目标人脸图像中人脸信息变更;When the face information in the target face image is detected to be changed;
    重新获取所述目标人脸图像中第一人脸特征信息;及Reacquiring the first face feature information in the target face image; and
    根据所述第一人脸特征信息对所述目标人脸图像进行聚类。And clustering the target face image according to the first face feature information.
  8. 一种图像处理装置,其特征在于,包括:An image processing apparatus, comprising:
    第一获取模块,用于当接收到图像聚类请求,获取所述图像聚类请求对应的目标人脸图像;a first acquiring module, configured to: when receiving an image clustering request, acquire a target facial image corresponding to the image clustering request;
    第二获取模块,用于获取所述目标人脸图像中第一人脸特征信息;及a second acquiring module, configured to acquire first facial feature information in the target facial image; and
    聚类模块,用于根据所述第一人脸特征信息对所述目标人脸图像进行聚类;a clustering module, configured to cluster the target facial image according to the first facial feature information;
    所述接收到图像聚类请求包括:The receiving the image clustering request includes:
    当特征识别模型更新,接收第一图像聚类请求;Receiving a first image clustering request when the feature recognition model is updated;
    当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,所述第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息;Receiving, by the first cluster information sent by the server, a second image clustering request, where the first clustering information is clustering information of a second facial image set uploaded by the server to the mobile terminal;
    当检测到新增图像,接收第三聚类请求。When a new image is detected, a third clustering request is received.
  9. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法的操作。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to perform the operations of the method of any one of claims 1 to 7.
  10. 一种移动终端,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下操作:A mobile terminal comprising a memory and a processor, the memory storing computer readable instructions, wherein when the computer readable instructions are executed by the processor, the processor performs the following operations:
    当接收到图像聚类请求,获取所述图像聚类请求对应的目标人脸图像;When the image clustering request is received, acquiring a target face image corresponding to the image clustering request;
    获取所述目标人脸图像中第一人脸特征信息;及Obtaining first facial feature information in the target facial image; and
    根据所述第一人脸特征信息对所述目标人脸图像进行聚类;And clustering the target face image according to the first face feature information;
    所述接收到图像聚类请求包括:The receiving the image clustering request includes:
    当特征识别模型更新,接收第一图像聚类请求;Receiving a first image clustering request when the feature recognition model is updated;
    当接收到服务器发送的第一聚类信息,接收第二图像聚类请求,所述第一聚类信息为服务器对移动终端上传的第二人脸图像集合的聚类信息;Receiving, by the first cluster information sent by the server, a second image clustering request, where the first clustering information is clustering information of a second facial image set uploaded by the server to the mobile terminal;
    当检测到新增图像,接收第三聚类请求。When a new image is detected, a third clustering request is received.
  11. 根据权利要求10所述的移动终端,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下操作:当接收到所述第一图像聚类请求,所述获取所述目标人脸图像中第一人脸特征信息包括:The mobile terminal of claim 10, when the computer readable instructions are executed by the processor, causing the processor to: when the first image clustering request is received, the obtaining The first face feature information in the target face image includes:
    根据更新后特征识别模型对所述目标人脸图像进行人脸识别,获取所述第一人脸特征信息;Performing face recognition on the target face image according to the updated feature recognition model, and acquiring the first face feature information;
    或,根据特征信息转换模型将所述目标人脸图像的已存储人脸特征信息转换为所述第一人脸特征信息。Or converting the stored face feature information of the target face image into the first face feature information according to the feature information conversion model.
  12. 根据权利要求10所述的移动终端,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下操作:The mobile terminal of claim 10, when said computer readable instructions are executed by said processor, causing said processor to:
    当接收到所述第二图像聚类请求,所述获取所述图像聚类请求对应的目标人脸图像包括:When the second image clustering request is received, the acquiring the target facial image corresponding to the image clustering request includes:
    获取第一人脸图像集合中除所述第二人脸图像集合外人脸图像作为所述目标人脸图像;Acquiring a face image other than the second face image set in the first face image set as the target face image;
    所述根据所述第一人脸特征信息对所述目标人脸图像进行聚类包括:The clustering the target facial image according to the first facial feature information includes:
    将所述第一人脸特征信息与第二图像集合中第二人脸特征信息进行匹配,若相似度超过预设值,获取第二人脸特征信息对应的第一图像,将所述目标人脸图像划分到所述第一图像在所述第一聚类信息中对应的聚类分组。Matching the first facial feature information with the second facial feature information in the second image set, and if the similarity exceeds a preset value, acquiring a first image corresponding to the second facial feature information, and the target person The face image is divided into corresponding clustering packets of the first image in the first clustering information.
  13. 根据权利要求10所述的移动终端,所述计算机可读指令被所述处理器执行时,使得所述处理器以下操作:The mobile terminal of claim 10, when said computer readable instructions are executed by said processor, causing said processor to:
    当接收到所述第三图像聚类请求,所述获取所述图像聚类请求对应的目标人脸图像包括:When the third image clustering request is received, the acquiring the target facial image corresponding to the image clustering request includes:
    对所述新增图像进行人脸识别,若所述新增图像中包含人脸,将包含人脸的新增图像作为所述目标人脸图像。Face recognition is performed on the newly added image, and if the newly added image includes a face, a new image including the face is used as the target face image.
  14. 根据权利要求10所述的移动终端,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:The mobile terminal of claim 10, when said computer readable instructions are executed by said processor, such that said processor further performs the following operations:
    获取所述移动终端对所述第二人脸集合的第二聚类信息;及Obtaining, by the mobile terminal, second cluster information of the second face set; and
    当所述第一聚类信息与所述第二聚类信息的对比结果不相同时,根据所述对比结果的类型对应处理所述第二聚类信息。When the comparison result of the first cluster information and the second cluster information is different, the second cluster information is correspondingly processed according to the type of the comparison result.
  15. 根据权利要求10至14中任一项所述的移动终端,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行获取所述图像聚类请求对应的目标人脸图像之前,还执行以下操作:The mobile terminal according to any one of claims 10 to 14, wherein when the computer readable instructions are executed by the processor, causing the processor to perform acquisition of a target face image corresponding to the image clustering request Previously, the following actions were also taken:
    若当前时刻与上一次获取所述目标人脸图像的时刻之间的时间差超过预设时长,获取所述图像聚类请求对应的目标人脸图像;Obtaining a target face image corresponding to the image clustering request if a time difference between a current time and a time when the target face image was last acquired exceeds a preset time length;
    或,若当前时刻为预设时刻,获取所述图像聚类请求对应的目标人脸图像;Or, if the current time is a preset time, acquiring a target face image corresponding to the image clustering request;
    或,所述移动终端处于充电状态,获取所述图像聚类请求对应的目标人脸图像。Or, the mobile terminal is in a charging state, and acquires a target face image corresponding to the image clustering request.
  16. 根据权利要求10至14中任一项所述的移动终端,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:The mobile terminal according to any one of claims 10 to 14, wherein the computer readable instructions are executed by the processor such that the processor further performs the following operations:
    当检测到所述目标人脸图像中人脸信息变更;When the face information in the target face image is detected to be changed;
    重新获取所述目标人脸图像中第一人脸特征信息;及Reacquiring the first face feature information in the target face image; and
    根据所述第一人脸特征信息对所述目标人脸图像进行聚类。And clustering the target face image according to the first face feature information.
PCT/CN2018/101502 2017-09-15 2018-08-21 Image processing method and apparatus, computer-readable storage medium and mobile terminal WO2019052316A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710850225.XA CN107679559B (en) 2017-09-15 2017-09-15 Image processing method, image processing device, computer-readable storage medium and mobile terminal
CN201710850225.X 2017-09-15

Publications (1)

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

Family

ID=61136878

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101502 WO2019052316A1 (en) 2017-09-15 2018-08-21 Image processing method and apparatus, computer-readable storage medium and mobile terminal

Country Status (2)

Country Link
CN (1) CN107679559B (en)
WO (1) WO2019052316A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027406A (en) * 2019-11-18 2020-04-17 惠州Tcl移动通信有限公司 Picture identification method and device, storage medium and electronic equipment
CN111091106A (en) * 2019-12-23 2020-05-01 浙江大华技术股份有限公司 Image clustering method and device, storage medium and electronic device
CN113128305A (en) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 Portrait archive accumulation evaluation method and device, electronic equipment and storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679559B (en) * 2017-09-15 2020-01-10 Oppo广东移动通信有限公司 Image processing method, image processing device, computer-readable storage medium and mobile terminal
CN109101542B (en) * 2018-07-02 2021-02-02 深圳市商汤科技有限公司 Image recognition result output method and device, electronic device and storage medium
CN111222358B (en) * 2018-11-23 2024-02-13 杭州海康威视数字技术股份有限公司 Face static detection method and system
CN109886239B (en) * 2019-02-28 2021-05-04 北京旷视科技有限公司 Portrait clustering method, device and system
CN110266953B (en) * 2019-06-28 2021-05-07 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, server, and storage medium
CN110866443B (en) * 2019-10-11 2023-06-16 厦门身份宝网络科技有限公司 Portrait storage method, face recognition equipment and storage medium
CN112131999B (en) * 2020-09-17 2023-11-28 浙江商汤科技开发有限公司 Identity determination method and device, electronic equipment and storage medium
CN113920283B (en) * 2021-12-13 2022-03-08 中国海洋大学 Infrared image trail detection and extraction method based on cluster analysis and feature filtering
CN115880745B (en) * 2022-09-07 2023-07-04 以萨技术股份有限公司 Data processing system for acquiring facial image characteristics

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN105404863A (en) * 2015-11-13 2016-03-16 小米科技有限责任公司 Figure feature recognition method and system
CN105760533A (en) * 2016-03-08 2016-07-13 广东欧珀移动通信有限公司 Photo management method and photo management device
US20160267356A1 (en) * 2015-03-09 2016-09-15 Canon Kabushiki Kaisha Image processing apparatus and image processing method of performing image segmentation
CN106202392A (en) * 2016-07-07 2016-12-07 珠海市魅族科技有限公司 A kind of photo classification method and terminal
CN106980696A (en) * 2017-04-06 2017-07-25 腾讯科技(深圳)有限公司 The sorting technique and device of a kind of photo files
CN107679559A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8224078B2 (en) * 2000-11-06 2012-07-17 Nant Holdings Ip, Llc Image capture and identification system and process
JP5528018B2 (en) * 2009-06-23 2014-06-25 キヤノン株式会社 Image processing apparatus, image processing apparatus control method, and program
CN102542299B (en) * 2011-12-07 2015-03-25 惠州Tcl移动通信有限公司 Face recognition method, device and mobile terminal capable of recognizing face
CN104252628B (en) * 2013-06-28 2020-04-10 广州华多网络科技有限公司 Face image annotation method and system
JP2015088098A (en) * 2013-11-01 2015-05-07 株式会社ソニー・コンピュータエンタテインメント Information processor and information processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
US20160267356A1 (en) * 2015-03-09 2016-09-15 Canon Kabushiki Kaisha Image processing apparatus and image processing method of performing image segmentation
CN105404863A (en) * 2015-11-13 2016-03-16 小米科技有限责任公司 Figure feature recognition method and system
CN105760533A (en) * 2016-03-08 2016-07-13 广东欧珀移动通信有限公司 Photo management method and photo management device
CN106202392A (en) * 2016-07-07 2016-12-07 珠海市魅族科技有限公司 A kind of photo classification method and terminal
CN106980696A (en) * 2017-04-06 2017-07-25 腾讯科技(深圳)有限公司 The sorting technique and device of a kind of photo files
CN107679559A (en) * 2017-09-15 2018-02-09 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027406A (en) * 2019-11-18 2020-04-17 惠州Tcl移动通信有限公司 Picture identification method and device, storage medium and electronic equipment
CN111027406B (en) * 2019-11-18 2024-02-09 惠州Tcl移动通信有限公司 Picture identification method and device, storage medium and electronic equipment
CN111091106A (en) * 2019-12-23 2020-05-01 浙江大华技术股份有限公司 Image clustering method and device, storage medium and electronic device
CN111091106B (en) * 2019-12-23 2023-10-10 浙江大华技术股份有限公司 Image clustering method and device, storage medium and electronic device
CN113128305A (en) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 Portrait archive accumulation evaluation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107679559B (en) 2020-01-10
CN107679559A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
WO2019052316A1 (en) Image processing method and apparatus, computer-readable storage medium and mobile terminal
WO2019096008A1 (en) Identification method, computer device, and storage medium
US11290447B2 (en) Face verification method and device
CN107729815B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
WO2020011077A1 (en) Notification message displaying method and terminal device
WO2019105237A1 (en) Image processing method, computer device, and computer-readable storage medium
US10824901B2 (en) Image processing of face sets utilizing an image recognition method
CN107729889B (en) Image processing method and device, electronic equipment and computer readable storage medium
US11481357B2 (en) Album display method, electronic device, and storage medium
WO2018161540A1 (en) Fingerprint registration method and related product
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
WO2019052355A1 (en) Image processing method, computer device, and computer readable storage medium
WO2019042049A1 (en) Image processing method and mobile terminal
WO2019011108A1 (en) Iris recognition method and related product
CN108984066B (en) Application icon display method and mobile terminal
WO2019056938A1 (en) Image processing method, and computer device, and computer-readable storage medium
WO2019052436A1 (en) Image processing method, computer-readable storage medium and mobile terminal
US10970522B2 (en) Data processing method, electronic device, and computer-readable storage medium
WO2019109887A1 (en) Image processing method, electronic device, and computer readable storage medium
WO2019084753A1 (en) Information processing method, storage medium, and mobile terminal
CN107632985B (en) Webpage preloading method and device
CN108848270B (en) Method for processing screen shot image and mobile terminal
CN110717486B (en) Text detection method and device, electronic equipment and storage medium
WO2019051799A1 (en) Image processing method and apparatus, mobile terminal, server, and storage medium
CN108228357B (en) Memory cleaning method and mobile terminal

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

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

Country of ref document: EP

Kind code of ref document: A1