Nothing Special   »   [go: up one dir, main page]

CN107861750B - Label management method, label management device and intelligent terminal - Google Patents

Label management method, label management device and intelligent terminal Download PDF

Info

Publication number
CN107861750B
CN107861750B CN201711083224.3A CN201711083224A CN107861750B CN 107861750 B CN107861750 B CN 107861750B CN 201711083224 A CN201711083224 A CN 201711083224A CN 107861750 B CN107861750 B CN 107861750B
Authority
CN
China
Prior art keywords
label
picture
processed
version
tag
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201711083224.3A
Other languages
Chinese (zh)
Other versions
CN107861750A (en
Inventor
陈彦超
李野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711083224.3A priority Critical patent/CN107861750B/en
Publication of CN107861750A publication Critical patent/CN107861750A/en
Application granted granted Critical
Publication of CN107861750B publication Critical patent/CN107861750B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a label management method, a label management device, an intelligent terminal and a computer readable storage medium, wherein the label management method is suitable for the intelligent terminal and comprises the following steps: detecting whether the picture to be processed carries label information or not; if the to-be-processed picture carries the label information, acquiring a label version of the to-be-processed picture; detecting whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used for representing the label version adopted by the intelligent terminal; and if the label version of the picture to be processed is inconsistent with the preset label version, updating the label information carried by the picture to be processed according to the preset label version. According to the scheme, the unified management of the label information can be realized, and the condition that the label information of the picture cannot be correctly displayed is reduced.

Description

Label management method, label management device and intelligent terminal
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to a tag management method, a tag management apparatus, an intelligent terminal, and a computer-readable storage medium.
Background
Because the storage space of the current intelligent terminal is larger and larger, the pixels of the equipped camera and the equipped display screen are higher and higher, and more pictures are stored in the picture library of the intelligent terminal by people. Some of the pictures are obtained by daily shooting of the user, and some of the pictures are obtained by downloading the pictures from the Internet. When too many pictures are stored in the picture library, most of the current intelligent terminals provide a function of adding picture labels in order to help users to quickly find the needed pictures, and the users can add related labels to the pictures and classify and find the pictures through the added labels. However, since the tags used by different manufacturers of the intelligent terminals are often not uniform in format, meaning, and the like, the content information of the same picture can be represented in different intelligent terminals through different tag information, and the same tag information can also represent different content information in different intelligent terminals, when the picture carrying the tag information is transmitted in the intelligent terminals of different brands, the intelligent terminal for receiving the picture may have a situation that the tag information carried by the picture cannot be correctly displayed.
Disclosure of Invention
In view of this, the present application provides a tag management method, a tag management apparatus, an intelligent terminal and a computer-readable storage medium, which can be used to implement unified management of tag information and reduce the occurrence of situations where the tag information of a picture cannot be correctly displayed by the intelligent terminal.
A first aspect of the present application provides a tag management method, where the tag management method is applicable to an intelligent terminal, and includes:
detecting whether the picture to be processed carries label information or not;
if the to-be-processed picture carries the label information, acquiring a label version of the to-be-processed picture;
detecting whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used for representing the label version adopted by the intelligent terminal;
and if the label version of the picture to be processed is not consistent with the preset label version, updating the label information carried by the picture to be processed according to the preset label version.
A second aspect of the present application provides a tag management apparatus, where the tag management apparatus is applicable to an intelligent terminal, and includes:
the first detection unit is used for detecting whether the picture to be processed carries label information or not;
the version acquiring unit is used for acquiring the label version of the picture to be processed when the picture to be processed carries label information;
a second detecting unit, configured to detect whether a tag version of the to-be-processed picture is consistent with a preset tag version, where the preset tag version is used to indicate a tag version adopted by the intelligent terminal;
and the tag updating unit is used for updating the tag information carried by the picture to be processed according to the preset tag version when the tag version of the picture to be processed is inconsistent with the preset tag version.
A third aspect of the present application provides a smart terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
As can be seen from the above, the tag management method in the present application can be applied to an intelligent terminal, and first detects whether a to-be-processed picture carries tag information, and when the to-be-processed picture carries the tag information, obtains a tag version of the to-be-processed picture, and detects whether the tag version of the to-be-processed picture is consistent with a preset tag version, where the preset tag version is used to represent a tag version adopted by the intelligent terminal, and if the tag version of the to-be-processed picture is not consistent with the preset tag version, the tag information carried by the to-be-processed picture is updated according to the preset tag version. According to the scheme, the label version of the label information carried by the picture is judged, when the label version of the label information carried by the picture is different from the label version acquiescent by the intelligent terminal, the label information carried by the picture is updated according to the label version acquiescent by the intelligent terminal, the updated label version of the label information is consistent with the label version acquiescent by the intelligent terminal, unified management of the label information is achieved, the situation that the label information of the picture cannot be correctly displayed by the intelligent terminal is reduced, and convenience is brought to a user to manage the picture through the label information of the picture.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of a tag management method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an implementation of another tag management method provided in an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of another tag management method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a tag management apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an intelligent terminal provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The tag management method provided by the embodiment of the application is applicable to an intelligent terminal, and illustratively, the intelligent terminal includes but is not limited to: smart phones, tablet computers, learning machines, intelligent wearable devices, and the like.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a tag management method provided in an embodiment of the present application is described below, where the tag management method in the embodiment of the present application includes:
in step 101, detecting whether a picture to be processed carries label information;
in the embodiment of the application, when an application program of the intelligent terminal receives a picture newly, for example, when a picture sent by other wechat contacts is received in the wechat, the newly received picture is determined as a picture to be processed; or, when the intelligent terminal newly downloads the picture from the internet, for example, when the picture is referred and downloaded by a browser of the intelligent terminal, the newly downloaded picture is determined as the picture to be processed; or, after receiving a picture selection instruction input by the user, selecting a picture in the media library of the intelligent terminal according to the picture selection instruction and determining the picture as a picture to be processed, which is not limited herein. After determining the to-be-processed picture, it may be detected whether the to-be-processed picture carries tag information. Optionally, since the tag information of the picture may be stored in the attribute information of the picture, it is known whether the picture to be processed carries the tag information by detecting the attribute information of the picture to be processed. Of course, the label information of the picture may also be stored in a label database of the intelligent terminal, where the label database stores the absolute path of each picture of the intelligent terminal and the label information of the corresponding picture. Of course, other attribute information of each picture, such as file name, file creation time, etc., may also be added to the tag database to form a map, which is not limited herein.
In step 102, if the to-be-processed picture carries tag information, obtaining a tag version of the to-be-processed picture;
in this embodiment, the to-be-processed picture carries the tag information, which means that the intelligent terminal can identify and analyze the tag information of the to-be-processed picture, so that even if the to-be-processed picture carries the tag information, if the intelligent terminal cannot identify and analyze the tag information of the to-be-processed picture, the to-be-processed picture is processed as a picture without carrying the tag information. When the to-be-processed picture carries tag information, a tag version corresponding to the to-be-processed picture can be obtained through the tag information, wherein the tag version of the to-be-processed picture is usually associated with an intelligent terminal added with the tag information of the to-be-processed picture, and generally speaking, as the same manufacturer adopts the same tag model when producing the intelligent terminal, the tag versions of the pictures are kept consistent when the intelligent terminal produced by the same manufacturer is used for adding the tag information to the picture; since it cannot be guaranteed that different manufacturers all adopt the same tag model to produce the intelligent terminal, the tag version of the to-be-processed picture needs to be acquired, that is, the tag version adopted by the intelligent terminal when the tag is added to the to-be-processed picture is acquired.
In step 103, detecting whether the tag version of the to-be-processed picture is consistent with a preset tag version;
in the embodiment of the application, whether the tag version of the to-be-processed image is consistent with a preset tag version is detected, wherein the preset tag version is associated with an intelligent terminal and is specifically used for representing the tag version adopted by the intelligent terminal, so as to judge whether the tag information of the to-be-processed image can be directly and correctly displayed in the intelligent terminal. It should be noted that the above-mentioned smart terminal associated with the preset tag version refers to the present smart terminal that is processing the newly received or newly downloaded picture to be processed.
In step 104, if the tag version of the to-be-processed picture is not consistent with the preset tag version, updating tag information carried by the to-be-processed picture according to the preset tag version;
in this embodiment of the application, when the tag version of the to-be-processed picture is inconsistent with the preset tag version, a situation that the intelligent terminal cannot correctly display the tag information of the to-be-processed tag may occur, and in order to make the tag information of the to-be-processed picture compatible on the intelligent terminal, the tag information carried by the to-be-processed picture may be updated to the target tag information according to the preset tag version, so that the tag version of the target tag information is the preset tag version, for example, assuming that an intelligent terminal a of a1 brand manufactured by a manufacturer a receives the to-be-processed picture, and the tag version adopted by the intelligent terminal of the a1 brand is V1, that is, it may be determined that the preset tag version is V1; the label of the picture to be processed is added by an intelligent terminal of brand B1 produced by manufacturer B, and the version of the label adopted by the intelligent terminal of brand B1 is V2, that is, the version of the label of the picture to be processed is V2. By comparing the tag version of the to-be-processed picture with the preset tag version, it can be known that the tag version of the to-be-processed picture is inconsistent with the preset tag version, and the tag information of the to-be-processed picture may not be correctly displayed in the intelligent terminal a, and then the tag information of the to-be-processed picture is updated through the tag version V1, so that the version of the updated tag information is V1, and therefore compatibility of the intelligent terminal a with the tag information carried by the to-be-processed picture is achieved. Of course, when the tag version of the to-be-processed picture is consistent with the preset tag version, the to-be-processed picture may not be processed, so as to avoid wasting system resources of the intelligent terminal.
Optionally, if a tag search instruction input by the user is received, the tag information carried by the tag search instruction may be screened in the tag database to obtain an absolute path of the picture matched with the tag information carried by the tag search instruction, and the target picture required by the user is found according to the absolute path of the picture obtained by screening.
As can be seen from the above, in the embodiment of the present application, for a to-be-processed picture carrying tag information, it is first detected whether a tag version of the to-be-processed picture is consistent with a preset tag version, and if not, the tag information of the to-be-processed picture is updated to target tag information according to the preset tag version, so that the tag version of the target tag information is the preset tag version. Based on the method, the unified management of the label information is realized, so that when a user views the picture on the intelligent terminal, the intelligent terminal can display the correct label information of the picture, and meanwhile, the user can search out the required picture in the picture library by searching the label information.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two
Referring to fig. 2, another tag management method provided in the embodiment of the present application is described below, where the tag management method in the embodiment of the present application includes:
in step 201, detecting whether the to-be-processed picture carries tag information, if so, executing step 202, and if not, executing step 206;
in step 202, a tag version of the to-be-processed picture is obtained;
in step 203, detecting whether the tag version of the to-be-processed picture is consistent with a preset tag version;
in step 204, if the tag version of the to-be-processed picture is not consistent with the preset tag version, updating tag information carried by the to-be-processed picture according to the preset tag version;
in the embodiment of the present application, the steps 201, 202, 203, and 204 are the same as the steps 101, 102, 103, and 104, and reference may be made to the related description of the steps 101, 102, 103, and 104, which is not repeated herein.
In step 205, identifying the image to be processed;
in step 206, generating label information for the to-be-processed picture according to the identification result and the preset label version;
in the embodiment of the present application, when it is detected that the to-be-processed picture does not carry the tag information, in order to enable the picture to be better classified in the picture library and facilitate the search of a user, the tag information may be added to the to-be-processed picture. Optionally, the adding may be performed manually, specifically: popping up a text editing box based on the picture to be processed; receiving the character description of the picture to be processed, which is input by a user through the text edit box; generating label information according to the received character description and a preset label version; of course, it can also be automatically added through an intelligent terminal, specifically: identifying the image to be processed; and generating label information for the picture to be processed according to the identification result and the preset label version. The identification comprises image identification to identify people, animals or places which may be contained in the picture; further, the recognition may further include text recognition to recognize characters that may be included in the picture. When there are more than two identification results, more than two pieces of label information may be generated correspondingly, which is not limited herein.
Optionally, the tag management method further includes:
and storing the label information of the picture to be processed in the intelligent terminal.
The tag information may not be stored in the attribute information of the picture, but exists in the form of an element of a tag database in the intelligent terminal, so that when the tag version of the picture to be processed is inconsistent with a preset tag version, the updated tag information carried by the picture to be processed is stored in the tag database, or when the picture to be processed does not carry the tag information, the generated tag information of the picture to be processed is stored in the tag database.
As can be seen from the above, in the embodiment of the present application, for a to-be-processed picture carrying tag information, it is first detected whether a tag version of the to-be-processed picture is consistent with a preset tag version, and if not, the tag information of the to-be-processed picture is updated to target tag information according to the preset tag version, so that the tag version of the target tag information is the preset tag version. And aiming at the to-be-processed picture which does not carry the label information, the intelligent terminal also automatically generates and adds a new label for the to-be-processed picture. Based on the method, the unified management of the label information is realized, so that when a user views the picture on the intelligent terminal, the intelligent terminal can display the correct label information of the picture, and meanwhile, the user can search out the required picture in the picture library by searching the label information.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
Referring to fig. 3, a third tag management method provided in the embodiment of the present application is described below, where the tag management method in the embodiment of the present application includes:
in step 301, detecting whether the picture to be processed carries tag information;
in step 302, if the to-be-processed picture carries tag information, a tag version of the to-be-processed picture is obtained;
in step 303, detecting whether the tag version of the to-be-processed picture is consistent with a preset tag version;
in the embodiment of the present application, the steps 301, 302, and 303 are respectively the same as the steps 101, 102, and 103, and reference may be made to the related description of the steps 101, 102, and 103, which is not repeated herein.
In step 304, if the tag version of the to-be-processed picture is not consistent with the preset tag version, detecting whether the tag information carried by the to-be-processed picture is text tag information, if so, executing step 305, otherwise, executing step 307;
in the embodiment of the present application, there are many different types of presentation for the label information, including but not limited to text label information and code label information. For the text label information, the label content is composed of text, for example, a picture of a kitten, and the text label information may be "kitten"; for the code tag information, the tag content thereof is composed of a code, for example, a picture of a kitten, the code tag information thereof may be "1", and by looking up a code-content mapping table corresponding to the code version of the code tag information, it can be determined that the content represented by the code tag information "1" is a kitten. For different types of label information, the specific processes of updating the label information to the target label information are different, so that whether the label information carried by the picture to be processed is the character label information or not can be detected before the label information carried by the picture to be processed is updated.
In step 305, according to a preset text label mapping relationship, searching for target text label information corresponding to the text label information carried by the picture to be processed in the preset label version;
in the embodiment of the present application, the text label mapping relationship indicates a correspondence relationship between text label information in each other label version different from the preset label version and text label information in the preset label version, for example, when the label version is V1, text label information generated for a picture of a kitten is a "kitten", when the label version is V2, text label information generated for a picture of a kitten is a "cat", when the label version is V3, text label information generated for a picture of a kitten is a "feline", and actually, label contents expressed by the three are identical. Therefore, the different label versions can be associated with different text label information of the same label content in advance, so that the text label information is converted with each other under different label versions, and the target text label information corresponding to the text label information carried by the picture to be processed under the label version of the current intelligent terminal is found through the text label mapping relation.
In step 306, updating the text label information carried by the to-be-processed picture to the searched target text label information, and executing step 310;
in this embodiment of the application, if the tag information carried by the to-be-processed picture is stored in the attribute information of the to-be-processed picture, the tag information carried by the to-be-processed picture may be updated to the found target text tag information in an overlaying manner, or if the tag information carried by the to-be-processed picture is not stored in the attribute information of the to-be-processed picture, the tag information carried by the to-be-processed picture is deleted, the target text tag information is written in the attribute information of the to-be-processed picture, and then step 310 is executed.
In step 307, detecting whether a code label mapping relationship between the label version of the to-be-processed picture and the preset label version exists;
in this embodiment of the present application, when tag information carried by a to-be-processed picture is code tag information, whether a code tag mapping relationship exists between a tag version of the to-be-processed picture and the preset tag version is detected, where the code tag mapping relationship indicates a correspondence relationship between code tag information in another tag version different from the preset tag version and code tag information in the preset tag version. For example, when the tag version is V4, the code tag information generated for the picture of the kitten is "1", when the tag version is V5, the code tag information generated for the picture of the kitten is "5", when the tag version is V6, the code tag information generated for the picture of the kitten is "24", and actually, the tag contents expressed by the three are identical. However, the label content represented by each piece of code label information cannot be intuitively obtained from the code label information itself of different label versions, and the code-content mapping table corresponding to the label information of the picture cannot be transmitted together in the transmission process of the picture, so that a set of code label mapping relationship is required for every two different label versions.
In step 308, if a code tag mapping relationship exists between the tag version of the to-be-processed picture and the preset tag version, searching for target code tag information corresponding to the code tag information carried by the to-be-processed picture in the preset tag version according to the code tag mapping relationship;
in the embodiment of the application, target code label information which can be correctly displayed in the intelligent terminal and corresponds to the code label information carried by the picture to be processed is found out through the code label mapping table. For example, when an intelligent terminal with a tag version of V4 receives a to-be-processed picture with a tag version of V5, if code tag information carried by the to-be-processed picture is "5", the corresponding target code tag information is "1" in the V5 tag version according to the code tag mapping relationship between the V4 tag version and the V5 tag version, and then the code-content mapping table corresponding to the V4 version stored in the intelligent terminal is consulted, so that it can be known that the actually expressed tag content is a kitten, and when the to-be-processed picture is consulted, correct tag content can be displayed.
In step 309, updating the code tag information carried by the to-be-processed picture to the found target code tag information;
in this embodiment of the application, if the tag information carried by the to-be-processed picture is stored in the attribute information of the to-be-processed picture, the tag information carried by the to-be-processed picture may be updated to the found target code tag information in an overlaying manner, or if the tag information carried by the to-be-processed picture is not stored in the attribute information of the to-be-processed picture, the tag information carried by the to-be-processed picture is deleted, and the target code tag information is written in the attribute information of the to-be-processed picture. Of course, the original tag information may also be retained, that is, the to-be-processed picture is made to simultaneously carry the tag information of two tag versions.
In step 310, the target code label information or the target text label information of the to-be-processed picture is stored in the intelligent terminal.
In this embodiment, the target code tag information or the target text tag information is stored in the tag database local to the intelligent terminal.
Optionally, since the tag version is also continuously updated and improved, a situation may occur that a code tag mapping relationship between the tag version of the to-be-processed picture and the preset tag version does not exist, or a situation may also occur that target code tag information corresponding to the code tag information carried by the to-be-processed picture cannot be found according to the code tag mapping relationship, in order to cope with the situation, the tag management method further includes:
identifying the image to be processed;
generating target code label information for the picture to be processed according to the identification result and the preset label version;
updating the code label information carried by the picture to be processed into the generated target code label information;
and updating the code label mapping relation between the label version of the picture to be processed and the preset label version based on the code label information carried by the picture to be processed and the generated target code label information.
The above processes of identifying the image to be processed and generating the object code label information for the image to be processed may refer to steps 205 and 206, which are not described herein again. And after generating object code label information, updating the label information carried by the picture to be processed into the generated object code label information in a covering mode, or deleting the label information carried by the picture to be processed and writing the generated object code label information into the attribute information of the picture to be processed if the label information carried by the picture to be processed is not stored in the attribute information of the picture to be processed. Meanwhile, based on the code label information carried by the picture to be processed and the generated target code label information, the code label mapping relation between the label version of the picture to be processed and the preset label version is updated, so that the target code label information can be directly searched according to the code label mapping relation when the same label version and the same code label information are encountered in the subsequent process, and the processing efficiency of the intelligent terminal is improved.
As can be seen from the above, in the embodiment of the application, through the character tag mapping relationship and the code tag mapping relationship stored in the intelligent terminal, no matter whether the tag information carried by the picture to be processed is character tag information or code tag information, the tag information can be quickly updated to target tag information with a tag version being a preset version; and when necessary, target label information can be generated for the to-be-processed picture which carries the label information. Based on the method, the unified management of the label information is realized, so that when a user views the picture on the intelligent terminal, the intelligent terminal can display the correct label information of the picture, and meanwhile, the user can search out the required picture in the picture library by searching the label information.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example four
An embodiment of the present application further provides a data synchronization device, which is suitable for an intelligent terminal, and as shown in fig. 4, the data synchronization device 400 in the embodiment of the present application includes:
a first detecting unit 401, configured to detect whether a to-be-processed picture carries tag information;
a version obtaining unit 402, configured to obtain a tag version of the to-be-processed picture when the to-be-processed picture carries tag information;
a second detecting unit 403, configured to detect whether a tag version of the to-be-processed picture is consistent with a preset tag version, where the preset tag version is used to indicate a tag version used by the intelligent terminal;
a tag updating unit 404, configured to update tag information carried by the to-be-processed picture according to the preset tag version when the tag version of the to-be-processed picture is inconsistent with the preset tag version.
Optionally, the tag management apparatus 400 further includes:
the image identification unit is used for identifying the image to be processed when the image to be processed does not carry label information;
the label generating unit is used for generating label information of the picture to be processed according to the identification result and the preset label version;
optionally, the tag management apparatus 400 further includes:
and the label storage unit is used for storing the label information of the picture to be processed in the intelligent terminal.
Optionally, the tag updating unit 404 includes:
a first searching subunit, configured to search, when the tag information carried by the to-be-processed picture is text tag information, target text tag information corresponding to the text tag information carried by the to-be-processed picture in the preset tag version according to a preset text tag mapping relationship, where the text tag mapping relationship indicates a correspondence relationship between text tag information in other tag versions different from the preset tag version and text tag information in the preset tag version;
and the first updating subunit is used for updating the text label information carried by the picture to be processed into the searched target text label information.
Optionally, the tag management apparatus 400 further includes:
a code tag mapping relationship detecting unit, configured to detect whether a code tag mapping relationship exists between a tag version of the to-be-processed picture and the preset tag version when tag information carried by the to-be-processed picture is code tag information, where the code tag mapping relationship indicates a correspondence relationship between code tag information in another tag version different from the preset tag version and code tag information in the preset tag version;
the tag updating unit 404 includes:
a second searching subunit, configured to search, if a code tag mapping relationship exists between the tag version of the to-be-processed picture and the preset tag version, target code tag information corresponding to the code tag information carried by the to-be-processed picture in the preset tag version according to the code tag mapping relationship;
and the second updating subunit is configured to update the code tag information carried by the to-be-processed picture to the found target code tag information.
Optionally, the image identifying unit is further configured to identify the image to be processed when a code tag mapping relationship between the tag version of the image to be processed and the preset tag version does not exist, or when target code tag information corresponding to the code tag information carried by the image to be processed cannot be found according to the code tag mapping relationship;
the label generating unit is further configured to generate object code label information for the to-be-processed picture according to the identification result and the preset label version;
the second updating subunit is further configured to update the code label information carried by the to-be-processed picture to the generated target code label information;
the above tag updating apparatus 400 further includes:
and the mapping relation updating unit is used for updating the code label mapping relation between the label version of the picture to be processed and the preset label version based on the code label information carried by the picture to be processed and the generated target code label information.
As can be seen from the above, in the embodiment of the present application, for a to-be-processed picture carrying tag information, a tag management apparatus first detects whether a tag version of the to-be-processed picture is consistent with a preset tag version, and if not, updates the tag information of the to-be-processed picture to target tag information according to the preset tag version, so that the tag version of the target tag information is the preset tag version; and aiming at the to-be-processed picture which does not carry the label information, the intelligent terminal also automatically generates and adds a new label for the to-be-processed picture. Furthermore, through the character label mapping relation and the code label mapping relation stored in the label management device, no matter whether the label information carried by the picture to be processed is character label information or code label information, the label information can be rapidly updated to target label information with a label version being a preset version; and when necessary, target label information can be generated for the to-be-processed picture which carries the label information. Based on the method, the unified management of the label information is realized, so that when a user views the picture on the intelligent terminal, the intelligent terminal can display the correct label information of the picture, and meanwhile, the user can search out the required picture in the picture library by searching the label information.
EXAMPLE five
An embodiment of the present application provides an intelligent terminal, please refer to fig. 5, where the intelligent terminal in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one shown in fig. 5), and a computer program stored on the memory 501 and executable on the processors. Wherein: the memory 501 is used for storing software programs and modules, and the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501, so as to acquire resources corresponding to the preset events. Specifically, the processor 502 realizes the following steps by running the above-mentioned computer program stored in the memory 501:
detecting whether the picture to be processed carries label information or not;
if the to-be-processed picture carries the label information, acquiring a label version of the to-be-processed picture;
detecting whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used for representing the label version adopted by the intelligent terminal;
and if the label version of the picture to be processed is not consistent with the preset label version, updating the label information carried by the picture to be processed according to the preset label version.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, after the above-mentioned detecting whether the picture to be processed carries the tag information, the processor 502 further implements the following steps when running the above-mentioned computer program stored in the memory 501:
if the to-be-processed picture does not carry label information, identifying the to-be-processed picture;
and generating the label information of the picture to be processed by the preset label version according to the identification result.
In a third possible implementation manner provided on the basis of the first possible implementation manner or the second possible implementation manner, the processor 502 further implements the following steps when executing the computer program stored in the memory 501:
and storing the label information of the picture to be processed in the intelligent terminal.
In a fourth possible implementation manner based on the first possible implementation manner or based on the second possible implementation manner, the updating, according to a preset tag version, tag information carried by the picture to be processed includes:
if the label information carried by the picture to be processed is character label information, searching target character label information corresponding to the character label information carried by the picture to be processed under the preset label version according to a preset character label mapping relation, wherein the character label mapping relation indicates the corresponding relation between the character label information under other label versions different from the preset label version and the character label information under the preset label version;
and updating the character label information carried by the picture to be processed into the searched target character label information.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner or the second possible implementation manner, before the tag information carried by the to-be-processed picture is updated according to the preset tag version, the processor 502 further implements the following steps when running the computer program stored in the memory 501:
if the label information carried by the picture to be processed is code label information, detecting whether a code label mapping relation exists between the label version of the picture to be processed and the preset label version, wherein the code label mapping relation indicates a corresponding relation between the code label information under the other label version different from the preset label version and the code label information under the preset label version;
the updating of the tag information carried by the to-be-processed picture according to the preset tag version includes:
if a code label mapping relation exists between the label version of the picture to be processed and the preset label version, searching target code label information corresponding to the code label information carried by the picture to be processed under the preset label version according to the code label mapping relation;
and updating the code label information carried by the picture to be processed into the searched target code label information.
In a sixth possible implementation manner provided based on the fifth possible implementation manner, the updating, according to a preset tag version, tag information carried by the to-be-processed picture further includes:
if the code label mapping relationship between the label version of the picture to be processed and the preset label version does not exist, or if the target code label information corresponding to the code label information carried by the picture to be processed cannot be found according to the code label mapping relationship, identifying the picture to be processed;
generating target code label information for the picture to be processed according to the identification result and the preset label version;
updating the code label information carried by the picture to be processed into the generated target code label information;
and updating the code label mapping relation between the label version of the picture to be processed and the preset label version based on the code label information carried by the picture to be processed and the generated target code label information.
Further, as shown in fig. 5, the intelligent terminal may further include: one or more input devices 503 (only one shown in fig. 5) and one or more output devices 504 (only one shown in fig. 5). The memory 501, processor 502, input device 503, and output device 504 are connected by a bus 505.
It should be understood that in the embodiments of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 503 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 504 may include a display, a speaker, etc.
Memory 501 may include both read-only memory and random access memory and provides instructions and data to processor 502. Some or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
As can be seen from the above, in the embodiment of the application, for a to-be-processed picture carrying tag information, an intelligent terminal firstly detects whether a tag version of the to-be-processed picture is consistent with a preset tag version, and if not, updates the tag information of the to-be-processed picture to target tag information according to the preset tag version, so that the tag version of the target tag information is the preset tag version; and aiming at the to-be-processed picture which does not carry the label information, the intelligent terminal also automatically generates and adds a new label for the to-be-processed picture. Furthermore, through the character label mapping relation and the code label mapping relation stored in the intelligent terminal, whether the label information carried by the picture to be processed is character label information or code label information, the label information can be rapidly updated to target label information with a label version being a preset version; and when necessary, target label information can be generated for the to-be-processed picture which carries the label information. Based on the method, the unified management of the label information is realized, so that when a user views the picture on the intelligent terminal, the intelligent terminal can display the correct label information of the picture, and meanwhile, the user can search out the required picture in the picture library by searching the label information.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A label management method is suitable for an intelligent terminal and is characterized by comprising the following steps:
detecting whether the picture to be processed carries label information or not by detecting attribute information of the picture to be processed; the label information is character label information or code label information, and the code label information is represented by numbers;
if the to-be-processed picture carries the label information, acquiring a label version of the to-be-processed picture;
detecting whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used for representing the label version adopted by the intelligent terminal;
and if the label version of the picture to be processed is inconsistent with the preset label version, updating the label information carried by the picture to be processed according to the preset label version.
2. The tag management method according to claim 1, wherein the detecting whether the pending picture carries the tag information further comprises:
if the to-be-processed picture does not carry the label information, identifying the to-be-processed picture;
and generating the label information of the picture to be processed according to the identification result by using the preset label version.
3. The label management method according to claim 1 or 2, wherein the label management method further comprises:
and storing the label information of the picture to be processed in the intelligent terminal.
4. The tag management method according to claim 1 or 2, wherein the updating the tag information carried by the to-be-processed picture according to a preset tag version comprises:
if the label information carried by the picture to be processed is character label information, searching target character label information corresponding to the character label information carried by the picture to be processed under the preset label version according to a preset character label mapping relation, wherein the character label mapping relation indicates the corresponding relation between the character label information under other label versions different from the preset label version and the character label information under the preset label version;
and updating the character label information carried by the picture to be processed into the searched target character label information.
5. The tag management method according to claim 1 or 2, wherein the updating of the tag information carried by the to-be-processed picture according to a preset tag version further comprises:
if the label information carried by the picture to be processed is code label information, detecting whether a code label mapping relation exists between the label version of the picture to be processed and the preset label version, wherein the code label mapping relation indicates the corresponding relation between the code label information under the other label version different from the preset label version and the code label information under the preset label version;
the updating the tag information carried by the picture to be processed according to the preset tag version comprises the following steps:
if a code label mapping relation exists between the label version of the picture to be processed and the preset label version, searching target code label information corresponding to the code label information carried by the picture to be processed under the preset label version according to the code label mapping relation;
and updating the code label information carried by the picture to be processed into the searched target code label information.
6. The tag management method according to claim 5, wherein the updating the tag information carried by the picture to be processed according to a preset tag version further comprises:
if the code label mapping relation between the label version of the picture to be processed and the preset label version does not exist, or if target code label information corresponding to the code label information carried by the picture to be processed cannot be found according to the code label mapping relation, identifying the picture to be processed;
generating target code label information for the picture to be processed according to the identification result and the preset label version;
updating the code label information carried by the picture to be processed into the generated target code label information;
and updating the code label mapping relation between the label version of the picture to be processed and the preset label version based on the code label information carried by the picture to be processed and the generated target code label information.
7. The utility model provides a label management device, is applicable to intelligent terminal, its characterized in that, label management device includes:
the first detection unit is used for detecting whether the picture to be processed carries label information or not by detecting the attribute information of the picture to be processed; the label information is character label information or code label information, and the code label information is represented by numbers;
the version acquisition unit is used for acquiring the label version of the picture to be processed when the picture to be processed carries label information;
the second detection unit is used for detecting whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used for representing the label version adopted by the intelligent terminal;
and the label updating unit is used for updating the label information carried by the picture to be processed according to the preset label version when the label version of the picture to be processed is inconsistent with the preset label version.
8. The tag management apparatus of claim 7, wherein the tag management apparatus further comprises:
the image identification unit is used for identifying the picture to be processed when the picture to be processed does not carry label information;
and the label generating unit is used for generating the label information of the picture to be processed according to the identification result and the preset label version.
9. An intelligent terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201711083224.3A 2017-11-07 2017-11-07 Label management method, label management device and intelligent terminal Expired - Fee Related CN107861750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711083224.3A CN107861750B (en) 2017-11-07 2017-11-07 Label management method, label management device and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711083224.3A CN107861750B (en) 2017-11-07 2017-11-07 Label management method, label management device and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107861750A CN107861750A (en) 2018-03-30
CN107861750B true CN107861750B (en) 2020-06-12

