CN106650727B - An information display method and an AR device - Google Patents
An information display method and an AR device Download PDFInfo
- Publication number
- CN106650727B CN106650727B CN201611123080.5A CN201611123080A CN106650727B CN 106650727 B CN106650727 B CN 106650727B CN 201611123080 A CN201611123080 A CN 201611123080A CN 106650727 B CN106650727 B CN 106650727B
- Authority
- CN
- China
- Prior art keywords
- target
- information
- font
- image information
- text
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/62—Text, e.g. of license plates, overlay texts or captions on TV images
- G06V20/63—Scene text, e.g. street names
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种信息显示方法以及AR设备,该方法包括:当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息;接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息,可以实现图像信息中包含的文字的字体转换,帮助用户更清楚的识别图像信息中文字,提高用户体验。
The invention discloses an information display method and an AR device. The method includes: when it is detected that the image information of the current scene includes text, recognizing the text information that the text refers to; receiving the font for the target text in the image information a conversion instruction, the font conversion instruction is used to instruct to convert the font of the target text in the image information into a target font; according to the font conversion instruction and the target text information referred to by the target text, on the image information Displaying the target text information in the target font can realize font conversion of the text contained in the image information, help the user to recognize the text in the image information more clearly, and improve the user experience.
Description
技术领域technical field
本发明涉及终端技术领域,特别涉及一种信息显示方法以及AR设备。The present invention relates to the technical field of terminals, and in particular, to an information display method and an AR device.
背景技术Background technique
增强现实技术(Augmented Reality,简称AR),是一种实时地计算摄影机影像的位置及角度并加上相应图像、视频、3D模型的技术,增强现实技术可以在屏幕上将真实世界信息和虚拟世界信息“无缝”集成并进行互动,随着随身电子产品CPU运算能力的提升,AR设备得到用户的越来越多的使用。Augmented Reality (AR) is a technology that calculates the position and angle of camera images in real time and adds corresponding images, videos, and 3D models. Augmented reality technology can display real-world information and virtual worlds on the screen. Information is "seamlessly" integrated and interactive. With the improvement of the CPU computing power of portable electronic products, AR devices are increasingly used by users.
然而,现有技术中,AR设备可以采集场景的中的图像信息,并进行显示,当图像信息中包括文字时,AR设备尽可以对文字进行识别,图像信息中的文字只能以图像信息中字体的原样进行显示,不能对采集到的图像信息中的文字进行字体的转换,比如有些用户不认识繁体字,导致用户无法识别,用户体验较差。However, in the prior art, the AR device can collect image information in the scene and display it. When the image information includes text, the AR device can recognize the text as much as possible, and the text in the image information can only be displayed in the image information. The fonts are displayed as they are, and the texts in the collected image information cannot be converted to fonts. For example, some users do not know traditional Chinese characters, so that the users cannot recognize them, and the user experience is poor.
发明内容SUMMARY OF THE INVENTION
本发明实施例公开了一种信息显示方法以及AR设备,可以实现图像信息中包含的文字的字体转换,帮助用户更清楚的识别图像信息中文字,提高用户体验。Embodiments of the present invention disclose an information display method and an AR device, which can realize font conversion of text contained in image information, help users to more clearly identify text in image information, and improve user experience.
第一方面,本发明实施例提供了一种信息显示方法,包括:In a first aspect, an embodiment of the present invention provides an information display method, including:
当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息;When it is detected that the image information of the current scene includes text, identifying the text information that the text refers to;
接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;receiving a font conversion instruction for the target text in the image information, where the font conversion instruction is used to instruct to convert the font of the target text in the image information into a target font;
根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息。According to the font conversion instruction and the target text information indicated by the target text, the target text information is displayed in the target font on the image information.
可选地,所述根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息包括:Optionally, displaying the target text information in the target font on the image information according to the font conversion instruction and the target text information referred to by the target text includes:
去除所述图像信息中所述目标文字;removing the target text in the image information;
根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息中所述目标文字对应的位置以所述目标字体显示所述目标文字信息。According to the font conversion instruction and the target text information indicated by the target text, the target text information is displayed in the target font at the position corresponding to the target text in the image information.
可选地,所述当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息之后,所述方法还包括:Optionally, when it is detected that the image information of the current scene includes text, after identifying the text information referred to by the text, the method further includes:
接收针对所述图像信息中目标文字输入的字号设定指令,所述字号设定指令用于将所述目标文字的字号设定为目标字号;receiving a font size setting instruction input for the target text in the image information, where the font size setting instruction is used to set the font size of the target text as the target font size;
所述根据所述字体转换指令以及所述目标文字指代的文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息包括:The displaying the target text information in the target font on the image information according to the font conversion instruction and the text information referred to by the target text includes:
根据所述字体转换指令、所述字号设定指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体以及所述目标字号显示所述目标文字信息。According to the font conversion command, the font size setting command, and target text information indicated by the target text, the target text information is displayed on the image information in the target font and the target font size.
可选地,所述根据所述字体转换指令以及所述目标文字指代的文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息之后,所述方法还包括:Optionally, after displaying the target text information in the target font on the image information according to the font conversion instruction and the text information referred to by the target text, the method further includes:
以所述目标文字信息为关键词向服务器发送检索请求,以使所述服务器在接收到所述检索请求后返回检索结果;Sending a retrieval request to the server using the target text information as a keyword, so that the server returns a retrieval result after receiving the retrieval request;
接收并显示所述检索结果。The retrieval result is received and displayed.
可选地,所述关键词还包括位置信息;所述位置信息为获取的当前位置;所述检索结果为检索到的信息中与所述关键词匹配度最高的信息。Optionally, the keyword further includes location information; the location information is the acquired current location; and the retrieval result is the information with the highest matching degree with the keyword among the retrieved information.
第二方面,本发明实施例还提供了一种AR设备,包括:In a second aspect, an embodiment of the present invention further provides an AR device, including:
处理单元,用于当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息;a processing unit, configured to recognize the text information referred to by the text when it is detected that the image information of the current scene includes text;
接收单元,用于接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;a receiving unit, configured to receive a font conversion instruction for the target text in the image information, where the font conversion instruction is used to instruct to convert the font of the target text in the image information into a target font;
显示单元,用于根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息。A display unit, configured to display the target text information in the target font on the image information according to the font conversion instruction and the target text information referred to by the target text.
可选地,所述处理单元还用于:去除所述图像信息中所述目标文字;Optionally, the processing unit is further configured to: remove the target text in the image information;
所述显示单元还用于:根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息中所述目标文字对应的位置以所述目标字体显示所述目标文字信息。The display unit is further configured to: display the target text information in the target font at the position corresponding to the target text in the image information according to the font conversion instruction and the target text information indicated by the target text .
可选地,所述接收单元还用于:接收针对所述图像信息中目标文字输入的字号设定指令,所述字号设定指令用于将所述目标文字的字号设定为目标字号;Optionally, the receiving unit is further configured to: receive a font size setting instruction input for the target text in the image information, where the font size setting instruction is used to set the font size of the target text as the target font size;
所述显示单元还用于:根据所述字体转换指令、所述字号设定指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体以及所述目标字号显示所述目标文字信息。The display unit is further configured to: display the target font and the target font size on the image information according to the font conversion instruction, the font size setting instruction and the target text information referred to by the target text the target text information.
可选地,所述AR设备还包括:Optionally, the AR device further includes:
发送单元,用于以所述目标文字信息为关键词向服务器发送检索请求,以使所述服务器在接收到所述检索请求后返回检索结果;A sending unit, configured to send a retrieval request to a server with the target text information as a keyword, so that the server returns a retrieval result after receiving the retrieval request;
所述接收单元还用于:接收并显示所述检索结果。The receiving unit is further configured to: receive and display the retrieval result.
可选地,所述关键词还包括位置信息;所述位置信息为获取的当前位置;所述检索结果为检索到的信息中与所述关键词匹配度最高的信息。Optionally, the keyword further includes location information; the location information is the acquired current location; and the retrieval result is the information with the highest matching degree with the keyword among the retrieved information.
上述发明,当检测到当前场景的图像信息包括文字时,AR设备识别所述文字指代的文字信息;接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;并根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息,可以实现图像信息中包含的文字的字体转换,帮助用户更清楚的识别图像信息中文字,提高用户体验。In the above invention, when it is detected that the image information of the current scene includes text, the AR device recognizes the text information that the text refers to; receives a font conversion instruction for the target text in the image information, and the font conversion instruction is used to instruct the The font of the target text in the image information is converted into a target font; and according to the font conversion instruction and the target text information that the target text refers to, the target text information is displayed in the target font on the image information. , which can realize the font conversion of the text contained in the image information, help the user to recognize the text in the image information more clearly, and improve the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art 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 accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1是本发明实施例提供的一种通信系统的系统架构图;1 is a system architecture diagram of a communication system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种信息显示方法的流程示意图;2 is a schematic flowchart of an information display method provided by an embodiment of the present invention;
图3是本发明实施例提供的字体转换操作的一实施方式的结构示意图;3 is a schematic structural diagram of an embodiment of a font conversion operation provided by an embodiment of the present invention;
图4A-4D是本发明实施例提供的一种目标文字信息显示方法中各步骤示意图;4A-4D are schematic diagrams of steps in a method for displaying target text information provided by an embodiment of the present invention;
图5是本发明实施例提供的字号设定操作的一实施方式的结构示意图;5 is a schematic structural diagram of an embodiment of a font size setting operation provided by an embodiment of the present invention;
图6是本发明实施例提供的一种检索结果显示界面的结构示意图;6 is a schematic structural diagram of a retrieval result display interface provided by an embodiment of the present invention;
图7是本发明实施例提供的一种AR设备的结构示意图;7 is a schematic structural diagram of an AR device provided by an embodiment of the present invention;
图8是本发明实施例提供的另一种AR设备的结构示意图;8 is a schematic structural diagram of another AR device provided by an embodiment of the present invention;
图9是本发明实施例提供的又一种AR设备的结构示意图。FIG. 9 is a schematic structural diagram of another AR device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
请参阅图1,图1是本发明实施例提供的一种通信系统的系统架构图。其中,该通信系统可以包括现实增强(Augmented Reality,简称AR)设备11、移动终端12以及服务器13等,其中,AR设备11可以具有通信功能与移动终端12或服务器13建立通信连接。应该理解的是,本发明所述的信息显示方法可以基于AR设备11实现,也可以基于AR设备11和服务器13组成的通信系统实现,还可以基于图1所示的通信系统实现。Please refer to FIG. 1. FIG. 1 is a system architecture diagram of a communication system provided by an embodiment of the present invention. The communication system may include an Augmented Reality (AR)
AR设备11可以包括至少一个图像传感器,比如,摄像头,用于获取当前场景的图像信息,该AR设备11可以是智能眼镜、智能手机、平板电脑等,可被布置为根据一个或多个其它类型的无线通信(例如,协议)来通信。该无线通信可以包括蓝牙、蜂窝技术、紫蜂、NFC(Near Field Communication)以及RFID(Radio Frequency Identification,射频识别)通信,等等。The
移动终端12与AR设备11具有通信连接关系,可以是智能手机、平板电脑等,可以包括无线通信功能,以向服务器请求信息。The
请参阅图2,图2是本发明实施例提供的一种信息显示方法的流程示意图。如图2所示,所述信息显示方法包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of an information display method provided by an embodiment of the present invention. As shown in Figure 2, the information display method includes the following steps:
步骤S210:当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息。Step S210: When it is detected that the image information of the current scene includes text, identify the text information that the text refers to.
具体地,AR设备可以通过图像传感器,比如摄像头获取当前场景的图像信息,并检测当前场景的图像信息是否包含文字,如果是,则当前场景的图像信息包含文字,识别所述文字指代的文字信息;否则,当前场景的图像信息不包含文字,可以结束流程。Specifically, the AR device can obtain the image information of the current scene through an image sensor, such as a camera, and detect whether the image information of the current scene contains text. If so, the image information of the current scene contains text, and identify the text that the text refers to. information; otherwise, the image information of the current scene does not contain text, and the process can be ended.
其中,AR设备检测获取到的当前场景的图像信息是否包含文字信息,并识别所述的所述文字指代的文字信息的方法可以是:AR设备将当前场景的图像信息,转换为灰度图,将该灰度图进行二值化,再去除图像噪声、矫正倾斜,进而对图像信息中包括的多个文字进行分割,将分割后的文字与标准文字模板进行匹配,计算分割后的文字与各标准文字模板之间的相似性程度,取相似度最大的标准文字模板对应的文字信息作为识别结果,此时AR设备检测获取到的当前场景的图像信息包含文字信息。Wherein, the AR device detects whether the acquired image information of the current scene contains text information, and the method for identifying the text information referred to by the text may be: the AR device converts the image information of the current scene into a grayscale image , binarize the grayscale image, remove image noise, correct the inclination, and then segment multiple characters included in the image information, match the segmented characters with the standard character template, and calculate the difference between the segmented characters and the standard character template. For the degree of similarity between standard text templates, the text information corresponding to the standard text template with the greatest similarity is taken as the recognition result. At this time, the image information of the current scene detected by the AR device contains text information.
步骤S220:接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体。Step S220: Receive a font conversion instruction for the target text in the image information, where the font conversion instruction is used to instruct to convert the font of the target text in the image information into the target font.
具体地,图像信息中目标文字可以包括图像信息中的全部或部分文字。字体转换指令可以是AR设备根据接收用户针对所述图像信息中目标文字输入的字体转换操作生成的;也可以是AR设备在识别图像信息中所述文字指代的文字信息后,触发生成的字体转换指令,具体地,AR设备可以预先设定文字显示的目标字体。其中,请参见图3,图3是本发明实施例提供的字体转换操作的一实施方式的结构示意图。字体转换操作可以是用户在当前场景的图像信息31的显示界面中针对目标文字321“荷塘月色”输入的选定操作后,菜单栏33中字体选项下拉菜单中331选定目标字体“宋体”。可以理解,当前场景的图像信息31可以包括虚线框所示的多个文字32,目标文字321可以包括多个文字32的全部或部分。Specifically, the target text in the image information may include all or part of the text in the image information. The font conversion instruction may be generated by the AR device according to the font conversion operation input by the user for the target text in the image information; it may also be that the AR device triggers the generated font after recognizing the text information referred to by the text in the image information. The conversion instruction, specifically, the AR device can preset the target font for text display. Please refer to FIG. 3 , which is a schematic structural diagram of an implementation manner of a font conversion operation provided by an embodiment of the present invention. The font conversion operation may be a selection operation input by the user for the
可以理解,字体转换包括中文字体的繁简转换,字体格式的转换等。It can be understood that the font conversion includes traditional and simplified Chinese font conversion, font format conversion, and the like.
步骤S230:根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息。Step S230: Display the target text information in the target font on the image information according to the font conversion instruction and the target text information indicated by the target text.
具体地,AR设备可以在图像信息上输入字体为目标字体的目标文字信息,并显示该输入目标文字信息后的在图像信息,可以理解,输入目标文字信息可以覆盖原目标文字进行显示。Specifically, the AR device can input target text information whose font is the target font on the image information, and display the image information after the input target text information. It can be understood that the input target text information can cover the original target text for display.
本发明实施例中,步骤S130的一种实现方式可以是:AR设备可以去除所述图像信息中所述目标文字,进而,根据所述字体转换指令以及所述目标文字指代的文字信息,在所述图像信息中所述目标文字对应的位置以所述目标字体显示所述目标文字信息。请参阅图4A-4D,图4A-4D是本发明实施例提供的一种目标文字信息显示方法中各步骤示意图。具体地,图4A为目标文字在转换字体前的图像信息的界面示意图;AR设备可以去除所述图像信息中所述目标文字,如图4B所示;进而将图像信息的背景色渲染至去除目标文字后的区域,如图4C所示;仅为在图像信息中所述目标文字对应的位置以所述目标字体显示所述目标文字信息;如图4D所示。In this embodiment of the present invention, an implementation manner of step S130 may be: the AR device may remove the target text in the image information, and further, according to the font conversion instruction and the text information referred to by the target text, in the The position corresponding to the target text in the image information displays the target text information in the target font. Please refer to FIGS. 4A-4D. FIGS. 4A-4D are schematic diagrams of steps in a method for displaying target text information provided by an embodiment of the present invention. Specifically, FIG. 4A is a schematic interface diagram of the image information of the target text before font conversion; the AR device can remove the target text in the image information, as shown in FIG. 4B ; and then render the background color of the image information to the removal target The area after the text is shown in FIG. 4C ; the target text information is only displayed in the target font at the position corresponding to the target text in the image information; as shown in FIG. 4D .
本发明实施例中,步骤S110之后,所述信息显示方法还可以包括:AR设备接收针对所述图像信息中目标文字输入的字号设定指令,所述字号设定指令用于将所述目标文字的字号设定为目标字号;此时,步骤S130的一种实现方式可以是:根据所述字体转换指令、所述字号设定指令以及所述目标文字指代的文字信息,在所述图像信息上以所述目标字体以及所述目标字号显示所述目标文字信息。In this embodiment of the present invention, after step S110, the information display method may further include: the AR device receives a font size setting instruction input for the target text in the image information, and the font size setting instruction is used to display the target text The font size of the font size is set as the target font size; at this time, an implementation manner of step S130 may be: according to the font conversion instruction, the font size setting instruction and the text information referred to by the target text, in the image information The target text information is displayed in the target font and the target font size above.
具体地,字号设定指令可以是AR设备根据接收用户针对所述图像信息中目标文字输入的字号设定操作生成的;也可以是AR设备在识别图像信息中所述文字指代的文字信息后,触发生成的字号设定指令,具体地,AR设备可以预先设定文字显示的目标字号。其中,请参见图5,图5是本发明实施例提供的字号设定操作的一实施方式的结构示意图。字号设定操作可以是用户在当前场景的图像信息51的显示界面中显示有虚线框所示的文字52,针对目标文字521“荷塘月色”输入的选定操作后,菜单栏53中字号栏531选定目标字号。AR设备根据所述字体转换指令、所述字号设定指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体以及所述目标字号显示所述目标文字信息。Specifically, the font size setting instruction may be generated by the AR device according to receiving the font size setting operation input by the user for the target text in the image information; it may also be generated by the AR device after recognizing the text information referred to by the text in the image information. , triggering the generated font size setting instruction, specifically, the AR device can preset the target font size for text display. Please refer to FIG. 5 , which is a schematic structural diagram of an implementation manner of a font size setting operation provided by an embodiment of the present invention. The font size setting operation may be that the user displays the
可选地,步骤S130之后,所述信息显示方法还还包括:AR设备以所述目标文字信息为关键词向服务器发送检索请求,以使所述服务器在接收到所述检索请求后返回检索结果;进而AR设备接收并显示所述检索结果。Optionally, after step S130, the information display method further includes: the AR device sends a retrieval request to the server using the target text information as a keyword, so that the server returns a retrieval result after receiving the retrieval request. ; and then the AR device receives and displays the retrieval result.
具体地,AR设备可以预设应用程序,比如浏览器,通过浏览器内置的搜索引擎窗口,输入关键词,即目标文字信息,生成检索请求,AR设备将所述检索请求发送至服务器,服务器在接收到所述检索请求后,向AR设备返回检索结果。例如,关键词为“荷塘月色”,AR设备调用浏览器,在百度搜索界面输入“荷塘月色”,进行检索,百度服务器可以将关键词“荷塘月色”的检索结果发送至AR设备,AR设备接收并显示该检索结果。可选地,该检索结果可以是检索到的信息中与关键词匹配度最高的信息,请参阅图6,图6是本发明实施例提供的一种检索结果显示界面的结构示意图,AR设备可以在目标文字信息显示界面显示该检索结果。可以理解,预设应用程序可以是AR设备默认的应用程序,也可以是用户预先设定的应用程序。Specifically, the AR device can preset an application program, such as a browser, through the built-in search engine window of the browser, input keywords, that is, target text information, to generate a retrieval request, the AR device sends the retrieval request to the server, and the server After receiving the retrieval request, the retrieval result is returned to the AR device. For example, if the keyword is "Moonlight on the Lotus Pond", the AR device calls the browser, and enters "Moonlight on the Lotus Pond" in the Baidu search interface to perform a search. The Baidu server can send the search results of the keyword "Moonlight on the Lotus Pond" to the AR device. The AR device receives and displays the retrieval result. Optionally, the retrieval result may be the information with the highest matching degree with the keyword among the retrieved information. Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of a retrieval result display interface provided by an embodiment of the present invention. The AR device may The search result is displayed on the target text information display interface. It can be understood that the preset application may be a default application of the AR device, or an application preset by a user.
需要说明的是,AR设备也可以将包括该关键词信息的检索指令发送至与AR设备处于通信连接状态的移动终端,移动终端向服务器发送检索请求,以使所述服务器在接收到所述检索请求后向移动终端发送检索结果,进而移动终端将检索结果发送至AR设备。It should be noted that the AR device can also send a retrieval instruction including the keyword information to a mobile terminal that is in a communication connection with the AR device, and the mobile terminal sends a retrieval request to the server, so that the server receives the retrieval request. After the request, the search result is sent to the mobile terminal, and then the mobile terminal sends the search result to the AR device.
可选地,所述关键词还包括位置信息;所述位置信息为获取的当前位置;所述检索结果为检索到的信息中与所述关键词匹配度最高的信息。其中,AR设备可以通过GPS(Global Positioning System,全球定位系统)、BDS(BeiDou Navigation SatelliteSystem,中国北斗卫星导航系统)等卫星导航系统获取AR设备当前位置,例如,当前位置为“上海市南京西路1号”,则AR设备检索的关键词包括“上海市南京西路1号”和“荷塘月色”,向服务器发送检索请求,服务器返回检索结果。Optionally, the keyword further includes location information; the location information is the acquired current location; and the retrieval result is the information with the highest matching degree with the keyword among the retrieved information. Among them, the AR device can obtain the current location of the AR device through satellite navigation systems such as GPS (Global Positioning System, Global Positioning System), BDS (BeiDou Navigation Satellite System, China Beidou Satellite Navigation System), for example, the current location is "Shanghai Nanjing West Road" No. 1", the AR device search keywords include "No. 1 Nanjing West Road, Shanghai" and "Lotus Pond Moonlight", send a search request to the server, and the server returns the search result.
本发明实施例中,当检测到当前场景的图像信息包括文字时,AR设备识别所述文字指代的文字信息;接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;并根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息,可以实现图像信息中包含的文字的字体转换,帮助用户更清楚的识别图像信息中文字,提高用户体验。In this embodiment of the present invention, when it is detected that the image information of the current scene includes text, the AR device recognizes the text information that the text refers to; receives a font conversion instruction for the target text in the image information, and the font conversion instruction uses Instructing to convert the font of the target text in the image information into the target font; and according to the font conversion instruction and the target text information that the target text refers to, displaying the target font on the image information. The target text information can realize the font conversion of the text contained in the image information, help the user to recognize the text in the image information more clearly, and improve the user experience.
请参阅图7,图7是本发明实施例提供的一种AR设备的结构示意图。如图8所述该AR设备可以包括:处理单元710、接收单元720以及显示单元730,其中,Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of an AR device provided by an embodiment of the present invention. As shown in FIG. 8 , the AR device may include: a
处理单元710,用于当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息;a
接收单元720,用于接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;A receiving
显示单元730,用于根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体显示所述目标文字信息。The
可选地,所述处理单元710还用于:去除所述图像信息中所述目标文字;Optionally, the
所述显示单元730还用于:根据所述字体转换指令以及所述目标文字指代的目标文字信息,在所述图像信息中所述目标文字对应的位置以所述目标字体显示所述目标文字信息。The
可选地,所述接收单元720还用于:接收针对所述图像信息中目标文字输入的字号设定指令,所述字号设定指令用于将所述目标文字的字号设定为目标字号;Optionally, the receiving
所述显示单元730还用于:根据所述字体转换指令、所述字号设定指令以及所述目标文字指代的目标文字信息,在所述图像信息上以所述目标字体以及所述目标字号显示所述目标文字信息。The
可选地,请参阅图8,图8是本发明实施例提供的另一种AR设备的结构示意图,图8所述的AR设备除包括图7所示的各个单元外还可以包括:Optionally, please refer to FIG. 8. FIG. 8 is a schematic structural diagram of another AR device provided by an embodiment of the present invention. In addition to the units shown in FIG. 7, the AR device described in FIG. 8 may further include:
发送单元740,用于以所述目标文字信息为关键词向服务器发送检索请求,以使所述服务器在接收到所述检索请求后返回检索结果;A sending
所述接收单元720还用于:接收并显示所述检索结果。The receiving
可选地,所述关键词还包括位置信息;所述位置信息为获取的当前位置;所述检索结果为检索到的信息中与所述关键词匹配度最高的信息。Optionally, the keyword further includes location information; the location information is the acquired current location; and the retrieval result is the information with the highest matching degree with the keyword among the retrieved information.
需要说明的是,本发明各实施例中的AR设备中处理单元710、接收单元720、显示单元730以及发送单元740的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It should be noted that the functions of the
请参阅图9,图9是本发明实施例提供的又一种AR设备的结构示意图。该AR设备用于配合实施上述方案。本发明实施例提供的AR设备可以用于实施上述图2所示的本发明各实施例实现的方法,为了便于说明,仅示出了与本发明各实施例相关的部分,具体技术细节未揭示的,请参照图2所示的本发明各实施例。其中,图9所示的AR设备可以包括:处理器901以及与处理器901相连接的存储器902、输入模块903、输出模块904以及通信模块905,例如处理器901可以通过总线906连接到存储器902、输入模块903、输出模块904以及通信模块905等。Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of another AR device provided by an embodiment of the present invention. The AR device is used to cooperate with the implementation of the above scheme. The AR device provided by the embodiments of the present invention can be used to implement the methods implemented by the embodiments of the present invention shown in FIG. 2 . For the convenience of description, only the parts related to the embodiments of the present invention are shown, and the specific technical details are not disclosed. , please refer to the various embodiments of the present invention shown in FIG. 2 . The AR device shown in FIG. 9 may include: a
输入模块903用于实现用户与AR设备的交互和/或信息输入到AR设备中。例如,输入模块903可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明具体实施方式中,输入模块903可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。触控面板,也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。The
输出模块904可以包括但不限于影像输出单元、声音输出和触感输出单元。影像输出单元用于输出文字、图片和/或视频。所述影像输出单元可包括显示面板,虽然在图9中,输入模块903与输出模块904是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现移动终端的输入和输出功能。The
存储器902可用于存储软件程序以及模块,处理器901通过运行存储在存储器902的软件程序以及模块,从而执行AR设备的各种功能应用以及实现数据处理。存储器902主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序,比如声音播放程序、图像播放程序等等;数据存储区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等)等。在本发明具体实施方式中,存储器902可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile RandomAccess Memory,简称NVRAM)、相变化随机存取内存(Phase Change RAM,简称PRAM)、磁阻式随机存取内存(Magetoresistive RAM,简称MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可抹除可规划只读存储器(Electrically Erasable ProgrammableRead-OnlyMemory,简称EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。The
通信模块905用于建立通信信道,使AR设备通过所述通信信道以连接至通信对端,并通过所述通信信道与所述通信对端交互数据。所述通信模块905可以包括无线局域网(Wireless Local Area Network,简称wireless LAN)模块、蓝牙模块、近距离无线通信(Near Field Communication,简称NFC)、基带(Base Band)模块等无线通信模块和以太网、通用串行总线(Universal Serial Bus,简称USB)、闪电接口(Lightning,目前Apple用于iPhone5/5s/5c等设备)等有线通信模块。The
处理器901为AR设备的控制中心,利用各种接口和线路连接整个AR设备的各个部分,通过运行或执行存储在存储器902内的软件程序和/或模块,以及调用存储在存储器902内的数据,以执行以下操作:The
当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息;When it is detected that the image information of the current scene includes text, identifying the text information that the text refers to;
通过输入模块903接收针对所述图像信息中目标文字的字体转换指令,所述字体转换指令用于指示将所述图像信息中目标文字的字体转换为目标字体;Receive a font conversion instruction for the target text in the image information through the
根据所述字体转换指令以及所述目标文字指代的目标文字信息,通过输出模块904在所述图像信息上以所述目标字体显示所述目标文字信息。According to the font conversion instruction and the target text information referred to by the target text, the
可选地,处理器901还用于执行:Optionally, the
去除所述图像信息中所述目标文字;removing the target text in the image information;
处理器901执行根据所述字体转换指令以及所述目标文字指代的文字信息,通过输出模块904在所述图像信息上以所述目标字体显示所述目标文字信息包括:The
根据所述字体转换指令以及所述目标文字指代的目标文字信息,通过输出模块904在所述图像信息中所述目标文字对应的位置以所述目标字体显示所述目标文字信息。According to the font conversion instruction and the target text information indicated by the target text, the
可选地,处理器901在执行所述当检测到当前场景的图像信息包括文字时,识别所述文字指代的文字信息之后,处理器901还用于执行:Optionally, after the
通过输入模块903接收针对所述图像信息中目标文字输入的字号设定指令,所述字号设定指令用于将所述目标文字的字号设定为目标字号;Receive, through the
处理器901执行根据所述字体转换指令以及所述目标文字指代的文字信息,通过输出模块904在所述图像信息上以所述目标字体显示所述目标文字信息包括:The
根据所述字体转换指令、所述字号设定指令以及所述目标文字指代的目标文字信息,通过输出模块904在所述图像信息上以所述目标字体以及所述目标字号显示所述目标文字信息。According to the font conversion instruction, the font size setting instruction and the target text information indicated by the target text, the
可选地,处理器901执行根据所述字体转换指令以及所述目标文字指代的文字信息,通过输出模块904在所述图像信息上以所述目标字体显示所述目标文字信息之后,处理器901还用于执行:Optionally, the
以所述目标文字信息为关键词通过通信模块905向服务器发送检索请求,以使所述服务器在接收到所述检索请求后返回检索结果;Send a retrieval request to the server through the
通过通信模块905接收并显示所述检索结果。The retrieval result is received and displayed through the
可选地,所述关键词还包括位置信息;所述位置信息为获取的当前位置;所述检索结果为检索到的信息中与所述关键词匹配度最高的信息。Optionally, the keyword further includes location information; the location information is the acquired current location; and the retrieval result is the information with the highest matching degree with the keyword among the retrieved information.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。The above disclosure is only a preferred embodiment of the present invention, and of course, it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand that all or part of the process for realizing the above-mentioned embodiment can be realized according to the rights of the present invention. The equivalent changes required to be made still belong to the scope covered by the invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611123080.5A CN106650727B (en) | 2016-12-08 | 2016-12-08 | An information display method and an AR device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611123080.5A CN106650727B (en) | 2016-12-08 | 2016-12-08 | An information display method and an AR device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106650727A CN106650727A (en) | 2017-05-10 |
| CN106650727B true CN106650727B (en) | 2020-12-18 |
Family
ID=58819320
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611123080.5A Active CN106650727B (en) | 2016-12-08 | 2016-12-08 | An information display method and an AR device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106650727B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110019906B (en) * | 2017-11-22 | 2022-07-08 | 百度在线网络技术(北京)有限公司 | Method and apparatus for displaying information |
| CN112328628A (en) * | 2020-11-10 | 2021-02-05 | 山东爱城市网信息技术有限公司 | Bus real-time query method and system based on AR technology |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101057247A (en) * | 2004-11-15 | 2007-10-17 | 皇家飞利浦电子股份有限公司 | Detection and modification of text in a image |
| CN103488630A (en) * | 2013-09-29 | 2014-01-01 | 小米科技有限责任公司 | Method, device and terminal for processing picture |
| CN105631051A (en) * | 2016-02-29 | 2016-06-01 | 华南理工大学 | Character recognition based mobile augmented reality reading method and reading system thereof |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7382919B2 (en) * | 2006-06-22 | 2008-06-03 | Xerox Corporation | System and method for editing image data |
| US8144990B2 (en) * | 2007-03-22 | 2012-03-27 | Sony Ericsson Mobile Communications Ab | Translation and display of text in picture |
| CN102880595A (en) * | 2012-08-22 | 2013-01-16 | 东莞宇龙通信科技有限公司 | System and method for providing online reading |
-
2016
- 2016-12-08 CN CN201611123080.5A patent/CN106650727B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101057247A (en) * | 2004-11-15 | 2007-10-17 | 皇家飞利浦电子股份有限公司 | Detection and modification of text in a image |
| CN103488630A (en) * | 2013-09-29 | 2014-01-01 | 小米科技有限责任公司 | Method, device and terminal for processing picture |
| CN105631051A (en) * | 2016-02-29 | 2016-06-01 | 华南理工大学 | Character recognition based mobile augmented reality reading method and reading system thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106650727A (en) | 2017-05-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12147662B2 (en) | Techniques for image-based search using touch controls | |
| WO2019233212A1 (en) | Text identification method and device, mobile terminal, and storage medium | |
| US12039791B2 (en) | Image processing method, and electronic device supporting same | |
| US20150149925A1 (en) | Emoticon generation using user images and gestures | |
| US11705120B2 (en) | Electronic device for providing graphic data based on voice and operating method thereof | |
| CN107885430B (en) | Audio playing method and device, storage medium and electronic equipment | |
| JP6986187B2 (en) | Person identification methods, devices, electronic devices, storage media, and programs | |
| CN109189879B (en) | Electronic book display method and device | |
| CN109085982B (en) | Content identification method, device and mobile terminal | |
| CN105518712A (en) | Keyword notification method, device, and computer program product based on character recognition | |
| US9519355B2 (en) | Mobile device event control with digital images | |
| JP7715460B2 (en) | Avatar service providing method and system | |
| US20190369825A1 (en) | Electronic device and method for providing information related to image to application through input unit | |
| CN114049892A (en) | Voice control method, device and electronic device | |
| US20210405767A1 (en) | Input Method Candidate Content Recommendation Method and Electronic Device | |
| WO2019011295A1 (en) | Minus 1 screen content push and request method, apparatus, server and terminal | |
| CN108763350B (en) | Text data processing method and device, storage medium and terminal | |
| CN107908770A (en) | A kind of photo searching method and mobile terminal | |
| CN108021905A (en) | Image processing method, device, terminal equipment and storage medium | |
| US20160105620A1 (en) | Methods, apparatus, and terminal devices of image processing | |
| WO2023197648A1 (en) | Screenshot processing method and apparatus, electronic device, and computer readable medium | |
| CN106650727B (en) | An information display method and an AR device | |
| CN113655933A (en) | Text annotation method and device, storage medium and electronic device | |
| WO2020124454A1 (en) | Font switching method and related product | |
| CN107707752B (en) | Image processing method and mobile terminal |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250522 Address after: 102200 Beijing City Changping District Li Tang Road No. 58 building 1 first floor 1023 Patentee after: Beijing Jinqi Yaolai E-commerce Co.,Ltd. Country or region after: China Address before: 518057, Nanshan District hi tech Industrial Park (North Zone), Guangdong, Shenzhen Province, No. 2, Mengxi Road Patentee before: YULONG COMPUTER TELECOMMUNICATION SCIENTIFIC (SHENZHEN) Co.,Ltd. Country or region before: China |