WO2017067485A1 - Picture management method and device, and terminal - Google Patents

Picture management method and device, and terminal Download PDF

Info

Publication number
WO2017067485A1
WO2017067485A1 PCT/CN2016/102762 CN2016102762W WO2017067485A1 WO 2017067485 A1 WO2017067485 A1 WO 2017067485A1 CN 2016102762 W CN2016102762 W CN 2016102762W WO 2017067485 A1 WO2017067485 A1 WO 2017067485A1
Authority
WO
WIPO (PCT)
Prior art keywords
index
picture
classification
index value
content
Prior art date
Application number
PCT/CN2016/102762
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 WO2017067485A1 publication Critical patent/WO2017067485A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements

Definitions

  • the present invention relates to the field of communications and information, and in particular, to a picture management method and apparatus, and a terminal.
  • the main technical problem to be solved by the embodiments of the present invention is to provide a picture management method, a device, and a terminal, which can solve the problem that only a single classification and query can be performed on a picture in the prior art, resulting in a single classification, classification, and query.
  • the results are not accurate enough, the user experience is not good, and the satisfaction is low.
  • an embodiment of the present invention provides a picture management method, including:
  • the picture classification index includes at least two of an attribute index, a content index, and an event index;
  • the query instruction comprising a classification query formula consisting of at least one target image classification index
  • Extracting a target index value of each target image classification index in the classification query formula and selecting, from each of the pictures, all the target image classification indexes in the classification query formula and the index values and the target of the classification query formula An image with the same index value.
  • the attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index.
  • the picture classification index includes a content index
  • the content index includes at least one of a person index, a plant index, and an animal index.
  • the method before acquiring the index value of the content index of the image, the method further includes: identifying the content in the image, and adding an index value of the corresponding content index to the image according to the recognition result.
  • adding a corresponding person index value to the picture includes: identifying each face information on the picture, and comparing the face information with the existing face information. Determining whether the face information already exists and having a character index value, and if so, directly using the existing person index value as a person index value of the picture; if not, newly adding a person index corresponding to the face value.
  • the method before the image classification index includes the event index, before acquiring the index value of the event index of each picture, the method further includes:
  • the embodiment of the invention further provides a picture management device, including:
  • a creating unit configured to set a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index;
  • An index value obtaining unit configured to acquire an index value of each picture classification index of each picture
  • An instruction receiving unit configured to receive a query instruction, where the query instruction includes a classified query formula composed of at least one target image classification index;
  • a classification query unit for extracting target index values of each target image classification index in the classification query formula, selecting, from the respective pictures, all target image classification indexes in the classification query formula, and index values and the A picture with the same target index value in the classification query.
  • the index value obtaining unit includes an attribute index value obtaining sub-unit, configured to obtain an index value of each attribute index of each picture when the picture classification index includes an attribute index, where the attribute index includes an image format index, At least one of a picture size index, a picture acquisition time index, and a picture acquisition location index.
  • the index value obtaining unit further includes a content index value obtaining subunit, configured to acquire an index value of each content index of each picture when the picture classification index includes a content index, where the content index includes a person index At least one of a plant index and an animal index.
  • a content index value obtaining subunit configured to acquire an index value of each content index of each picture when the picture classification index includes a content index, where the content index includes a person index At least one of a plant index and an animal index.
  • the content index value obtaining subunit includes: a content identification module and a content index value determining module, wherein the content identification module is configured to identify content in a picture; and the content index value determining module is configured to identify The result is an index value of the corresponding content index for the picture.
  • the index value obtaining unit further includes an event index value obtaining subunit, configured to acquire an index value of an event index of each picture; and the event index value obtaining subunit includes an event index value determining module, configured to: Add the appropriate event index value for each image.
  • An embodiment of the present invention further provides a terminal, where the terminal includes the picture management apparatus.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the following steps:
  • the picture classification index includes at least two of an attribute index, a content index, and an event index;
  • each picture classification index of each picture for storing; receiving a query instruction, where the query instruction includes a classification query formula consisting of at least one target picture classification index; extracting each target picture classification index in the classification query formula Target index value from the respective images A picture having all the target picture classification indexes in the classification query formula and having the same index value as each target index value of the classification query formula is selected.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the method further includes: identifying the content in the image, and adding an index value of the corresponding content index to the image according to the recognition result.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the picture classification index includes the event index
  • at least one event index value is defined; and a corresponding event index value is added for each picture.
  • An embodiment of the present invention provides a picture management method and apparatus, and a terminal.
  • the picture management apparatus sets a classification index, where the classification index includes at least two of an attribute index, a content index, and an event index. Then, the index values of the classification indexes of each picture are obtained and stored, and each picture has an index value corresponding to the classification index; after receiving the query instruction of the user, the query instruction includes a classification query formula, and the classification
  • the query formula is composed of at least one target classification index, and the picture management device extracts a target index value of all target classification indexes in the classification query formula, and the target classification index is compared with the classification index of each picture, and the target index value and each picture are compared.
  • the index values are compared, and a picture having all the target classification indexes in the classification query and having the same index value as the target index value is selected. It can be seen that, by using the solution of the present invention, the user can set the content of the classification index according to his own needs, and input the classification query formula according to the requirement, and the image management apparatus obtains the image that satisfies the query formula according to the issued query instruction, because the query formula includes at least one target classification.
  • the index may be one or more of the queries or conditions, so that the present invention can more accurately locate the pictures required by the user, and can query or classify the pictures according to the user requirements, thereby classifying or querying the pictures more finely and accurately.
  • FIG. 1 is a flowchart of a picture management method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of acquiring a character index value by a picture management method according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of acquiring an event index value by a picture management method according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic structural diagram of a picture management apparatus according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of an index value acquiring unit in a picture management apparatus according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of a content index value obtaining subunit in a picture management apparatus according to Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a picture management method, which has the advantages of querying or classifying pictures according to user requirements, thereby classifying or querying pictures more finely and accurately, as shown in FIG. 1 , including:
  • S101 Create a picture classification index, where the created picture classification index includes at least two of an attribute index, a content index, and an event index.
  • S102 Acquire an index value of each picture classification index of each picture for storage.
  • S104 Select a picture that satisfies the condition according to the query instruction.
  • the image classification index created in S101 in this embodiment may be flexibly created according to user requirements or a specific application scenario, and may include any two of an attribute index, a content index, and an event index in order to improve the flexibility and accuracy of the classification query. Yes, the theoretically included image classification index is more comprehensive, so the preferred image classification index contains attribute index, content index, and things. Index.
  • the attribute index of the picture in this embodiment is used to represent some attribute information of the picture, including at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index.
  • the index value of the picture format index is used to represent the specific format of the picture, for example, other picture formats such as JEPG format, GIF format, and PNG format.
  • the index value of the image size index is used to indicate the size of the image file, that is, the size of the storage space.
  • the index value of the picture acquisition time index is used to indicate the time when the picture is acquired.
  • the picture acquisition time of the picture is the time of capturing the picture
  • the picture acquisition time of the picture is the time when the picture was downloaded.
  • the index value of the picture acquisition location index is used to indicate the location where the picture is created. For example, if a picture is taken in Shenzhen, the index of the location index of the picture is Shenzhen.
  • the content index is used to represent a person or thing that the image content is objectively presented, including at least one of a character index, a plant index, and an animal index.
  • the index value for the character index is used to represent the person included in the picture content.
  • one picture may correspond to one or more person index values.
  • the index value of the plant index is used to represent the plants contained in the image content. There are many ways to define the index value. For example, different markers may be used to indicate the presence or absence of a plant. For example, 01 indicates that there is a plant, and 00 indicates There are no plants; you can also define the specific types in the picture.
  • the animal index is used to represent the animals contained in the image content, similar to the way the plant index is defined. Different markers can also be used to indicate whether the image exists in the animal, or the specific animal in the image can be defined.
  • the index value of the event index is used to describe the meaning expressed by the content of the picture, or the event recorded by the picture, or the occasion of obtaining the picture. For example, if a picture records a scene on a wedding, the index value of the event index can be defined as a wedding. It is worth noting that a picture can correspond to an event index value or multiple event index values.
  • the index values of the image classification indexes of the respective pictures are obtained, and the index values of the respective classification indexes for acquiring the respective pictures are specifically described in the following.
  • the image classification index After creating the image classification index, obtain the image classification index value of each image.
  • the attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index, and each attribute index value of each picture needs to be obtained, for the picture format and
  • the size is the basic information of the picture, and the format of the picture is directly extracted as the picture format index value, and the value of the size of the picture is extracted as the picture size index value.
  • the terminal obtains the creation time of the picture file by reading the creation time attribute of the picture file, and obtains the event index value as a picture.
  • the terminal When the picture is a network download, Then, the terminal reads the time when the picture is downloaded as the picture acquisition event index value of the picture. For the specific way of obtaining the position index value of the picture, many terminal devices record the latitude and longitude coordinate information when taking the picture.
  • the program obtains the latitude and longitude coordinates by reading the EXIF (Exchangeable Image File) attribute information of the picture, and the terminal obtains the latitude and longitude coordinates according to the latitude and longitude coordinates.
  • the specific location information of the picture is captured, and the location information is used as the picture of the picture to obtain the location index value; for the picture that cannot obtain the location information, the picture acquisition location index value is defined as null.
  • the picture classification index includes a content index
  • the content index includes at least one of a person index, a plant index, and an animal index.
  • Step S201 Acquire a picture, and the obtained picture that can be taken in real time by the user or downloaded in real time may also exist before.
  • Step S202 The terminal detects all face information on the picture by using a face detection algorithm.
  • Step S203 Comparing the obtained face information with the existing face information, determining whether the face information already exists and having a corresponding person index value, and if so, executing S204, if not, executing S205;
  • Step S204 directly reading the character index value corresponding to the existing face information as the person index value of the picture;
  • Step S205 A new person index value is added.
  • step S203 if the comparison result is non-existent, or although the face information exists in the comparison result but there is no person index value corresponding to the face information, perform S304, newly add and
  • the newly added character index value corresponding to the face may be a predefined person index value added, or the user may manually edit and add, for the predefined
  • the character index value can be customized by the device or pre-defined by the user. Of course, the user can also choose not to add it and add it manually afterwards.
  • the form of the added person index value may be the name of the person corresponding to the face, or any other form convenient for the user to memorize and operate.
  • the plant index value and the animal index value may be a pre-customized plant index value and an animal index value, or may be newly added by the user, when obtaining a picture, selecting a predefined plant index value and an animal index value, or according to the user
  • the naming convention is to add a new plant index value and an animal index value to the image.
  • the pre-defined plant index value and animal index value may be factory-customized by the device, or may be predefined by the user. For example, when the device is shipped from the factory, the plant and plant-free plant index values may be predefined.
  • a picture detects that there is a plant on the picture, and the plant index value of the picture can be directly defined as having a plant, and the user can also modify the index value of the plant, which is similar for the animal index.
  • the user can choose to define the plant index value and animal index value of the image when the image is acquired. It can also be added afterwards.
  • the form of the plant index value and the animal index value can be added in any form according to the user's habit.
  • S301 Acquire a picture, obtain a picture that can be taken in real time by the user, or download it in real time, or it may exist before.
  • S302 Select an index value of the event index for the picture.
  • the index value of the selected event index may be a predefined event index value or a newly created event index value
  • the predefined event index value may be an event index defined at the time of leaving the device at the factory.
  • the value can also be predefined by the user.
  • the specific form of the event index value may be any form that the user is accustomed to, such as numbers, symbols, Chinese characters, English, and the like.
  • each picture, the classification index, and the index value of each classification index and the correspondence relationship between each picture and each index value are stored.
  • the query instruction received in S103 in this embodiment includes classification by at least one target picture A classification query formula composed of indexes; the classification query formula includes an image classification index that each user wants to query, for example, the user wants to search or classify the image according to the size of the image and the characters on the image, and the query instruction issued by the user
  • the classification query formula included in the attribute index is the image size index in the attribute index and the person index in the content index.
  • the classification query formula may include a target image classification index or multiple, and of course, the number of target image classification indexes included The more detailed the multi-category, the higher the accuracy of the search.
  • step S104 is performed: selecting a picture that satisfies the condition according to the query instruction. Extracting a target index value of each target image classification index in the classification query formula, performing an index value of the target image classification index and the target image classification index of the query formula, and an image classification index of each image and an index value of the image classification index. For example, if the picture classification index of the picture includes all the target classification indexes, and the index value of each picture classification index of the picture matches the index value of the target picture classification index, the picture is a picture that satisfies the query condition.
  • the created image classification index includes an attribute index, a content index, and an event index.
  • the attribute index includes a time index and a position index;
  • the content index includes a person index, and the index values of the respective indexes are as shown in Table 1 below:
  • each picture in the above table and each picture classification index is an index value and each picture
  • the index value of the slice classification index will be stored, and when the user's query instruction is received, the classification query formula in the user query instruction is extracted.
  • the target image classification index in the classification query formula input by the user includes the attribute index and the content.
  • the time index and the person index in the index, the index value of the time index is 2015, and the index value of the person index is Zhang San; the terminal selects all photos with the time index value of 2015 and the character index value of Zhang San, according to the above table. Comparing, it can be seen that picture 1 and picture 4 satisfy the query condition, and the terminal feeds back the query result to the user.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the picture management apparatus 4 includes a creation unit 41, an index value acquisition unit 42, an instruction reception unit 43, and a classification inquiry unit 44.
  • the creating unit 41 is configured to set a picture classification index;
  • the index value obtaining unit 42 is configured to obtain an index value of each picture classification index of each picture;
  • the instruction receiving unit 43 is configured to receive a query instruction;
  • the classification query unit 44 is configured to select according to the query instruction. A picture that satisfies the condition.
  • the creating unit 41 is configured to set a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index.
  • the index value of the attribute index is used to represent some attribute information of the picture, including at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index.
  • the index value of the picture format index is used to represent the format of the picture.
  • the index value of the picture size index is used to indicate the size of the picture file.
  • the index value of the picture acquisition time index is used to indicate the time for obtaining the picture, and the index value of the picture acquisition position index is used. Indicates where the image was created.
  • the index value of the content index is used to represent a person or thing whose image content is objectively presented, and the content index includes at least one of a person index, a plant index, and an animal index.
  • the index value of the character index is used to represent the character contained in the image content.
  • one picture may correspond to one or more character index values.
  • the index value of the plant index is used to represent the plants contained in the image content. There are various ways to define the index value. For example, different markers may be used to indicate the presence or absence of a plant, and specific types in the image may be defined. .
  • the index value of the animal index is used to represent the animal contained in the image content, similar to the way the plant index is defined.
  • the index value of the event index is used to describe the meaning expressed by the content of the picture, or the event recorded by the picture, or the occasion of obtaining the picture.
  • the instruction receiving unit 43 is configured to receive a query instruction, where the query instruction includes a classification query formula composed of at least one target picture classification index.
  • the classification query includes an image classification index that each user wants to query. For example, if the user wants to search or classify the image according to the size of the image and the characters on the image, the classification query included in the query instruction issued by the user is The image size index in the attribute index and the person index in the content index.
  • the classification query can include a target image classification index or multiple. Of course, the more the target image classification index is included, the finer the classification will be. The accuracy of the search is also higher.
  • the classification query unit 44 is configured to: after obtaining the classification query formula in the query instruction, extract a target index value of each target image classification index in the classification query formula, and select an index of the target image classification index of the query formula and the target image classification index. The value and the picture classification index of each picture are compared with the index value of the picture classification index, if the picture classification index of the picture includes all target classification indexes, and the index value of each picture classification index of the picture and the target picture classification index If the index value matches, the picture is a picture that satisfies the query condition.
  • an index value obtaining unit 5 is configured to obtain an index value of the various types of picture classification indexes of each picture, including an attribute index value obtaining subunit 51, a content index value obtaining subunit 52, and an event index value obtaining sub Unit 53.
  • the attribute index value obtaining sub-unit 51 is configured to obtain an index value of each attribute index of each picture when the picture classification index includes an attribute index
  • the content index value obtaining sub-unit 52 is configured to acquire each picture when the picture classification index includes a content index.
  • the index value of each content index is used; the event index value obtaining sub-unit 53 is configured to acquire an index value of an event index of each picture.
  • the attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index.
  • the attribute index value obtaining subunit 51 directly extracts the format of the picture as The image format index value extracts the size value of the image as the image size index value.
  • the specific obtaining manner of the image obtaining time index value of the picture is: when the picture is a local shooting picture, the attribute index value obtaining sub-unit 51 obtains the creation time of the picture file by reading the creation time attribute of the picture file, and uses it as a picture. Obtaining a time index value.
  • the attribute index value obtaining sub-unit 51 reads an event of downloading the picture as a picture acquisition event index value of the picture.
  • the position index value when many terminal devices take a picture, the latitude and longitude coordinate information is recorded, and the attribute index value acquisition sub-unit 51 obtains the latitude and longitude coordinates by reading the EXIF (Exchangeable Image File) attribute information of the picture, and the terminal obtains the photograph according to the latitude and longitude coordinates.
  • the specific location information of the picture is obtained by using the location information as a picture of the picture; and the picture acquisition location index value is defined as null for the picture in which the location information cannot be obtained.
  • the event index value acquisition sub-unit 53 completes the correspondence between the picture and the event index value by selecting a predefined event index value or a new time index value, and the predefined event index value may be
  • the event index value defined by the sub-unit 53 is obtained by the event index value, or may be defined by the user through the event index value obtaining sub-unit 53 in advance.
  • the specific form of the event index value may be any form that the user is accustomed to, such as numbers, symbols, Chinese characters, English, and the like. The user can choose to add the event index value when the image is obtained, or choose not to add when acquiring, and then add it later.
  • the content index includes at least one of a person index, a plant index, and an animal index.
  • the content index value acquisition sub-unit 6 includes a content recognition module 61 and a content index value determination module 62.
  • the content identification module 61 is configured to identify the content in the picture, and the recognition result is a person, an animal or a plant. After the content identification module 61 recognizes the content of the picture, the content index value determining module 62 determines the corresponding index value according to the recognition result of the content. .
  • the content index value determining module 62 automatically detects all the face information on the picture by using the face detection algorithm, and the detected face information and the existing person. Whether the face information is compared before viewing, if the comparison result is existed, and then whether the existing face information has a corresponding human index value, and if so, directly reading the character index value as the image a person index value; if the comparison result is non-existent, or although the face information exists in the comparison result but there is no person index value corresponding to the face information, the person index value corresponding to the face is newly added, It should be understood that the newly added character index value corresponding to the face may be a pre-defined person index value added, or may be manually edited and added by the user.
  • the device may be a factory-time content index.
  • the value determining module 62 has been defined, or may be pre-defined by the user in advance through the content index value determining module 62, of course, You can also choose not to add, and then afterwards add manully.
  • the form of the added person index value may be the name of the person corresponding to the face, or any other form convenient for the user to memorize and operate.
  • the content identification module 61 recognizes that the content of the picture is a plant or an animal, the plant index value and the animal index value may be predefined by the content index value determining module 62, or may be newly added by the user.
  • the pre-defined plant index value and the animal index value may be defined in the content index value determining module 62 when the device is shipped from the factory, or may be defined by the user in advance by the content index value determining module 62, for example, when the device is shipped from the factory.
  • Two plant index values can be defined in advance and no plant.
  • the plant index value of the picture can be directly defined as having a plant, and the user can also modify the index value of the plant. For animal indexing similar.
  • the user can choose to define the plant index value and animal index value of the image when the image is acquired. It can also be added afterwards.
  • the form of the plant index value and the animal index value can be added in any form according to the user's habit.
  • the picture management apparatus further includes a network unit, configured to upload the local picture, each picture classification index, the index value of each picture classification index, and other picture related information to the network server.
  • a network unit configured to upload the local picture, each picture classification index, the index value of each picture classification index, and other picture related information to the network server.
  • the device further includes a storage unit, configured to store the image and the image classification index corresponding to the image, and the index value of each image classification index, and store the storage unit on the device.
  • the apparatus further includes an obtaining unit configured to acquire a picture and each picture classification index corresponding to the picture from the other storage device, and an index value of each picture classification index.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the present embodiment provides a terminal, including the picture management device in this embodiment, for example, a computer, a server, a mobile electronic device, and the like, which are common to the picture management device in the second embodiment.
  • a mobile phone of the picture management device includes a creation unit, an index value acquisition unit, an instruction receiving unit, and a classification query unit, the creation unit sets an image classification index, and the index value acquisition unit acquires an index value of each picture classification index of each picture;
  • the receiving unit is configured to receive the query instruction, and the classification query unit selects the image that satisfies the condition according to the query instruction, and further includes the storage unit storing the related image information such as the image, the image classification index, and the index value.
  • the creation unit, the instruction receiving unit, the classification query unit and the network unit may be set on the mobile phone, and the index value acquisition unit and the instruction receiving unit are set on the server, and the creation unit sets the picture classification.
  • the network unit wants the server to send the request, and the server receives the request to call up the stored related information for classification and query processing, saves the relevant information of the processing result, and the result Return to the phone for display to the user.
  • the present invention provides a picture management method and apparatus, and a terminal, which first obtains a picture classification index of a picture, including at least two of an attribute index, a content index, and an event index, before acquiring and querying the picture, and acquiring each The value of the corresponding picture classification index of the picture is stored; after receiving the query command of the user, the picture matching the query condition is selected.
  • the query command input by the user includes a classification search formula and the classification search formula is composed of one or more target image classification indexes, that is, the user can input values of multiple target classification indexes according to needs.
  • the invention obtains each category search value of each picture before classifying and retrieving the picture, so that the picture is searched by each category search value, and the picture required by the user can be more accurately located, and only a single picture can be solved in the prior art.
  • Classification and query, classification and query are not detailed, accurate questions, to achieve the technical effect of more detailed and accurate classification or query of pictures according to user needs to query or classify pictures.
  • the classification index is set by the picture management apparatus, and the classification index includes at least two of an attribute index, a content index, and an event index; and then an index value of each category index of each picture is obtained and stored, and implemented.
  • Each picture has an index value corresponding to the classification index; after receiving the query instruction of the user, the query instruction includes a classification query formula, the classification query formula is composed of at least one target classification index, and the picture management device extracts the classification The target index value of all target classification indexes in the query, the target classification index is compared with the classification index of each picture, and the target index value is compared with the index value of each picture, and the selection has the query query type All images with the same target index and the same index value as the target index value.
  • the user can set the content of the classification index according to his own needs, and input the classification query formula according to the requirement, and the image management apparatus obtains the image that satisfies the query formula according to the issued query instruction, because the query formula includes at least one target classification.
  • the index may be one or more of the queries or conditions, so that the present invention can more accurately locate the pictures required by the user, and can query or classify the pictures according to the user requirements, thereby classifying or querying the pictures more finely and accurately.

