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
label information
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

本申请公开了一种标签管理方法、标签管理装置、智能终端及计算机可读存储介质,其中,该标签管理方法适用于智能终端,包括:检测待处理图片是否携带有标签信息;若所述待处理图片携带有标签信息,则获取所述待处理图片的标签版本;检测所述待处理图片的标签版本与预设的标签版本是否一致,其中,所述预设的标签版本用于表示所述智能终端所采用的标签版本;若所述待处理图片的标签版本与所述预设的标签版本不一致,则根据所述预设的标签版本,更新所述待处理图片携带的标签信息。本申请方案可实现标签信息的统一化管理,减少出现图片的标签信息无法正确显示的情况。

Figure 201711083224

The present 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 applicable to an intelligent terminal, and includes: detecting whether a picture to be processed carries label information; If the processed picture carries label information, the label version of the picture to be processed is obtained; it is detected whether the label version of the to-be-processed picture is consistent with a preset label version, wherein the preset label version is used to indicate the The label version used by the intelligent terminal; if the label version of the picture to be processed is inconsistent with the preset label version, the label information carried by the picture to be processed is updated according to the preset label version. The solution of the present application can realize the unified management of label information, and reduce the situation that the label information of the picture cannot be displayed correctly.

Figure 201711083224

Description

一种标签管理方法、标签管理装置及智能终端A label management method, label management device and intelligent terminal

技术领域technical field

本申请属于图片处理技术领域,尤其涉及一种标签管理方法、标签管理装置、智能终端及计算机可读存储介质。The present application belongs to the technical field of image processing, and in particular, relates to a label management method, a label management device, an intelligent terminal and a computer-readable storage medium.

背景技术Background technique

由于当前的智能终端的存储空间越来越大,所配备的摄像头及显示屏的像素也越来越高,人们在智能终端的图片库中所存储的图片也越来越多。这些图片有的为用户日常拍摄所得,有的为用户从互联网上下载所得。当图片库中所存储的图片过多时,为了能够帮助用户快速查找到所需要的图片,目前大部分智能终端都推出了添加图片标签的功能,用户可以为各个图片添加相关的标签,通过所添加的标签实现对图片的分类及查找。然而,由于不同智能终端的厂家所采用的标签在格式、含义等方面往往不统一,同一图片的内容信息在不同的智能终端中可通过不同的标签信息进行表示,而同一标签信息在不同的智能终端中也可能表示了不同的内容信息,因此,当携带有标签信息的图片在不同品牌的智能终端中传输时,用于接收图片的智能终端可能会出现无法正确显示图片所携带的标签信息的情况。As the storage space of current smart terminals is getting bigger and bigger, and the pixels of cameras and display screens are also getting higher and higher, people store more and more pictures in the picture library of the smart terminals. Some of these pictures are taken by users on a daily basis, and some are downloaded by users from the Internet. When there are too many pictures stored in the picture library, in order to help users quickly find the pictures they need, most smart terminals have introduced the function of adding picture labels. Users can add relevant labels to each picture. The label realizes the classification and search of pictures. However, because the labels used by different smart terminal manufacturers are often inconsistent in terms of format, meaning, etc., the content information of the same picture can be represented by different label information in different smart terminals, while the same label information is displayed in different smart terminals. Different content information may also be represented in the terminal. Therefore, when pictures with label information are transmitted in smart terminals of different brands, the smart terminal used to receive the pictures may fail to display the label information carried by the pictures correctly. Happening.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请提供了一种标签管理方法、标签管理装置、智能终端及计算机可读存储介质,可用于实现标签信息的统一化管理,减少图片的标签信息无法被智能终端正确显示的情况出现。In view of this, the present application provides a label management method, a label management device, an intelligent terminal and a computer-readable storage medium, which can be used to realize the unified management of label information and reduce the situation that the label information of pictures cannot be displayed correctly by the intelligent terminal. Appear.

本申请的第一方面提供了一种标签管理方法,上述标签管理方法适用于智能终端,包括:A first aspect of the present application provides a label management method, and the above label management method is applicable to an intelligent terminal, including:

检测待处理图片是否携带有标签信息;Detect whether the image to be processed carries label information;

若上述待处理图片携带有标签信息,则获取上述待处理图片的标签版本;If the above-mentioned picture to be processed carries label information, obtain the label version of the above-mentioned picture to be processed;

检测上述待处理图片的标签版本与预设的标签版本是否一致,其中,上述预设的标签版本用于表示上述智能终端所采用的标签版本;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 to represent the label version used by the smart terminal;

若上述待处理图片的标签版本与上述预设的标签版本不一致,则根据上述预设的标签版本,更新上述待处理图片携带的标签信息。If the label version of the picture to be processed is inconsistent with the preset label version, the label information carried by the picture to be processed is updated according to the preset label version.

本申请的第二方面提供了一种标签管理装置,上述标签管理装置适用于智能终端,包括:A second aspect of the present application provides a label management device, and the above label management device is suitable for an intelligent terminal, including:

第一检测单元,用于检测待处理图片是否携带有标签信息;a first detection unit, used to detect whether the to-be-processed picture carries label information;

版本获取单元,用于当上述待处理图片携带有标签信息时,获取上述待处理图片的标签版本;a version obtaining unit, configured to obtain the label version of the picture to be processed when the picture to be processed carries the label information;

第二检测单元,用于检测上述待处理图片的标签版本与预设的标签版本是否一致,其中,上述预设的标签版本用于表示上述智能终端所采用的标签版本;a second detection unit, configured to detect whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used to represent the label version used by the smart terminal;

标签更新单元,用于当上述待处理图片的标签版本与上述预设的标签版本不一致时,根据上述预设的标签版本,更新上述待处理图片携带的标签信息。The label updating unit is configured to update the label information carried by the above-mentioned picture to be processed according to the above-mentioned preset label version when the label version of the above-mentioned picture to be processed is inconsistent with the above-mentioned preset label version.

本申请的第三方面提供了一种智能终端,上述智能终端包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上第一方面的方法的步骤。A third aspect of the present application provides an intelligent terminal. The intelligent terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the above-mentioned first The steps of the method of an aspect.

本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上第一方面的方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的方法的步骤。A fifth aspect of the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by one or more processors, implements the steps of the method of the first aspect.

由上可见,本申请中的标签管理方法能够适用于智能终端,首先检测待处理图片是否携带有标签信息,当上述待处理图片携带有标签信息时,获取上述待处理图片的标签版本,并检测上述待处理图片的标签版本与预设的标签版本是否一致,其中,上述预设的标签版本用于表示上述智能终端所采用的标签版本,若上述待处理图片的标签版本与上述预设的标签版本不一致,则根据上述预设的标签版本,更新上述待处理图片携带的标签信息。本申请方案通过对图片所携带的标签信息的标签版本进行判断,在图片所携带的标签信息的标签版本与智能终端所默认的标签版本不同时,根据智能终端所默认的标签版本对图片所携带的标签信息进行更新,使得更新后的标签信息的标签版本与智能终端所默认的标签版本一致,实现标签信息的统一化管理,减少出现图片的标签信息无法被智能终端正确显示的情况,方便用户通过图片的标签信息对图片进行管理。As can be seen from the above, the label management method in the present application can be applied to smart terminals. First, it is detected whether the picture to be processed carries label information, and when the picture to be processed carries label information, the label version of the picture to be processed is obtained, and the detection is carried out. Whether the label version of the picture to be processed is consistent with the preset label version, wherein the preset label version is used to indicate the label version used by the intelligent terminal, if the label version of the picture to be processed is the same as the preset label version. If the versions are inconsistent, the label information carried by the picture to be processed is updated according to the preset label version. The solution of the present application judges the label version of the label information carried in the picture. When the label version of the label information carried in the picture is different from the default label version of the smart terminal, the label version carried by the picture is determined according to the default label version of the smart terminal. The label information of the image is updated, so that the label version of the updated label information is consistent with the default label version of the smart terminal, which realizes the unified management of the label information, reduces the situation that the label information of the picture cannot be displayed correctly by the smart terminal, and is convenient for users. The pictures are managed through the label information of the pictures.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1是本申请实施例提供的一种标签管理方法的实现流程示意图;FIG. 1 is a schematic flowchart of the implementation of a label management method provided by an embodiment of the present application;

图2是本申请实施例提供的另一种标签管理方法的实现流程示意图;FIG. 2 is a schematic flowchart of the implementation of another label management method provided by an embodiment of the present application;

