WO2015101289A1 - Image management method, apparatus and system - Google Patents

Image management method, apparatus and system Download PDF

Info

Publication number
WO2015101289A1
WO2015101289A1 PCT/CN2014/095584 CN2014095584W WO2015101289A1 WO 2015101289 A1 WO2015101289 A1 WO 2015101289A1 CN 2014095584 W CN2014095584 W CN 2014095584W WO 2015101289 A1 WO2015101289 A1 WO 2015101289A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
classification feature
feature
image
face
Prior art date
Application number
PCT/CN2014/095584
Other languages
French (fr)
Chinese (zh)
Inventor
黄飞跃
郑志昊
梁柱
黄琴
吴永坚
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015101289A1 publication Critical patent/WO2015101289A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a picture management method, apparatus, and system.
  • the classification of pictures is realized by manual method.
  • the specific process is as follows: If the user wants to classify and display the photos in his album according to different characters, he can only manually create the sub-album of different characters, and then Manually find the corresponding characters and move their photos to the corresponding sub-album. .
  • the above technical solution is that the user performs manual classification and management operations completely, and the system does not assist the user to simplify the operation process. Therefore, the scheme is inefficient in managing pictures.
  • the embodiment of the invention provides a picture management method, device and system to solve the above technical problem.
  • a picture management method including:
  • a picture management apparatus includes one or more processors and a storage medium storing operation instructions, and when operating an operation instruction in the storage medium, the processor performs the following steps:
  • a picture management system comprising:
  • the database server is configured to store a picture to be processed
  • the labeling and recommendation server is configured to receive the set image classification feature, use the image classification feature to retrieve the image in the database server, obtain a picture having the image classification feature, and send the obtained image to the terminal. A picture for the terminal to select.
  • the embodiment of the present invention has the following advantages: after acquiring the image classification feature, the image to be managed is retrieved, and the image having the image classification feature is obtained.
  • the user does not need to manually select a picture from a large number of pictures, which reduces the manual workload of the user and reduces the user operation complexity.
  • FIG. 1 is a schematic flowchart of a picture management method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another picture management method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a user annotation and system recommendation system according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a preprocessing system according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another labeling and recommendation system according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a picture management apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • the embodiment of the invention provides a picture management method, which can be applied to devices such as servers. As shown in FIG. 1, the method includes steps 101 to 103.
  • step 101 the set picture classification feature is acquired.
  • the image classification feature is used to classify the image to be managed, and may have various representations.
  • the classification information of the image refers to the information of the graphic image.
  • the photo album may be a photo album of a person's photo, or may be a photo album of various categories such as landscapes and patterns. Therefore, the picture classification feature may be a face feature, or may be various graphic features such as having a triangle, or a sun, or a smiley face, and the like. Any image classification feature that can be acquired by using the graphic image recognition technology is acceptable, and those skilled in the art can know that there are many feature information that can be acquired by using the graphic image recognition technology, and it is impossible to perform the present invention.
  • the embodiment does not limit the specific expression of the picture classification feature.
  • obtaining the set picture category may include: displaying a picture in the network album; receiving an instruction for selecting a picture of the user to select the picture, extracting a picture classification feature of the picture corresponding to the instruction for selecting the picture, and using the picture as the set picture Classification features.
  • obtaining the set picture category may include: displaying a picture in the network album; receiving an instruction for selecting a picture of the user to select the picture, extracting a picture classification feature of the picture corresponding to the instruction for selecting the picture, and using the picture as the set picture Classification features.
  • the picture classification feature has been described in the example.
  • the picture classification feature that can be provided is different based on the picture selected by the user. Taking a portrait picture as an example, after the user selects a certain portrait picture, the face feature is extracted as the picture classification feature of the picture.
  • the process of acquiring the image classification feature information may be performed dynamically, that is, the image classification feature information may be acquired during the subsequent display of the acquired image.
  • the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking the union of various picture classification features, and Based on the erroneous judgment, the erroneous picture classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures.
  • the implementation of the dynamic update picture classification feature provided by the embodiment of the present invention may include: if the picture classification feature of two or more pictures is extracted, the extracted picture classification feature is filtered to obtain a preferred picture classification feature, and The preferred picture classification feature serves as a set picture classification feature.
  • step 102 the picture to be managed is searched using the picture classification feature to obtain a picture having the picture classification feature.
  • the picture to be managed may be a plurality of pictures in the database, and various sets are obtained in various rules, and the pictures may be stored in an album in the database, which is not limited in the embodiment of the present invention.
  • the picture classification feature when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture.
  • the process of classification can be done on the fly, or there can be pre-operations to achieve acceleration.
  • the solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many specific ways of searching, which are not limited in the embodiment of the present invention.
  • pre-storing the image classification feature data of the picture to be managed in the database searching for a picture in the album to be managed, and obtaining a picture having the image classification feature includes: searching in the database using the image classification feature to obtain the above Image classification feature matching image.
  • the image classification feature data mentioned above is the data parameter value of the image classification feature mentioned above, and the parameter values of different image classification feature data based on the image classification feature will also have different representation forms, and no longer one by one. Description.
  • the feature data in the database may be centralized pre-processing, or may be pre-processed when the user adds a picture to a database, such as an album.
  • a database such as an album.
  • An example of an implementation scheme is as follows: the following is as follows: before acquiring the set image classification feature, the method further includes: after receiving the instruction for storing the image, extracting image classification feature data of the image corresponding to the instruction for storing the image and Stored in the database.
  • the image classification feature may be a facial feature, and for different people, different facial features may be used, and then the facial feature is classified as a picture.
  • the feature can automatically filter the image with the face from a large number of pictures, and further combine the pre-processing scheme to speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature, the above
  • the image classification feature data pre-stored in the database for the picture in the album to be managed includes: performing face recognition on the pictures in each album in the database, calculating and storing the face features of the pictures of the face and the feature similarity to the database.
  • Face recognition is also commonly referred to as portrait recognition and face recognition.
  • the main step of face recognition is face detection.
  • face detection is mainly used for pre-processing of face recognition, that is, the position and size of the face are accurately calibrated in the image.
  • the pattern features contained in the face image are very rich, such as histogram features, color features, template features, structural features, and Haar-like (a feature description operator) feature.
  • Face detection is to pick out the useful information and use these features to achieve face detection.
  • the commonly used face detection method uses the Adaboost learning algorithm based on the above features, and the Adaboost algorithm is a method for classification.
  • the various pattern features extracted during the face detection process can be stored as parameters of the face features.
  • the embodiment of the present invention further provides a specific implementation scheme for performing retrieval based on the facial features, which is determined by the similarity in the present embodiment. It can be known by the skilled person that face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features.
  • face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features.
  • the following example of using a similarity scheme as a preferred solution should not be construed as implementing the present invention. The only limitation of the example.
  • the image classification feature is used in the above database to perform the retrieval, and obtaining the image matching the image classification feature includes: using the set face feature to retrieve the image with the feature similarity within a predetermined range in the database, and obtaining A picture whose similarity to the set face feature is within a predetermined range.
  • step 103 the pictures obtained above are grouped into one category.
  • the image to be managed when the image to be managed is stored in the album, after the image classification feature is acquired, the image in the album to be managed is retrieved, and the image having the image classification feature is obtained, and the obtained image is obtained. Displayed to the user, which realizes the function of automatic recommendation, which can eliminate the manual workload of the user and reduce the complexity of the user operation, thereby improving the efficiency of the album management.
  • the album based on the character is generally marked (also called mark) function: the function refers to the user's identity information for a face (that is, which person corresponds to this face).
  • the manner of labeling or marking may be manually selected by the user, or may be selected or confirmed by the user based on the recommendation of the system.
  • the embodiment of the invention proposes a scheme capable of helping the web album user to classify and centrally display the photos in the web album according to different characters appearing in the photo.
  • the face detection may be performed first, and then the user is guided to mark the identity of the person corresponding to the face in the photo; then the system performs the face recognition calculation in the background by using the information marked by the user (including feature extraction and Similarity calculation), and then based on the result of face recognition, recommend to the user all the photos of the face of the character (having the face features of the above characters and all the pictures whose similarities are within a predetermined range) Guide users to confirm the identity information of these faces in batches. Based on the user's confirmation feedback, the system can also update the recommendation information in real time.
  • the system can automatically recommend similar faces, the user only needs to perform a few steps to complete the tag confirmation work of the same person in the photo.
  • the user can quickly classify different characters in his album; the web album can also classify and display images according to different characters based on the user's annotation information.
  • the embodiment of the invention provides another method for managing pictures, which can be applied to terminals, such as personal computers, mobile terminals and the like. As shown in FIG. 2, the method may include steps 201 to 203.
  • the user is provided with a way to aggregate and manage the picture by the character dimension.
  • step 201 a photo with a person's face in the user's album is extracted and displayed by the face detection technology.
  • the receiving user labels the displayed photos, and the displayed photos may include unlabeled photos or may include the already labeled photos, and the unlabeled photos may be regarded as photos of unknown faces.
  • the photo displayed in step 201 can have many sheets, it is possible for the user to mark a plurality of photos.
  • step 203 the system uses the space album to aggregate the photos of the same face for the user according to the result of the user's annotation.
  • the photo of the same face displayed in this step is recommended by the system to the user, and may be misidentified.
  • the range of similarity is set to be larger. Misidentification may occur. If the setting is less, the recommended situation may be missed.
  • the specific configuration may be set by the technician according to the actual application requirements.
  • step 202 the user may continuously mark the photo
  • the system may also calculate the face data in real time and dynamically according to the marked result, and extract a face with high similarity from the unknown face, and recommend Label users to further reduce the barriers to application.
  • the solution of the embodiment of the invention helps the user to quickly complete the process of photo classification by using techniques such as face detection, face similarity calculation, and face automatic recommendation.
  • the solution of the embodiment of the present invention first performs face detection, and then guides the user to mark the identity of the person corresponding to the face in the photo.
  • the system uses the user's labeled identity information to perform face recognition calculation (including feature extraction and similarity calculation) in the background, and then based on face recognition, so as to recommend all photos of the face of the character to the user, and guide the user. Confirm the identity information of these faces in batches.
  • the system can also update the recommendation information in real time according to the user's confirmation feedback. Since the system automatically recommends similar faces, the user only needs to perform a few steps. Mark the work of the same person in the photo. In this way, the user can quickly classify different characters in his album; the web album can also classify and display photos according to different characters based on the user's annotation information.
  • the embodiment of the present invention mainly needs to design and implement a user annotation and system recommendation system. Based on the annotation and recommendation system, the user can complete the annotation process of the portrait efficiently and conveniently. Then, the system can automatically display and manage the corresponding portrait photos according to the user's annotation information. As shown in Figure 3, it is the full picture of the system, including the following parts:
  • Web Album There are various photos.
  • Pre-processing system pre-processing photos in the web album, mainly including face recognition, face feature extraction, similarity calculation, etc., which will be described in more detail in the following embodiments.
  • Labeling and recommendation system It can receive the user's annotation of the photo of the web album, and recommend photos according to the user's needs according to the user's annotation. A detailed implementation of the annotation and recommendation system will be described in more detail in subsequent embodiments.
  • the person annotation information is information used by the annotation and recommendation system to classify the album according to the user annotation.
  • Classified management and display photos Realize the display of photos recommended by the recommendation system, accept the user's selection confirmation and implement the classification management function.
  • the preprocessing system can include the following parts:
  • Photo storage server is a server that stores photos, in which the photo can be detected, that is, detecting whether there is a face in the photo, and sending a photo of the face to the task distribution server, and submitting a pre-processing task instruction;
  • the task distribution server is a server for the overall management of the pre-processing tasks, and distributes the pre-processing tasks to the pre-processing servers, and sends the received photos to the pre-processing servers;
  • Pre-processing server Calculate the received photos, obtain facial features and feature similarity, and then store them in the face feature database and the face feature similarity database. Since the amount of calculation may be large, there may be more than one pre-processing server.
  • annotation and recommendation system can include the following parts:
  • Front page Display the photo to the user and receive the user's annotation of the photo. Sending the labeling result to the task distribution server after receiving the user's annotation of the photo;
  • the task distribution server receives the user annotation and the information confirmed by the user, and distributes the information to the annotation server as a task;
  • Label server label the photo and store the face label information to the database of face label data
  • Recommended server Read face tag data and face feature acquaintance information, calculate recommendation information, and send it to the front page. That is: get the result that can be used as a recommended photo to the user and send it to the front page.
  • the foreground page will display the recommended photo at this time, waiting for the user to confirm, and if the user has confirmed, send the confirmation message to the task distribution server.
  • the embodiment of the invention can help the users of the web album to classify and centrally display the photos in the web album according to different characters appearing in the photo more efficiently and quickly. Since the system can automatically recommend photos with similar facial features to the user, the user only needs to perform a few steps to complete the tag confirmation work of the same person in the photo. In this way, the user can quickly classify different characters in his album; the web album can also classify and display photos according to different characters based on the user's annotation information.
  • the problem to be solved is mainly to help the users of the web album to classify the photos according to different people more efficiently and quickly.
  • the technical solution proposed in this embodiment is based on user annotation and system recommendation.
  • the system of this program can achieve this function as long as it can implement automatic or semi-automatic mode to help users sort photos according to different portraits.
  • the recommendations in the annotation and recommendation system shown in FIG. 5 can be modified based on face clustering or complex face recognition rather than simple face similarity recommendation.
  • the pre-processing system of Figure 4 is for acceleration and is not necessarily a solution.
  • the embodiment of the invention further provides a picture management device, as shown in FIG. 6, comprising:
  • a feature acquiring unit 601 configured to acquire a set image classification feature
  • the image retrieving unit 602 is configured to perform a search on the image to be managed by using the above-mentioned classification feature, and obtain a picture having the image classification feature acquired by the feature acquiring unit 601;
  • the display unit 603 is configured to display the obtained image by the image retrieval unit 602.
  • the picture determining unit 604 is configured to receive a selection instruction for selecting the displayed picture, and use the picture corresponding to the selection instruction as the picture that has been confirmed to be selected.
  • the picture management device can display the obtained picture to the user, thereby realizing the function of automatic recommendation, which can eliminate the manual manual workload and reduce the user's manual workload without the user manually selecting from a large number of pictures.
  • the user operation complexity can improve the efficiency of album management.
  • the picture classification feature is the feature information used to classify the picture to be managed, and it can have various expression forms, for example, the name marked by the user, and the name of the label is associated with a picture, this
  • the feature information of the picture can be used as the image classification feature; or the user selects a photo, then the face feature of the photo can also be used as the image classification feature.
  • the album may be a photo album of a person's photo, or may be a photo album of various categories such as a landscape or a pattern, so the image classification feature may be a facial feature, It can be various graphic features such as having a triangle, or a sun, or a smiley face, and the like.
  • any classification feature that can be acquired by using the graphic image recognition technology is acceptable, those skilled in the art can know that there are many feature information that can be acquired by using the graphic image recognition technology, and it is impossible to carry out the exhaustive.
  • the specific form of expression of the classification feature is not limited.
  • the following embodiment illustrates an example of obtaining an image classification feature in an application scenario. It can be understood that the acquisition process of the image classification feature is different based on different application scenarios, and the process of acquiring the classification feature does not affect the present process. The following examples are not to be construed as limiting the application scenarios of the embodiments of the present invention.
  • the display unit 603 is further configured to display a picture to be managed.
  • the feature acquiring unit 601 is configured to receive an instruction for selecting a picture of the picture by the user, and extract a classification feature of the picture corresponding to the instruction for selecting the picture, and serve as the set picture classification feature.
  • the process of acquiring the image classification feature information may be performed dynamically, that is, during the subsequent display of the acquired image, or before, the image classification feature information may be acquired.
  • the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking various picture classification features.
  • the union of the present invention may also be based on the erroneous judgment, and the erroneous image classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures.
  • the implementation of the dynamic update picture classification feature provided by the embodiment of the present invention may include: as shown in FIG. 7, the device further includes: an update unit 701, configured to: if the feature acquisition unit 601 extracts two or more pictures For the picture classification feature, the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is used as the set picture classification feature.
  • an update unit 701 configured to: if the feature acquisition unit 601 extracts two or more pictures For the picture classification feature, the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is used as the set picture classification feature.
  • the picture to be managed may be a plurality of pictures in the database, and various sets are obtained in various rules, and the pictures may be stored in an album in the database, which is not limited in the embodiment of the present invention.
  • the picture classification feature when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture.
  • the process of classification can be done on the fly, or there can be pre-operations to achieve acceleration.
  • the solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many specific ways of searching, which are not limited by the embodiment of the present invention. Examples of several implementation manners are given below, as follows:
  • the picture retrieval unit 602 searches the database using the picture classification feature to obtain a picture that matches the picture classification feature.
  • the feature data in the database may be centralized pre-processing, or may be pre-processed when the user adds a picture to a database, such as an album.
  • a database such as an album
  • the feature extraction unit 801 is configured to extract image classification feature data of the image in the album to be managed and store the data in the database before acquiring the set image classification feature.
  • the image classification feature may be a facial feature, and for different people, different facial features may be used, then the facial feature is As the image classification feature, it is possible to automatically filter the image with the face from a large number of pictures, and further combining the pre-processing scheme can speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature As shown in FIG. 9, the device further includes: a face recognition unit 901, configured to perform face recognition on a picture in each album in the database, calculate and store a face feature of the face image, and feature similarity to the database. .
  • the embodiment of the present invention further provides a specific implementation scheme for performing retrieval based on the facial features, which is determined by the similarity in the present embodiment. It can be known by the skilled person that face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred solution should not be construed as implementing the present invention. The only limitation of the example.
  • the image retrieving unit 602 is configured to search for a picture whose feature similarity is within a predetermined range in the database by using the set facial feature, and obtain the similarity with the set facial feature. A picture within the predetermined range.
  • An embodiment of the present invention provides another picture management apparatus.
  • the apparatus includes one or more processors 1001, and a storage medium 1002 storing operation instructions.
  • the processor 1001 can perform the following steps:
  • the picture to be managed is searched to obtain a picture having the above picture classification feature
  • the pictures obtained above are grouped into one category.
  • the processor 1002 may further perform the following steps:
  • the processor 1002 may further perform the following steps:
  • the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is set as Image classification feature.
  • FIG. 11 Another embodiment of the present invention further provides a device, as shown in FIG. 11, comprising: a receiver 1101, a transmitter 1102, a processor 1103, a display 1104, and a memory 1105.
  • the processor 1103 is configured to acquire a set image classification feature, use the image classification feature to retrieve a picture to be managed, obtain a picture having the picture classification feature, display the obtained picture, and receive the displayed picture. A selection instruction is selected, and the picture corresponding to the selection instruction is used as the picture that has been confirmed to be selected.
  • the image to be managed when the image to be managed is stored in the album, after the image classification feature is acquired, the image in the album to be managed is retrieved, and the image having the image classification feature is obtained, and the obtained image is obtained. Displayed to the user, which realizes the function of automatic recommendation, which can eliminate the manual workload of the user and reduce the complexity of the user operation, thereby improving the efficiency of the album management.
  • the image classification feature is feature information used for classifying the image to be managed, and may have various expression forms, for example, a name marked by the user, and the name of the annotation is associated with a certain image,
  • the feature information of the picture can be used as the picture classification feature; or the user selects a picture, then the face feature of the picture can also be used as the picture classification feature.
  • the album may be a photo album of a person's photo, or may be a photo album of various categories such as a landscape or a pattern, so the image classification feature may be a facial feature, It can be various graphic features such as having a triangle, or a sun, or a smiley face, and the like.
  • any classification feature that can be acquired by using the graphic image recognition technology is acceptable, those skilled in the art can know that there are many feature information that can be acquired by using the graphic image recognition technology, and it is impossible to carry out the exhaustive.
  • the specific form of expression of the classification feature is not limited.
  • the following embodiment illustrates an example of obtaining an image classification feature in an application scenario. It can be understood that the acquisition process of the image classification feature is different based on different application scenarios, and the process of acquiring the classification feature does not affect the present process. The following examples are not to be construed as limiting the application scenarios of the embodiments of the present invention.
  • the processor 1103 may acquire the set classification feature by: controlling to display a picture to be managed; and receiving an instruction for selecting a picture of the picture by the user, The picture classification feature of the picture corresponding to the instruction for selecting the picture is extracted and used as the set picture classification feature.
  • the process of acquiring the image classification feature information may be performed dynamically, that is, during the subsequent display of the acquired image, or before, the image classification feature information may be acquired.
  • the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking the union of various picture classification features, and Based on the erroneous judgment, the erroneous picture classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures.
  • the implementation of the dynamic update picture classification feature provided by the embodiment of the present invention may include: if the picture classification feature of two or more pictures is extracted, the extracted picture classification feature is filtered to obtain a preferred picture classification feature, and The preferred picture classification feature serves as a set picture classification feature.
  • the picture to be managed may be stored in the form of an album, which is not limited in the embodiment of the present invention.
  • the picture classification feature when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture.
  • the process of classification can be done on the fly, or there can be pre-operations to achieve acceleration.
  • the solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction.
  • search methods There may be many types of specific search methods, which are not limited by the embodiments of the present invention. The following are examples of several implementation manners, as follows: pre-storing the image classification features of the pictures in the album to be managed in the database. Data; the processor 1103 searches for a picture in the album to be managed, and the image having the image classification feature is obtained by using the image classification feature in the database to obtain a match with the image classification feature. picture of.
  • the feature data in the database may be centralized pre-processing, or may be pre-processed when the user adds a picture to a database, such as an album.
  • a database such as an album.
  • the processor 1103 is configured to extract the set image classification feature.
  • the picture classification feature data of the picture in the managed album is stored and stored in the database.
  • the image classification feature may be a face feature, and for different people, different face features may be used, and then the face feature is used as a picture classification feature.
  • the image of the face can be automatically filtered from a large number of pictures, and the combination of the pre-processing scheme can speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature, the processor 1103 may pre-store the image classification feature data of the picture in the album to be managed in the database by performing face recognition on the picture in each album in the database, calculating and storing the face feature and feature of the picture of the face Similarity to the database.
  • the embodiment of the present invention further provides a specific implementation scheme for performing the retrieval based on the facial features, which is determined by the similarity in the embodiment, and is technical in the field. It can be known that a face-based clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred scheme should not be construed as an embodiment of the present invention. The only limit.
  • the processor 1103 performs the above-mentioned image classification feature for searching in the database, and obtaining the image matching the image classification feature can be implemented by using the set facial feature in the database. A picture in which the feature similarity is within a predetermined range is retrieved, and a picture whose similarity with the set face feature is within a predetermined range is obtained.
  • the embodiment of the invention further provides a picture management system, as shown in FIG. 12, comprising: a database server 1201, an annotation and recommendation server 1202.
  • the database server 1201 is configured to store a to-be-processed picture
  • the labeling and recommendation server 1202 is configured to receive the set image classification feature, use the received image classification feature to perform a search on the image in the database, obtain a picture having the image classification feature, and send the obtained image to the terminal. For the above terminal to make a selection.
  • the image to be managed is retrieved, and the image having the image classification feature is obtained, and the obtained image is displayed to the user, thereby realizing the function of automatic recommendation, and the user can be Manual selection in the picture reduces the manual workload of the user and reduces the complexity of user operations.
  • the labeling and recommendation server 1202 is configured to receive an instruction for selecting a picture from a terminal, and extract an instruction corresponding to the selected picture. The classification characteristics of the picture and as a set of picture classification features.
  • the process of acquiring the image classification feature information may be performed dynamically, that is, during the subsequent display of the acquired image, or before, the image classification feature information may be acquired.
  • the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking the union of various picture classification features, and Based on the erroneous judgment, the erroneous picture classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures.
  • the implementation scheme of the dynamic update picture classification feature provided by the embodiment of the present invention may include: the labeling and recommendation server 1202, and the image classification feature of the extracted image if the image classification feature of two or more pictures is extracted.
  • the screening is performed to obtain a preferred image classification feature, and the preferred image classification feature is used as the set image classification feature.
  • the picture to be managed may be a plurality of pictures in the database, and various sets are obtained in various rules, and the pictures may be stored in an album in the database, which is not limited in the embodiment of the present invention.
  • the picture classification feature when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture.
  • the process of classification can be done on the fly, or there can be pre-operations to achieve acceleration.
  • the solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many specific ways of searching, which are not limited by the embodiment of the present invention. Examples of several implementation manners are given below, as follows:
  • the database server 1201 is further configured to store image classification feature data of a picture in the album;
  • the labeling and recommendation server 1202 is configured to perform the search using the image classification feature in the database server 1201 to obtain a picture matching the picture classification feature.
  • the embodiment of the present invention provides the following solution: as shown in FIG. 13, the system further includes: a pre-processing server 1301;
  • the pre-processing server 1301 is configured to extract the picture classification feature data of the picture to be managed, and store the extracted picture classification feature in the database server 1201.
  • the image classification feature may be a facial feature, and for different people, different facial features may be used, and then the facial feature is classified as a picture.
  • the feature can automatically filter the image with the face from a large number of pictures, and further combine the pre-processing scheme to speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature, the above pre- The processing server 1301 is configured to perform face recognition on the pictures in each album in the database, calculate face features and feature similarities of the pictures of the human face, and calculate the calculated face features and feature similarities into the database server 1201. .
  • the embodiment of the present invention provides the following solution: as shown in FIG. 14, the system further includes: a task distribution server 1401;
  • the task distribution server 1401 is configured to distribute the picture of the face of each album stored in the database server 1201 to each pre-processing server 1301;
  • the pre-processing server 1301 is configured to perform face recognition on the received picture distributed by the task distribution server 1401, calculate face features and feature similarity of the face image, and calculate the calculated face features and features. The degree is reached in the above database server 1201.
  • the embodiment of the present invention further provides a specific implementation scheme for performing retrieval based on the facial features, which is determined by the similarity in the present embodiment. It can be known by the skilled person that face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred solution should not be construed as implementing the present invention. The only limitation of the example.
  • the pre-processing server 1301 is configured to use the set facial features in the above database. The server 1201 retrieves a picture whose feature similarity is within a predetermined range, and obtains a picture whose similarity with the set face feature is within a predetermined range.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Embodiments of the present invention provide an image management method, an apparatus and a system, wherein the method comprises: obtaining an image classification feature that is set; using the image classification feature, performing retrieval in images to be managed, and obtaining an image that is provided with the image classification feature, and classifying the image obtained into a category. Using a technical scheme provided by the embodiments of the present invention, a user does not need to manually choose an image from a large number of images, easing manual workload of the user and reducing operation complexity for the user.