Abstract

Provided are a picture management method and device, and a terminal. The picture management device (4) creates picture classification indexes, wherein the picture classification indexes include at least two of an attribute index, a content index and an event index; then the value of each picture classification index of each picture is obtained and stored; then the picture management device (4) receives a user query instruction, wherein the query instruction contains a classification query formula, and the classification query formula is composed of at least one target classification index; and then the picture management device (4) selects a qualified picture according to the classification query formula. The classification query formula at least comprises one target classification index; a picture needed by a user is more accurately located by adding a query condition; and the problems in the prior art that pictures only can be singly classified and queried, and classification and query are not fine and accurate enough are solved, and technical effects that the query or the classification on pictures is carried out according to requirements of the user so that the pictures can be more finely and accurately classified or queried are realized.

Description

一种图片管理方法、装置及一种终端Picture management method, device and terminal 技术领域Technical field
本发明涉及通信与信息领域,尤其涉及一种图片管理方法、装置及一种终端。The present invention relates to the field of communications and information, and in particular, to a picture management method and apparatus, and a terminal.
背景技术Background technique
数字多媒体和网络的发展,丰富了人们日常生活中的娱乐体验。人们能够通过数码相机、手机、平板电脑等设备随时随地的拍摄各种图片,也能方便的通过网络获取到他人产生的图片资源。经过一段时间,每个人的个人电脑上、手持设备上经常积累了大量的自己拍摄的图片,或收藏的喜欢图片,少则几百张,多则上千张。所以,用户为了对海量图片进行管理,对图片操作的需求也越来越多,比如将所有图片进行分类,可以根据不同需求实现不同分类,从而直观明了显示图片,方便对众多图片的管理;另外,根据需求对图片进行更精确地检索,快速定位想要查看的图片。The development of digital multimedia and networks has enriched the entertainment experience in people's daily lives. People can take various pictures anytime and anywhere through digital cameras, mobile phones, tablets and other devices, and can easily obtain image resources generated by others through the network. After a period of time, each person's personal computer and handheld devices often accumulate a large number of pictures taken by themselves, or favorite pictures, ranging from a few hundred to more than a thousand. Therefore, in order to manage a large number of pictures, users have more and more demands on picture operations. For example, classifying all pictures can realize different classification according to different needs, thereby visually displaying pictures and facilitating management of many pictures; To more accurately retrieve images based on your needs, quickly locate the images you want to view.
而在现有技术中,不管是电脑上还是手机等手持设备都存在各种图片管理工具,但是这些图片管理工具管理图片功能比较单一,例如,仅支持按时间分类,检索方法简单,也导致了检索不够准确,输入关键词后不能较准确的定位目标图片。In the prior art, there are various image management tools for handheld devices such as computers and mobile phones, but these image management tools have relatively simple functions for managing pictures. For example, only the classification by time is simple, and the retrieval method is simple, which also leads to The search is not accurate enough, and the target image cannot be located more accurately after inputting the keyword.
发明内容Summary of the invention
本发明实施例要解决的主要技术问题是,提供一种图片管理方法、装置和一种终端,解决现有技术中只能对图片进行单一分类和查询,导致分类和查询方式单一、分类、查询结果不够准确、用户体验不好,满意度低的问题。The main technical problem to be solved by the embodiments of the present invention is to provide a picture management method, a device, and a terminal, which can solve the problem that only a single classification and query can be performed on a picture in the prior art, resulting in a single classification, classification, and query. The results are not accurate enough, the user experience is not good, and the satisfaction is low.
为解决上述技术问题,本发明实施例提供了一种图片管理方法,包括:To solve the above technical problem, an embodiment of the present invention provides a picture management method, including:
设置图片分类索引,所述图片分类索引包括属性索引、内容索引、事件索引中的至少两个; Setting a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index;
获取各图片的所述各图片分类索引的索引值进行存储;Obtaining an index value of each picture classification index of each picture for storage;
接收查询指令,所述查询指令包含由至少一个目标图片分类索引组成的分类查询式;Receiving a query instruction, the query instruction comprising a classification query formula consisting of at least one target image classification index;
提取所述分类查询式中各目标图片分类索引的目标索引值,从所述各图片中选择出具有所述分类查询式中的所有目标图片分类索引且索引值与所述分类查询式的各目标索引值相同的图片。Extracting a target index value of each target image classification index in the classification query formula, and selecting, from each of the pictures, all the target image classification indexes in the classification query formula and the index values and the target of the classification query formula An image with the same index value.
可选地,所述图片分类索引包括属性索引时,所述属性索引包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种。Optionally, when the picture classification index includes an attribute index, the attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index.
可选地,所述图片分类索引包括内容索引时,所述内容索引包括人物索引、植物索引和动物索引中的至少一种。Optionally, when the picture classification index includes a content index, the content index includes at least one of a person index, a plant index, and an animal index.
可选地,获取图片的内容索引的索引值之前,还包括对图片中的内容进行识别,根据识别结果为所述图片增加对应的内容索引的索引值。Optionally, before acquiring the index value of the content index of the image, the method further includes: identifying the content in the image, and adding an index value of the corresponding content index to the image according to the recognition result.
可选地,当识别结果为人物时,为所述图片增加对应的人物索引值包括:识别所述图片上的各人脸信息,将所述人脸信息与已存在的人脸信息进行比对判断所述人脸信息是否已存在并且有人物索引值,若是,则直接使用已存在的人物索引值作为所述图片的人物索引值;若否,新添加与所述人脸相对应的人物索引值。Optionally, when the recognition result is a person, adding a corresponding person index value to the picture includes: identifying each face information on the picture, and comparing the face information with the existing face information. Determining whether the face information already exists and having a character index value, and if so, directly using the existing person index value as a person index value of the picture; if not, newly adding a person index corresponding to the face value.
可选地,其中,所述图片分类索引包括事件索引时,获取各图片的所述事件索引的索引值之前,还包括:Optionally, before the image classification index includes the event index, before acquiring the index value of the event index of each picture, the method further includes:
定义至少一个事件索引值;Defining at least one event index value;
为各图片添加相应的事件索引值。Add the appropriate event index value for each image.
本发明实施例还提供了一种图片管理装置,包括:The embodiment of the invention further provides a picture management device, including:
创建单元:用于设置图片分类索引,所述图片分类索引包括属性索引、内容索引、事件索引中的至少两个;a creating unit: configured to set a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index;
索引值获取单元:用于获取各图片的所述各图片分类索引的索引值; An index value obtaining unit: configured to acquire an index value of each picture classification index of each picture;
指令接收单元:用于接收查询指令,所述查询指令包含由至少一个目标图片分类索引组成的分类查询式;An instruction receiving unit: configured to receive a query instruction, where the query instruction includes a classified query formula composed of at least one target image classification index;
分类查询单元:用于提取所述分类查询式中各目标图片分类索引的目标索引值,从所述各图片中选择出具有所述分类查询式中的所有目标图片分类索引且索引值与所述分类查询式中的各目标索引值相同的图片。a classification query unit: for extracting target index values of each target image classification index in the classification query formula, selecting, from the respective pictures, all target image classification indexes in the classification query formula, and index values and the A picture with the same target index value in the classification query.
可选地,所述索引值获取单元包括属性索引值获取子单元,用于所述图片分类索引包括属性索引时,获取各图片的各属性索引的索引值,所述属性索引包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种。Optionally, the index value obtaining unit includes an attribute index value obtaining sub-unit, configured to obtain an index value of each attribute index of each picture when the picture classification index includes an attribute index, where the attribute index includes an image format index, At least one of a picture size index, a picture acquisition time index, and a picture acquisition location index.
可选地,所述索引值获取单元还包括内容索引值获取子单元,用于当所述图片分类索引包括内容索引时,获取各图片的各内容索引的索引值,所述内容索引包括人物索引、植物索引和动物索引中的至少一种。Optionally, the index value obtaining unit further includes a content index value obtaining subunit, configured to acquire an index value of each content index of each picture when the picture classification index includes a content index, where the content index includes a person index At least one of a plant index and an animal index.
可选地,所述内容索引值获取子单元包括:内容识别模块和内容索引值确定模块,所述内容识别模块用于对图片中的内容进行识别;所述内容索引值确定模块用于根据识别结果为所述图片增加对应的内容索引的索引值。Optionally, the content index value obtaining subunit includes: a content identification module and a content index value determining module, wherein the content identification module is configured to identify content in a picture; and the content index value determining module is configured to identify The result is an index value of the corresponding content index for the picture.
可选地,其中,所述索引值获取单元还包括事件索引值获取子单元,用于获取各图片的事件索引的索引值;所述事件索引值获取子单元包括事件索引值确定模块,用于为各图片添加相应的事件索引值。Optionally, the index value obtaining unit further includes an event index value obtaining subunit, configured to acquire an index value of an event index of each picture; and the event index value obtaining subunit includes an event index value determining module, configured to: Add the appropriate event index value for each image.
本发明实施例还提供了一种终端,所述终端包括所述图片管理装置。An embodiment of the present invention further provides a terminal, where the terminal includes the picture management apparatus.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is arranged to store program code for performing the following steps:
设置图片分类索引,所述图片分类索引包括属性索引、内容索引、事件索引中的至少两个;Setting a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index;
获取各图片的所述各图片分类索引的索引值进行存储;接收查询指令,所述查询指令包含由至少一个目标图片分类索引组成的分类查询式;提取所述分类查询式中各目标图片分类索引的目标索引值,从所述各图片 中选择出具有所述分类查询式中的所有目标图片分类索引且索引值与所述分类查询式的各目标索引值相同的图片。Obtaining an index value of each picture classification index of each picture for storing; receiving a query instruction, where the query instruction includes a classification query formula consisting of at least one target picture classification index; extracting each target picture classification index in the classification query formula Target index value from the respective images A picture having all the target picture classification indexes in the classification query formula and having the same index value as each target index value of the classification query formula is selected.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
获取图片的内容索引的索引值之前,还包括对图片中的内容进行识别,根据识别结果为所述图片增加对应的内容索引的索引值。Before obtaining the index value of the content index of the image, the method further includes: identifying the content in the image, and adding an index value of the corresponding content index to the image according to the recognition result.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
所述图片分类索引包括事件索引时,获取各图片的所述事件索引的索引值之前,定义至少一个事件索引值;为各图片添加相应的事件索引值。When the picture classification index includes the event index, before acquiring the index value of the event index of each picture, at least one event index value is defined; and a corresponding event index value is added for each picture.
本发明实施例的有益效果是:本发明实施例提供了一种图片管理方法、装置和一种终端,图片管理装置设置分类索引,分类索引包括属性索引、内容索引、事件索引中的至少两个;然后获取各图片的各分类索引的索引值并存储,实现各图片都有与其相对应的分类索引的索引值;接收到用户的查询指令后,该查询指令中包含有分类查询式,该分类查询式由至少一个目标分类索引组成,图片管理装置提取该分类查询式中所有目标分类索引的目标索引值,该目标分类索引与各图片的分类索引进行比对,将目标索引值与各图片的索引值进行比对,选择出具有具有该分类查询式中的所有目标分类索引,并且索引值与目标索引值相同的图片。可见,采用本发明的方案用户可以根据自己需求设置分类索引的内容,并根据需求输入分类查询式,图片管理装置根据下达的查询指令获取满足该查询式的图片,由于查询式包含至少一个目标分类索引也即是查询或条件可以有一个或多个,从而本发明可以更准确的定位用户需要的图片,达到根据用户需求对图片进行查询或分类,从而更细致、更准确地分类或查询图片的技术效果。An embodiment of the present invention provides a picture management method and apparatus, and a terminal. The picture management apparatus sets a classification index, where the classification index includes at least two of an attribute index, a content index, and an event index. Then, the index values of the classification indexes of each picture are obtained and stored, and each picture has an index value corresponding to the classification index; after receiving the query instruction of the user, the query instruction includes a classification query formula, and the classification The query formula is composed of at least one target classification index, and the picture management device extracts a target index value of all target classification indexes in the classification query formula, and the target classification index is compared with the classification index of each picture, and the target index value and each picture are compared. The index values are compared, and a picture having all the target classification indexes in the classification query and having the same index value as the target index value is selected. It can be seen that, by using the solution of the present invention, the user can set the content of the classification index according to his own needs, and input the classification query formula according to the requirement, and the image management apparatus obtains the image that satisfies the query formula according to the issued query instruction, because the query formula includes at least one target classification. The index may be one or more of the queries or conditions, so that the present invention can more accurately locate the pictures required by the user, and can query or classify the pictures according to the user requirements, thereby classifying or querying the pictures more finely and accurately. Technical effects.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一 部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the invention and constitute a In part, the illustrative embodiments of the invention and the description thereof are used to explain the invention and are not intended to limit the invention. In the drawing:
图1为本发明实施例一中图片管理方法的流程图;1 is a flowchart of a picture management method according to Embodiment 1 of the present invention;
图2为本发明实施例一中图片管理方法获取人物索引值的流程图;2 is a flowchart of acquiring a character index value by a picture management method according to Embodiment 1 of the present invention;
图3为本发明实施例一中图片管理方法获取事件索引值的流程图;3 is a flowchart of acquiring an event index value by a picture management method according to Embodiment 1 of the present invention;
图4为本发明实施例二中图片管理装置的结构示意图;4 is a schematic structural diagram of a picture management apparatus according to Embodiment 2 of the present invention;
图5为本发明实施例二中图片管理装置中的索引值获取单元的结构示意图;5 is a schematic structural diagram of an index value acquiring unit in a picture management apparatus according to Embodiment 2 of the present invention;
图6为本发明实施例二中图片管理装置中的内容索引值获取子单元的结构示意图。FIG. 6 is a schematic structural diagram of a content index value obtaining subunit in a picture management apparatus according to Embodiment 2 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本实施例提供一种图片管理方法,其与现有技术相比具有根据用户需求对图片进行查询或分类,从而更细致、更准确地分类或查询图片的优点,请参见图1,包括:This embodiment provides a picture management method, which has the advantages of querying or classifying pictures according to user requirements, thereby classifying or querying pictures more finely and accurately, as shown in FIG. 1 , including:
S101:创建图片分类索引,所创建的图片分类索引包括属性索引、内容索引、事件索引中的至少两个;S101: Create a picture classification index, where the created picture classification index includes at least two of an attribute index, a content index, and an event index.
S102:获取各图片的所述各图片分类索引的索引值进行存储;S102: Acquire an index value of each picture classification index of each picture for storage.
S103:接收查询指令;S103: Receive a query instruction.
S104:根据查询指令选择出满足条件的图片。S104: Select a picture that satisfies the condition according to the query instruction.
本实施例中S101中所创建的图片分类索引具体可根据用户需求或者具体应用场景灵活创建,例如可包括属性索引、内容索引、事件索引中的任意两个;为了提升分类查询的灵活性和精确对,理论上包含的图片分类索引越全面越好,因此,优选图片分类索引包含属性索引、内容索引、事 件索引。The image classification index created in S101 in this embodiment may be flexibly created according to user requirements or a specific application scenario, and may include any two of an attribute index, a content index, and an event index in order to improve the flexibility and accuracy of the classification query. Yes, the theoretically included image classification index is more comprehensive, so the preferred image classification index contains attribute index, content index, and things. Index.
本实施例中图片的属性索引用于表示图片具备的一些属性信息,包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种。图片格式索引的索引值用于表示图片的具体格式,例如,JEPG格式、GIF格式、PNG格式等其他图片格式。图片大小索引的索引值用于表示图片文件的大小,即所占存储空间的大小。图片获取时间索引的索引值用于表示获取图片的时间,例如,当图片为终端上的照相机拍摄的,则该图片的图片获取时间为拍摄该图片的时间,当图片为从网络上下载的,则该图片的图片获取时间为下载该图片的时间。图片获取位置索引的索引值用于表示创建该图片的位置,例如,某张图片是在深圳拍摄的,则该图片的位置索引的索引值为深圳。The attribute index of the picture in this embodiment is used to represent some attribute information of the picture, including at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index. The index value of the picture format index is used to represent the specific format of the picture, for example, other picture formats such as JEPG format, GIF format, and PNG format. The index value of the image size index is used to indicate the size of the image file, that is, the size of the storage space. The index value of the picture acquisition time index is used to indicate the time when the picture is acquired. For example, when the picture is taken by the camera on the terminal, the picture acquisition time of the picture is the time of capturing the picture, and when the picture is downloaded from the network, The picture acquisition time of the picture is the time when the picture was downloaded. The index value of the picture acquisition location index is used to indicate the location where the picture is created. For example, if a picture is taken in Shenzhen, the index of the location index of the picture is Shenzhen.
内容索引用于表示图片内容客观呈现的人物或事物,包括人物索引、植物索引和动物索引中的至少一种。人物索引用的索引值于表示图片内容中包含的人物,当内容索引包含人物索引,一张图片可以对应一个或多个人物索引值。植物索引的索引值用于表示图片内容中包含的植物,对于该索引值有多种定义方式,例如,可以用不同的标记表示图片存在或者不存在植物,比如采用01表示有植物,采用00表示没有植物;也可以对图片中的具体种类进行定义。动物索引用于表示图片内容中包含的动物,与植物索引定义方式类似,也可以采用不同的标记表示图片是否存在动物,也可以对图片中的具体动物进行定义。The content index is used to represent a person or thing that the image content is objectively presented, including at least one of a character index, a plant index, and an animal index. The index value for the character index is used to represent the person included in the picture content. When the content index includes the person index, one picture may correspond to one or more person index values. The index value of the plant index is used to represent the plants contained in the image content. There are many ways to define the index value. For example, different markers may be used to indicate the presence or absence of a plant. For example, 01 indicates that there is a plant, and 00 indicates There are no plants; you can also define the specific types in the picture. The animal index is used to represent the animals contained in the image content, similar to the way the plant index is defined. Different markers can also be used to indicate whether the image exists in the animal, or the specific animal in the image can be defined.
事件索引的索引值用于描述图片内容所表达的含义,或图片记录的事件,或获得图片的场合等。例如,某张图片记录的是婚礼上的场景,则事件索引的索引值可以定义为婚礼,值得注意的是一张图片可以对应一个事件索引值也可以对应多个事件索引值。The index value of the event index is used to describe the meaning expressed by the content of the picture, or the event recorded by the picture, or the occasion of obtaining the picture. For example, if a picture records a scene on a wedding, the index value of the event index can be defined as a wedding. It is worth noting that a picture can correspond to an event index value or multiple event index values.
对于本实施例步骤S102:获取各图片的所述各图片分类索引的索引值进行存储其具体获取各图片的各分类索引的索引值将在接下来详细说明。 For the step S102 of the embodiment, the index values of the image classification indexes of the respective pictures are obtained, and the index values of the respective classification indexes for acquiring the respective pictures are specifically described in the following.
在创建好图片分类索引后,获取各图片的图片分类索引值。当该图片分类索引包括属性索引时,属性索引包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种,需要获取各图片的各属性索引值,对于图片格式和大小为图片的基本信息,直接提取图片的格式作为图片格式索引值,提取图片的大小的值作为图片大小索引值。对于图片的图片获取事件索引值,当图片为本地拍摄图片,终端通过读取图片文件的创建时间属性获得该图片文件的创建时间,并将其作为图片获取事件索引值,当图片为网络下载,则终端读取下载该图片的时间作为该图片的图片获取事件索引值。对于获取图片获取位置索引值的具体方式,很多终端设备拍照时会纪录经纬度坐标信息,程序通过读取图片的EXIF(Exchangeable Image File,可交换图像文件)属性信息得到经纬度坐标,终端根据经纬度坐标得到拍摄该图片的具体位置信息,并将该位置信息作为该图片的图片获取位置索引值;对于不能获得该位置信息的图片将其图片获取位置索引值定义为空。After creating the image classification index, obtain the image classification index value of each image. When the image classification index includes an attribute index, the attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index, and each attribute index value of each picture needs to be obtained, for the picture format and The size is the basic information of the picture, and the format of the picture is directly extracted as the picture format index value, and the value of the size of the picture is extracted as the picture size index value. Obtain an event index value for the picture of the picture. When the picture is a local picture, the terminal obtains the creation time of the picture file by reading the creation time attribute of the picture file, and obtains the event index value as a picture. When the picture is a network download, Then, the terminal reads the time when the picture is downloaded as the picture acquisition event index value of the picture. For the specific way of obtaining the position index value of the picture, many terminal devices record the latitude and longitude coordinate information when taking the picture. The program obtains the latitude and longitude coordinates by reading the EXIF (Exchangeable Image File) attribute information of the picture, and the terminal obtains the latitude and longitude coordinates according to the latitude and longitude coordinates. The specific location information of the picture is captured, and the location information is used as the picture of the picture to obtain the location index value; for the picture that cannot obtain the location information, the picture acquisition location index value is defined as null.
当该图片分类索引包括内容索引时,所述内容索引包括人物索引、植物索引和动物索引中的至少一种。获取人物索引值过程,请参见图2:When the picture classification index includes a content index, the content index includes at least one of a person index, a plant index, and an animal index. To get the character index value process, see Figure 2:
步骤S201:获取图片,获取的可以在用户实时拍摄的图片或者实时下载的,也可以是之前就存在的。Step S201: Acquire a picture, and the obtained picture that can be taken in real time by the user or downloaded in real time may also exist before.
步骤S202:终端采用人脸检测算法检测出图片上的所有人脸信息;Step S202: The terminal detects all face information on the picture by using a face detection algorithm.
步骤S203:将获得的人脸信息与已存在的人脸信息进行比对,判断该人脸信息是否已存在且有对应的人物索引值,若是,执行S204,若否,执行S205;Step S203: Comparing the obtained face information with the existing face information, determining whether the face information already exists and having a corresponding person index value, and if so, executing S204, if not, executing S205;
步骤S204:直接读取已存在的人脸信息对应的人物索引值作为该图片的人物索引值;Step S204: directly reading the character index value corresponding to the existing face information as the person index value of the picture;
步骤S205:新添加人物索引值。Step S205: A new person index value is added.
在步骤S203,若对比结果为不存在,或者虽然对比结果存在该人脸信息但是不存在与该人脸信息相对应的人物索引值,执行S304,新添加与 所述人脸相对应的人物索引值,需要理解的是,对于新添加与所述人脸相对应的人物索引值可以是添加预定义的人物索引值,也可以用户手动编辑添加,对于预定义的人物索引值可以是设备出厂自定义的也可以是用户提前预定义的,当然,用户也可以选择不添加,事后再手动添加。对于添加的人物索引值的形式可以是人脸对应的人物姓名,也可以是方便用户记忆和操作的其他任何形式。对于植物索引值和动物索引值,可以是预先自定义的植物索引值和动物索引值,也可以是用户新添加的,当获得图片,选择预先定义的植物索引值和动物索引值,或者根据用户的命名习惯为该图片新添加植物索引值和动物索引值。预先定义的植物索引值和动物索引值可以是设备出厂自定义的,也可以是用户预先定义好的,例如,在设备出厂的时候可以预先定义有植物和没有植物两个植物索引值,当获得一张图片检测到图片上有植物,可以直接将该图片的植物索引值定义为有植物,用户也可以对该植物索引值进行修改,对于动物索引类似。用户可以选择在获取图片时定义图片的植物索引值和动物索引值也可以事后再添加,对于植物索引值和动物索引值的形式可以根据用户的习惯以任何形式添加。In step S203, if the comparison result is non-existent, or although the face information exists in the comparison result but there is no person index value corresponding to the face information, perform S304, newly add and For the character index value corresponding to the face, it should be understood that the newly added character index value corresponding to the face may be a predefined person index value added, or the user may manually edit and add, for the predefined The character index value can be customized by the device or pre-defined by the user. Of course, the user can also choose not to add it and add it manually afterwards. The form of the added person index value may be the name of the person corresponding to the face, or any other form convenient for the user to memorize and operate. For the plant index value and the animal index value, it may be a pre-customized plant index value and an animal index value, or may be newly added by the user, when obtaining a picture, selecting a predefined plant index value and an animal index value, or according to the user The naming convention is to add a new plant index value and an animal index value to the image. The pre-defined plant index value and animal index value may be factory-customized by the device, or may be predefined by the user. For example, when the device is shipped from the factory, the plant and plant-free plant index values may be predefined. A picture detects that there is a plant on the picture, and the plant index value of the picture can be directly defined as having a plant, and the user can also modify the index value of the plant, which is similar for the animal index. The user can choose to define the plant index value and animal index value of the image when the image is acquired. It can also be added afterwards. The form of the plant index value and the animal index value can be added in any form according to the user's habit.
获取事件索引的索引值的过程,请参见图3:For the process of getting the index value of the event index, see Figure 3:
S301:获取图片,获取的可以在用户实时拍摄的图片或者实时下载的,也可以是之前就存在的。S301: Acquire a picture, obtain a picture that can be taken in real time by the user, or download it in real time, or it may exist before.
S302:为图片选择事件索引的索引值。S302: Select an index value of the event index for the picture.
在本实施例步骤S302中,选择的事件索引的索引值,可以是预先定义好的事件索引值或者新建的事件索引值,预先定义好的事件索引值可以是在设备出厂时定义好的事件索引值,也可以是用户预先定义好的。对于事件索引值的具体形式可以是用户习惯的任何形式,例如,数字、符号、汉字、英文等。In step S302 of this embodiment, the index value of the selected event index may be a predefined event index value or a newly created event index value, and the predefined event index value may be an event index defined at the time of leaving the device at the factory. The value can also be predefined by the user. The specific form of the event index value may be any form that the user is accustomed to, such as numbers, symbols, Chinese characters, English, and the like.
在获得各图片的各图片分类索引和索引值之后将各图片、分类索引、以及各分类索引的索引值以及各图片与各索引值的对应关系进行存储。After obtaining each picture classification index and index value of each picture, each picture, the classification index, and the index value of each classification index and the correspondence relationship between each picture and each index value are stored.
本实施例中S103中接收到的查询指令包含由至少一个目标图片分类 索引组成的分类查询式;该分类查询式包括各用户想要查询的图片分类索引,例如用户想要根据图片的大小和图片上的人物对图片进行检索或者分类,则该用户下发的查询指令中包含的分类查询式为属性索引中的图片大小索引和内容索引中的人物索引,分类查询式中可以包含一个目标图片分类索引也可以包含多个,当然,包含的目标图片分类索引个数越多分类就会越精细,检索的准确度也越高。The query instruction received in S103 in this embodiment includes classification by at least one target picture A classification query formula composed of indexes; the classification query formula includes an image classification index that each user wants to query, for example, the user wants to search or classify the image according to the size of the image and the characters on the image, and the query instruction issued by the user The classification query formula included in the attribute index is the image size index in the attribute index and the person index in the content index. The classification query formula may include a target image classification index or multiple, and of course, the number of target image classification indexes included The more detailed the multi-category, the higher the accuracy of the search.
在获得查询指令中的分类查询式之后执行步骤S104:根据查询指令选择出满足条件的图片。提取该分类查询式中各目标图片分类索引的目标索引值,将该查询式的目标图片分类索引以及该目标图片分类索引的索引值和各图片的图片分类索引和该图片分类索引的索引值进行比对,若图片的图片分类索引包含所有目标分类索引,并且该图片的各图片分类索引的索引值与该目标图片分类索引的索引值匹配,则该图片为满足查询条件的图片。After obtaining the classification query formula in the query instruction, step S104 is performed: selecting a picture that satisfies the condition according to the query instruction. Extracting a target index value of each target image classification index in the classification query formula, performing an index value of the target image classification index and the target image classification index of the query formula, and an image classification index of each image and an index value of the image classification index. For example, if the picture classification index of the picture includes all the target classification indexes, and the index value of each picture classification index of the picture matches the index value of the target picture classification index, the picture is a picture that satisfies the query condition.
下面将结合具体的示例对上述图片管理方法的整个流程进行说明:The entire flow of the above picture management method will be described below with reference to specific examples:
创建的图片分类索引包括属性索引、内容索引、事件索引,属性索引包括时间索引和位置索引;内容索引包括人物索引,各个索引的索引值如下表1所示:The created image classification index includes an attribute index, a content index, and an event index. The attribute index includes a time index and a position index; the content index includes a person index, and the index values of the respective indexes are as shown in Table 1 below:
表1Table 1
Figure PCTCN2016102762-appb-000001
Figure PCTCN2016102762-appb-000001
在获得上述表中的各图片以及各图片分类索引是索引值和各图 片分类索引的索引值后会将其储存,当接收到用户的查询指令,提取出用户查询指令中的分类查询式,例如,用户输入的分类查询式中的目标图片分类索引包括属性索引和内容索引中的时间索引和人物索引,时间索引的索引值为2015、人物索引的索引值为张三;终端选择出时间索引值为2015且人物索引值为张三的所有照片,根据与上述表格的比对,可以看出图片1和图片4满足查询条件,终端反馈查询结果给用户。Obtaining each picture in the above table and each picture classification index is an index value and each picture The index value of the slice classification index will be stored, and when the user's query instruction is received, the classification query formula in the user query instruction is extracted. For example, the target image classification index in the classification query formula input by the user includes the attribute index and the content. The time index and the person index in the index, the index value of the time index is 2015, and the index value of the person index is Zhang San; the terminal selects all photos with the time index value of 2015 and the character index value of Zhang San, according to the above table. Comparing, it can be seen that picture 1 and picture 4 satisfy the query condition, and the terminal feeds back the query result to the user.
实施例二:Embodiment 2:
本实施例提供一种图片管理装置,请参见图4,该图片管理装置4包括:创建单元41、索引值获取单元42、指令接收单元43和分类查询单元44。创建单元41用于设置图片分类索引;索引值获取单元42用于获取各图片的各图片分类索引的索引值;指令接收单元43:用于接收查询指令;分类查询单元44用于根据查询指令选择出满足条件的图片。The present embodiment provides a picture management apparatus. Referring to FIG. 4, the picture management apparatus 4 includes a creation unit 41, an index value acquisition unit 42, an instruction reception unit 43, and a classification inquiry unit 44. The creating unit 41 is configured to set a picture classification index; the index value obtaining unit 42 is configured to obtain an index value of each picture classification index of each picture; the instruction receiving unit 43 is configured to receive a query instruction; and the classification query unit 44 is configured to select according to the query instruction. A picture that satisfies the condition.
创建单元41,用于设置图片分类索引,图片分类索引包括属性索引、内容索引、事件索引中的至少两个。属性索引的索引值用于表示图片具备的一些属性信息,包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种。图片格式索引的索引值用于表示图片的格式,图片大小索引的索引值用于表示图片文件的大小,图片获取时间索引的索引值用于表示获取图片的时间,图片获取位置索引的索引值用于表示创建该图片的位置。内容索引的索引值用于表示图片内容客观呈现的人物或事物,内容索引包括人物索引、植物索引和动物索引中的至少一种。人物索引的索引值用于表示图片内容中包含的人物,当内容索引包含人物索引,一张图片可以对应一个或多个人物索引值。植物索引的索引值用于表示图片内容中包含的植物,对于该索引值有多种定义方式,例如,可以用不同的标记表示图片存在或者不存在植物,也可以对图片中的具体种类进行定义。动物索引的索引值用于表示图片内容中包含的动物,与植物索引定义方式类似,也可以采用不同的标记表示图片是否存在动物,也可以对图片中的具体动物进行定义。事件索引的索引值用于描述图片内容所表达的含义,或图片记录的事件,或获得图片的场合等。 The creating unit 41 is configured to set a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index. The index value of the attribute index is used to represent some attribute information of the picture, including at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index. The index value of the picture format index is used to represent the format of the picture. The index value of the picture size index is used to indicate the size of the picture file. The index value of the picture acquisition time index is used to indicate the time for obtaining the picture, and the index value of the picture acquisition position index is used. Indicates where the image was created. The index value of the content index is used to represent a person or thing whose image content is objectively presented, and the content index includes at least one of a person index, a plant index, and an animal index. The index value of the character index is used to represent the character contained in the image content. When the content index includes the character index, one picture may correspond to one or more character index values. The index value of the plant index is used to represent the plants contained in the image content. There are various ways to define the index value. For example, different markers may be used to indicate the presence or absence of a plant, and specific types in the image may be defined. . The index value of the animal index is used to represent the animal contained in the image content, similar to the way the plant index is defined. Different markers can also be used to indicate whether the image exists in the animal, or the specific animal in the image can be defined. The index value of the event index is used to describe the meaning expressed by the content of the picture, or the event recorded by the picture, or the occasion of obtaining the picture.
指令接收单元43用于接收查询指令,该查询指令包含由至少一个目标图片分类索引组成的分类查询式。该分类查询式包括各用户想要查询的图片分类索引,例如用户想要根据图片的大小和图片上的人物对图片进行检索或者分类,则该用户下发的查询指令中包含的分类查询式为属性索引中的图片大小索引和内容索引中的人物索引,分类查询式中可以包含一个目标图片分类索引也可以包含多个,当然,包含的目标图片分类索引个数越多分类就会越精细,检索的准确度也越高。The instruction receiving unit 43 is configured to receive a query instruction, where the query instruction includes a classification query formula composed of at least one target picture classification index. The classification query includes an image classification index that each user wants to query. For example, if the user wants to search or classify the image according to the size of the image and the characters on the image, the classification query included in the query instruction issued by the user is The image size index in the attribute index and the person index in the content index. The classification query can include a target image classification index or multiple. Of course, the more the target image classification index is included, the finer the classification will be. The accuracy of the search is also higher.
分类查询单元44用于在获得查询指令中的分类查询式之后,提取该分类查询式中各目标图片分类索引的目标索引值,将该查询式的目标图片分类索引以及该目标图片分类索引的索引值和各图片的图片分类索引和该图片分类索引的索引值进行比对,若图片的图片分类索引包含所有目标分类索引,并且该图片的各图片分类索引的索引值与该目标图片分类索引的索引值匹配,则该图片为满足查询条件的图片。The classification query unit 44 is configured to: after obtaining the classification query formula in the query instruction, extract a target index value of each target image classification index in the classification query formula, and select an index of the target image classification index of the query formula and the target image classification index. The value and the picture classification index of each picture are compared with the index value of the picture classification index, if the picture classification index of the picture includes all target classification indexes, and the index value of each picture classification index of the picture and the target picture classification index If the index value matches, the picture is a picture that satisfies the query condition.
请参见图5,索引值获取单元5,用于获取各图片的所述各类图片分类索引的索引值,包括属性索引值获取子单元51、内容索引值获取子单元52和事件索引值获取子单元53。属性索引值获取子单元51用于当图片分类索引包括属性索引时,获取各图片的各属性索引的索引值;内容索引值获取子单元52用于当图片分类索引包括内容索引时,获取各图片的各内容索引的索引值;事件索引值获取子单元53用于获取各图片的事件索引的索引值。Referring to FIG. 5, an index value obtaining unit 5 is configured to obtain an index value of the various types of picture classification indexes of each picture, including an attribute index value obtaining subunit 51, a content index value obtaining subunit 52, and an event index value obtaining sub Unit 53. The attribute index value obtaining sub-unit 51 is configured to obtain an index value of each attribute index of each picture when the picture classification index includes an attribute index, and the content index value obtaining sub-unit 52 is configured to acquire each picture when the picture classification index includes a content index. The index value of each content index is used; the event index value obtaining sub-unit 53 is configured to acquire an index value of an event index of each picture.
属性索引包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种,对于图片格式和大小为图片的基本信息,属性索引值获取子单元51直接提取图片的格式作为图片格式索引值,提取图片的大小值作为图片大小索引值。对于图片的图片获取时间索引值的具体获得方式为:当图片为本地拍摄图片,属性索引值获取子单元51通过读取图片文件的创建时间属性获得该图片文件的创建时间,并将其作为图片获取时间索引值,当图片为网络下载,则属性索引值获取子单元51读取下载该图片的事件作为该图片的图片获取事件索引值。对于图片获取 位置索引值,很多终端设备拍照时会纪录经纬度坐标信息,属性索引值获取子单元51通过读取图片的EXIF(Exchangeable Image File,可交换图像文件)属性信息得到经纬度坐标,终端根据经纬度坐标得到拍摄该图片的具体位置信息,并将该位置信息作为该图片的图片获取位置索引值;对于不能获得该位置信息的图片将其图片获取位置索引值定义为空。The attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index. For the basic information of the picture format and the size of the picture, the attribute index value obtaining subunit 51 directly extracts the format of the picture as The image format index value extracts the size value of the image as the image size index value. The specific obtaining manner of the image obtaining time index value of the picture is: when the picture is a local shooting picture, the attribute index value obtaining sub-unit 51 obtains the creation time of the picture file by reading the creation time attribute of the picture file, and uses it as a picture. Obtaining a time index value. When the picture is a network download, the attribute index value obtaining sub-unit 51 reads an event of downloading the picture as a picture acquisition event index value of the picture. For image acquisition The position index value, when many terminal devices take a picture, the latitude and longitude coordinate information is recorded, and the attribute index value acquisition sub-unit 51 obtains the latitude and longitude coordinates by reading the EXIF (Exchangeable Image File) attribute information of the picture, and the terminal obtains the photograph according to the latitude and longitude coordinates. The specific location information of the picture is obtained by using the location information as a picture of the picture; and the picture acquisition location index value is defined as null for the picture in which the location information cannot be obtained.
当新增图片或新拍摄图片,事件索引值获取子单元53通过选择预先定义好的事件索引值或者新建时间索引值,完成图片与事件索引值的对应,预先定义好的事件索引值可以是在设备出厂时通过事件索引值获取子单元53定义好的事件索引值,也可以是用户预先通过事件索引值获取子单元53定义好的。对于事件索引值的具体形式可以是用户习惯的任何形式,例如,数字、符号、汉字、英文等。用户可以选择在获取到图片的时候添加事件索引值,也可选择获取时不添加,事后再来添加。When a new picture or a new picture is added, the event index value acquisition sub-unit 53 completes the correspondence between the picture and the event index value by selecting a predefined event index value or a new time index value, and the predefined event index value may be When the device is shipped from the factory, the event index value defined by the sub-unit 53 is obtained by the event index value, or may be defined by the user through the event index value obtaining sub-unit 53 in advance. The specific form of the event index value may be any form that the user is accustomed to, such as numbers, symbols, Chinese characters, English, and the like. The user can choose to add the event index value when the image is obtained, or choose not to add when acquiring, and then add it later.
内容索引包括人物索引、植物索引和动物索引中的至少一种,请参见图6,内容索引值获取子单元6包括内容识别模块61和内容索引值确定模块62。内容识别模块61用于对图片中的内容进行识别,识别结果为人物,动物或植物,内容识别模块61识别出图片的内容后内容索引值确定模块62根据内容的识别结果确定相对应的索引值。The content index includes at least one of a person index, a plant index, and an animal index. Referring to FIG. 6, the content index value acquisition sub-unit 6 includes a content recognition module 61 and a content index value determination module 62. The content identification module 61 is configured to identify the content in the picture, and the recognition result is a person, an animal or a plant. After the content identification module 61 recognizes the content of the picture, the content index value determining module 62 determines the corresponding index value according to the recognition result of the content. .
当内容识别模块61识别出图片的内容为人物,内容索引值确定模块62会自动采用人脸检测算法检测出图片上的所有人脸信息,并将这些检测到的人脸信息与已经存在的人脸信息进行比对看之前是否已经存在,当比对结果为存在,再看已存在的人脸信息是否有与之对应的人物索引值,如果有,直接读取该人物索引值作为该图片的人物索引值;若对比结果为不存在,或者虽然对比结果存在该人脸信息但是不存在与该人脸信息相对应的人物索引值,则新添加与所述人脸相对应的人物索引值,需要理解的是,对于新添加与所述人脸相对应的人物索引值可以是添加预定义的人物索引值,也可以用户手动编辑添加,对于预定义的人物索引值可以是设备出厂时内容索引值确定模块62已经定义好的,也可以是用户提前通过内容索引值确定模块62预先定义的,当然,用户也可以选择不添加,事后再 手动添加。对于添加的人物索引值的形式可以是人脸对应的人物姓名,也可以是方便用户记忆和操作的其他任何形式。当内容识别模块61识别出图片的内容为植物或动物,该植物索引值和动物索引值可以是通过内容索引值确定模块62预先定义好的,也可以是用户新添加的,当获得图片,用户选择预先定义的植物索引值和动物索引值或者用户提前设置好让内容索引值确定模块62内容索引值确定模块62自动选择预先定义的植物索引值和动物索引值,或者根据用户的命名习惯为该图片新添加植物索引值和动物索引值。预先定义的植物索引值和动物索引值可以是设备出厂时已经在内容索引值确定模块62中定义的,也可以是用户预先通过内容索引值确定模块62定义好的,例如,在设备出厂的时候可以预先定义有植物和没有植物两个植物索引值,当获得一张图片检测到图片上有植物,可以直接将该图片的植物索引值定义为有植物,用户也可以对该植物索引值进行修改,对于动物索引类似。用户可以选择在获取图片时定义图片的植物索引值和动物索引值也可以事后再添加,对于植物索引值和动物索引值的形式可以根据用户的习惯以任何形式添加。When the content identification module 61 recognizes that the content of the picture is a person, the content index value determining module 62 automatically detects all the face information on the picture by using the face detection algorithm, and the detected face information and the existing person. Whether the face information is compared before viewing, if the comparison result is existed, and then whether the existing face information has a corresponding human index value, and if so, directly reading the character index value as the image a person index value; if the comparison result is non-existent, or although the face information exists in the comparison result but there is no person index value corresponding to the face information, the person index value corresponding to the face is newly added, It should be understood that the newly added character index value corresponding to the face may be a pre-defined person index value added, or may be manually edited and added by the user. For a predefined character index value, the device may be a factory-time content index. The value determining module 62 has been defined, or may be pre-defined by the user in advance through the content index value determining module 62, of course, You can also choose not to add, and then afterwards add manully. The form of the added person index value may be the name of the person corresponding to the face, or any other form convenient for the user to memorize and operate. When the content identification module 61 recognizes that the content of the picture is a plant or an animal, the plant index value and the animal index value may be predefined by the content index value determining module 62, or may be newly added by the user. Selecting a predefined plant index value and an animal index value or setting the user in advance so that the content index value determining module 62 content index value determining module 62 automatically selects a predefined plant index value and an animal index value, or according to the user's naming convention The image adds a new plant index value and an animal index value. The pre-defined plant index value and the animal index value may be defined in the content index value determining module 62 when the device is shipped from the factory, or may be defined by the user in advance by the content index value determining module 62, for example, when the device is shipped from the factory. Two plant index values can be defined in advance and no plant. When a picture is obtained to detect that there is a plant on the picture, the plant index value of the picture can be directly defined as having a plant, and the user can also modify the index value of the plant. For animal indexing similar. The user can choose to define the plant index value and animal index value of the image when the image is acquired. It can also be added afterwards. The form of the plant index value and the animal index value can be added in any form according to the user's habit.
可选地,图片管理装置还包括网络单元,该网络单元用于将本地的图片、各图片分类索引、各图片分类索引的索引值以及其他图片相关信息上传到网络服务器。Optionally, the picture management apparatus further includes a network unit, configured to upload the local picture, each picture classification index, the index value of each picture classification index, and other picture related information to the network server.
可选地,该装置还包括存储单元,用于在获取到图片和与该图片相对应的各图片分类索引,以及各图片分类索引的索引值之后将其存储,当该装置上没有设置存储单元时,该装置还包括获取单元,用于从其他存储装置上获取图片和与该图片相对应的各图片分类索引,以及各图片分类索引的索引值。Optionally, the device further includes a storage unit, configured to store the image and the image classification index corresponding to the image, and the index value of each image classification index, and store the storage unit on the device. The apparatus further includes an obtaining unit configured to acquire a picture and each picture classification index corresponding to the picture from the other storage device, and an index value of each picture classification index.
实施例三:Embodiment 3:
本实施例提供一种终端,包括本实施例中的图片管理装置,例如,包含实施例二中的图片管理装置常见的计算机、服务器、移动电子设备等。The present embodiment provides a terminal, including the picture management device in this embodiment, for example, a computer, a server, a mobile electronic device, and the like, which are common to the picture management device in the second embodiment.
具体的,下面将结合具体示例进行说明,例如,一种包含实施例二中 的图片管理装置的手机,该手机包括创建单元、索引值获取单元、指令接收单元和分类查询单元,创建单元设置图片分类索引,索引值获取单元获取各图片的各图片分类索引的索引值;指令接收单元用于接收查询指令;分类查询单元根据查询指令选择出满足条件的图片,还包括储存单元将图片、图片分类索引、索引值等相关的图片信息进行存储。为了减小手机的工作量,也可以在该手机上只设置创建单元,指令接收单元和分类查询单元以及网络单元,将索引值获取单元和指令接收单元设置在服务器上,创建单元设置好图片分类索引,当手机的指令接收单元接收到用户发出的分类查询指令,网络单元想服务器发送请求,服务器接收到请求调出存储的相关信息进行分类查询等处理,保存处理结果的相关信息,并将结果返回给手机显示给用户。Specifically, the following will be described with reference to specific examples, for example, one includes the second embodiment. a mobile phone of the picture management device, the mobile phone includes a creation unit, an index value acquisition unit, an instruction receiving unit, and a classification query unit, the creation unit sets an image classification index, and the index value acquisition unit acquires an index value of each picture classification index of each picture; The receiving unit is configured to receive the query instruction, and the classification query unit selects the image that satisfies the condition according to the query instruction, and further includes the storage unit storing the related image information such as the image, the image classification index, and the index value. In order to reduce the workload of the mobile phone, only the creation unit, the instruction receiving unit, the classification query unit and the network unit may be set on the mobile phone, and the index value acquisition unit and the instruction receiving unit are set on the server, and the creation unit sets the picture classification. Index, when the instruction receiving unit of the mobile phone receives the classification query command issued by the user, the network unit wants the server to send the request, and the server receives the request to call up the stored related information for classification and query processing, saves the relevant information of the processing result, and the result Return to the phone for display to the user.
结合上述实施例可知,通过本发明的实施至少具备以下有益效果:It can be seen from the above embodiments that the implementation of the present invention has at least the following beneficial effects:
本发明提供了一种图片管理方法、装置及一种终端,在对图片进行分类和查询前首先获得图片的图片分类索引,包括属性索引、内容索引和事件索引中的至少两个,并获取各图片相应的图片分类索引的值,将其储存;在接收到用户的查询明命令后,选择出符合查询条件的图片。值得注意的是,用户输入的查询命令中包含分类检索式而分类检索式由一个或多个目标图片分类索引组成,也即是用户可以根据需要,输入多个目标分类索引的值。本发明通过在对图片分类和检索前获取各图片的各分类检索值,使通过各分类检索值来定位图片,能更准确的定位用户需要的图片,解决现有技术中只能对图片进行单一分类和查询,分类和查询不够细致,准确的问题,达到根据用户需求对图片进行查询或分类,从而更细致、更准确地分类或查询图片的技术效果。The present invention provides a picture management method and apparatus, and a terminal, which first obtains a picture classification index of a picture, including at least two of an attribute index, a content index, and an event index, before acquiring and querying the picture, and acquiring each The value of the corresponding picture classification index of the picture is stored; after receiving the query command of the user, the picture matching the query condition is selected. It is worth noting that the query command input by the user includes a classification search formula and the classification search formula is composed of one or more target image classification indexes, that is, the user can input values of multiple target classification indexes according to needs. The invention obtains each category search value of each picture before classifying and retrieving the picture, so that the picture is searched by each category search value, and the picture required by the user can be more accurately located, and only a single picture can be solved in the prior art. Classification and query, classification and query are not detailed, accurate questions, to achieve the technical effect of more detailed and accurate classification or query of pictures according to user needs to query or classify pictures.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。 The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
在本发明实施例图片管理过程中,通过图片管理装置设置分类索引,分类索引包括属性索引、内容索引、事件索引中的至少两个;然后获取各图片的各分类索引的索引值并存储,实现各图片都有与其相对应的分类索引的索引值;接收到用户的查询指令后,该查询指令中包含有分类查询式,该分类查询式由至少一个目标分类索引组成,图片管理装置提取该分类查询式中所有目标分类索引的目标索引值,该目标分类索引与各图片的分类索引进行比对,将目标索引值与各图片的索引值进行比对,选择出具有具有该分类查询式中的所有目标分类索引,并且索引值与目标索引值相同的图片。可见,采用本发明的方案用户可以根据自己需求设置分类索引的内容,并根据需求输入分类查询式,图片管理装置根据下达的查询指令获取满足该查询式的图片,由于查询式包含至少一个目标分类索引也即是查询或条件可以有一个或多个,从而本发明可以更准确的定位用户需要的图片,达到根据用户需求对图片进行查询或分类,从而更细致、更准确地分类或查询图片的技术效果。 In the picture management process of the embodiment of the present invention, the classification index is set by the picture management apparatus, and the classification index includes at least two of an attribute index, a content index, and an event index; and then an index value of each category index of each picture is obtained and stored, and implemented. Each picture has an index value corresponding to the classification index; after receiving the query instruction of the user, the query instruction includes a classification query formula, the classification query formula is composed of at least one target classification index, and the picture management device extracts the classification The target index value of all target classification indexes in the query, the target classification index is compared with the classification index of each picture, and the target index value is compared with the index value of each picture, and the selection has the query query type All images with the same target index and the same index value as the target index value. It can be seen that, by using the solution of the present invention, the user can set the content of the classification index according to his own needs, and input the classification query formula according to the requirement, and the image management apparatus obtains the image that satisfies the query formula according to the issued query instruction, because the query formula includes at least one target classification. The index may be one or more of the queries or conditions, so that the present invention can more accurately locate the pictures required by the user, and can query or classify the pictures according to the user requirements, thereby classifying or querying the pictures more finely and accurately. Technical effects.