图3是本申请实施例提供的再一种标签管理方法的实现流程示意图;FIG. 3 is a schematic diagram of an implementation flow of yet another label management method provided by an embodiment of the present application;

图4是本申请实施例提供的一种标签管理装置的结构示意图;4 is a schematic structural diagram of a label management device provided by an embodiment of the present application;

图5是本申请实施例提供的智能终端的结构示意图。FIG. 5 is a schematic structural diagram of an intelligent terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without 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 present application is applicable to smart terminals. Exemplarily, the above-mentioned smart terminals include but are not limited to: smart phones, tablet computers, learning machines, smart wearable devices, and the like.

为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the above-mentioned technical solutions of the present application, the following specific embodiments are used for description.

实施例一Example 1

下面对本申请实施例提供的一种标签管理方法进行描述,请参阅图1,本申请实施例中的标签管理方法包括:A label management method provided by the embodiment of the present application is described below. Please refer to FIG. 1. The label management method in the embodiment of the present application includes:

在步骤101中,检测待处理图片是否携带有标签信息;In step 101, it is detected whether the image to be processed carries tag information;

在本申请实施例中,可以是在智能终端的应用程序新接收到图片时,例如,当在微信中接收到其他微信联系人发送的图片时,将新接收到的图片确定为待处理图片;或者,可以是在智能终端从互联网上新下载了图片时,例如,当通过智能终端的浏览器查阅并下载了图片时,将新下载的图片确定为待处理图片;或者,可以是在接受了用户输入的图片选择指令后,在智能终端的媒体库中根据图片选择指令选择一图片并将其确定为待处理图片,此处不作限定。在确定了待处理图片后,可以检测上述待处理图片是否携带有标签信息。可选地,由于图片的标签信息可能存放于图片的属性信息中,因此可以通过检测待处理图片的属性信息获知该待处理图片是否携带有标签信息。当然,图片的标签信息也可以存放于智能终端的标签数据库中,该标签数据库保存了智能终端的各个图片的绝对路径及相对应的图片的标签信息。当然,也可以将各个图片的其它属性信息,例如文件名称、文件创建时间等也加入该标签数据库中形成映射,此处不作限定。In this embodiment of the present application, when a picture is newly received by an application program of the smart terminal, for example, when a picture sent by other WeChat contacts is received in WeChat, the newly received picture is determined as a picture to be processed; Or, it may be when the smart terminal newly downloads a picture from the Internet, for example, when viewing and downloading the picture through the browser of the smart terminal, the newly downloaded picture is determined as the picture to be processed; After the picture selection instruction input by the user, a picture is selected in the media library of the intelligent terminal according to the picture selection instruction and determined as a to-be-processed picture, which is not limited here. After the to-be-processed picture is determined, it can be detected whether the above-mentioned to-be-processed picture carries tag information. Optionally, since the label information of the picture may be stored in the attribute information of the picture, it can be known whether the picture to be processed carries the label information by detecting the attribute information of the picture to be processed. Of course, the label information of the pictures can also be stored in the label database of the smart terminal, and the label database stores the absolute paths of each picture of the smart terminal and the label information of the corresponding pictures. Of course, other attribute information of each picture, such as file name, file creation time, etc., can also be added to the tag database to form a mapping, which is not limited here.

在步骤102中,若上述待处理图片携带有标签信息,则获取上述待处理图片的标签版本;In step 102, if the above-mentioned picture to be processed carries tag information, obtain the label version of the above-mentioned picture to be processed;

在本申请实施例中,上述待处理图片携带有标签信息,指的是智能终端可以识别并解析得到上述待处理图片的标签信息,因而,即便一待处理图片携带有标签信息,若智能终端无法识别并解析得到上述待处理图片的标签信息,则将其作为未携带有标签信息的图片进行处理。当上述待处理图片携带有标签信息时,可以通过该标签信息获取其所对应的标签版本,其中,上述待处理图片的标签版本通常与添加上述待处理图片的标签信息的智能终端相关联,通常来说,由于同一厂家在生产智能终端时,会采用的同一标签模型,因而,在使用同一厂家所生产的智能终端为图片添加标签信息时,该图片的标签版本将保持一致;而由于无法保证各个不同厂家均采用同一标签模型生产智能终端,因此,需要获取上述待处理图片的标签版本,即,获取为该待处理图片添加标签时的智能终端所采用的标签版本。In the embodiment of the present application, the above-mentioned picture to be processed carries label information, which means that the intelligent terminal can identify and parse the label information of the above-mentioned picture to be processed. Therefore, even if a picture to be processed carries label information, if the intelligent terminal cannot After identifying and analyzing the tag information of the picture to be processed, it is processed as a picture that does not carry the tag information. When the above picture to be processed carries label information, the corresponding label version can be obtained through the label information. For example, since the same label model is used by the same manufacturer when producing smart terminals, when adding label information to a picture using a smart terminal produced by the same manufacturer, the label version of the picture will remain the same; and since there is no guarantee Different manufacturers use the same label model to produce smart terminals. Therefore, it is necessary to obtain the label version of the picture to be processed, that is, to obtain the label version used by the smart terminal when adding a label to the picture to be processed.

在步骤103中,检测上述待处理图片的标签版本与预设的标签版本是否一致;In step 103, it is detected whether the label version of the above-mentioned picture to be processed is consistent with the preset label version;

在本申请实施例中,通过检测上述待处理图片的标签版本与预设的标签版本是否一致,其中,上述预设的标签版本与智能终端相关联,具体用于表示上述智能终端所采用的标签版本,以判断该待处理图像的标签信息是否能够直接在智能终端中正确显示。需要注意的是,上述与预设的标签版本相关联的智能终端指的是正在对新接收的或新下载的对待处理图片进行处理的本智能终端。In the embodiment of the present application, it is detected whether the label version of the picture to be processed is consistent with the preset label version, wherein the preset label version is associated with the smart terminal, and is specifically used to indicate the label used by the smart terminal. version to determine whether the label information of the image to be processed can be displayed directly and correctly in the smart terminal. It should be noted that the above-mentioned intelligent terminal associated with the preset label version refers to the intelligent terminal that is processing newly received or newly downloaded pictures to be processed.

在步骤104中,若上述待处理图片的标签版本与上述预设的标签版本不一致,则根据上述预设的标签版本,更新上述待处理图片携带的标签信息;In step 104, if the label version of the above-mentioned picture to be processed is inconsistent with the above-mentioned preset label version, the label information carried by the above-mentioned picture to be processed is updated according to the above-mentioned preset label version;

在本申请实施例中,当上述待处理图片的标签版本与上述预设的标签版本不一致,则很可能发生智能终端无法正确显示待处理标签的标签信息的情况,为了使得待处理图片的标签信息能够在智能终端上兼容,可根据上述预设的标签版本将上述待处理图片携带的标签信息更新为目标标签信息,使得上述目标标签信息的标签版本为上述预设的标签版本,例如,假定厂家A生产的A1品牌的智能终端a接收到了一待处理图片,该A1品牌的智能终端所采用的标签版本为V1,即可以确定预设的标签版本为V1;而该待处理图片的标签是由厂家B生产的B1品牌的智能终端添加的,该B1品牌的智能终端所采用的标签版本为V2,即可以确定待处理图片的标签版本为V2。通过比对上述待处理图片的标签版本与预设的标签版本,可知二者并不一致,该待处理图片的标签信息可能无法在智能终端a中正确显示,则可以通过标签版本V1对待处理图片的标签信息进行更新,使得更新后的标签信息的版本为V1,实现对智能终端a对该待处理图片所携带的标签信息的兼容。当然,在上述待处理图片的标签版本与上述预设的标签版本一致时,可以不对上述待处理图片进行处理,以避免浪费智能终端的系统资源。In the embodiment of the present application, when the label version of the picture to be processed is inconsistent with the preset label version, it is very likely that the smart terminal cannot correctly display the label information of the label to be processed. In order to make the label information of the picture to be processed It can be compatible with the smart terminal, and can update the label information carried by the above-mentioned picture to be processed to the target label information according to the above-mentioned preset label version, so that the label version of the above-mentioned target label information is the above-mentioned preset label version, for example, it is assumed that the manufacturer The smart terminal a of the brand A1 produced by A has received a picture to be processed, and the label version adopted by the smart terminal of the brand A1 is V1, so it can be determined that the preset label version is V1; and the label of the picture to be processed is determined by It is added to the intelligent terminal of brand B1 produced by manufacturer B, and the label version adopted by the intelligent terminal of brand B1 is V2, so it can be determined that the label version of the picture to be processed is V2. By comparing the label version of the above picture to be processed with the preset label version, it can be seen that the two are inconsistent, and the label information of the picture to be processed may not be displayed correctly in the smart terminal a, then the label version V1 of the picture to be processed can be used. The label information is updated so that the version of the updated label information is V1, so as to achieve compatibility with the label information carried by the intelligent terminal a of the picture to be processed. Certainly, when the label version of the above picture to be processed is consistent with the above preset label version, the above picture to be processed may not be processed to avoid wasting system resources of the intelligent terminal.