Description

图片管理方法、装置及系统Picture management method, device and system
本申请要求于2013年12月30日提交中国专利局、申请号为201310746306.7、发明名称为“一种相册管理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2013-10746306.7, entitled "A Photo Album Management Method and Apparatus", filed on Dec. 30, 2013, the entire contents of .
技术领域Technical field
本发明涉及通信技术领域,特别涉及一种图片管理方法、装置及系统。The present invention relates to the field of communications technologies, and in particular, to a picture management method, apparatus, and system.
背景技术Background technique
在网络相册中,图片数量越来越多,这样就出现了对网络相册中图片进行管理的需求。例如:需要对已经存在的图片进行分类。目前实现对图片的分类是通过手动的方式实现的,具体过程如下:如果用户希望把自己相册中照片按不同人物进行分类和集中展示的话,只能首先手工创建不同人物的分类子相册,然后再手工找到对应的人物,把他们的照片移动到对应的子相册中去。。以上技术方案是用户完全手动的进行分类和管理操作,系统并不能辅助用户简化这一个操作流程。因此,该方案对图片的管理效率低。In the online photo album, the number of pictures is increasing, so there is a need to manage the pictures in the web album. For example, you need to classify existing pictures. At present, the classification of pictures is realized by manual method. The specific process is as follows: If the user wants to classify and display the photos in his album according to different characters, he can only manually create the sub-album of different characters, and then Manually find the corresponding characters and move their photos to the corresponding sub-album. . The above technical solution is that the user performs manual classification and management operations completely, and the system does not assist the user to simplify the operation process. Therefore, the scheme is inefficient in managing pictures.
发明内容Summary of the invention
本发明实施例提供了一种图片管理方法、装置及系统,以解决以上技术问题。The embodiment of the invention provides a picture management method, device and system to solve the above technical problem.
一种图片管理方法,包括:A picture management method, including:
获取设定的图片分类特征;Obtaining the set image classification feature;
使用所述分类特征,对待管理的图片进行检索,获得具有所述分类特征的图片;以及Using the classification feature to retrieve a picture to be managed to obtain a picture having the classification feature;
将所获得的图片归为一类。Classify the images obtained.
一种图片管理装置,包括一个或多个处理器和存储有操作指令的存储介质,当运行所述存储介质中的操作指令时,所述处理器执行如下步骤: A picture management apparatus includes one or more processors and a storage medium storing operation instructions, and when operating an operation instruction in the storage medium, the processor performs the following steps:
获取设定的图片分类特征;Obtaining the set image classification feature;
使用所述图片分类特征,对待管理图片进行检索,获得具有所述图片分类特征的图片;以及Using the picture classification feature to search for a managed picture to obtain a picture having the picture classification feature;
将所获得的图片归为一类。Classify the images obtained.
一种图片管理系统,包括:A picture management system comprising:
数据库服务器、标注和推荐服务器、Database server, annotation and recommendation server,
所述数据库服务器,用于存储待处理图片;The database server is configured to store a picture to be processed;
所述标注和推荐服务器,用于接收设定的图片分类特征;使用所述图片分类特征,对所述数据库服务器内的图片进行检索,获得具有所述图片分类特征的图片;向终端发送获得的图片,供所述终端进行选择。And the labeling and recommendation server is configured to receive the set image classification feature, use the image classification feature to retrieve the image in the database server, obtain a picture having the image classification feature, and send the obtained image to the terminal. A picture for the terminal to select.
从以上技术方案可以看出,本发明实施例具有以下优点:在获取到图片分类特征后,对待管理的图片进行检索,获得具有上述图片分类特征的图片。采用本发明实施例所提供的技术方案,用户不用从大量图片中手动选择图片,减少了用户手动的工作量并降低了用户操作复杂度。As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: after acquiring the image classification feature, the image to be managed is retrieved, and the image having the image classification feature is obtained. With the technical solution provided by the embodiment of the present invention, the user does not need to manually select a picture from a large number of pictures, which reduces the manual workload of the user and reduces the user operation complexity.
附图说明DRAWINGS
图1为本发明实施例所提供的一种图片管理方法流程示意图;FIG. 1 is a schematic flowchart of a picture management method according to an embodiment of the present invention;
图2为本发明实施例所提供的另一种图片管理方法流程示意图;2 is a schematic flowchart of another picture management method according to an embodiment of the present invention;
图3为本发明实施例所提供的一种用户标注和系统推荐系统结构示意图;3 is a schematic structural diagram of a user annotation and system recommendation system according to an embodiment of the present invention;
图4为本发明实施例所提供的一种预处理系统的结构示意图;4 is a schematic structural diagram of a preprocessing system according to an embodiment of the present invention;
图5为本发明实施例所提供的另一种标注和推荐系统的结构示意图;FIG. 5 is a schematic structural diagram of another labeling and recommendation system according to an embodiment of the present invention; FIG.
图6为本发明实施例所提供的一种图片管理装置结构示意图;FIG. 6 is a schematic structural diagram of a picture management apparatus according to an embodiment of the present invention;
图7为本发明实施例所提供的另一种图片管理装置结构示意图;FIG. 7 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present disclosure;
图8为本发明实施例所提供的另一种图片管理装置结构示意图;FIG. 8 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present disclosure;
图9为本发明实施例所提供的另一种图片管理装置结构示意图;FIG. 9 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present invention;
图10为本发明实施例所提供的另一种图片管理装置结构示意图;FIG. 10 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present disclosure;
图11为本发明实施例所提供的另一种图片管理装置结构示意图; FIG. 11 is a schematic structural diagram of another picture management apparatus according to an embodiment of the present invention;
图12为本发明实施例系统结构示意图;12 is a schematic structural diagram of a system according to an embodiment of the present invention;
图13为本发明实施例系统结构示意图;13 is a schematic structural diagram of a system according to an embodiment of the present invention;
图14为本发明实施例系统结构示意图。FIG. 14 is a schematic structural diagram of a system according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种图片管理方法,该方法可以应用于服务器等设备。如图1所示,该方法包括步骤101至步骤103。The embodiment of the invention provides a picture management method, which can be applied to devices such as servers. As shown in FIG. 1, the method includes steps 101 to 103.
在步骤101中,获取设定的图片分类特征。In step 101, the set picture classification feature is acquired.
本发明实施例中,图片分类特征是用来对待管理的图片进行分类所用的特征信息,它可以有各种表现形式,在本发明实施例中,图片的分类信息是指图形图像的信息。In the embodiment of the present invention, the image classification feature is used to classify the image to be managed, and may have various representations. In the embodiment of the present invention, the classification information of the image refers to the information of the graphic image.
以下以待管理的图片为存储于网络相册中的图片为例,对该步骤进行进一步描述,基于相册的不同,相册可以是人的照片的相册,也可以是风景、图案等各种类别的相册,因此图片分类特征可以是人脸特征,也可以是各种图形特征例如:具有三角形,或者太阳,或者笑脸等等。只要是能够采用图形图像识别技术获取的任意图片分类特征都是可以被接受的,本领域技术人员可以获知的是能够采用图形图像识别技术获取的特征信息有很多,不可能进行穷举,本发明实施例对于图片分类特征的具体表现形式不予限定。The following takes the picture to be managed as a picture stored in the web album as an example, and further describes the step. According to the different albums, the photo album may be a photo album of a person's photo, or may be a photo album of various categories such as landscapes and patterns. Therefore, the picture classification feature may be a face feature, or may be various graphic features such as having a triangle, or a sun, or a smiley face, and the like. Any image classification feature that can be acquired by using the graphic image recognition technology is acceptable, and those skilled in the art can know that there are many feature information that can be acquired by using the graphic image recognition technology, and it is impossible to perform the present invention. The embodiment does not limit the specific expression of the picture classification feature.
以下实施例将就一种应用场景中图片分类特征的获取方式进行举例说明,可以理解的是基于不同的应用场景,图片分类特征的获取流程会有所不同,图片分类特征的获取流程并不影响本发明实施例的实现,以下举例不应理解为对本发明实施例应用场景的限定。可选地,获取设定的图片分类可以包括:显示网络相册内的图片;接收用户选择图片的选择图片的指令,提取上述选择图片的指令对应的图片的图片分类特征,并作为设定的图片分类特征。在前面实施 例中已经对图片分类特征进行了说明,本实施例中基于用户选择的图片的不同,可以提供的图片分类特征也会有所不同。以人像图片为例,在用户选择某一人像图片以后,将会提取到人脸特征作为该图片的图片分类特征。The following example illustrates an example of obtaining an image classification feature in an application scenario. It can be understood that the acquisition process of the image classification feature is different based on different application scenarios, and the process of acquiring the image classification feature does not affect. The following examples are not to be construed as limiting the application scenarios of the embodiments of the present invention. Optionally, obtaining the set picture category may include: displaying a picture in the network album; receiving an instruction for selecting a picture of the user to select the picture, extracting a picture classification feature of the picture corresponding to the instruction for selecting the picture, and using the picture as the set picture Classification features. Implemented in front The picture classification feature has been described in the example. In this embodiment, the picture classification feature that can be provided is different based on the picture selected by the user. Taking a portrait picture as an example, after the user selects a certain portrait picture, the face feature is extracted as the picture classification feature of the picture.
本发明实施例中,图片分类特征信息的获取过程可以是动态进行的,也即是说,在后续显示获取的图片的过程中,或者之前都可以获取图片分类特征信息。在本发明实施例中,还可以对设定的图片分类特征进行筛选得到优选的图片分类特征,例如,取各种图片分类特征的交集,或者,取各种图片分类特征的并集,还可以是基于错误的判断,取并集的基础上去除矛盾的图片分类特征中错误的图片分类特征,本发明实施例对优选的规则不予限定。由于图片分类特征改变,那么获得的图片也将对应改变,从而实现动态推荐图片的技术目的。本发明实施例提供的动态更新图片分类特征的实现方案可以包括:若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将优选的图片分类特征作为设定的图片分类特征。In the embodiment of the present invention, the process of acquiring the image classification feature information may be performed dynamically, that is, the image classification feature information may be acquired during the subsequent display of the acquired image. In the embodiment of the present invention, the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking the union of various picture classification features, and Based on the erroneous judgment, the erroneous picture classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures. The implementation of the dynamic update picture classification feature provided by the embodiment of the present invention may include: if the picture classification feature of two or more pictures is extracted, the extracted picture classification feature is filtered to obtain a preferred picture classification feature, and The preferred picture classification feature serves as a set picture classification feature.
在步骤102中,使用上述图片分类特征,对待管理的图片进行检索,获得具有上述图片分类特征的图片。In step 102, the picture to be managed is searched using the picture classification feature to obtain a picture having the picture classification feature.
本发明实施例中,待管理的图片可能是数据库中众多图片,以各种规则得到各种集合,而这些图片在数据库中可以以相册的方式进行存储,本发明实施例对此不予限定。在本发明实施例中,当在执行检索之前已经获得了图片分类特征,那么只需要对图片进行自动分类就可以了。分类的过程,可以是即时完成的,也可以有预操作来实现加速。即时完成的方案可以包括:在获得图片分类特征以后,提取各图片的图片分类特性数据,然后进行比对确定图片是否属于需要的类别;预操作的方案可以包括:采用预先处理的方式,对数据库中的图片预处理,得到所有图片的图片分类特征数据,那么在获取到图片分类特征以后,可以直接用图片分类特征在数据库中进行检索,节省特征提取的时间。具体检索的方式可能有很多种,本发明实施例对此不予限定,以下给出了几种实现方式的举例,具体如下:在数据库中预存有上述待管理的图片的图片分类特征数据;上述对待管理的相册内的图片进行检索,获得具有上述图片分类特征的图片包括:在上述数据库中使用上述图片分类特征进行检索,获得与上述 图片分类特征匹配的图片。上述图片分类特征数据,是前面所提到的图片分类特征的数据参数值,基于图片分类特征的不同图片分类特征数据的参数值的也将会有对应不同的表现形式,在此不再一一说明。In the embodiment of the present invention, the picture to be managed may be a plurality of pictures in the database, and various sets are obtained in various rules, and the pictures may be stored in an album in the database, which is not limited in the embodiment of the present invention. In the embodiment of the present invention, when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture. The process of classification can be done on the fly, or there can be pre-operations to achieve acceleration. The solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many specific ways of searching, which are not limited in the embodiment of the present invention. The following are examples of several implementation manners, as follows: pre-storing the image classification feature data of the picture to be managed in the database; Searching for a picture in the album to be managed, and obtaining a picture having the image classification feature includes: searching in the database using the image classification feature to obtain the above Image classification feature matching image. The image classification feature data mentioned above is the data parameter value of the image classification feature mentioned above, and the parameter values of different image classification feature data based on the image classification feature will also have different representation forms, and no longer one by one. Description.
在本发明实施例中,数据库中的特征数据可以是集中预处理的,也可以是在用户添加图片到数据库,例如相册时预处理的。以下给出了一种实现方案的举例,具体如下:在获取设定的图片分类特征之前还包括:在接收到存储图片的指令后,提取上述存储图片的指令对应的图片的图片分类特征数据并存储到数据库中。In the embodiment of the present invention, the feature data in the database may be centralized pre-processing, or may be pre-processed when the user adds a picture to a database, such as an album. An example of an implementation scheme is as follows: the following is as follows: before acquiring the set image classification feature, the method further includes: after receiving the instruction for storing the image, extracting image classification feature data of the image corresponding to the instruction for storing the image and Stored in the database.
在本发明实施例中,基于人的照片这一特定的应用场景,图片分类特征可以是人脸特征,对于不同的人而言,会具有不同的人脸特征,那么将人脸特征作为图片分类特征,则可以实现从大量图片中自动筛选具有这个人脸的图片出来,进一步结合预处理的方案则可以加快分类的速度,减少用户等待时间,具体如下:上述图片分类特征为人脸特征,上述在数据库中预存有上述待管理的相册内的图片的图片分类特征数据包括:对数据库中各相册中的图片进行人脸识别,计算并存储有人脸的图片的人脸特征以及特征相似度到数据库。In the embodiment of the present invention, based on a specific application scenario of a person's photo, the image classification feature may be a facial feature, and for different people, different facial features may be used, and then the facial feature is classified as a picture. The feature can automatically filter the image with the face from a large number of pictures, and further combine the pre-processing scheme to speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature, the above The image classification feature data pre-stored in the database for the picture in the album to be managed includes: performing face recognition on the pictures in each album in the database, calculating and storing the face features of the pictures of the face and the feature similarity to the database.
人脸识别通常也叫做人像识别、面部识别。人脸识别的主要步骤是人脸检测,人脸检测在实际应用中主要用于人脸识别的预处理,即在图像中准确标定出人脸的位置和大小。人脸图像中包含的模式特征十分丰富,如直方图特征、颜色特征、模板特征、结构特征及Haar-like(一种特征描述算子)特征等。人脸检测就是把这其中有用的信息挑出来,并利用这些特征实现人脸检测。通常使用的人脸检测方法基于以上特征采用Adaboost学习算法,Adaboost算法是一种用来分类的方法。在人脸检测过程中提取到的各种模式特征则可以作为人脸特征的参数进行存储。Face recognition is also commonly referred to as portrait recognition and face recognition. The main step of face recognition is face detection. In actual application, face detection is mainly used for pre-processing of face recognition, that is, the position and size of the face are accurately calibrated in the image. The pattern features contained in the face image are very rich, such as histogram features, color features, template features, structural features, and Haar-like (a feature description operator) feature. Face detection is to pick out the useful information and use these features to achieve face detection. The commonly used face detection method uses the Adaboost learning algorithm based on the above features, and the Adaboost algorithm is a method for classification. The various pattern features extracted during the face detection process can be stored as parameters of the face features.
在本发明实施例中,基于前述人脸特征作为图片分类特征,本发明实施例还提供了基于人脸特征进行检索的具体实现方案,本实施例中采用的是相似度来判断的,本领域技术人员可以获知的是基于人脸聚类或者更为复杂的人脸识别方案也是可以通过人脸特征来进行分类的,以下采用相似度的方案作为一个优选方案的举例不应理解为对本发明实施例的唯一限定。当采用相似度进行图 片分类时,在上述数据库中使用上述图片分类特征进行检索,获得与上述图片分类特征匹配的图片包括:使用设定的人脸特征在上述数据库中检索特征相似度在预定范围内的图片,获得与设定的人脸特征的相似度在预定范围内的图片。In the embodiment of the present invention, based on the foregoing facial features as the image classification feature, the embodiment of the present invention further provides a specific implementation scheme for performing retrieval based on the facial features, which is determined by the similarity in the present embodiment. It can be known by the skilled person that face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred solution should not be construed as implementing the present invention. The only limitation of the example. When using similarity for graphing In the slice classification, the image classification feature is used in the above database to perform the retrieval, and obtaining the image matching the image classification feature includes: using the set face feature to retrieve the image with the feature similarity within a predetermined range in the database, and obtaining A picture whose similarity to the set face feature is within a predetermined range.
在步骤103中,将上述获得的图片归为一类。In step 103, the pictures obtained above are grouped into one category.
在本发明实施例中,当待管理的图片存储于相册中时,在获取到图片分类特征后,对待管理的相册内的图片进行检索,获得具有上述图片分类特征的图片,将这些获得的图片显示给用户,这样实现了自动推荐的功能,可以不用用户从大量图片中手动选择,减少了用户手动的工作量并降低了用户操作复杂度,从而可以提高相册管理效率。In the embodiment of the present invention, when the image to be managed is stored in the album, after the image classification feature is acquired, the image in the album to be managed is retrieved, and the image having the image classification feature is obtained, and the obtained image is obtained. Displayed to the user, which realizes the function of automatic recommendation, which can eliminate the manual workload of the user and reduce the complexity of the user operation, thereby improving the efficiency of the album management.
以下实施例将以人物为主题的网络相册为例,进行详细说明。目前基于人物为主题的相册一般都会有标注(也称为标记)功能:该功能是是指用户对一张人脸,给出对应的身份信息(就是这个脸对应哪一个人)。在本发明实施例中,标注或者标记的方式,可以是通过用户的手工输入,也可以是用户基于系统的推荐来选择或者确认。The following embodiment will take a character-based web album as an example for detailed description. At present, the album based on the character is generally marked (also called mark) function: the function refers to the user's identity information for a face (that is, which person corresponds to this face). In the embodiment of the present invention, the manner of labeling or marking may be manually selected by the user, or may be selected or confirmed by the user based on the recommendation of the system.
本发明实施例提出了能够帮助网络相册用户更高效快捷的把自己网络相册中的照片按照片上出现的不同人物进行分类和集中展示的方案。在实现本发明实施例的过程中,可以首先进行人脸检测,然后引导用户标记自己照片中人脸对应的人物身份;然后系统利用用户标注的信息在后台进行人脸识别计算(包括特征提取和相似度计算),然后基于人脸识别的结果,给用户推荐有这一人物的人脸出现的所有照片(具有上述人物的人脸特征以及相似度在预定范围内的所有图片),以此来引导用户批量确认这些人脸的身份信息。根据用户的确认反馈,系统还可以实时更新推荐信息。The embodiment of the invention proposes a scheme capable of helping the web album user to classify and centrally display the photos in the web album according to different characters appearing in the photo. In the process of implementing the embodiment of the present invention, the face detection may be performed first, and then the user is guided to mark the identity of the person corresponding to the face in the photo; then the system performs the face recognition calculation in the background by using the information marked by the user (including feature extraction and Similarity calculation), and then based on the result of face recognition, recommend to the user all the photos of the face of the character (having the face features of the above characters and all the pictures whose similarities are within a predetermined range) Guide users to confirm the identity information of these faces in batches. Based on the user's confirmation feedback, the system can also update the recommendation information in real time.
采用本发明实施例的方案,由于系统可以实现自动推荐相似人脸,所以用户只需要进行少量几步操作即可完成照片中同一个人的标记确认工作。这样,用户可以快速把自己相册中不同人物完成分类;网络相册也可以基于用户的标注信息来按照不同人物分类和展示图片。 With the solution of the embodiment of the present invention, since the system can automatically recommend similar faces, the user only needs to perform a few steps to complete the tag confirmation work of the same person in the photo. In this way, the user can quickly classify different characters in his album; the web album can also classify and display images according to different characters based on the user's annotation information.
本发明实施例提供了另一种图片管理方法,该方法可以应用于终端,例如个人电脑、移动终端等设备。如图2所示,该方法可以包括步骤201至步骤203。The embodiment of the invention provides another method for managing pictures, which can be applied to terminals, such as personal computers, mobile terminals and the like. As shown in FIG. 2, the method may include steps 201 to 203.
以存储于人像相册中的图片为例,且以人物面孔为主题,提供给用户一个以人物维度来聚合、管理图片的方式。Taking a picture stored in a portrait album as an example, and using the character face as a theme, the user is provided with a way to aggregate and manage the picture by the character dimension.
在步骤201中,通过人脸检测技术,将用户相册中具有人物面孔的照片提取出来并显示。In step 201, a photo with a person's face in the user's album is extracted and displayed by the face detection technology.
在步骤202中,接收用户对显示出来的照片进行标注,这些显示出来的照片可以包含未标注的照片也可以包含已经标注的照片,未标注的照片可以认为是未知面孔的照片。In step 202, the receiving user labels the displayed photos, and the displayed photos may include unlabeled photos or may include the already labeled photos, and the unlabeled photos may be regarded as photos of unknown faces.
由于在步骤201中显示的照片可以有很多张,用户是可能对多张照片进行标注的。Since the photo displayed in step 201 can have many sheets, it is possible for the user to mark a plurality of photos.
在步骤203中,系统根据用户的标注的结果,采用空间相册为用户聚合显示同一个面孔的照片。In step 203, the system uses the space album to aggregate the photos of the same face for the user according to the result of the user's annotation.
需要说明的是,本步骤中显示的同一个面孔的照片是系统推荐给用户的,是可能出现误识别的,比如说:采用相似度的方案中,相似度的范围设定得较大,则可能出现误识别,如果设置得较少则可能漏推荐的情况,具体可以由技术人员根据实际的应用需求进行设定。It should be noted that the photo of the same face displayed in this step is recommended by the system to the user, and may be misidentified. For example, in the similarity scheme, the range of similarity is set to be larger. Misidentification may occur. If the setting is less, the recommended situation may be missed. The specific configuration may be set by the technician according to the actual application requirements.
另外,需要说明的是,由于在步骤202中,用户可能在不停的标注照片,那么系统还可以根据标注的结果实时、动态计算面孔数据,从未知面孔中提取出相似度高的面孔,推荐给用户进行标注,进一步降低应用的门槛。In addition, it should be noted that, in step 202, the user may continuously mark the photo, the system may also calculate the face data in real time and dynamically according to the marked result, and extract a face with high similarity from the unknown face, and recommend Label users to further reduce the barriers to application.
本发明实施例方案通过人脸检测、人脸相似度计算、人脸自动推荐等技术来帮助用户快速完成照片分类这一过程。本发明实施例方案首先会进行人脸检测,然后引导用户标记自己照片中人脸对应的人物身份。系统利用用户标注的身份信息在后台进行人脸识别计算(包括特征提取和相似度计算),然后会基于人脸识别,从而给用户推荐有这一人物的人脸出现的所有照片,并引导用户批量确认这些人脸的身份信息。系统根据用户的确认反馈,还可以实时更新推荐信息。由于系统自动推荐相似脸,所以用户只需要进行少量几步操作即可完 成照片中同一个人的标记确认工作。这样,用户可以快速把自己相册中不同人物完成分类;网络相册也可以基于用户的标注信息来按照不同人物分类和展示照片。The solution of the embodiment of the invention helps the user to quickly complete the process of photo classification by using techniques such as face detection, face similarity calculation, and face automatic recommendation. The solution of the embodiment of the present invention first performs face detection, and then guides the user to mark the identity of the person corresponding to the face in the photo. The system uses the user's labeled identity information to perform face recognition calculation (including feature extraction and similarity calculation) in the background, and then based on face recognition, so as to recommend all photos of the face of the character to the user, and guide the user. Confirm the identity information of these faces in batches. The system can also update the recommendation information in real time according to the user's confirmation feedback. Since the system automatically recommends similar faces, the user only needs to perform a few steps. Mark the work of the same person in the photo. In this way, the user can quickly classify different characters in his album; the web album can also classify and display photos according to different characters based on the user's annotation information.
为了实现基于用户标注和系统推荐的人像分类管理相册功能,本发明实施例主要需要设计并实现了用户标注和系统推荐系统。基于标注和推荐系统,用户可以高效便捷的完成人像的标注过程。然后,系统可以自动根据用户的标注信息分类展示和管理对应的人像照片。如图3所示,为系统全图,包含如下几个部分:In order to implement the portrait classification management album function based on user annotation and system recommendation, the embodiment of the present invention mainly needs to design and implement a user annotation and system recommendation system. Based on the annotation and recommendation system, the user can complete the annotation process of the portrait efficiently and conveniently. Then, the system can automatically display and manage the corresponding portrait photos according to the user's annotation information. As shown in Figure 3, it is the full picture of the system, including the following parts:
网络相册:存有各种照片。Web Album: There are various photos.
预处理系统:对网络相册中的照片进行预处理,主要包括人脸识别、人脸特征提取,相似度计算等,后续实施例将进行更详细的说明。Pre-processing system: pre-processing photos in the web album, mainly including face recognition, face feature extraction, similarity calculation, etc., which will be described in more detail in the following embodiments.
标注和推荐系统:实现接收用户对网络相册的照片的标注,并依据用户的标注来推荐符合用户需求的照片。批注和推荐系统的具体实现过程在后续实施例中将给出更详细的说明。Labeling and recommendation system: It can receive the user's annotation of the photo of the web album, and recommend photos according to the user's needs according to the user's annotation. A detailed implementation of the annotation and recommendation system will be described in more detail in subsequent embodiments.
人相标注信息,是标注和推荐系统依据用户标注获得的用于对相册分类的信息。The person annotation information is information used by the annotation and recommendation system to classify the album according to the user annotation.
分类管理和展示相片:实现对推荐系统推荐的相片的展示,接受用户的选择确认进而实现分类管理功能。Classified management and display photos: Realize the display of photos recommended by the recommendation system, accept the user's selection confirmation and implement the classification management function.
如图4所示,预处理系统可以包括如下几个部分:As shown in FIG. 4, the preprocessing system can include the following parts:
照片存储服务器:是存储照片的服务器,在这个服务器可以完成检测照片,即:检测照片中是否有人脸,并将有人脸的照片发送给任务分发服务器,并提交预处理任务指令;Photo storage server: is a server that stores photos, in which the photo can be detected, that is, detecting whether there is a face in the photo, and sending a photo of the face to the task distribution server, and submitting a pre-processing task instruction;
任务分发服务器:是对预处理任务的统筹管理的服务器,实现将预处理任务分发到各预处理服务器,并将接收到的照片发送给这些预处理服务器;The task distribution server is a server for the overall management of the pre-processing tasks, and distributes the pre-processing tasks to the pre-processing servers, and sends the received photos to the pre-processing servers;
预处理服务器:实现对接收到的照片进行计算,得到人脸特征以及特征相似度,然后存入人脸特征数据库以及人脸特征相似度数据库。由于计算量可能较大,所以预处理服务器数量可以有多个。Pre-processing server: Calculate the received photos, obtain facial features and feature similarity, and then store them in the face feature database and the face feature similarity database. Since the amount of calculation may be large, there may be more than one pre-processing server.
如图5所示,标注和推荐系统可以包括如下几个部分: As shown in Figure 5, the annotation and recommendation system can include the following parts:
前台页面:向用户显示照片,接收用户对照片的标注。在接收到用户对照片的标注后将标注结果发送给任务分发服务器;Front page: Display the photo to the user and receive the user's annotation of the photo. Sending the labeling result to the task distribution server after receiving the user's annotation of the photo;
任务分发服务器:接收用户标注以及用户确认的信息,作为任务分发给标注服务器;The task distribution server: receives the user annotation and the information confirmed by the user, and distributes the information to the annotation server as a task;
标注服务器:对照片进行标注,并存储人脸标注信息到人脸标注数据的数据库;Label server: label the photo and store the face label information to the database of face label data;
推荐服务器:读取人脸标注数据以及人脸特征相识度信息,计算推荐信息,发送给前台页面。即:得到可以作为推荐照片给用户的结果,发送给前台页面。Recommended server: Read face tag data and face feature acquaintance information, calculate recommendation information, and send it to the front page. That is: get the result that can be used as a recommended photo to the user and send it to the front page.
前台页面此时会显示推荐照片,等待用户确认,如果用户有确认则将确认信息发送到任务分发服务器。The foreground page will display the recommended photo at this time, waiting for the user to confirm, and if the user has confirmed, send the confirmation message to the task distribution server.
本发明实施例可以帮助网络相册的用户更高效快捷的把网络相册中的照片按照片上出现的不同人物进行分类和集中展示。由于系统可以自动推荐具有相似脸部特征的照片给用户,所以用户只需要进行少量几步操作即可完成照片中同一个人的标记确认工作。这样,用户可以快速把自己相册中不同人物完成分类;网络相册也可以基于用户的标注信息来按照不同人物分类和展示照片。The embodiment of the invention can help the users of the web album to classify and centrally display the photos in the web album according to different characters appearing in the photo more efficiently and quickly. Since the system can automatically recommend photos with similar facial features to the user, the user only needs to perform a few steps to complete the tag confirmation work of the same person in the photo. In this way, the user can quickly classify different characters in his album; the web album can also classify and display photos according to different characters based on the user's annotation information.
本实施例,要解决的问题主要是帮助网络相册的用户更高效快捷将照片按照不同人来分类。本实施例提出的技术方案是基于用户标注和系统推荐的。该方案的系统只要能实现自动或者半自动的模式来帮助用户把照片按照不同人像分类,都可实现这一功能。比如说,图5所示的标注和推荐系统中的推荐可以改成基于人脸聚类或者复杂的人脸识别而非简单的人脸相似度推荐。另外,图4的预处理系统是为了加速,并不是必需执行的方案。In this embodiment, the problem to be solved is mainly to help the users of the web album to classify the photos according to different people more efficiently and quickly. The technical solution proposed in this embodiment is based on user annotation and system recommendation. The system of this program can achieve this function as long as it can implement automatic or semi-automatic mode to help users sort photos according to different portraits. For example, the recommendations in the annotation and recommendation system shown in FIG. 5 can be modified based on face clustering or complex face recognition rather than simple face similarity recommendation. In addition, the pre-processing system of Figure 4 is for acceleration and is not necessarily a solution.
本发明实施例还提供了一种图片管理装置,如图6所示,包括:The embodiment of the invention further provides a picture management device, as shown in FIG. 6, comprising:
特征获取单元601,用于获取设定的图片分类特征;a feature acquiring unit 601, configured to acquire a set image classification feature;
图片检索单元602,用于使用上述分类特征,对待管理的图片进行检索,获得具有上述特征获取单元601获取的图片分类特征的图片;The image retrieving unit 602 is configured to perform a search on the image to be managed by using the above-mentioned classification feature, and obtain a picture having the image classification feature acquired by the feature acquiring unit 601;
显示单元603,用于将上述图片检索单元602检索获得的图片进行显示;The display unit 603 is configured to display the obtained image by the image retrieval unit 602.
图片确定单元604,用于接收对显示的图片进行选择的选择指令,并将上述选择指令对应的图片作为已确认选择的图片。 The picture determining unit 604 is configured to receive a selection instruction for selecting the displayed picture, and use the picture corresponding to the selection instruction as the picture that has been confirmed to be selected.
以上实施例,在获取到图片分类特征后,对待管理的图片进行检索,获得具有上述图片分类特征的图片,并将这些图片归为一类。当待管理的图片存储在相册中时,图片管理装置可以将获得的图片显示给用户,这样实现了自动推荐的功能,可以不用用户从大量图片中手动选择,减少了用户手动的工作量并降低了用户操作复杂度,从而可以提高相册管理效率。In the above embodiment, after the image classification feature is acquired, the image to be managed is searched, and the image having the image classification feature is obtained, and the images are classified into one class. When the picture to be managed is stored in the photo album, the picture management device can display the obtained picture to the user, thereby realizing the function of automatic recommendation, which can eliminate the manual manual workload and reduce the user's manual workload without the user manually selecting from a large number of pictures. The user operation complexity can improve the efficiency of album management.
本发明实施中,图片分类特征是用来对待管理的图片进行分类所用的特征信息,它可以有各种表现形式,例如:用户标注的名称,这个标注的名称与某张图片关联以后,这张图片的特征信息就可以作为图片分类特征;还可以是用户选择了某张照片,那么这张照片的人脸特征也可以作为图片分类特征。另外,当待处理图片存储于相册中时,基于相册的不同,相册可以是人的照片的相册,也可以是风景、图案等各种类别的相册,因此图片分类特征可以是人脸特征,也可以是各种图形特征例如:具有三角形,或者太阳,或者笑脸等等。只要是能够采用图形图像识别技术获取的任意分类特征都是可以被接受的,本领域技术人员可以获知的是能够采用图形图像识别技术获取的特征信息有很多,不可能进行穷举,本发明实施例对于分类特征的具体表现形式不予限定。In the implementation of the present invention, the picture classification feature is the feature information used to classify the picture to be managed, and it can have various expression forms, for example, the name marked by the user, and the name of the label is associated with a picture, this The feature information of the picture can be used as the image classification feature; or the user selects a photo, then the face feature of the photo can also be used as the image classification feature. In addition, when the to-be-processed picture is stored in the album, the album may be a photo album of a person's photo, or may be a photo album of various categories such as a landscape or a pattern, so the image classification feature may be a facial feature, It can be various graphic features such as having a triangle, or a sun, or a smiley face, and the like. As long as any classification feature that can be acquired by using the graphic image recognition technology is acceptable, those skilled in the art can know that there are many feature information that can be acquired by using the graphic image recognition technology, and it is impossible to carry out the exhaustive. The specific form of expression of the classification feature is not limited.
以下实施例将就一种应用场景中图片分类特征的获取方式进行举例说明,可以理解的是基于不同的应用场景,图片分类特征的获取流程会有所不同,分类特征的获取流程并不影响本发明实施例的实现,以下举例不应理解为对本发明实施例应用场景的限定。The following embodiment illustrates an example of obtaining an image classification feature in an application scenario. It can be understood that the acquisition process of the image classification feature is different based on different application scenarios, and the process of acquiring the classification feature does not affect the present process. The following examples are not to be construed as limiting the application scenarios of the embodiments of the present invention.
在本发明实施例中,可选地,上述显示单元603,还用于显示待管理的图片。In the embodiment of the present invention, the display unit 603 is further configured to display a picture to be managed.
在本发明实施例中,上述特征获取单元601,用于接收用户选择图片的选择图片的指令,提取上述选择图片的指令对应的图片的分类特征,并作为设定的图片分类特征。In the embodiment of the present invention, the feature acquiring unit 601 is configured to receive an instruction for selecting a picture of the picture by the user, and extract a classification feature of the picture corresponding to the instruction for selecting the picture, and serve as the set picture classification feature.
本发明实施例中,图片分类特征信息的获取过程可以是动态进行的,也即是说在后续显示获取的图片的过程中,或者之前都可以获取图片分类特征信息。在本发明实施例中,还可以对设定的图片分类特征进行筛选得到优选的图片分类特征,例如,取各种图片分类特征的交集,或者,取各种图片分类特征 的并集,还可以是基于错误的判断,取并集的基础上去除矛盾的图片分类特征中错误的图片分类特征,本发明实施例对优选的规则不予限定。由于图片分类特征改变,那么获得的图片也将对应改变,从而实现动态推荐图片的技术目的。本发明实施例提供的动态更新图片分类特征的实现方案可以包括:如图7所示,上述装置还包括:更新单元701,用于若上述特征获取单元601提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将优选的图片分类特征作为设定的图片分类特征。In the embodiment of the present invention, the process of acquiring the image classification feature information may be performed dynamically, that is, during the subsequent display of the acquired image, or before, the image classification feature information may be acquired. In the embodiment of the present invention, the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking various picture classification features. The union of the present invention may also be based on the erroneous judgment, and the erroneous image classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures. The implementation of the dynamic update picture classification feature provided by the embodiment of the present invention may include: as shown in FIG. 7, the device further includes: an update unit 701, configured to: if the feature acquisition unit 601 extracts two or more pictures For the picture classification feature, the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is used as the set picture classification feature.
本发明实施例中,待管理的图片可能是数据库中众多图片,以各种规则得到各种集合,而这些图片在数据库中可以以相册的方式进行存储,本发明实施例对此不予限定。在本发明实施例中,当在执行检索之前已经获得了图片分类特征,那么只需要对图片进行自动分类就可以了。分类的过程,可以是即时完成的,也可以有预操作来实现加速。即时完成的方案可以包括:在获得图片分类特征以后,提取各图片的图片分类特性数据,然后进行比对确定图片是否属于需要的类别;预操作的方案可以包括:采用预先处理的方式,对数据库中的图片预处理,得到所有图片的图片分类特征数据,那么在获取到图片分类特征以后,可以直接用图片分类特征在数据库中进行检索,节省特征提取的时间。具体检索的方式可能有很多种,本发明实施例对此不予限定,以下给出了几种实现方式的举例,具体如下:In the embodiment of the present invention, the picture to be managed may be a plurality of pictures in the database, and various sets are obtained in various rules, and the pictures may be stored in an album in the database, which is not limited in the embodiment of the present invention. In the embodiment of the present invention, when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture. The process of classification can be done on the fly, or there can be pre-operations to achieve acceleration. The solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many specific ways of searching, which are not limited by the embodiment of the present invention. Examples of several implementation manners are given below, as follows:
在数据库中预存有上述待管理的图片的图片分类特征数据;Pre-storing image classification feature data of the above-mentioned picture to be managed in the database;
上述图片检索单元602在上述数据库中使用上述图片分类特征进行检索,获得与上述图片分类特征匹配的图片。The picture retrieval unit 602 searches the database using the picture classification feature to obtain a picture that matches the picture classification feature.
在本发明实施例中,数据库中的特征数据可以是集中预处理的,也可以是在用户添加图片到数据库,例如相册时预处理的。以下给出了一种实现方案的举例,具体如下:如图8所示,上述装置,还包括:In the embodiment of the present invention, the feature data in the database may be centralized pre-processing, or may be pre-processed when the user adds a picture to a database, such as an album. An example of an implementation is given below, as follows: As shown in FIG. 8, the foregoing apparatus further includes:
特征提取单元801,用于在获取设定的图片分类特征之前,提取上述待管理的相册内的图片的图片分类特征数据并存储到数据库中。The feature extraction unit 801 is configured to extract image classification feature data of the image in the album to be managed and store the data in the database before acquiring the set image classification feature.
在本发明实施例中,基于人的照片这一特定的应用场景,图片分类特征可以是人脸特征,对于不同的人而言,会具有不同的人脸特征,那么将人脸特征 作为图片分类特征,则可以实现从大量图片中自动筛选具有这个人脸的图片出来,进一步结合预处理的方案则可以加快分类的速度,减少用户等待时间,具体如下:上述图片分类特征为人脸特征,如图9所示,上述装置还包括:人脸识别单元901,用于对数据库中各相册中的图片进行人脸识别,计算并存储有人脸的图片的人脸特征以及特征相似度到数据库。In the embodiment of the present invention, based on a specific application scenario of a person's photo, the image classification feature may be a facial feature, and for different people, different facial features may be used, then the facial feature is As the image classification feature, it is possible to automatically filter the image with the face from a large number of pictures, and further combining the pre-processing scheme can speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature As shown in FIG. 9, the device further includes: a face recognition unit 901, configured to perform face recognition on a picture in each album in the database, calculate and store a face feature of the face image, and feature similarity to the database. .
在本发明实施例中,基于前述人脸特征作为图片分类特征,本发明实施例还提供了基于人脸特征进行检索的具体实现方案,本实施例中采用的是相似度来判断的,本领域技术人员可以获知的是基于人脸聚类或者更为复杂的人脸识别方案也是可以通过人脸特征来进行分类的,以下采用相似度的方案作为一个优选方案的举例不应理解为对本发明实施例的唯一限定。当采用相似度进行图片分类时,上述图片检索单元602,用于使用设定的人脸特征在上述数据库中检索特征相似度在预定范围内的图片,获得与设定的人脸特征的相似度在预定范围内的图片。In the embodiment of the present invention, based on the foregoing facial features as the image classification feature, the embodiment of the present invention further provides a specific implementation scheme for performing retrieval based on the facial features, which is determined by the similarity in the present embodiment. It can be known by the skilled person that face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred solution should not be construed as implementing the present invention. The only limitation of the example. When the image classification is performed by using the similarity degree, the image retrieving unit 602 is configured to search for a picture whose feature similarity is within a predetermined range in the database by using the set facial feature, and obtain the similarity with the set facial feature. A picture within the predetermined range.
本发明实施例提供了另一种图片管理装置,如图10所示,该装置包括一个或多个处理器1001,存储有操作指令的存储介质1002,当运行存储介质1002中的操作指令时,处理器1001可执行如下步骤:An embodiment of the present invention provides another picture management apparatus. As shown in FIG. 10, the apparatus includes one or more processors 1001, and a storage medium 1002 storing operation instructions. When operating an operation instruction in the storage medium 1002, The processor 1001 can perform the following steps:
获取设定的图片分类特征;Obtaining the set image classification feature;
使用上述图片分类特征,对待管理的图片进行检索,获得具有上述图片分类特征的图片;以及Using the above picture classification feature, the picture to be managed is searched to obtain a picture having the above picture classification feature;
将上述获得的图片归为一类。The pictures obtained above are grouped into one category.
在本发明实施例中,当运行存储介质1001中的操作指令时,处理器1002还可执行如下步骤:In the embodiment of the present invention, when the operation instruction in the storage medium 1001 is run, the processor 1002 may further perform the following steps:
接收用户选择图片的指令,提取所述指令对应的图片的图片分类特征,并作为所述设定的图片分类特征。Receiving an instruction for the user to select a picture, extracting a picture classification feature of the picture corresponding to the instruction, and using the picture classification feature as the setting.
在本发明实施例中,当运行存储介质1001中的操作指令时,处理器1002还可执行如下步骤:In the embodiment of the present invention, when the operation instruction in the storage medium 1001 is run, the processor 1002 may further perform the following steps:
若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将所述优选的图片分类特征作为设定的 图片分类特征。If the picture classification features of two or more pictures are extracted, the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is set as Image classification feature.
本发明实施例还提供了另一种装置,如图11所示,包括:接收器1101、发射器1102、处理器1103、显示器1104、以及存储器1105。Another embodiment of the present invention further provides a device, as shown in FIG. 11, comprising: a receiver 1101, a transmitter 1102, a processor 1103, a display 1104, and a memory 1105.
其中,处理器1103,用于获取设定的图片分类特征;使用上述图片分类特征,对待管理的图片进行检索,获得具有上述图片分类特征的图片;将获得的图片进行显示,接收对显示的图片进行选择的选择指令,并将上述选择指令对应的图片作为已确认选择的图片。The processor 1103 is configured to acquire a set image classification feature, use the image classification feature to retrieve a picture to be managed, obtain a picture having the picture classification feature, display the obtained picture, and receive the displayed picture. A selection instruction is selected, and the picture corresponding to the selection instruction is used as the picture that has been confirmed to be selected.
在本发明实施例中,当待管理的图片存储于相册中时,在获取到图片分类特征后,对待管理的相册内的图片进行检索,获得具有上述图片分类特征的图片,将这些获得的图片显示给用户,这样实现了自动推荐的功能,可以不用用户从大量图片中手动选择,减少了用户手动的工作量并降低了用户操作复杂度,从而可以提高相册管理效率。In the embodiment of the present invention, when the image to be managed is stored in the album, after the image classification feature is acquired, the image in the album to be managed is retrieved, and the image having the image classification feature is obtained, and the obtained image is obtained. Displayed to the user, which realizes the function of automatic recommendation, which can eliminate the manual workload of the user and reduce the complexity of the user operation, thereby improving the efficiency of the album management.
本发明实施例中,图片分类特征是用来对待管理的图像进行分类所用的特征信息,它可以有各种表现形式,例如:用户标注的名称,这个标注的名称与某张图片关联以后,这张图片的特征信息就可以作为图片分类特征;还可以是用户选择了某张照片,那么这张照片的人脸特征也可以作为图片分类特征。另外,当待处理图片存储于相册中时,基于相册的不同,相册可以是人的照片的相册,也可以是风景、图案等各种类别的相册,因此图片分类特征可以是人脸特征,也可以是各种图形特征例如:具有三角形,或者太阳,或者笑脸等等。只要是能够采用图形图像识别技术获取的任意分类特征都是可以被接受的,本领域技术人员可以获知的是能够采用图形图像识别技术获取的特征信息有很多,不可能进行穷举,本发明实施例对于分类特征的具体表现形式不予限定。In the embodiment of the present invention, the image classification feature is feature information used for classifying the image to be managed, and may have various expression forms, for example, a name marked by the user, and the name of the annotation is associated with a certain image, The feature information of the picture can be used as the picture classification feature; or the user selects a picture, then the face feature of the picture can also be used as the picture classification feature. In addition, when the to-be-processed picture is stored in the album, the album may be a photo album of a person's photo, or may be a photo album of various categories such as a landscape or a pattern, so the image classification feature may be a facial feature, It can be various graphic features such as having a triangle, or a sun, or a smiley face, and the like. As long as any classification feature that can be acquired by using the graphic image recognition technology is acceptable, those skilled in the art can know that there are many feature information that can be acquired by using the graphic image recognition technology, and it is impossible to carry out the exhaustive. The specific form of expression of the classification feature is not limited.
以下实施例将就一种应用场景中图片分类特征的获取方式进行举例说明,可以理解的是基于不同的应用场景,图片分类特征的获取流程会有所不同,分类特征的获取流程并不影响本发明实施例的实现,以下举例不应理解为对本发明实施例应用场景的限定。The following embodiment illustrates an example of obtaining an image classification feature in an application scenario. It can be understood that the acquisition process of the image classification feature is different based on different application scenarios, and the process of acquiring the classification feature does not affect the present process. The following examples are not to be construed as limiting the application scenarios of the embodiments of the present invention.
在本发明实施例中,可选地,上述处理器1103可以通过以下方式获取设定的分类特征:控制显示待管理的图片;接收用户选择图片的选择图片的指令, 提取上述选择图片的指令对应的图片的图片分类特征,并作为设定的图片分类特征。In the embodiment of the present invention, optionally, the processor 1103 may acquire the set classification feature by: controlling to display a picture to be managed; and receiving an instruction for selecting a picture of the picture by the user, The picture classification feature of the picture corresponding to the instruction for selecting the picture is extracted and used as the set picture classification feature.
本发明实施例中,图片分类特征信息的获取过程可以是动态进行的,也即是说在后续显示获取的图片的过程中,或者之前都可以获取图片分类特征信息。在本发明实施例中,还可以对设定的图片分类特征进行筛选得到优选的图片分类特征,例如,取各种图片分类特征的交集,或者,取各种图片分类特征的并集,还可以是基于错误的判断,取并集的基础上去除矛盾的图片分类特征中错误的图片分类特征,本发明实施例对优选的规则不予限定。由于图片分类特征改变,那么获得的图片也将对应改变,从而实现动态推荐图片的技术目的。本发明实施例提供的动态更新图片分类特征的实现方案可以包括:若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将优选的图片分类特征作为设定的图片分类特征。In the embodiment of the present invention, the process of acquiring the image classification feature information may be performed dynamically, that is, during the subsequent display of the acquired image, or before, the image classification feature information may be acquired. In the embodiment of the present invention, the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking the union of various picture classification features, and Based on the erroneous judgment, the erroneous picture classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures. The implementation of the dynamic update picture classification feature provided by the embodiment of the present invention may include: if the picture classification feature of two or more pictures is extracted, the extracted picture classification feature is filtered to obtain a preferred picture classification feature, and The preferred picture classification feature serves as a set picture classification feature.
本发明实施例中,待管理的图片可以以相册的方式进行存储,本发明实施例对此不予限定。在本发明实施例中,当在执行检索之前已经获得了图片分类特征,那么只需要对图片进行自动分类就可以了。分类的过程,可以是即时完成的,也可以有预操作来实现加速。即时完成的方案可以包括:在获得图片分类特征以后,提取各图片的图片分类特性数据,然后进行比对确定图片是否属于需要的类别;预操作的方案可以包括:采用预先处理的方式,对数据库中的图片预处理,得到所有图片的图片分类特征数据,那么在获取到图片分类特征以后,可以直接用图片分类特征在数据库中进行检索,节省特征提取的时间。具体检索的方式可能有很多种,本发明实施例对此不予限定,以下给出了几种实现方式的举例,具体如下:在数据库中预存有上述待管理的相册内的图片的图片分类特征数据;上述处理器1103对待管理的相册内的图片进行检索,获得具有上述图片分类特征的图片可以通过方式实现:用于在上述数据库中使用上述图片分类特征进行检索,获得与上述图片分类特征匹配的图片。In the embodiment of the present invention, the picture to be managed may be stored in the form of an album, which is not limited in the embodiment of the present invention. In the embodiment of the present invention, when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture. The process of classification can be done on the fly, or there can be pre-operations to achieve acceleration. The solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many types of specific search methods, which are not limited by the embodiments of the present invention. The following are examples of several implementation manners, as follows: pre-storing the image classification features of the pictures in the album to be managed in the database. Data; the processor 1103 searches for a picture in the album to be managed, and the image having the image classification feature is obtained by using the image classification feature in the database to obtain a match with the image classification feature. picture of.
在本发明实施例中,数据库中的特征数据可以是集中预处理的,也可以是在用户添加图片到数据库,例如相册时预处理的。以下给出了一种实现方案的举例,具体如下:上述处理器1103在获取设定的图片分类特征之前,提取上 述待管理的相册内的图片的图片分类特征数据并存储到数据库中。In the embodiment of the present invention, the feature data in the database may be centralized pre-processing, or may be pre-processed when the user adds a picture to a database, such as an album. An example of an implementation is given below, as follows: The processor 1103 is configured to extract the set image classification feature. The picture classification feature data of the picture in the managed album is stored and stored in the database.
本发明实施例中,基于人的照片这一特定的应用场景,图片分类特征可以是人脸特征,对于不同的人而言,会具有不同的人脸特征,那么将人脸特征作为图片分类特征,则可以实现从大量图片中自动筛选具有这个人脸的图片出来,进一步结合预处理的方案则可以加快分类的速度,减少用户等待时间,具体如下:上述图片分类特征为人脸特征,上述处理器1103可以通过以下方式在数据库中预存有上述待管理的相册内的图片的图片分类特征数据:对数据库中各相册中的图片进行人脸识别,计算并存储有人脸的图片的人脸特征以及特征相似度到数据库。In the embodiment of the present invention, based on a specific application scenario of a person's photo, the image classification feature may be a face feature, and for different people, different face features may be used, and then the face feature is used as a picture classification feature. , the image of the face can be automatically filtered from a large number of pictures, and the combination of the pre-processing scheme can speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature, the processor 1103 may pre-store the image classification feature data of the picture in the album to be managed in the database by performing face recognition on the picture in each album in the database, calculating and storing the face feature and feature of the picture of the face Similarity to the database.
本发明实施例中,基于前述人脸特征作为图片分类特征,本发明实施例还提供了基于人脸特征进行检索的具体实现方案,本实施例中采用的是相似度来判断的,本领域技术人员可以获知的是基于人脸聚类或者更为复杂的人脸识别方案也是可以通过人脸特征来进行分类的,以下采用相似度的方案作为一个优选方案的举例不应理解为对本发明实施例的唯一限定。当采用相似度进行图片分类时,上述处理器1103在上述数据库中使用上述图片分类特征进行检索,获得与上述图片分类特征匹配的图片可以通过以下方式实现:使用设定的人脸特征在上述数据库中检索特征相似度在预定范围内的图片,获得与设定的人脸特征的相似度在预定范围内的图片。In the embodiment of the present invention, based on the foregoing facial features as the image classification feature, the embodiment of the present invention further provides a specific implementation scheme for performing the retrieval based on the facial features, which is determined by the similarity in the embodiment, and is technical in the field. It can be known that a face-based clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred scheme should not be construed as an embodiment of the present invention. The only limit. When the similarity is used for the image classification, the processor 1103 performs the above-mentioned image classification feature for searching in the database, and obtaining the image matching the image classification feature can be implemented by using the set facial feature in the database. A picture in which the feature similarity is within a predetermined range is retrieved, and a picture whose similarity with the set face feature is within a predetermined range is obtained.
本发明实施例还提供了一种图片管理系统,如图12所示,包括:数据库服务器1201、标注和推荐服务器1202。The embodiment of the invention further provides a picture management system, as shown in FIG. 12, comprising: a database server 1201, an annotation and recommendation server 1202.
其中,上述数据库服务器1201,用于存储待处理图片;The database server 1201 is configured to store a to-be-processed picture;
上述标注和推荐服务器1202,用于接收设定的图片分类特征;使用接收到的图片分类特征,对上述数据库内的图片进行检索,获得具有上述图片分类特征的图片;向终端发送获得的图片,供上述终端进行选择。The labeling and recommendation server 1202 is configured to receive the set image classification feature, use the received image classification feature to perform a search on the image in the database, obtain a picture having the image classification feature, and send the obtained image to the terminal. For the above terminal to make a selection.
以上实施例,在获取到图片分类特征后,对待管理的图片进行检索,获得具有上述图片分类特征的图片,将这些获得的图片显示给用户,这样实现了自动推荐的功能,可以不用用户从大量图片中手动选择,减少了用户手动的工作量并降低了用户操作复杂度。 In the above embodiment, after the image classification feature is acquired, the image to be managed is retrieved, and the image having the image classification feature is obtained, and the obtained image is displayed to the user, thereby realizing the function of automatic recommendation, and the user can be Manual selection in the picture reduces the manual workload of the user and reduces the complexity of user operations.
以下实施例将就一种应用场景中图片分类特征的获取方式进行举例说明,可以理解的是基于不同的应用场景,图片分类特征的获取流程会有所不同,图片分类特征的获取流程并不影响本发明实施例的实现,以下举例不应理解为对本发明实施例应用场景的限定,可选地,上述标注和推荐服务器1202,用于接收来自终端选择图片的指令,提取上述选择图片的指令对应的图片的分类特征,并作为设定的图片分类特征。The following example illustrates an example of obtaining an image classification feature in an application scenario. It can be understood that the acquisition process of the image classification feature is different based on different application scenarios, and the process of acquiring the image classification feature does not affect. For the implementation of the embodiments of the present invention, the following examples should not be construed as limiting the application scenarios of the embodiments of the present invention. Optionally, the labeling and recommendation server 1202 is configured to receive an instruction for selecting a picture from a terminal, and extract an instruction corresponding to the selected picture. The classification characteristics of the picture and as a set of picture classification features.
本发明实施例中,图片分类特征信息的获取过程可以是动态进行的,也即是说在后续显示获取的图片的过程中,或者之前都可以获取图片分类特征信息。在本发明实施例中,还可以对设定的图片分类特征进行筛选得到优选的图片分类特征,例如,取各种图片分类特征的交集,或者,取各种图片分类特征的并集,还可以是基于错误的判断,取并集的基础上去除矛盾的图片分类特征中错误的图片分类特征,本发明实施例对优选的规则不予限定。由于图片分类特征改变,那么获得的图片也将对应改变,从而实现动态推荐图片的技术目的。本发明实施例提供的动态更新图片分类特征的实现方案可以包括:上述标注和推荐服务器1202,还用于若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将优选的图片分类特征作为设定的图片分类特征。In the embodiment of the present invention, the process of acquiring the image classification feature information may be performed dynamically, that is, during the subsequent display of the acquired image, or before, the image classification feature information may be acquired. In the embodiment of the present invention, the set picture classification feature may also be filtered to obtain a preferred picture classification feature, for example, taking the intersection of various picture classification features, or taking the union of various picture classification features, and Based on the erroneous judgment, the erroneous picture classification feature in the contradictory picture classification feature is removed on the basis of the union, and the preferred rule is not limited in the embodiment of the present invention. Since the picture classification feature changes, the obtained picture will also change correspondingly, thereby realizing the technical purpose of dynamically recommending pictures. The implementation scheme of the dynamic update picture classification feature provided by the embodiment of the present invention may include: the labeling and recommendation server 1202, and the image classification feature of the extracted image if the image classification feature of two or more pictures is extracted. The screening is performed to obtain a preferred image classification feature, and the preferred image classification feature is used as the set image classification feature.
本发明实施例中,待管理的图片可能是数据库中众多图片,以各种规则得到各种集合,而这些图片在数据库中可以以相册的方式进行存储,本发明实施例对此不予限定。在本发明实施例中,当在执行检索之前已经获得了图片分类特征,那么只需要对图片进行自动分类就可以了。分类的过程,可以是即时完成的,也可以有预操作来实现加速。即时完成的方案可以包括:在获得图片分类特征以后,提取各图片的图片分类特性数据,然后进行比对确定图片是否属于需要的类别;预操作的方案可以包括:采用预先处理的方式,对数据库中的图片预处理,得到所有图片的图片分类特征数据,那么在获取到图片分类特征以后,可以直接用图片分类特征在数据库中进行检索,节省特征提取的时间。具体检索的方式可能有很多种,本发明实施例对此不予限定,以下给出了几种实现方式的举例,具体如下: In the embodiment of the present invention, the picture to be managed may be a plurality of pictures in the database, and various sets are obtained in various rules, and the pictures may be stored in an album in the database, which is not limited in the embodiment of the present invention. In the embodiment of the present invention, when the picture classification feature has been obtained before the retrieval is performed, it is only necessary to automatically classify the picture. The process of classification can be done on the fly, or there can be pre-operations to achieve acceleration. The solution that is completed in real time may include: after obtaining the image classification feature, extracting the image classification characteristic data of each picture, and then performing comparison to determine whether the picture belongs to a required category; the pre-operation scheme may include: adopting a pre-processing manner to the database In the image preprocessing, the image classification feature data of all the pictures is obtained, and after the image classification feature is obtained, the image classification feature can be directly used for searching in the database, thereby saving the time of feature extraction. There may be many specific ways of searching, which are not limited by the embodiment of the present invention. Examples of several implementation manners are given below, as follows:
上述数据库服务器1201,还用于存储上述相册内的图片的图片分类特征数据;The database server 1201 is further configured to store image classification feature data of a picture in the album;
上述标注和推荐服务器1202,用于在上述数据库服务器1201中使用上述图片分类特征进行检索,获得与上述图片分类特征匹配的图片。The labeling and recommendation server 1202 is configured to perform the search using the image classification feature in the database server 1201 to obtain a picture matching the picture classification feature.
进一步地,为了实现对预处理过程的管理,本发明实施例提供了如下方案:如图13所示,上述系统还包括:预处理服务器1301;Further, in order to achieve the management of the pre-processing process, the embodiment of the present invention provides the following solution: as shown in FIG. 13, the system further includes: a pre-processing server 1301;
上述预处理服务器1301,用于提取上述待管理的图片的图片分类特征数据,将提取的图片分类特征存储到数据库服务器1201中。The pre-processing server 1301 is configured to extract the picture classification feature data of the picture to be managed, and store the extracted picture classification feature in the database server 1201.
在本发明实施例中,基于人的照片这一特定的应用场景,图片分类特征可以是人脸特征,对于不同的人而言,会具有不同的人脸特征,那么将人脸特征作为图片分类特征,则可以实现从大量图片中自动筛选具有这个人脸的图片出来,进一步结合预处理的方案则可以加快分类的速度,减少用户等待时间,具体如下:上述图片分类特征为人脸特征,上述预处理服务器1301,用于对数据库中各相册中的图片进行人脸识别,计算有人脸的图片的人脸特征以及特征相似度,将计算得到的人脸特征以及特征相似度到上述数据库服务器1201中。In the embodiment of the present invention, based on a specific application scenario of a person's photo, the image classification feature may be a facial feature, and for different people, different facial features may be used, and then the facial feature is classified as a picture. The feature can automatically filter the image with the face from a large number of pictures, and further combine the pre-processing scheme to speed up the classification and reduce the waiting time of the user, as follows: the above picture classification feature is a face feature, the above pre- The processing server 1301 is configured to perform face recognition on the pictures in each album in the database, calculate face features and feature similarities of the pictures of the human face, and calculate the calculated face features and feature similarities into the database server 1201. .
进一步地,为了实现对预处理过程的管理,本发明实施例提供了如下方案:如图14所示,上述系统,还包括:任务分发服务器1401;Further, in order to implement the management of the pre-processing process, the embodiment of the present invention provides the following solution: as shown in FIG. 14, the system further includes: a task distribution server 1401;
上述任务分发服务器1401,用于将数据库服务器1201存储的各相册中,有人脸的图片分发给各预处理服务器1301;The task distribution server 1401 is configured to distribute the picture of the face of each album stored in the database server 1201 to each pre-processing server 1301;
上述预处理服务器1301,用于对接收到的来自上述任务分发服务器1401分发的图片进行人脸识别,计算有人脸的图片的人脸特征以及特征相似度,将计算得到的人脸特征以及特征相似度到上述数据库服务器1201中。The pre-processing server 1301 is configured to perform face recognition on the received picture distributed by the task distribution server 1401, calculate face features and feature similarity of the face image, and calculate the calculated face features and features. The degree is reached in the above database server 1201.
在本发明实施例中,基于前述人脸特征作为图片分类特征,本发明实施例还提供了基于人脸特征进行检索的具体实现方案,本实施例中采用的是相似度来判断的,本领域技术人员可以获知的是基于人脸聚类或者更为复杂的人脸识别方案也是可以通过人脸特征来进行分类的,以下采用相似度的方案作为一个优选方案的举例不应理解为对本发明实施例的唯一限定。当采用相似度进行图片分类时,上述预处理服务器1301,用于使用设定的人脸特征在上述数据库 服务器1201中检索特征相似度在预定范围内的图片,获得与设定的人脸特征的相似度在预定范围内的图片。In the embodiment of the present invention, based on the foregoing facial features as the image classification feature, the embodiment of the present invention further provides a specific implementation scheme for performing retrieval based on the facial features, which is determined by the similarity in the present embodiment. It can be known by the skilled person that face clustering based on face clustering or a more complicated face recognition scheme can also be classified by facial features. The following example of using a similarity scheme as a preferred solution should not be construed as implementing the present invention. The only limitation of the example. When the similarity is used for image classification, the pre-processing server 1301 is configured to use the set facial features in the above database. The server 1201 retrieves a picture whose feature similarity is within a predetermined range, and obtains a picture whose similarity with the set face feature is within a predetermined range.
值得注意的是,上述装置和终端实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It should be noted that, in the foregoing apparatus and terminal embodiment, each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; The specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those skilled in the art can understand that all or part of the steps in implementing the foregoing method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (14)

  1. 一种图片管理方法,其特征在于,包括:A picture management method, comprising:
    获取设定的图片分类特征;Obtaining the set image classification feature;
    使用所述图片分类特征,对待管理图片进行检索,获得具有所述图片分类特征的图片;以及Using the picture classification feature to search for a managed picture to obtain a picture having the picture classification feature;
    将所获得的图片归为一类。Classify the images obtained.
  2. 根据权利要求1所述方法,其特征在于,所述获取设定的图片分类特征包括:The method according to claim 1, wherein the obtaining the set picture classification feature comprises:
    接收用户选择图片的指令,提取所述指令对应的图片的图片分类特征,并作为所述设定的图片分类特征。Receiving an instruction for the user to select a picture, extracting a picture classification feature of the picture corresponding to the instruction, and using the picture classification feature as the setting.
  3. 根据权利要求2所述方法,其特征在于,The method of claim 2 wherein
    若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将所述优选的图片分类特征作为设定的图片分类特征。If the picture classification features of the two or more pictures are extracted, the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is used as the set picture classification feature.
  4. 根据权利要求1至3任意一项所述方法,其特征在于,当数据库中预存有所述待管理的图片的图片分类特征数据时,所述对待管理的图片进行检索,获得具有所述图片分类特征的图片包括:The method according to any one of claims 1 to 3, wherein when the picture classification feature data of the picture to be managed is pre-stored in the database, the picture to be managed is searched to obtain the picture classification Features of the image include:
    在所述数据库中使用所述图片分类特征进行检索,获得与所述图片分类特征匹配的图片。The image classification feature is used in the database to perform a retrieval, and a picture matching the image classification feature is obtained.
  5. 根据权利要求4所述方法,其特征在于,在获取设定的图片分类特征之前还包括:The method according to claim 4, further comprising: before acquiring the set picture classification feature:
    提取所述待管理的图片的图片分类特征数据并存储。Extracting picture classification feature data of the picture to be managed and storing.
  6. 根据权利要求4所述方法,其特征在于,所述图片分类特征为人脸特征,所述在数据库中预存有所述待管理的图片的图片分类特征数据包括:The method according to claim 4, wherein the picture classification feature is a face feature, and the picture classification feature data pre-stored in the database for the picture to be managed comprises:
    对所述待管理图片进行人脸识别,计算并存储有人脸的图片的人脸特征以及特征相似度到数据库。The face to be managed is subjected to face recognition, and the face features of the face of the face and the feature similarity are calculated and stored in the database.
  7. 根据权利要求6所述方法,其特征在于,所述在所述数据库中使用所述图片分类特征进行检索,获得与所述图片分类特征匹配的图片包括:The method according to claim 6, wherein the searching in the database using the picture classification feature to obtain a picture matching the picture classification feature comprises:
    使用设定的人脸特征在所述数据库中检索特征相似度在预定范围内的图 片,获得与设定的人脸特征的相似度在预定范围内的图片。Retrieving a graph of feature similarity within a predetermined range in the database using the set face features A slice obtains a picture whose similarity to the set face feature is within a predetermined range.
  8. 一种图片管理装置,其特征在于,包括一个或多个处理器和存储有操作指令的存储介质,当运行所述存储介质中的操作指令时,所述处理器执行如下步骤:A picture management apparatus, comprising: one or more processors and a storage medium storing operation instructions, when executing an operation instruction in the storage medium, the processor performs the following steps:
    获取设定的图片分类特征;Obtaining the set image classification feature;
    使用所述图片分类特征,对待管理图片进行检索,获得具有所述图片分类特征的图片;以及Using the picture classification feature to search for a managed picture to obtain a picture having the picture classification feature;
    将所获得的图片归为一类。Classify the images obtained.
  9. 根据权利要求8所述的装置,其特征在于,所述处理器还执行如下步骤:The apparatus according to claim 8, wherein said processor further performs the following steps:
    接收用户选择图片的指令,提取所述指令对应的图片的图片分类特征,并作为所述设定的图片分类特征。10、根据权利要求9所述的装置,其特征在于,所述处理器还用于执行如下步骤:Receiving an instruction for the user to select a picture, extracting a picture classification feature of the picture corresponding to the instruction, and using the picture classification feature as the setting. The device according to claim 9, wherein the processor is further configured to perform the following steps:
    若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将所述优选的图片分类特征作为设定的图片分类特征。If the picture classification features of the two or more pictures are extracted, the extracted picture classification features are filtered to obtain a preferred picture classification feature, and the preferred picture classification feature is used as the set picture classification feature.
  10. 一种图片管理系统,其特征在于,包括:A picture management system, comprising:
    数据库服务器、标注和推荐服务器、Database server, annotation and recommendation server,
    所述数据库服务器,用于存储待处理图片;The database server is configured to store a picture to be processed;
    所述标注和推荐服务器,用于接收设定的图片分类特征;使用所述图片分类特征,对所述数据库服务器内的图片进行检索,获得具有所述图片分类特征的图片;向终端发送获得的图片,供所述终端进行选择。And the labeling and recommendation server is configured to receive the set image classification feature, use the image classification feature to retrieve the image in the database server, obtain a picture having the image classification feature, and send the obtained image to the terminal. A picture for the terminal to select.
  11. 根据权利要求11所述系统,其特征在于,The system of claim 11 wherein:
    所述标注和推荐服务器,用于接收来自所述终端的选择图片的指令,提取所述指令对应的图片的图片分类特征,并作为所述设定的图片分类特征。And the labeling and recommendation server is configured to receive an instruction for selecting a picture from the terminal, and extract a picture classification feature of the picture corresponding to the instruction, and serve as the set picture classification feature.
  12. 根据权利要求12所述系统,其特征在于,The system of claim 12 wherein:
    所述标注和推荐服务器,还用于若提取到两个或两个以上图片的图片分类特征,则对提取到的图片分类特征进行筛选得到优选的图片分类特征,将优选的分类特征作为所述设定的图片分类特征。 The labeling and recommendation server is further configured to: if the image classification features of two or more pictures are extracted, filter the extracted picture classification features to obtain a preferred picture classification feature, and use the preferred classification feature as the Set the image classification feature.
  13. 根据权利要求11至13任意一项所述系统,其特征在于,A system according to any one of claims 11 to 13, wherein
    所述数据库服务器,还用于存储所述待管理图片的图片分类特征数据;The database server is further configured to store image classification feature data of the to-be-managed picture;
    所述标注和推荐服务器,用于在所述数据库服务器中使用所述图片分类特征进行检索,获得与所述图片分类特征匹配的图片。The labeling and recommendation server is configured to perform, by using the image classification feature in the database server, to obtain a picture that matches the picture classification feature.
  14. 根据权利要求14所述系统,其特征在于,所述系统还包括:预处理服务器;The system of claim 14 wherein said system further comprises: a pre-processing server;
    所述预处理服务器,用于提取所述待管理的图片的图片分类特征数据,将提取的图片分类特征存储到所述数据库服务器中。 The pre-processing server is configured to extract picture classification feature data of the to-be-managed picture, and store the extracted picture classification feature into the database server.