Claims (12)

  1. 一种图片管理方法,包括:A picture management method, including:
    创建图片分类索引,所述图片分类索引包括属性索引、内容索引、事件索引中的至少两个;Creating a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index;
    获取各图片的所述各图片分类索引的索引值进行存储;Obtaining an index value of each picture classification index of each picture for storage;
    接收查询指令,所述查询指令包含由至少一个目标图片分类索引组成的分类查询式;Receiving a query instruction, the query instruction comprising a classification query formula consisting of at least one target image classification index;
    提取所述分类查询式中各目标图片分类索引的目标索引值,从所述各图片中选择出具有所述分类查询式中的所有目标图片分类索引且索引值与所述分类查询式的各目标索引值匹配的图片。Extracting a target index value of each target image classification index in the classification query formula, and selecting, from each of the pictures, all the target image classification indexes in the classification query formula and the index values and the target of the classification query formula The image whose index value matches.
  2. 如权利要求1所述的图片管理方法,其中,所述图片分类索引包括属性索引时,所述属性索引包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种。The picture management method according to claim 1, wherein when the picture classification index includes an attribute index, the attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition position index. .
  3. 如权利要求1所述的图片管理方法,其中,所述图片分类索引包括内容索引时,所述内容索引包括人物索引、植物索引和动物索引中的至少一种。The picture management method according to claim 1, wherein when the picture classification index includes a content index, the content index includes at least one of a person index, a plant index, and an animal index.
  4. 如权利要求3所述的图片管理方法,其中,获取图片的内容索引的索引值之前,还包括对图片中的内容进行识别,根据识别结果为所述图片增加对应的内容索引的索引值。The picture management method according to claim 3, wherein before the index value of the content index of the picture is acquired, the method further comprises: identifying the content in the picture, and adding an index value of the corresponding content index to the picture according to the recognition result.
  5. 如权利要求4所述的图片管理方法,其中,当识别结果为人物时,为所述图片增加对应的人物索引值包括:识别所述图片上的各人脸信息,将所述人脸信息与已存在的人脸信息进行比对判断所述人脸信息是否已存在并且有人物索引值,若是,则直接使用已存在的人物索引值作为所述图片的人物索引值;若否,新添加与所述人脸相对应的人物索引值。 The picture management method according to claim 4, wherein when the recognition result is a person, adding a corresponding person index value to the picture comprises: identifying each face information on the picture, and using the face information and The existing face information is compared to determine whether the face information already exists and has a person index value, and if so, the existing person index value is directly used as the person index value of the picture; if not, the new addition and The character index value corresponding to the face.
  6. 如权利要求1-5任一项所述的图片管理方法,其中,所述图片分类索引包括事件索引时,获取各图片的所述事件索引的索引值之前,还包括:The picture management method according to any one of claims 1 to 5, wherein, before the image classification index includes the event index, before acquiring the index value of the event index of each picture, the method further includes:
    定义至少一个事件索引值;Defining at least one event index value;
    为各图片添加相应的事件索引值。Add the appropriate event index value for each image.
  7. 一种图片管理装置,包括:A picture management device comprising:
    创建单元:用于设置图片分类索引,所述图片分类索引包括属性索引、内容索引、事件索引中的至少两个;a creating unit: configured to set a picture classification index, where the picture classification index includes at least two of an attribute index, a content index, and an event index;
    索引值获取单元:用于获取各图片的所述各图片分类索引的索引值;An index value obtaining unit: configured to acquire an index value of each picture classification index of each picture;
    指令接收单元:用于接收查询指令,所述查询指令包含由至少一个目标图片分类索引组成的分类查询式;An instruction receiving unit: configured to receive a query instruction, where the query instruction includes a classified query formula composed of at least one target image classification index;
    分类查询单元:用于提取所述分类查询式中各目标图片分类索引的目标索引值,从所述各图片中选择出具有所述分类查询式中的所有目标图片分类索引且索引值与所述分类查询式中的各目标索引值相同的图片。a classification query unit: for extracting target index values of each target image classification index in the classification query formula, selecting, from the respective pictures, all target image classification indexes in the classification query formula, and index values and the A picture with the same target index value in the classification query.
  8. 如权利要求7所述的图片管理装置,其中,所述索引值获取单元包括属性索引值获取子单元,用于所述图片分类索引包括属性索引时,获取各图片的各属性索引的索引值,所述属性索引包括图片格式索引、图片大小索引、图片获取时间索引和图片获取位置索引中的至少一种。The picture management apparatus according to claim 7, wherein the index value acquisition unit includes an attribute index value acquisition subunit, and configured to acquire an index value of each attribute index of each picture when the picture classification index includes an attribute index, The attribute index includes at least one of a picture format index, a picture size index, a picture acquisition time index, and a picture acquisition location index.
  9. 如权利要求7所述的图片管理装置,其中,所述索引值获取单元还包括内容索引值获取子单元,用于当所述图片分类索引包括内容索引时,获取各图片的各内容索引的索引值,所述内容索引包括人物索引、植物索引和动物索引中的至少一种。 The picture management apparatus according to claim 7, wherein the index value obtaining unit further comprises a content index value obtaining subunit, configured to acquire an index of each content index of each picture when the picture classification index includes a content index And a value index, the content index including at least one of a person index, a plant index, and an animal index.
  10. 如权利要求9所述的图片管理装置,其中,所述内容索引值获取子单元包括:内容识别模块和内容索引值确定模块,所述内容识别模块用于对图片中的内容进行识别;所述内容索引值确定模块用于根据识别结果为所述图片增加对应的内容索引的索引值。The picture management device according to claim 9, wherein the content index value acquisition subunit comprises: a content recognition module and a content index value determination module, the content recognition module is configured to identify content in the picture; The content index value determining module is configured to add an index value of the corresponding content index to the picture according to the recognition result.
  11. 如权利要求7-10任一项所述的图片管理装置,其中,所述索引值获取单元还包括事件索引值获取子单元,用于获取各图片的事件索引的索引值;所述事件索引值获取子单元包括事件索引值确定模块,用于为各图片添加相应的事件索引值。The picture management apparatus according to any one of claims 7 to 10, wherein the index value acquisition unit further includes an event index value acquisition subunit, configured to acquire an index value of an event index of each picture; the event index value. The obtaining subunit includes an event index value determining module for adding a corresponding event index value for each picture.
  12. 一种终端,包括如权利要求7-11任一项所述的图片管理装置。 A terminal comprising the picture management device according to any one of claims 7-11.