Family

ID=61701092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711083224.3A Expired - Fee Related CN107861750B (en) 2017-11-07 2017-11-07 Label management method, label management device and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107861750B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921168A (en) * 2018-07-03 2018-11-30 佛山市影腾科技有限公司 A kind of text message processing method, device and terminal
CN110858222A (en) * 2018-08-08 2020-03-03 珠海格力电器股份有限公司 Method for marking real object and data processing device
CN109979173B (en) * 2019-03-19 2020-08-25 重庆中陆承大科技有限公司 Meter reading management method and device, meter reading device and storage medium
CN110162334B (en) * 2019-05-29 2023-07-14 上海摩软通讯技术有限公司 Code management method, device and storage medium
CN111126030B (en) * 2019-11-22 2022-04-12 合肥联宝信息技术有限公司 Label typesetting processing method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508688A (en) * 2011-09-30 2012-06-20 福州瑞芯微电子有限公司 Method for solving media label information messy codes of multi-media file of android system
CN103995889A (en) * 2014-06-03 2014-08-20 广东欧珀移动通信有限公司 Method and device for classifying pictures

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786858A (en) * 2014-12-24 2016-07-20 深圳富泰宏精密工业有限公司 Information search system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508688A (en) * 2011-09-30 2012-06-20 福州瑞芯微电子有限公司 Method for solving media label information messy codes of multi-media file of android system
CN103995889A (en) * 2014-06-03 2014-08-20 广东欧珀移动通信有限公司 Method and device for classifying pictures