PCT/CN2014/095584 2013-12-30 2014-12-30 Image management method, apparatus and system WO2015101289A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310746306.7 2013-12-30
CN201310746306.7A CN104750737B (en) 2013-12-30 2013-12-30 A kind of photograph album management method and device

Publications (1)

Publication Number Publication Date
WO2015101289A1 true WO2015101289A1 (en) 2015-07-09

Family

ID=53493244

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095584 WO2015101289A1 (en) 2013-12-30 2014-12-30 Image management method, apparatus and system

Country Status (2)

Country Link
CN (1) CN104750737B (en)
WO (1) WO2015101289A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740010A (en) * 2018-12-29 2019-05-10 上海诚数信息科技有限公司 The analysis method and system of the photograph album of intelligent terminal
CN110807119A (en) * 2018-07-19 2020-02-18 浙江宇视科技有限公司 Face duplicate checking method and device

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095479A (en) * 2015-08-12 2015-11-25 惠州Tcl移动通信有限公司 Mobile terminal and method for achieving photo classification management
CN105120335B (en) * 2015-08-17 2018-08-24 无锡天脉聚源传媒科技有限公司 A kind of method and apparatus of processing TV programme picture
CN106558088B (en) 2015-09-24 2020-04-24 腾讯科技(深圳)有限公司 Method and device for generating GIF file
US9904872B2 (en) * 2015-11-13 2018-02-27 Microsoft Technology Licensing, Llc Visual representations of photo albums
CN105678266A (en) * 2016-01-08 2016-06-15 北京小米移动软件有限公司 Method and device for combining photo albums of human faces
CN105740379A (en) * 2016-01-27 2016-07-06 北京汇图科技有限责任公司 Photo classification management method and apparatus
CN106446950B (en) * 2016-09-27 2020-04-10 腾讯科技(深圳)有限公司 Image processing method and device
CN107341190B (en) * 2017-06-09 2021-01-22 努比亚技术有限公司 Picture screening method, terminal and computer readable storage medium
CN107622281B (en) * 2017-09-20 2021-02-05 Oppo广东移动通信有限公司 Image classification method and device, storage medium and mobile terminal
CN107844551A (en) * 2017-10-30 2018-03-27 深圳市天地网电子有限公司 A kind of image acquiring method and system based on shared camera
CN110990615A (en) * 2019-11-19 2020-04-10 兰州职业技术学院 Method and system for analyzing photo album of intelligent terminal
CN111666262B (en) * 2020-05-28 2021-06-22 重庆中联信息产业有限责任公司 Working method for extracting feature points of massive medical images in network attached storage NAS state
CN112269890A (en) * 2020-09-28 2021-01-26 南京酷派软件技术有限公司 Photo classification method, device, storage medium and terminal
CN113780487B (en) * 2021-11-15 2022-04-26 深圳市爱深盈通信息技术有限公司 Picture classification method, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055592A (en) * 2007-05-20 2007-10-17 宁尚国 Image information generation method and device
CN103164441A (en) * 2011-12-14 2013-06-19 富泰华工业(深圳)有限公司 Image-classifying electronic device based on facial eigenvalue
CN103312730A (en) * 2012-03-07 2013-09-18 腾讯科技(深圳)有限公司 Picture storage method, server, terminal and picture storage system
US8611617B1 (en) * 2010-08-09 2013-12-17 Google Inc. Similar image selection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055592A (en) * 2007-05-20 2007-10-17 宁尚国 Image information generation method and device
US8611617B1 (en) * 2010-08-09 2013-12-17 Google Inc. Similar image selection
CN103164441A (en) * 2011-12-14 2013-06-19 富泰华工业(深圳)有限公司 Image-classifying electronic device based on facial eigenvalue
CN103312730A (en) * 2012-03-07 2013-09-18 腾讯科技(深圳)有限公司 Picture storage method, server, terminal and picture storage system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807119A (en) * 2018-07-19 2020-02-18 浙江宇视科技有限公司 Face duplicate checking method and device
CN109740010A (en) * 2018-12-29 2019-05-10 上海诚数信息科技有限公司 The analysis method and system of the photograph album of intelligent terminal