PCT/CN2016/102762 2015-10-22 2016-10-20 Picture management method and device, and terminal WO2017067485A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510691120.5 2015-10-22
CN201510691120.5A CN106610983A (en) 2015-10-22 2015-10-22 Picture management method and apparatus, and terminal

Publications (1)

Publication Number Publication Date
WO2017067485A1 true WO2017067485A1 (en) 2017-04-27

Family

ID=58556664

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102762 WO2017067485A1 (en) 2015-10-22 2016-10-20 Picture management method and device, and terminal

Country Status (2)

Country Link
CN (1) CN106610983A (en)
WO (1) WO2017067485A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295172A (en) * 2017-06-21 2017-10-24 深圳市万普拉斯科技有限公司 A kind of method and mobile terminal for checking picture
CN112989254A (en) * 2021-04-13 2021-06-18 郑州悉知信息科技股份有限公司 Picture processing method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193904A (en) * 2017-05-11 2017-09-22 浙江唯见科技有限公司 A kind of books VR and AR experience interactive system
CN107526769A (en) * 2017-07-10 2017-12-29 北京百度网讯科技有限公司 Photo processing method and device, equipment and computer-readable recording medium based on artificial intelligence
CN107704514A (en) * 2017-08-31 2018-02-16 努比亚技术有限公司 A kind of photo management method, device and computer-readable recording medium
CN111382770A (en) * 2018-12-29 2020-07-07 百度在线网络技术(北京)有限公司 Picture clustering method, device, equipment and storage medium
CN110674329A (en) * 2019-09-23 2020-01-10 北京百度网讯科技有限公司 Picture filtering method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211341A (en) * 2006-12-29 2008-07-02 上海芯盛电子科技有限公司 Image intelligent mode recognition and searching method
CN102902758A (en) * 2012-09-24 2013-01-30 百度在线网络技术(北京)有限公司 Wallpaper setting method and device for obtaining network pictures by using search engine
CN103995848A (en) * 2014-05-06 2014-08-20 百度在线网络技术(北京)有限公司 Image search method and device
CN104376114A (en) * 2014-12-01 2015-02-25 百度在线网络技术(北京)有限公司 Search result displaying method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063938B2 (en) * 2012-03-30 2015-06-23 Commvault Systems, Inc. Search filtered file system using secondary storage, including multi-dimensional indexing and searching of archived files
CN103761326A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Image search method and search engine
CN104572905B (en) * 2014-12-26 2018-09-04 小米科技有限责任公司 Print reference creation method, photo searching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211341A (en) * 2006-12-29 2008-07-02 上海芯盛电子科技有限公司 Image intelligent mode recognition and searching method
CN102902758A (en) * 2012-09-24 2013-01-30 百度在线网络技术(北京)有限公司 Wallpaper setting method and device for obtaining network pictures by using search engine
CN103995848A (en) * 2014-05-06 2014-08-20 百度在线网络技术(北京)有限公司 Image search method and device
CN104376114A (en) * 2014-12-01 2015-02-25 百度在线网络技术(北京)有限公司 Search result displaying method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295172A (en) * 2017-06-21 2017-10-24 深圳市万普拉斯科技有限公司 A kind of method and mobile terminal for checking picture
CN112989254A (en) * 2021-04-13 2021-06-18 郑州悉知信息科技股份有限公司 Picture processing method and device