可选地,若接受到用户输入的标签搜索指令,则可以根据上述标签搜索指令所携带的标签信息在标签数据库中进行筛选,获得与上述标签搜索指令所携带的标签信息相匹配的图片的绝对路径,并根据筛选获得的图片的绝对路径查找到用户需要的目标图片,由于该过程不需要用户在图片库中进行人工筛查,能够大大节约用户查找目标图片的时间。Optionally, if the tag search instruction input by the user is received, the tag database can be screened according to the tag information carried by the tag search instruction, and the absolute value of the picture that matches the tag information carried by the tag search instruction can be obtained. path, and find the target picture required by the user according to the absolute path of the picture obtained by screening. Since this process does not require the user to perform manual screening in the picture library, the time for the user to find the target picture can be greatly saved.

由上可见,本申请实施例中,针对携带有标签信息的待处理图片,将首先检测该待处理图片的标签版本是否与预设的标签版本一致,若不一致,则根据该预设的标签版本将待处理图片的标签信息更新为目标标签信息,使得该目标标签信息的标签版本为预设的标签版本。基于此实现了标签信息的统一化管理,使得用户在智能终端上查看该图片时,智能终端可以显示该图片正确的标签信息,同时,用户也可以通过搜索该标签信息,在图片库中查找出所需要的图片。It can be seen from the above that, in the embodiment of the present application, for the to-be-processed picture carrying the label information, it will be first detected whether the label version of the to-be-processed picture is consistent with the preset label version. The tag information of the picture to be processed is updated to the target tag information, so that the tag version of the target tag information is the preset tag version. Based on this, the unified management of label information is realized, so that when the user views the picture on the smart terminal, the smart terminal can display the correct label information of the picture. required pictures.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

实施例二Embodiment 2

下面对本申请实施例提供的另一种标签管理方法进行描述,请参阅图2,本申请实施例中的标签管理方法包括:Another label management method provided by the embodiment of the present application will be described below. Please refer to FIG. 2. The label management method in the embodiment of the present application includes:

在步骤201中,检测待处理图片是否携带有标签信息,若是,则执行步骤202,若否,则执行步骤206;In step 201, it is detected whether the image to be processed carries tag information, if so, go to step 202, if not, go to step 206;

在步骤202中,获取上述待处理图片的标签版本;In step 202, the label version of the above-mentioned picture to be processed is obtained;

在步骤203中,检测上述待处理图片的标签版本与预设的标签版本是否一致;In step 203, it is detected whether the label version of the above-mentioned picture to be processed is consistent with the preset label version;

在步骤204中,若上述待处理图片的标签版本与上述预设的标签版本不一致,则根据上述预设的标签版本,更新上述待处理图片携带的标签信息;In step 204, if the label version of the above-mentioned picture to be processed is inconsistent with the above-mentioned preset label version, the label information carried by the above-mentioned picture to be processed is updated according to the above-mentioned preset label version;

在本申请实施例中,上述步骤201、202、203及204分别与上述步骤101、102、103及104相同,具体可参见上述步骤101、102、103及104的相关描述,在此不再赘述。In this embodiment of the present application, the above steps 201, 202, 203 and 204 are respectively the same as the above steps 101, 102, 103 and 104. For details, please refer to the relevant descriptions of the above steps 101, 102, 103 and 104, which will not be repeated here. .

在步骤205中,识别上述待处理图像;In step 205, the above-mentioned to-be-processed image is identified;

在步骤206中,根据识别的结果以及上述预设的标签版本,为上述待处理图片生成标签信息;In step 206, according to the identification result and the above-mentioned preset label version, label information is generated for the above-mentioned to-be-processed picture;

在本申请实施例中,当检测出该待处理图片并未携带有标签信息时,为了使得该图片能够在图片库中更好的归类,方便用户查找,可以为上述待处理图片添加标签信息。可选地,可以通过人工的方式添加,具体为:基于上述待处理图片弹出文本编辑框;接收用户通过上述文本编辑框输入的对上述待处理图片的文字描述;根据接受到的上述文字描述及预设的标签版本,生成标签信息;当然,也可以通过智能终端自动添加,具体为:识别上述待处理图像;根据识别的结果以及上述预设的标签版本,为上述待处理图片生成标签信息。其中,上述识别包括图像识别,以识别出图片中可能所包含的人物、动物或者地点;进一步地,上述识别还可以包括文本识别,以识别出图片中可能所包含的文字。当识别结果有两个以上时,可以对应生成两个以上的标签信息,此处不作限定。In the embodiment of the present application, when it is detected that the picture to be processed does not carry label information, in order to make the picture better classified in the picture library and facilitate user search, label information may be added to the above picture to be processed . Optionally, it can be added manually, specifically: popping up a text editing box based on the above-mentioned picture to be processed; receiving a textual description of the above-mentioned picture to be processed inputted by the user through the above-mentioned text editing box; according to the received above-mentioned textual description and The preset label version is used to generate label information; of course, it can also be automatically added by a smart terminal, specifically: recognizing the above-mentioned image to be processed; according to the recognition result and the above-mentioned preset label version, generating label information for the above-mentioned image to be processed. Wherein, the above-mentioned recognition includes image recognition to identify persons, animals or places that may be included in the picture; further, the above-mentioned identification may also include text recognition to identify the words that may be included in the picture. When there are more than two identification results, more than two label information may be generated correspondingly, which is not limited here.

可选地,上述标签管理方法还包括:Optionally, the above label management method further includes:

在上述智能终端中存储上述待处理图片的标签信息。The tag information of the picture to be processed is stored in the smart terminal.

其中,由于标签信息可能并没有存储在图片的属性信息中,而是以智能终端中标签数据库的元素的形式存在,因而可以在待处理图片的标签版本与预设的标签版本不一致时,在上述标签数据库中存储更新后的上述待处理图片携带的标签信息,或者,在待处理图片未携带有标签信息时,在上述标签数据库中存储生成的上述待处理图片的标签信息。Among them, since the label information may not be stored in the attribute information of the picture, but exists in the form of elements of the label database in the smart terminal, when the label version of the picture to be processed is inconsistent with the preset label version, the above The updated label information carried by the picture to be processed is stored in the label database, or, when the picture to be processed does not carry label information, the generated label information of the picture to be processed is stored in the label database.

由上可见,本申请实施例中,针对携带有标签信息的待处理图片,将首先检测上述待处理图片的标签版本是否与预设的标签版本一致,若不一致,则根据该预设的标签版本将待处理图片的标签信息更新为目标标签信息,使得该目标标签信息的标签版本为预设的标签版本。而针对未携带有标签信息的待处理图片,智能终端也将自动为其生成并添加新的标签。基于此实现了标签信息的统一化管理,使得用户在智能终端上查看该图片时,智能终端可以显示该图片正确的标签信息,同时,用户也可以通过搜索该标签信息,在图片库中查找出所需要的图片。It can be seen from the above that, in this embodiment of the present application, for pictures to be processed that carry label information, it will be first detected whether the label version of the above-mentioned pictures to be processed is consistent with the preset label version, and if not, the preset label version will be detected according to the The tag information of the picture to be processed is updated to the target tag information, so that the tag version of the target tag information is the preset tag version. For pictures to be processed that do not carry label information, the smart terminal will also automatically generate and add new labels for them. Based on this, the unified management of label information is realized, so that when the user views the picture on the smart terminal, the smart terminal can display the correct label information of the picture. required pictures.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

实施例三Embodiment 3

下面对本申请实施例提供的第三种标签管理方法进行描述,请参阅图3,本申请实施例中的标签管理方法包括:The third label management method provided by the embodiment of the present application will be described below. Please refer to FIG. 3 . The label management method in the embodiment of the present application includes:

在步骤301中,检测待处理图片是否携带有标签信息;In step 301, it is detected whether the image to be processed carries tag information;

在步骤302中,若上述待处理图片携带有标签信息,则获取上述待处理图片的标签版本;In step 302, if the above-mentioned picture to be processed carries tag information, a label version of the above-mentioned picture to be processed is obtained;