Also Published As

Publication number Publication date
CN104750737A (en) 2015-07-01
CN104750737B (en) 2017-12-01

Similar Documents

Publication Publication Date Title
WO2015101289A1 (en) Image management method, apparatus and system
US20240070214A1 (en) Image searching method and apparatus
CN109284729B (en) Method, device and medium for acquiring face recognition model training data based on video
US10043109B1 (en) Attribute similarity-based search
CN106255968B (en) Natural language image search
US8724908B2 (en) System and method for labeling a collection of images
US11461386B2 (en) Visual recognition using user tap locations
JP2018152094A (en) Image-based search
EP2618289A2 (en) Method and apparatus to incorporate automatic face recognition in digital image collections
CN104537341B (en) Face picture information getting method and device
CN105630915A (en) Method and device for classifying and storing pictures in mobile terminals
US20210141826A1 (en) Shape-based graphics search
WO2022089170A1 (en) Caption area identification method and apparatus, and device and storage medium
CN110263202A (en) Image search method and equipment
TWI472936B (en) Human photo search system
US20130236065A1 (en) Image semantic clothing attribute
JP2008146137A (en) Image recognition device, electronic device, image recognition method, control program, and record medium
CN103984415B (en) A kind of information processing method and electronic equipment
CN108334602B (en) Data annotation method and device, electronic equipment and computer storage medium
KR20150101846A (en) Image classification service system based on a sketch user equipment, service equipment, service method based on sketch and computer readable medium having computer program recorded therefor
CN111178409B (en) Image matching and recognition system based on big data matrix stability analysis
CN113780116A (en) Invoice classification method and device, computer equipment and storage medium
JP2015097036A (en) Recommended image presentation apparatus and program
Xiao et al. Video text detection based on multi-feature fusion
JP2015022406A (en) Device, method and program for analyzing document including visual representation by text

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.11.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14876046

Country of ref document: EP

Kind code of ref document: A1