Also Published As

Publication number Publication date
CN106610983A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
WO2017067485A1 (en) Picture management method and device, and terminal
US11714523B2 (en) Digital image tagging apparatuses, systems, and methods
KR101810578B1 (en) Automatic media sharing via shutter click
US20180365489A1 (en) Automatically organizing images
WO2017107672A1 (en) Information processing method and apparatus, and apparatus for information processing
US20180060353A1 (en) System and method for predicting a geographic origin of content and accuracy of geotags related to content obtained from social media and other content providers
WO2017129018A1 (en) Picture processing method and apparatus, and smart terminal
US10282061B2 (en) Electronic device for playing-playing contents and method thereof
WO2012064532A1 (en) Aligning and summarizing different photo streams
US20130042177A1 (en) Systems and methods for incorporating a control connected media frame
US10331953B2 (en) Image processing apparatus
WO2012064494A1 (en) Aligning and annotating different photo streams
CN105243084A (en) Photographed image file storage method and system and photographed image file search method and system
US8230344B2 (en) Multimedia presentation creation
US20160012078A1 (en) Intelligent media management system
TW201629802A (en) Information searching system and method
US20180189602A1 (en) Method of and system for determining and selecting media representing event diversity
US20150120715A1 (en) Non-transitory computer readable medium, document recommending apparatus, and document recommending method
CN103198162A (en) Image browsing and interacting method
Lin et al. Smartphone landmark image retrieval based on Lucene and GPS
US20140324921A1 (en) Electronic device, method, and storage medium
US20200026731A1 (en) Systems and Methods for Archiving and Accessing of Image Content
WO2018076640A1 (en) Information processing method and apparatus
KR20210131770A (en) System for dual-searching image using region of interest set
KR20210105124A (en) System for dual-searching image using region of interest set

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856916

Country of ref document: EP

Kind code of ref document: A1