在步骤303中,检测上述待处理图片的标签版本与预设的标签版本是否一致;In step 303, it is detected whether the label version of the picture to be processed is consistent with the preset label version;

在本申请实施例中,上述步骤301、302及303分别与上述步骤101、102及103相同,具体可参见上述步骤101、102及103的相关描述,在此不再赘述。In this embodiment of the present application, the above steps 301 , 302 and 303 are respectively the same as the above steps 101 , 102 and 103 . For details, please refer to the relevant descriptions of the above steps 101 , 102 and 103 , which will not be repeated here.

在步骤304中,若上述待处理图片的标签版本与上述预设的标签版本不一致,则检测上述待处理图片所携带的标签信息是否为文字标签信息,若是,则执行步骤305,若否,则执行步骤307;In step 304, if the label version of the above-mentioned picture to be processed is inconsistent with the above-mentioned preset label version, it is detected whether the label information carried by the above-mentioned picture to be processed is text label information, if yes, go to step 305, if not, then Go to step 307;

在本申请实施例中,对于标签信息来说,其有多种不同的表现类型,包括但不限于文字标签信息及代码标签信息。其中,对于文字标签信息,其标签内容由文字组成,例如,一只小猫的图片,其文字标签信息可以为“小猫”;而对于代码标签信息,其标签内容由代码组成,例如,一只小猫的图片,其代码标签信息可以为“1”,通过查找该代码标签信息的代码版本所对应的代码-内容映射表,可确定该代码标签信息“1”所代表的内容为小猫。对于不同类型的标签信息来说,其更新为目标标签信息的具体过程并不相同,因此,可以在对待处理图片携带的标签信息进行更新之前,先检测上述待处理图片所携带的标签信息是否为文字标签信息。In the embodiment of the present application, for the label information, there are many different representation types, including but not limited to text label information and code label information. Among them, for text label information, its label content consists of text, for example, a picture of a kitten, its text label information can be "kitten"; and for code label information, its label content consists of codes, for example, a A picture of a kitten, its code label information can be "1", by looking up the code-content mapping table corresponding to the code version of the code label information, it can be determined that the content represented by the code label information "1" is a kitten . For different types of label information, the specific process of updating the target label information is not the same. Therefore, before updating the label information carried by the picture to be processed, it is possible to detect whether the label information carried by the above picture to be processed is Text label information.

在步骤305中,根据预设的文字标签映射关系,查找在上述预设的标签版本下,与上述待处理图片携带的文字标签信息对应的目标文字标签信息;In step 305, according to the preset text label mapping relationship, search for the target text label information corresponding to the text label information carried by the above-mentioned picture to be processed under the above-mentioned preset label version;

在本申请实施例中,上述文字标签映射关系指示了与上述预设的标签版本不同的其它各个标签版本下的文字标签信息与上述预设的标签版本下的文字标签信息的对应关系,例如,当标签版本为V1时,为小猫的图片生成的文字标签信息为“小猫”,当标签版本为V2时,为小猫的图片生成的文字标签信息为“猫”,当标签版本为V3时,为小猫的图片生成的文字标签信息为“猫科动物”,实际上,三者所表达的标签内容是一致的。因而,可以预先将上述不同标签版本对于同一标签内容的不同文字标签信息关联起来,实现不同标签版本下,文字标签信息的相互转换,通过该文字标签映射关系,找到在当前智能终端的标签版本下与上述待处理图片携带的文字标签信息对应的目标文字标签信息。In the embodiment of the present application, the above-mentioned text label mapping relationship indicates the corresponding relationship between the text label information under each label version different from the above-mentioned preset label version and the text label information under the above-mentioned preset label version, for example, When the label version is V1, the text label information generated for the picture of kitten is "kitten", when the label version is V2, the text label information generated for the picture of kitten is "cat", when the label version is V3 , the text label information generated for the picture of the kitten is "feline", in fact, the content of the label expressed by the three is the same. Therefore, the above-mentioned different label versions can be associated with different text label information of the same label content in advance, so as to realize the mutual conversion of text label information under different label versions. Target text label information corresponding to the text label information carried by the picture to be processed.

在步骤306中,将上述待处理图片携带的文字标签信息更新为查找到的上述目标文字标签信息,并执行步骤310;In step 306, the text label information carried by the above-mentioned picture to be processed is updated to the above-mentioned target text label information found, and step 310 is executed;

在本申请实施例中,若上述待处理图片所携带的标签信息存储于与待处理图片的属性信息中,则可以是以覆盖的方式将上述待处理图片所携带的标签信息的方式更新为查找到的上述目标文字标签信息,或者,若上述待处理图片所携带的标签信息未存储于待处理图片的属性信息中,则删除上述待处理图片所携带的标签信息,并将上述目标文字标签信息写入待处理图片的属性信息中,随后执行步骤310。In this embodiment of the present application, if the label information carried by the above-mentioned picture to be processed is stored in the attribute information of the picture to be processed, the label information carried by the above-mentioned picture to be processed may be updated to search in an overlay manner The above target text label information obtained, or, if the label information carried by the above picture to be processed is not stored in the attribute information of the picture to be processed, delete the label information carried by the above picture to be processed, and the above target text label information Write it into the attribute information of the picture to be processed, and then execute step 310 .

在步骤307中,检测是否存在上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系;In step 307, it is detected whether there is a code label mapping relationship between the label version of the above-mentioned picture to be processed and the above-mentioned preset label version;

在本申请实施例中,在待处理图片携带的标签信息是代码标签信息时,检测是否存在上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系,其中,上述代码标签映射关系指示了与上述预设的标签版本不同的其它一个标签版本下的代码标签信息与上述预设的标签版本下的代码标签信息的对应关系。例如,当标签版本为V4时,为小猫的图片生成的代码标签信息为“1”,当标签版本为V5时,为小猫的图片生成的代码标签信息为“5”,当标签版本为V6时,为小猫的图片生成的代码标签信息为“24”,实际上,三者所表达的标签内容是一致的。而由于单单从不同的标签版本的代码标签信息本身来看,无法直观的获得每一代码标签信息所代表的标签内容,并且,在图片的传输过程中,该图片的标签信息所对应的代码-内容映射表并不会一并传输,因而,每两个不同的标签版本都需要一套代码标签映射关系。In the embodiment of the present application, when the label information carried by the picture to be processed is code label information, it is detected whether there is a code label mapping relationship between the label version of the picture to be processed and the preset label version, wherein the code The label mapping relationship indicates the corresponding relationship between the code label information under another label version different from the above-mentioned preset label version and the code label information under the above-mentioned preset label version. For example, when the label version is V4, the code label information generated for the picture of kitten is "1", when the label version is V5, the code label information generated for the picture of kitten is "5", when the label version is In V6, the code label information generated for the cat's picture is "24". In fact, the content of the label expressed by the three is the same. However, it is impossible to intuitively obtain the label content represented by each code label information from the perspective of the code label information of different label versions. Moreover, during the transmission process of the picture, the code corresponding to the label information of the picture- The content mapping table is not transmitted together, so a set of code tag mappings is required for every two different tag versions.

在步骤308中,若存在上述待处理图片的标签版本与上述预设的标签版本的代码标签映射关系,则根据上述代码标签映射关系,查找在上述预设的标签版本下,与上述待处理图片携带的代码标签信息对应的目标代码标签信息;In step 308, if there is a code-tag mapping relationship between the tag version of the picture to be processed and the preset tag version, then according to the code-tag mapping relationship, search for the image to be processed under the preset tag version. The target code label information corresponding to the carried code label information;

在本申请实施例中,通过上述代码标签映射表,查找出能够在智能终端中正确显示的、与上述待处理图片携带的代码标签信息对应的目标代码标签信息。例如,当标签版本为V4的智能终端接收到一标签版本为V5的待处理图片时,若该待处理图片所携带的代码标签信息为“5”,则可以根据V4标签版本与V5标签版本之间的代码标签映射关系,查找到处在V5标签版本下,所对应的目标代码标签信息为“1”,再查阅智能终端所存储的与V4版本对应的代码-内容映射表,可获知其实际所表达的标签内容为小猫,则在查阅该待处理图片时,能够显示正确的标签内容。In the embodiment of the present application, the target code label information corresponding to the code label information carried by the above picture to be processed that can be correctly displayed in the smart terminal is searched out through the above code label mapping table. For example, when a smart terminal whose label version is V4 receives a picture to be processed with a label version V5, if the code label information carried by the picture to be processed is "5", it can be calculated according to the difference between the V4 label version and the V5 label version. The code label mapping relationship between them is searched everywhere under the V5 label version, and the corresponding target code label information is "1", and then refer to the code-content mapping table corresponding to the V4 version stored in the smart terminal, you can know its actual content. If the expressed label content is kitten, the correct label content can be displayed when viewing the to-be-processed picture.