Also Published As

Publication number Publication date
CN107861750A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN107861750B (en) Label management method, label management device and intelligent terminal
CN107368550B (en) Information acquisition method, device, medium, electronic device, server and system
CN108416003A (en) A kind of picture classification method and device, terminal, storage medium
US20200133962A1 (en) Knowledge graph generating apparatus, method, and non-transitory computer readable storage medium thereof
CN107967110A (en) Playing method, playing device, electronic equipment and computer readable storage medium
CN107885483B (en) Audio information verification method and device, storage medium and electronic equipment
CN109492607B (en) Information pushing method, information pushing device and terminal equipment
TWI470549B (en) A method of using an image recognition guide to install an application, and an electronic device
CN107748780B (en) Recovery method and device for file of recycle bin
CN107798082B (en) File label processing method and device
CN109063215B (en) Data retrieval method and device
CN108595965B (en) Method and device for preventing attribute information of interface control from being stolen
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN111338625B (en) Data processing method, system, terminal equipment and storage medium
CN112596846A (en) Method and device for determining interface display content, terminal equipment and storage medium
CN109658501B (en) Image processing method, image processing device and terminal equipment
CN105653674B (en) File management method and system of intelligent terminal
CN103268320A (en) Method and device for storing image
CN113420531A (en) Code text conversion method and device and storage medium
CN101105804B (en) Information management apparatus, image recording apparatus, information management method
CN107766524A (en) Application program searching method and device and intelligent terminal
CN112837107A (en) Cross-platform commodity recommendation method and device and computer equipment
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN107808134B (en) Image processing method, image processing device and electronic terminal
CN110471708B (en) Method and device for acquiring configuration items based on reusable components

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200612