在步骤309中,将上述待处理图片携带的代码标签信息更新为查找到的上述目标代码标签信息;In step 309, the code label information carried by the above-mentioned to-be-processed picture is updated to the above-mentioned target code label information found;

在本申请实施例中,若上述待处理图片所携带的标签信息存储于与待处理图片的属性信息中,则可以是以覆盖的方式将上述待处理图片所携带的标签信息的方式更新为查找到的上述目标代码标签信息,或者,若上述待处理图片所携带的标签信息未存储于待处理图片的属性信息中,则删除上述待处理图片所携带的标签信息,并将上述目标代码标签信息写入待处理图片的属性信息中。当然,也可以保留原有的标签信息,即,使得该待处理图片同时携带有两个标签版本的标签信息。In this embodiment of the present application, if the label information carried by the above-mentioned picture to be processed is stored in the attribute information of the picture to be processed, the label information carried by the above-mentioned picture to be processed may be updated to search in an overlay manner The above-mentioned target code label information obtained, or, if the label information carried by the above-mentioned picture to be processed is not stored in the attribute information of the picture to be processed, then delete the label information carried by the above-mentioned picture to be processed, and the above-mentioned target code label information Write to the attribute information of the image to be processed. Of course, the original label information may also be retained, that is, the to-be-processed picture carries the label information of two label versions at the same time.

在步骤310中,在上述智能终端中存储上述待处理图片的目标代码标签信息或目标文字标签信息。In step 310, the target code label information or target text label information of the picture to be processed is stored in the smart terminal.

在本申请实施例中,将上述目标代码标签信息或者目标文字标签信息存储于上述智能终端本地的标签数据库中。In the embodiment of the present application, the above-mentioned target code label information or target text label information is stored in the above-mentioned local label database of the smart terminal.

可选地,由于标签版本也在不断的进行更新及改进,可能会出现不存在上述待处理图片的标签版本与上述预设的标签版本的代码标签映射关系的情况,或者,还可能出现无法根据上述代码标签映射关系,查找出与上述待处理图片携带的代码标签信息对应的目标代码标签信息的情况,为了应对上述情况,上述标签管理方法还包括:Optionally, since the label version is constantly being updated and improved, there may be a situation where there is no code label mapping relationship between the label version of the image to be processed and the preset label version, or it may not be possible to The above-mentioned code label mapping relationship is to find out the situation of the target code label information corresponding to the code label information carried by the above-mentioned picture to be processed. In order to deal with the above situation, the above-mentioned label management method also includes:

识别上述待处理图像;Identify the above image to be processed;

根据识别的结果以及上述预设的标签版本,为上述待处理图片生成目标代码标签信息;According to the recognition result and the above-mentioned preset label version, generate target code label information for the above-mentioned to-be-processed picture;

将上述待处理图片携带的代码标签信息更新为生成的上述目标代码标签信息;Update the code label information carried by the above-mentioned to-be-processed picture to the generated above-mentioned target code label information;

基于上述待处理图片携带的代码标签信息及生成的上述目标代码标签信息,更新上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系。Based on the code label information carried by the picture to be processed and the generated target code label information, the code label mapping relationship between the label version of the picture to be processed and the preset label version is updated.

其中,上述识别待处理图像及为待处理图片生成目标代码标签信息的过程可以参照上述步骤205及206,此处不再赘述。并在生成了目标代码标签信息后,以覆盖的方式将上述待处理图片所携带的标签信息的方式更新为生成的上述目标代码标签信息,或者,若上述待处理图片所携带的标签信息未存储于待处理图片的属性信息中,则删除上述待处理图片所携带的标签信息,并将生成的上述目标代码标签信息写入待处理图片的属性信息中。同时,基于上述待处理图片携带的代码标签信息及生成的上述目标代码标签信息,更新上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系,则在后续遇到同样的标签版本及同样的代码标签信息时,能够直接根据代码标签映射关系查找到目标代码标签信息,提高智能终端的处理效率。The above process of identifying the image to be processed and generating the target code label information for the image to be processed may refer to the above steps 205 and 206, which will not be repeated here. And after the target code label information is generated, the label information carried by the above-mentioned picture to be processed is updated to the generated above-mentioned target code label information in a covering manner, or, if the label information carried by the above-mentioned picture to be processed is not stored. In the attribute information of the to-be-processed picture, the tag information carried by the above-mentioned to-be-processed picture is deleted, and the above-mentioned generated target code tag information is written into the attribute information of the to-be-processed picture. At the same time, based on the code label information carried by the above-mentioned picture to be processed and the above-mentioned target code label information generated, the code label mapping relationship between the label version of the above-mentioned picture to be processed and the above-mentioned preset label version is updated. When the label version and the same code label information are used, the target code label information can be directly found according to the code label mapping relationship, thereby improving the processing efficiency of the intelligent terminal.

由上可见,本申请实施例中,通过智能终端中存储的文字标签映射关系及代码标签映射关系,无论待处理图片所携带的标签信息是文字标签信息还是代码标签信息,都可以快速的更新为标签版本为预设版本的目标标签信息;并且在必要的时候,还可以为已经携带有标签信息的待处理图片新生成目标标签信息。基于此实现了标签信息的统一化管理,使得用户在智能终端上查看该图片时,智能终端可以显示该图片正确的标签信息,同时,用户也可以通过搜索该标签信息,在图片库中查找出所需要的图片。As can be seen from the above, in the embodiment of the present application, through the text label mapping relationship and the code label mapping relationship stored in the smart terminal, no matter whether the label information carried by the picture to be processed is text label information or code label information, it can be quickly updated as The label version is the target label information of the preset version; and when necessary, the target label information can also be newly generated for the to-be-processed picture that already carries the label information. Based on this, the unified management of label information is realized, so that when the user views the picture on the smart terminal, the smart terminal can display the correct label information of the picture. required pictures.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

实施例四Embodiment 4

本申请实施例还提供一种数据同步装置,适用于智能终端,如图4所示,本申请实施例中的数据同步装置400包括:An embodiment of the present application further provides a data synchronization apparatus, which is suitable for an intelligent terminal. As shown in FIG. 4 , the data synchronization apparatus 400 in the embodiment of the present application includes:

第一检测单元401,用于检测待处理图片是否携带有标签信息;The first detection unit 401 is used to detect whether the to-be-processed picture carries label information;

版本获取单元402,用于当上述待处理图片携带有标签信息时,获取上述待处理图片的标签版本;A version obtaining unit 402, configured to obtain a label version of the above-mentioned picture to be processed when the above-mentioned picture to be processed carries tag information;

第二检测单元403,用于检测上述待处理图片的标签版本与预设的标签版本是否一致,其中,上述预设的标签版本用于表示上述智能终端所采用的标签版本;The second detection unit 403 is configured to detect whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used to represent the label version used by the smart terminal;

标签更新单元404,用于当上述待处理图片的标签版本与上述预设的标签版本不一致时,根据上述预设的标签版本,更新上述待处理图片携带的标签信息。The label updating unit 404 is configured to update the label information carried by the above-mentioned picture to be processed according to the above-mentioned preset label version when the label version of the above-mentioned picture to be processed is inconsistent with the above-mentioned preset label version.

可选地,上述标签管理装置400还包括:Optionally, the above label management apparatus 400 further includes:

图像识别单元,用于当上述待处理图片未携带有标签信息时,识别上述待处理图像;an image recognition unit, configured to recognize the above-mentioned to-be-processed image when the above-mentioned to-be-processed picture does not carry label information;

标签生成单元,用于根据识别的结果,以上述预设的标签版本生成上述待处理图片的标签信息;The label generating unit is configured to generate the label information of the above-mentioned picture to be processed with the above-mentioned preset label version according to the recognition result;

可选地,上述标签管理装置400还包括:Optionally, the above label management apparatus 400 further includes:

标签存储单元,用于在上述智能终端中存储上述待处理图片的标签信息。The label storage unit is used for storing the label information of the above picture to be processed in the above intelligent terminal.

可选地,上述标签更新单元404,包括:Optionally, the above label update unit 404 includes:

第一查找子单元,用于当上述待处理图片携带的标签信息为文字标签信息时,根据预设的文字标签映射关系,查找在上述预设的标签版本下,与上述待处理图片携带的文字标签信息对应的目标文字标签信息,其中,上述文字标签映射关系指示了与上述预设的标签版本不同的其它各个标签版本下的文字标签信息与上述预设的标签版本下的文字标签信息的对应关系;The first search subunit is used for, when the label information carried by the above-mentioned picture to be processed is text label information, according to the preset text label mapping relationship, to search for the text carried by the above-mentioned picture to be processed under the above-mentioned preset label version. Target text label information corresponding to the label information, wherein the text label mapping relationship indicates the correspondence between the text label information under each label version different from the preset label version and the text label information under the preset label version relation;

第一更新子单元,用于将上述待处理图片携带的文字标签信息更新为查找到的上述目标文字标签信息。The first update subunit is configured to update the text label information carried by the picture to be processed to the found target text label information.

可选地,上述标签管理装置400还包括:Optionally, the above label management apparatus 400 further includes:

代码标签映射关系检测单元,用于当上述待处理图片携带的标签信息为代码标签信息时,检测是否存在上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系,其中,上述代码标签映射关系指示了与上述预设的标签版本不同的其它一个标签版本下的代码标签信息与上述预设的标签版本下的代码标签信息的对应关系;A code label mapping relationship detection unit, configured to detect whether there is a code label mapping relationship between the label version of the above-mentioned picture to be processed and the above-mentioned preset label version when the label information carried by the above-mentioned picture to be processed is code label information, wherein , the above-mentioned code label mapping relationship indicates the corresponding relationship between the code label information under another label version different from the above-mentioned preset label version and the code label information under the above-mentioned preset label version;

上述标签更新单元404,包括:The above label updating unit 404 includes:

第二查找子单元,用于若存在上述待处理图片的标签版本与上述预设的标签版本的代码标签映射关系,则根据上述代码标签映射关系,查找在上述预设的标签版本下,与上述待处理图片携带的代码标签信息对应的目标代码标签信息;The second search subunit is configured to, if there is a code-tag mapping relationship between the tag version of the picture to be processed and the preset tag version, according to the code-tag mapping relationship, search for the preset tag version that is the same as the above-mentioned tag version according to the code-tag mapping relationship. The target code label information corresponding to the code label information carried by the image to be processed;

第二更新子单元,用于将上述待处理图片携带的代码标签信息更新为查找到的上述目标代码标签信息。The second update subunit is configured to update the code label information carried by the above-mentioned to-be-processed picture to the above-mentioned target code label information that is found.

可选地,上述图像识别单元还用于,当不存在上述待处理图片的标签版本与上述预设的标签版本的代码标签映射关系时,或者,当无法根据上述代码标签映射关系,查找出与上述待处理图片携带的代码标签信息对应的目标代码标签信息时,识别上述待处理图像;Optionally, the above-mentioned image recognition unit is also used for, when there is no code-label mapping relationship between the label version of the above-mentioned picture to be processed and the above-mentioned preset label version, or, when the above-mentioned code-label mapping relationship cannot be found. When the target code label information corresponding to the code label information carried by the above-mentioned to-be-processed picture is identified, the above-mentioned to-be-processed image is identified;

上述标签生成单元还用于,根据识别的结果以及上述预设的标签版本,为上述待处理图片生成目标代码标签信息;The above-mentioned label generation unit is further configured to, according to the result of the identification and the above-mentioned preset label version, generate target code label information for the above-mentioned picture to be processed;

上述第二更新子单元,还用于将上述待处理图片携带的代码标签信息更新为生成的上述目标代码标签信息;The above-mentioned second update subunit is also used to update the code label information carried by the above-mentioned pictures to be processed to the above-mentioned target code label information generated;

上述标签更新装置400还包括:The above-mentioned label updating device 400 further includes:

映射关系更新单元,用于基于上述待处理图片携带的代码标签信息及生成的上述目标代码标签信息,更新上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系。The mapping relationship updating unit is configured to update the code label mapping relationship 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.

由上可见,本申请实施例中,标签管理装置针对携带有标签信息的待处理图片,将首先检测该待处理图片的标签版本是否与预设的标签版本一致,若不一致,则根据该预设的标签版本将待处理图片的标签信息更新为目标标签信息,使得该目标标签信息的标签版本为预设的标签版本;而针对未携带有标签信息的待处理图片,智能终端也将自动为其生成并添加新的标签。进一步地,通过标签管理装置中存储的文字标签映射关系及代码标签映射关系,无论待处理图片所携带的标签信息是文字标签信息还是代码标签信息,都可以快速的更新为标签版本为预设版本的目标标签信息;并且在必要的时候,还可以为已经携带有标签信息的待处理图片新生成目标标签信息。基于此实现了标签信息的统一化管理,使得用户在智能终端上查看该图片时,智能终端可以显示该图片正确的标签信息,同时,用户也可以通过搜索该标签信息,在图片库中查找出所需要的图片。It can be seen from the above that, in the embodiment of the present application, the label management apparatus will first detect whether the label version of the to-be-processed picture is consistent with the preset label version for the to-be-processed picture that carries the label information. The label version of the image to be processed updates the label information of the picture to be processed to the target label information, so that the label version of the target label information is the preset label version; and for the picture to be processed that does not carry the label information, the intelligent terminal will also automatically Generate and add new tags. Further, through the text label mapping relationship and the code label mapping relationship stored in the label management device, no matter whether the label information carried by the picture to be processed is text label information or code label information, it can be quickly updated to the label version as the preset version. target label information; and when necessary, new target label information can be generated for the to-be-processed picture that already carries the label information. Based on this, the unified management of label information is realized, so that when the user views the picture on the smart terminal, the smart terminal can display the correct label information of the picture. required pictures.

实施例五Embodiment 5

本申请实施例提供一种智能终端,请参阅图5,本申请实施例中的智能终端包括:存储器501,一个或多个处理器502(图5中仅示出一个)及存储在存储器501上并可在处理器上运行的计算机程序。其中:存储器501用于存储软件程序以及模块,处理器502通过运行存储在存储器501的软件程序以及单元,从而执行各种功能应用以及数据处理,以获取上述预设事件对应的资源。具体地,处理器502通过运行存储在存储器501的上述计算机程序时实现以下步骤:An embodiment of the present application provides an intelligent terminal. Please refer to FIG. 5 . The intelligent terminal in the embodiment of the present application includes: a memory 501 , one or more processors 502 (only one is shown in FIG. A computer program that can be run on a processor. The memory 501 is used to store 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 to obtain resources corresponding to the above preset events. Specifically, the processor 502 implements the following steps by running the above-mentioned computer program stored in the memory 501:

检测待处理图片是否携带有标签信息;Detect whether the image to be processed carries label information;

若上述待处理图片携带有标签信息,则获取上述待处理图片的标签版本;If the above-mentioned picture to be processed carries label information, obtain the label version of the above-mentioned picture to be processed;

检测上述待处理图片的标签版本与预设的标签版本是否一致,其中,上述预设的标签版本用于表示上述智能终端所采用的标签版本;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 to represent the label version used by the smart terminal;

若上述待处理图片的标签版本与上述预设的标签版本不一致,则根据上述预设的标签版本,更新上述待处理图片携带的标签信息。If the label version of the picture to be processed is inconsistent with the preset label version, the label information carried by the picture to be processed is updated according to the preset label version.

假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,上述检测待处理图片是否携带有标签信息之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现以下步骤:Assuming that the above is the first possible implementation manner, in the second possible implementation manner provided on the basis of the first possible implementation manner, after the above-mentioned detection of whether the picture to be processed carries the label information, the processor 502 passes The following steps are also implemented when the above-mentioned computer program stored in the memory 501 is executed:

若上述待处理图片未携带有标签信息,则识别上述待处理图像;If the above-mentioned picture to be processed does not carry label information, then the above-mentioned picture to be processed is identified;

根据识别的结果,以上述预设的标签版本生成上述待处理图片的标签信息。According to the recognition result, the tag information of the picture to be processed is generated with the preset tag version.

在上述第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时还实现以下步骤:In the third possible implementation manner provided on the basis of the above-mentioned first possible implementation manner or the above-mentioned second possible implementation manner, the processor 502 also executes the computer program stored in the memory 501 when executing the above-mentioned computer program. Implement the following steps:

在上述智能终端中存储上述待处理图片的标签信息。The tag information of the picture to be processed is stored in the smart terminal.

在上述第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础而提供的第四种可能的实施方式中,上述根据预设的标签版本,更新上述待处理图片携带的标签信息,包括:In the fourth possible implementation manner provided based on the first possible implementation manner above, or based on the second possible implementation manner above, the above-mentioned updating the image carried by the picture to be processed according to the preset label version Label information, including:

若上述待处理图片携带的标签信息为文字标签信息,则根据预设的文字标签映射关系,查找在上述预设的标签版本下,与上述待处理图片携带的文字标签信息对应的目标文字标签信息,其中,上述文字标签映射关系指示了与上述预设的标签版本不同的其它各个标签版本下的文字标签信息与上述预设的标签版本下的文字标签信息的对应关系;If the label information carried by the above picture to be processed is text label information, according to the preset text label mapping relationship, search for the target text label information corresponding to the text label information carried by the above picture to be processed under the above preset label version , wherein the text label mapping relationship indicates the corresponding relationship between the text label information under each other label version different from the above preset label version and the text label information under the above preset label version;

将上述待处理图片携带的文字标签信息更新为查找到的上述目标文字标签信息。Update the text label information carried by the picture to be processed to the found target text label information.

在上述第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础而提供的第五种可能的实施方式中,上述根据预设的标签版本,更新上述待处理图片携带的标签信息之前,处理器502通过运行存储在存储器501的上述计算机程序时还实现以下步骤:In the fifth possible implementation manner provided based on the first possible implementation manner above, or based on the second possible implementation manner above, the above-mentioned image carried in the to-be-processed picture is updated according to the preset label version. Before the tag information, the processor 502 further implements the following steps by running the above-mentioned computer program stored in the memory 501:

若上述待处理图片携带的标签信息为代码标签信息,则检测是否存在上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系,其中,上述代码标签映射关系指示了与上述预设的标签版本不同的其它一个标签版本下的代码标签信息与上述预设的标签版本下的代码标签信息的对应关系;If the label information carried by the picture to be processed is code label information, it is detected whether there is a code label mapping relationship between the label version of the picture to be processed and the preset label version, wherein the code label mapping relationship indicates the The correspondence between the code label information under another label version that is different from the above-mentioned preset label version and the code label information under the above-mentioned preset label version;

上述根据预设的标签版本,更新上述待处理图片携带的标签信息,包括:The above, according to the preset label version, update the label information carried by the above-mentioned pictures to be processed, including:

若存在上述待处理图片的标签版本与上述预设的标签版本的代码标签映射关系,则根据上述代码标签映射关系,查找在上述预设的标签版本下,与上述待处理图片携带的代码标签信息对应的目标代码标签信息;If there is a code label mapping relationship between the label version of the picture to be processed and the preset label version, then according to the code label mapping relationship, look up the code label information carried by the picture to be processed under the preset label version and the picture to be processed. Corresponding target code label information;

将上述待处理图片携带的代码标签信息更新为查找到的上述目标代码标签信息。The code label information carried by the above picture to be processed is updated to the above found target code label information.

在上述第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,上述根据预设的标签版本,更新上述待处理图片携带的标签信息,还包括:In the sixth possible implementation manner provided on the basis of the fifth possible implementation manner, the above-mentioned updating the tag information carried by the picture to be processed according to the preset tag version further includes:

若不存在上述待处理图片的标签版本与上述预设的标签版本的代码标签映射关系,或者,若无法根据上述代码标签映射关系,查找出与上述待处理图片携带的代码标签信息对应的目标代码标签信息,则识别上述待处理图像;If there is no code label mapping relationship between the label version of the above picture to be processed and the above preset label version, or, if the target code corresponding to the code label information carried by the above picture to be processed cannot be found out according to the above code label mapping relationship label information, then identify the above image to be processed;

根据识别的结果以及上述预设的标签版本,为上述待处理图片生成目标代码标签信息;According to the recognition result and the above-mentioned preset label version, generate target code label information for the above-mentioned to-be-processed picture;

将上述待处理图片携带的代码标签信息更新为生成的上述目标代码标签信息;Update the code label information carried by the above-mentioned to-be-processed picture to the generated above-mentioned target code label information;

基于上述待处理图片携带的代码标签信息及生成的上述目标代码标签信息,更新上述待处理图片的标签版本与上述预设的标签版本之间的代码标签映射关系。Based on the code label information carried by the picture to be processed and the generated target code label information, the code label mapping relationship between the label version of the picture to be processed and the preset label version is updated.

进一步,如图5所示,上述智能终端还可包括:一个或多个输入设备503(图5中仅示出一个)和一个或多个输出设备504(图5中仅示出一个)。存储器501、处理器502、输入设备503和输出设备504通过总线505连接。Further, as shown in FIG. 5 , the above-mentioned smart terminal may further include: one or more input devices 503 (only one is shown in FIG. 5 ) and one or more output devices 504 (only one is shown in FIG. 5 ). The memory 501 , the processor 502 , the input device 503 and the output device 504 are connected by a bus 505 .

应当理解,在本申请实施例中,所称处理器502可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), special-purpose processors An integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) 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.

输入设备503可以包括键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备504可以包括显示器、扬声器等。The input device 503 may include a keyboard, a touch panel, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, and the like, and the output device 504 may include a display, a speaker, and the like.

存储器501可以包括只读存储器和随机存取存储器,并向处理器502提供指令和数据。存储器501的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器501还可以存储设备类型的信息。Memory 501 may include read-only memory and random access memory, and provides instructions and data to processor 502 . Part or all of memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.

由上可见,本申请实施例中,智能终端针对携带有标签信息的待处理图片,将首先检测该待处理图片的标签版本是否与预设的标签版本一致,若不一致,则根据该预设的标签版本将待处理图片的标签信息更新为目标标签信息,使得该目标标签信息的标签版本为预设的标签版本;而针对未携带有标签信息的待处理图片,智能终端也将自动为其生成并添加新的标签。进一步地,通过智能终端中存储的文字标签映射关系及代码标签映射关系,无论待处理图片所携带的标签信息是文字标签信息还是代码标签信息,都可以快速的更新为标签版本为预设版本的目标标签信息;并且在必要的时候,还可以为已经携带有标签信息的待处理图片新生成目标标签信息。基于此实现了标签信息的统一化管理,使得用户在智能终端上查看该图片时,智能终端可以显示该图片正确的标签信息,同时,用户也可以通过搜索该标签信息,在图片库中查找出所需要的图片。It can be seen from the above that, in this embodiment of the present application, for a picture to be processed that carries label information, the intelligent terminal will first detect whether the label version of the picture to be processed is consistent with the preset label version. The label version updates the label information of the to-be-processed picture to the target label information, so that the label version of the target label information is the preset label version; and for the to-be-processed picture that does not carry label information, the intelligent terminal will also automatically generate it for it and add new tags. Further, through the text label mapping relationship and the code label mapping relationship stored in the smart terminal, no matter whether the label information carried by the picture to be processed is text label information or code label information, it can be quickly updated to a label version with a preset version. Target label information; and when necessary, target label information can also be newly generated for the to-be-processed picture that already carries the label information. Based on this, the unified management of label information is realized, so that when the user views the picture on the smart terminal, the smart terminal can display the correct label information of the picture. required pictures.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者外部设备软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the system embodiments described above are only illustrative. For example, the division of the above-mentioned modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机可读存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括是电载波信号和电信信号。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer-readable memory, a read-only memory (ROM, Read-Only Memory) ), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer-readable storage Excluded from the medium are electrical carrier signals and telecommunication signals.

以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.

Claims (10)

1.一种标签管理方法,适用于智能终端,其特征在于,所述标签管理方法包括:1. A label management method, applicable to an intelligent terminal, wherein the label management method comprises: 通过检测待处理图片的属性信息来检测所述待处理图片是否携带有标签信息;其中,所述标签信息为文字标签信息或者代码标签信息,所述代码标签信息用数字表示;Whether the to-be-processed picture carries label information is detected by detecting the attribute information of the to-be-processed picture; wherein, the label information is text label information or code label information, and the code label information is represented by numbers; 若所述待处理图片携带有标签信息,则获取所述待处理图片的标签版本;If the to-be-processed picture carries tag information, obtain a tagged 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 to represent the label version adopted by the intelligent terminal; 若所述待处理图片的标签版本与所述预设的标签版本不一致,则根据所述预设的标签版本,更新所述待处理图片携带的标签信息。If the label version of the to-be-processed picture is inconsistent with the preset label version, the label information carried by the to-be-processed picture is updated according to the preset label version. 2.如权利要求1所述的标签管理方法,其特征在于,所述检测待处理图片是否携带有标签信息,之后还包括:2. The label management method according to claim 1, wherein the detecting whether the picture to be processed carries label information, further comprising: 若所述待处理图片未携带有标签信息,则识别所述待处理图片;If the to-be-processed picture does not carry label information, identifying the to-be-processed picture; 根据识别的结果,以所述预设的标签版本生成所述待处理图片的标签信息。According to the identification result, the label information of the picture to be processed is generated with the preset label version. 3.如权利要求1或2所述的标签管理方法,其特征在于,所述标签管理方法还包括:3. The label management method according to claim 1 or 2, wherein the label management method further comprises: 在所述智能终端中存储所述待处理图片的标签信息。The tag information of the picture to be processed is stored in the intelligent terminal. 4.如权利要求1或2所述的标签管理方法,其特征在于,所述根据预设的标签版本,更新所述待处理图片携带的标签信息,包括:4. The label management method according to claim 1 or 2, wherein, according to a preset label version, updating the label information carried by the picture to be processed comprises: 若所述待处理图片携带的标签信息为文字标签信息,则根据预设的文字标签映射关系,查找在所述预设的标签版本下,与所述待处理图片携带的文字标签信息对应的目标文字标签信息,其中,所述文字标签映射关系指示了与所述预设的标签版本不同的其它各个标签版本下的文字标签信息与所述预设的标签版本下的文字标签信息的对应关系;If the label information carried by the picture to be processed is text label information, search for the target corresponding to the text label information carried by the picture to be processed under the preset label version according to the preset text label mapping relationship Text label information, wherein the text label mapping relationship indicates the correspondence between the text label information under each other label version different from the preset label version and the text label information under the preset label version; 将所述待处理图片携带的文字标签信息更新为查找到的所述目标文字标签信息。The text label information carried by the to-be-processed picture is updated to the found target text label information. 5.如权利要求1或2所述的标签管理方法,其特征在于,所述根据预设的标签版本,更新所述待处理图片携带的标签信息,之前还包括:5. The label management method according to claim 1 or 2, wherein before updating the label information carried by the picture to be processed according to a preset label version, the method further comprises: 若所述待处理图片携带的标签信息为代码标签信息,则检测是否存在所述待处理图片的标签版本与所述预设的标签版本之间的代码标签映射关系,其中,所述代码标签映射关系指示了与所述预设的标签版本不同的其它一个标签版本下的代码标签信息与所述预设的标签版本下的代码标签信息的对应关系;If the label information carried by the picture to be processed is code label information, it is detected whether there is a code label mapping relationship between the label version of the picture to be processed and the preset label version, wherein the code label mapping The relationship indicates the corresponding relationship between the code label information under another label version different from the preset label version and the code label information under the preset label version; 所述根据预设的标签版本,更新所述待处理图片携带的标签信息,包括:The updating of the label information carried by the picture to be processed according to the preset label version includes: 若存在所述待处理图片的标签版本与所述预设的标签版本的代码标签映射关系,则根据所述代码标签映射关系,查找在所述预设的标签版本下,与所述待处理图片携带的代码标签信息对应的目标代码标签信息;If there is a code-tag mapping relationship between the tag version of the picture to be processed and the preset tag version, then according to the code-tag mapping relationship, search for the image to be processed under the preset tag version. The target code label information corresponding to the carried code label information; 将所述待处理图片携带的代码标签信息更新为查找到的所述目标代码标签信息。The code label information carried by the to-be-processed picture is updated to the found target code label information. 6.如权利要求5所述的标签管理方法,其特征在于,所述根据预设的标签版本,更新所述待处理图片携带的标签信息,还包括:6. The label management method according to claim 5, wherein, according to a preset label version, updating the label information carried by the to-be-processed picture, further comprising: 若不存在所述待处理图片的标签版本与所述预设的标签版本的代码标签映射关系,或者,若无法根据所述代码标签映射关系,查找出与所述待处理图片携带的代码标签信息对应的目标代码标签信息,则识别所述待处理图片;If there is no code label mapping relationship between the label version of the picture to be processed and the preset label version, or if it is impossible to find out the code label information carried by the picture to be processed according to the code label mapping relationship corresponding target code label information, then identify the picture to be processed; 根据识别的结果以及所述预设的标签版本,为所述待处理图片生成目标代码标签信息;generating target code label information for the to-be-processed picture according to the identification result and the preset label version; 将所述待处理图片携带的代码标签信息更新为生成的所述目标代码标签信息;Update the code label information carried by the to-be-processed picture to the generated target code label information; 基于所述待处理图片携带的代码标签信息及生成的所述目标代码标签信息,更新所述待处理图片的标签版本与所述预设的标签版本之间的代码标签映射关系。Based on the code label information carried by the to-be-processed picture and the generated target code label information, the code-label mapping relationship between the label version of the to-be-processed picture and the preset label version is updated. 7.一种标签管理装置,适用于智能终端,其特征在于,所述标签管理装置包括:7. A label management device, suitable for an intelligent terminal, wherein the label management device comprises: 第一检测单元,用于通过检测待处理图片的属性信息来检测所述待处理图片是否携带有标签信息;其中,所述标签信息为文字标签信息或者代码标签信息,所述代码标签信息用数字表示;The first detection unit is used to detect whether the to-be-processed picture carries label information by detecting the attribute information of the to-be-processed picture; wherein, the label information is text label information or code label information, and the code label information uses numbers express; 版本获取单元,用于当所述待处理图片携带有标签信息时,获取所述待处理图片的标签版本;a version obtaining unit, configured to obtain a label version of the picture to be processed when the picture to be processed carries label information; 第二检测单元,用于检测所述待处理图片的标签版本与预设的标签版本是否一致,其中,所述预设的标签版本用于表示所述智能终端所采用的标签版本;a second detection unit, configured to detect whether the label version of the picture to be processed is consistent with a preset label version, wherein the preset label version is used to represent the label version used by the smart terminal; 标签更新单元,用于当所述待处理图片的标签版本与所述预设的标签版本不一致时,根据所述预设的标签版本,更新所述待处理图片携带的标签信息。A label updating unit, configured to update 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.如权利要求7所述的标签管理装置,其特征在于,所述标签管理装置还包括:8. The label management device according to claim 7, wherein the label management device further comprises: 图像识别单元,用于当所述待处理图片未携带有标签信息时,识别所述待处理图片;an image recognition unit, configured to recognize the to-be-processed picture when the to-be-processed picture does not carry label information; 标签生成单元,用于根据识别的结果,以所述预设的标签版本生成所述待处理图片的标签信息。The label generating unit is configured to generate label information of the to-be-processed picture with the preset label version according to the recognition result. 9.一种智能终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述方法的步骤。9. An intelligent terminal, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the computer program as claimed in the claims Steps of any one of 1 to 6 of the method. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented .
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
US10621988B2 (en) System and method for speech to text translation using cores of a natural liquid architecture system
CN108416003A (en) A kind of picture classification method and device, terminal, storage medium
TWI470549B (en) A method of using an image recognition guide to install an application, and an electronic device
CN107368550B (en) Information acquisition method, device, medium, electronic device, server and system
CN108038195A (en) Intelligent terminal question searching method and device, intelligent terminal and storage medium
CN107748780B (en) Recovery method and device for file of recycle bin
CN111694549A (en) Data processing method, device, terminal and medium
KR102316846B1 (en) Method for sorting a media content and electronic device implementing the same
CN110930969A (en) Background music determination method and related equipment
CN112596846A (en) Method and device for determining interface display content, terminal equipment and storage medium
CN107729491A (en) Method, device and equipment for improving accuracy rate of question answer search
CN113420531B (en) Code text conversion method, device and storage medium
CN113655933B (en) Text labeling method and device, storage medium and electronic equipment
CN107704884B (en) Image tag processing method, image tag processing device and electronic terminal
CN114241471A (en) Video text recognition method, device, electronic device and readable storage medium
CN107071553B (en) Method, device and computer readable storage medium for modifying video and voice
CN109271543B (en) Thumbnail display method and device, terminal and computer-readable storage medium
CN112069865A (en) Method and system for reporting a request for review of a physical object
CN114840743B (en) Model recommendation method and device, electronic equipment and readable storage medium
CN111753177A (en) Personalized recommendation method and device and computer storage medium
CN104657877A (en) Display method of adaptive advertisement object, mobile device and generation system thereof
CN109670454B (en) Biological information introduction method, biological information introduction device and terminal equipment
CN114968960A (en) Log processing method and device, computer equipment and storage medium
CN112835494A (en) Voice recognition result error correction method and device

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

CF01 Termination of patent right due to non-payment of annual fee