CN110471599A - Screen word-selecting searching method, device, electronic equipment and storage medium - Google Patents

Screen word-selecting searching method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110471599A
CN110471599A CN201910747787.0A CN201910747787A CN110471599A CN 110471599 A CN110471599 A CN 110471599A CN 201910747787 A CN201910747787 A CN 201910747787A CN 110471599 A CN110471599 A CN 110471599A
Authority
CN
China
Prior art keywords
word
search
target text
currently displayed
screen
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.)
Pending
Application number
CN201910747787.0A
Other languages
Chinese (zh)
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 Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co 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 Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910747787.0A priority Critical patent/CN110471599A/en
Publication of CN110471599A publication Critical patent/CN110471599A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/374Thesaurus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present application discloses a kind of screen word-selecting searching method, device, electronic equipment and storage medium, this method comprises: showing search icon to user when detecting search operation;Response is directed to the clicking operation of described search icon, to open function of search;Acquisition takes word to operate, according to the target text taken in word operation identification current display page;Wherein, the target text includes individual character or word;The target text is sent in default character word stock and is scanned for.It improves screen and searches word come search efficiency and accuracy rate when inquiring the information such as paraphrase, it is easy to operate.

Description

屏幕取词搜索方法、装置、电子设备和存储介质Search method, device, electronic device and storage medium for word extraction on screen

技术领域technical field

本申请实施例涉及应用电子设备检索技术,尤其涉及一种屏幕取词搜索方法、装置、电子设备和存储介质。The embodiments of the present application relate to the application of electronic device retrieval technology, and in particular to a method, device, electronic device, and storage medium for word retrieval from a screen.

背景技术Background technique

随着科技的进步和人们生活水平的提高,越来越多的场合中,高科技手段或设备在人们的生活、工作和学习中起到重要作用。中小学生使用学习平板进行学习已经成为一个趋势,但是在这个过程中,通常会遇到一个问题,当用户在看某篇英语作文时,会遇到不认识的单词,或者是看某篇中文作文时,会遇到不理解的词语,此时就可以借助电子设备中的应用软件,例如,电子词典等,进行查询搜索。With the advancement of science and technology and the improvement of people's living standards, in more and more occasions, high-tech means or equipment play an important role in people's life, work and study. It has become a trend for elementary and middle school students to use learning tablets to study, but in the process, they usually encounter a problem. When users read a certain English composition, they will encounter unfamiliar words, or read a certain Chinese composition. When encountering words that you do not understand, you can use the application software in the electronic device, such as electronic dictionaries, to search for them.

而电子词典的一个主要应用就是在用户阅读文档时能够对文档中的关键字提供实时检索,此时,通常需要退出当前的应用,然后打开学习平板上的电子词典软件来查询。相关技术中,一种方式是用户记住要查询的内容,例如某个单词,然后将一个个字母输入至电子词典查询页面的输入框进行查询;另一种方式是用户手动复制和粘贴要查询的关键字,然后手动在电子词典和阅读文档的应用之间进行切换,而这些繁琐的操作不仅给用户带来极大的不便,还有可能由于输入错误导致查询结果错误。And a main application of electronic dictionary is exactly to be able to provide real-time retrieval to the keyword in document when the user reads document, and at this moment, usually needs to quit current application, then open the electronic dictionary software on the learning tablet to inquire. In related technologies, one way is that the user remembers the content to be queried, such as a certain word, and then enters letters one by one into the input box on the electronic dictionary query page for query; another way is that the user manually copies and pastes the word to be queried. keywords, and then manually switch between the electronic dictionary and the application for reading documents, and these cumbersome operations not only bring great inconvenience to users, but also may cause wrong query results due to input errors.

发明内容Contents of the invention

本申请提供了一种屏幕取词搜索方法、装置、电子设备和存储介质,以解决现有技术中屏幕搜词来查询释义等信息时的操作繁琐、查询效率低以及查询准确率低的问题。The present application provides a search method, device, electronic device and storage medium for searching words on the screen to solve the problems of cumbersome operations, low query efficiency and low query accuracy when searching for information such as interpretations by screen search in the prior art.

本发明采用如下技术方案:The present invention adopts following technical scheme:

第一方面,本申请实施例提供了一种屏幕取词搜索方法,该方法包括:In the first aspect, the embodiment of the present application provides a screen word search method, the method includes:

检测到搜索操作时,向用户展示搜索图标;When a search operation is detected, display the search icon to the user;

响应针对所述搜索图标的点击操作,以开启搜索功能;Responding to a click operation on the search icon to enable a search function;

获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;Obtain the word extraction operation, and identify the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word;

将所述目标文字发送至预设字词库中进行搜索。Send the target text to a preset word bank for searching.

第二方面,本申请实施例提供了一种屏幕取词搜索装置,该装置包括:In the second aspect, the embodiment of the present application provides a screen word search device, the device includes:

图标展示模块,用于检测到搜索操作时,向用户展示搜索图标;An icon display module, configured to display a search icon to the user when a search operation is detected;

搜索功能开启模块,用于响应针对所述搜索图标的点击操作,以开启搜索功能;A search function enabling module, configured to respond to a click operation on the search icon to enable the search function;

目标文字识别模块,用于获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;The target text recognition module is used to obtain the word extraction operation, and recognizes the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word;

搜索模块,用于将所述目标文字发送至预设字词库中进行搜索。The search module is used to send the target text to a preset word library for searching.

第三方面,本申请实施例提供了一种电子设备,包括存储器以及一个或多个处理器;In a third aspect, the embodiment of the present application provides an electronic device, including a memory and one or more processors;

所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的屏幕取词搜索方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for searching words from a screen according to the first aspect.

第四方面,本申请实施例提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的屏幕取词搜索方法。In a fourth aspect, the embodiment of the present application provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute the screen word search method as described in the first aspect when executed by a computer processor.

本发明采用的技术方案中有如下有益效果:在检测到搜索操作时,向用户展示搜索图标;响应针对所述搜索图标的点击操作,以开启搜索功能,这样通过点击搜索图标快速启动搜索功能而不影响当前应用,操作方便;获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;将所述目标文字发送至预设字词库中进行搜索,这样,避免了多次退出当前应用和搜索应用以及通过键盘输入的方式或者通过复制粘贴的方式输入要搜索的文字带来的操作繁琐的问题,提高了查询效率和查询准确率。The technical solution adopted by the present invention has the following beneficial effects: when a search operation is detected, the search icon is displayed to the user; the search function is activated in response to the click operation on the search icon, so that the search function can be started quickly by clicking the search icon. Does not affect the current application, easy to operate; obtain the word extraction operation, identify the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word; send the target text to a preset word In this way, it avoids the cumbersome operation caused by exiting the current application and search application multiple times and inputting the text to be searched through the keyboard or copying and pasting, and improves the query efficiency and accuracy. .

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请实施例提供的一种屏幕取词搜索方法的流程图;Fig. 1 is a flow chart of a method for searching words from a screen according to an embodiment of the present application;

图2是本申请实施例提供的另一种屏幕取词搜索方法的流程图;Fig. 2 is a flow chart of another screen word search method provided by the embodiment of the present application;

图3是本申请实施例中适用的一种屏幕取词搜索时的界面显示图;Fig. 3 is an interface display diagram of a screen word search applicable in the embodiment of the present application;

图4是本申请实施例中适用的一种屏幕取词搜索结果的界面显示图;Fig. 4 is an interface display diagram of a screen word search result applicable in the embodiment of the present application;

图5是本申请实施例提供的一种屏幕取词搜索装置的结构示意图;Fig. 5 is a schematic structural diagram of a screen word search device provided in an embodiment of the present application;

图6是本申请实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案和优点更加清楚,下面结合附图对本申请具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the purpose, technical solution and advantages of the present application clearer, specific embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only parts relevant to the present application are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

首先,对本申请实施例中的应用场景进行举例说明,以中小学生使用学习平板学习为应用场景为例,这样,学习平板即为本申请实施例中的电子设备,中小学生即为本申请实施例中的用户,而这个场景只是用来举例,并不形成具体的限定,还可以是其他场景,例如教师教学等场景。First of all, the application scenario in the embodiment of the present application is illustrated, and the application scenario of primary and middle school students using the learning tablet is taken as an example. In this way, the learning tablet is the electronic device in the embodiment of the application, and the primary and middle school students are the embodiment of the application. The user in this scenario is just an example and does not form a specific limitation. It can also be other scenarios, such as teacher teaching and other scenarios.

图1给出了本申请实施例提供的一种屏幕取词搜索方法的流程图,本实施例提供的屏幕取词搜索方法可以由屏幕取词搜索装置来执行,该屏幕取词搜索装置可通过硬件和/或软件的方式实现。参考图1,该方法具体可以包括:Fig. 1 has provided the flow chart of a kind of screen word search method provided by the embodiment of the present application, the screen word search method provided in this embodiment can be carried out by the screen word search device, this screen word search device can pass implemented in hardware and/or software. Referring to Figure 1, the method specifically may include:

S101、检测到搜索操作时,向用户展示搜索图标。S101. When a search operation is detected, display a search icon to the user.

具体的,搜索操作通常为用户触发,触发方式可以是用户在应用学习平板阅读的过程中,遇到不认识或者想要更进一步了解的字或词,则此时可以在当前显示页面下拉通知栏,则搜索图标展示给用户。示例性的,通知栏通常位于屏幕的最上方,用来显示电量、时间、信号和运营商等信息,而下拉通知栏则可以展示另外一些附加功能的设置,例如,连接移动数据、连接无线网络或打开蓝牙等。而这里的下拉只是用于举例,电子设备不同,通知栏的位置也不同,例如还可以是上拉位于屏幕最下方的通知栏来向用户展示搜索图标。Specifically, the search operation is usually triggered by the user. The trigger method can be that the user encounters a word or word that he does not know or wants to know more about in the process of reading on the application learning tablet. At this time, the user can pull down the notification bar on the currently displayed page. , the search icon is displayed to the user. Exemplarily, the notification bar is usually located at the top of the screen and is used to display information such as power, time, signal, and operator, while the drop-down notification bar can display the settings of other additional functions, such as connecting to mobile data and connecting to a wireless network Or turn on bluetooth etc. The drop-down here is just an example. Different electronic devices have different positions of the notification bar. For example, the notification bar at the bottom of the screen may be pulled up to display the search icon to the user.

而本申请的技术方案中,预先将表示搜索功能的搜索图标添加至通知栏中,这样,在检测到用户的搜索操作时,实时将搜索图标展示给用户,这样用户就可以点击搜索图标来控制搜索功能的开启和关闭。In the technical solution of the present application, the search icon representing the search function is added to the notification bar in advance, so that when the user's search operation is detected, the search icon is displayed to the user in real time, so that the user can click the search icon to control Turn the search function on and off.

S102、响应针对所述搜索图标的点击操作,以开启搜索功能。S102. Respond to a click operation on the search icon to enable a search function.

具体的,在将搜索图标展示给用户以后,用户点击搜索图标,而该搜索图标对应的触摸区域会接收并响应该点击操作,这样,就可以开启搜索功能。此时,搜索功能已经开启,而这个过程无需用户退出当前应用,其中,在当前应用中,可以是打开学习平板的“XX阅读”的应用在阅读某一篇文章,而详细的电子设备的屏幕如何接收并响应触摸操作,可以参考相关技术的触屏设备的工作原理,这里不进行赘述。Specifically, after the search icon is displayed to the user, the user clicks on the search icon, and the touch area corresponding to the search icon receives and responds to the click operation, thus enabling the search function. At this point, the search function has been enabled, and this process does not require the user to exit the current application. Among them, in the current application, the application of "XX Reading" on the learning tablet can be opened to read a certain article, and the screen of the electronic device in detail For how to receive and respond to touch operations, reference may be made to the working principles of touch screen devices in related technologies, which will not be repeated here.

S103、获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语。S103. Obtain a word extraction operation, and identify the target text on the currently displayed page according to the word extraction operation; wherein, the target text includes a single character or a phrase.

此时,搜索功能已经开启,这时,用户可以点击想要搜索的文字,对应点击过程,学习平板获取到该点击过程产生的取词操作。在实际的应用过程中,用户点击的可能是单字,也可能是一个词语,这个取决于用户需求和点击时的工具与学习平板的接触面积的大小,点击工具可以是用户的手指或者是触摸笔,而点击工具可以是根据学习平板的屏幕类型类进行选择,例如电容屏或者电阻屏对应的点击工作可以不同。At this time, the search function has been activated. At this time, the user can click the text to be searched, and corresponding to the click process, the learning tablet obtains the word extraction operation generated during the click process. In the actual application process, what the user clicks may be a single character or a word. This depends on the user's needs and the size of the contact area between the tool and the learning tablet when clicking. The clicking tool can be the user's finger or a touch pen. , and the click tool can be selected according to the screen type of the learning tablet, for example, the click work corresponding to a capacitive screen or a resistive screen can be different.

具体的,在获取到取词操作后,表明已经确定用户需要将该取词操作对应的文字进行搜索,这时,根据该取词操作识别当前显示页面中的取词操作对应的文字为目标文字,其中,识别方式可以是检测手指在当前显示页面中的触摸区域的位置进行识别等。Specifically, after obtaining the word extraction operation, it indicates that the user needs to search for the text corresponding to the word extraction operation, and at this time, according to the word extraction operation, identify the text corresponding to the word extraction operation in the currently displayed page as the target text , where the recognition method may be to detect the position of the finger in the touch area on the currently displayed page for recognition, and the like.

S104、将所述目标文字发送至预设字词库中进行搜索。S104. Send the target text to a preset word library for searching.

示例性的,服务器中存储了预设字词库,而该预设字词库中词汇量的大小在一定程度上影响搜索的准确率,从大量多次的搜索结果中分析,预设字词库中的词汇量越大,搜索的准确率越高。而为了提高搜索准确率以及搜索效率,还可以针对不同的语言类型建立不同的预设字词库,这样,避免了混合使用一个包括中英文在内的混合预设字词库带来的搜索速度慢的问题。这里用中英文只是用来举例,并不形成具体的限定。Exemplarily, the server stores a preset word library, and the size of the vocabulary in the preset word library affects the accuracy of the search to a certain extent. From the analysis of a large number of search results, the preset word The larger the vocabulary in the library, the higher the accuracy of the search. In order to improve the search accuracy and search efficiency, different preset word libraries can be established for different language types, thus avoiding the search speed caused by the mixed use of a mixed preset word library including Chinese and English slow problem. The use of Chinese and English here is just for example and does not form a specific limitation.

在确定了要搜索的目标文字后,将目标文字发送至预设字词库中进行搜索,具体的搜索过程可以是,将目标文字与预设字词库中的索引进行匹配,当匹配成功时,再跳转至存储目标文字的释义等信息的存储路径获取搜索结果。在一个具体的例子中,搜索结果可以包括释义、近义词、反义词、组词、书写和易错易混等信息。After determining the target text to be searched, send the target text to the preset word library for searching. The specific search process can be to match the target text with the index in the preset word library. When the match is successful , and then jump to the storage path where information such as the definition of the target text is stored to obtain the search results. In a specific example, the search results may include information such as definitions, synonyms, antonyms, group words, writing, and error-prone and confusing information.

本发明采用的技术方案中有如下有益效果:在检测到搜索操作时,向用户展示搜索图标;响应针对所述搜索图标的点击操作,以开启搜索功能,这样通过点击搜索图标快速启动搜索功能而不影响当前应用,操作方便;获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;将所述目标文字发送至预设字词库中进行搜索,这样,避免了多次退出当前应用和搜索应用以及通过键盘输入的方式或者通过复制粘贴的方式输入要搜索的文字带来的操作繁琐的问题,提高了查询效率和查询准确率。The technical solution adopted by the present invention has the following beneficial effects: when a search operation is detected, the search icon is displayed to the user; the search function is activated in response to the click operation on the search icon, so that the search function can be started quickly by clicking the search icon. Does not affect the current application, easy to operate; obtain the word extraction operation, identify the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word; send the target text to a preset word In this way, it avoids the cumbersome operation caused by exiting the current application and search application multiple times and inputting the text to be searched through the keyboard or copying and pasting, and improves the query efficiency and accuracy. .

在上述实施例的基础上,图2给出了本申请实施例提供的另一种屏幕取词搜索方法的流程图。该屏幕取词搜索方法是对上述屏幕取词搜索方法的具体化。参考图2,该屏幕取词搜索方法包括:On the basis of the above-mentioned embodiments, FIG. 2 shows a flow chart of another screen word search method provided by the embodiment of the present application. The search method of extracting words from a screen is the embodiment of the above-mentioned search method of extracting words from a screen. With reference to Fig. 2, this screen fetch word search method comprises:

S201、检测到搜索操作时,向用户展示搜索图标。S201. When a search operation is detected, display a search icon to the user.

S202、响应针对所述搜索图标的点击操作,以开启搜索功能。S202. Respond to a click operation on the search icon to enable a search function.

S203、获取取词操作,根据所述取词操作计算所述取词操作在当前显示页面的坐标范围。S203. Obtain the word retrieval operation, and calculate the coordinate range of the word retrieval operation on the currently displayed page according to the word retrieval operation.

具体的,根据取词操作计算该操作在当前显示页面中的最大横坐标、最小横坐标、最大纵坐标和最小纵坐标,其中,最大横坐标和最小横坐标之间构成横坐标范围,最大纵坐标和最小纵坐标之间构成纵坐标范围。这样,纵坐标范围和横坐标范围即可确定一个显示区域。示例性的,这里的坐标可以是指像素坐标,而当前显示页面中像素点的个数可以根据屏幕最大分辨率确定。Specifically, calculate the maximum abscissa, minimum abscissa, maximum ordinate, and minimum ordinate of the operation on the currently displayed page according to the word fetching operation, where the maximum abscissa and the minimum abscissa form the abscissa range, and the maximum ordinate The ordinate range is formed between the coordinate and the minimum ordinate. In this way, the range of the ordinate and the range of the abscissa can determine a display area. Exemplarily, the coordinates here may refer to pixel coordinates, and the number of pixels in the currently displayed page may be determined according to the maximum resolution of the screen.

S204、识别所述坐标对应显示区域的文字作为当前显示页面中的目标文字。S204. Identify the text in the display area corresponding to the coordinates as the target text in the currently displayed page.

示例性的,根据坐标范围确定一个显示区域,则识别该显示区域内的文字作为目标文字。在实际的应用过程中,该显示区域中可能包括第一数量的完整文字和第二数量的非完整文字,这里说的非完成文字是指,该类文字的部分在该显示区域内,另一部分在该显示区域外,此时,根据预先设定的百分比阈值进行目标文字的确定,例如,将第二数量的非完整文字中,大于预先设定的百分比阈值的文字作为目标文字一部分,将小于等于预先设定的百分比阈值的文字舍弃,例如该百分比阈值可以是80%。这样,就可以确定由坐标范围确定的目标文字,将目标文字作为待搜索文字。Exemplarily, a display area is determined according to the coordinate range, and the text in the display area is identified as the target text. In the actual application process, the display area may include the first quantity of complete text and the second quantity of incomplete text. The incomplete text mentioned here means that part of this type of text is in the display area, and the other part is in the display area. Outside the display area, at this time, determine the target text according to the preset percentage threshold. For example, among the second number of incomplete characters, the text that is greater than the preset percentage threshold is used as a part of the target text, and the text that is less than Words equal to a preset percentage threshold are discarded, for example, the percentage threshold may be 80%. In this way, the target text determined by the coordinate range can be determined, and the target text is used as the text to be searched.

可选的,所述获取取词操作之前,本申请的技术方案还可以包括:将当前显示页面转化成包括当前显示页面显示信息的图片;相应的,根据所述取词操作识别当前显示页面中的目标文字具体可以通过如下方式实现:根据所述取词操作,应用光学字符识别来识别图片形式的当前显示页面中的目标文字。Optionally, before the word extraction operation, the technical solution of the present application may further include: converting the currently displayed page into a picture including display information of the currently displayed page; correspondingly, identifying the current display page according to the word extraction operation Specifically, the target text can be realized in the following manner: according to the word extraction operation, optical character recognition is applied to recognize the target text in the currently displayed page in the form of a picture.

其中,在本申请实施例中,在获取取词操作之间,还可以将当前显示页面转化成包括当前显示页面显示信息的图片,而该过程可以由学习平板的后台服务去截取单页页面图片,而这个过程可是不在用户视觉上体现,这样,不会造成闪烁或卡顿问题,提高了用户体验。此时,根据取词操作,应用光学字符识别来识别图片形式的当前显示页面中的目标文字。Wherein, in the embodiment of the present application, the current display page can also be converted into a picture including the display information of the current display page between the operation of acquiring words, and this process can be intercepted by the background service of the learning tablet to capture the picture of a single page , and this process is not reflected in the user's vision, so that it will not cause flickering or freezing problems, which improves the user experience. At this time, according to the word extraction operation, the optical character recognition is applied to recognize the target text in the currently displayed page in the form of a picture.

光学字符识别,又称为OCR(Optical Character Recognition,光学字符识别),是指电子设备,例如扫描仪或数码相机,检查纸上打印的字符,通过检测暗、亮的模式确定其形状,然后用字符识别方法将形状翻译成计算机文字的过程。本申请实施例中,应用OCR识别方法,可以提高识别准确率,进而提高目标文字确定的准确率,进而提高搜索的准确率。Optical character recognition, also known as OCR (Optical Character Recognition, optical character recognition), refers to electronic devices, such as scanners or digital cameras, that check characters printed on paper, determine their shape by detecting dark and bright patterns, and then use Character recognition methods are the process by which shapes are translated into computer text. In the embodiment of the present application, the application of the OCR recognition method can improve the accuracy of recognition, further improve the accuracy of target text determination, and further improve the accuracy of search.

S205、判断所述目标文字的类型,将所述目标文字发送至与所述类型对应的预设字词库进行搜索。S205. Determine the type of the target text, and send the target text to a preset word library corresponding to the type for searching.

具体的,为了减少搜索量,以及,提高搜索效率和准确率,在进行搜索之前,首先判断目标文字的类型,其中,目标文字的类型可以是中文或者英文,如果目标文字的类型为中文,则将目标文字发送至中文预设字词库进行搜索,以获取与该中文的目标文字对应的搜索结果;如果目标文字的类型为英文,则将目标文字发送至该英文的目标文字对应的搜索结果。需要说明的是,这里的中文和英文只是用来举例,并不形成具体的限定,例如还可以是法文,也即,只要服务器中预先建立并存储了某个语言类型的字词库,则可以在实际的应用过程中实现对该类型的目标文字的搜索。Specifically, in order to reduce the amount of searches and improve search efficiency and accuracy, before performing a search, first determine the type of the target text, wherein the type of the target text can be Chinese or English, if the type of the target text is Chinese, then Send the target text to the Chinese preset word library for searching to obtain the search results corresponding to the Chinese target text; if the type of the target text is English, send the target text to the search results corresponding to the English target text . It should be noted that the Chinese and English here are just examples and do not form specific limitations. For example, it can also be French, that is, as long as the server has pre-established and stored a word library of a certain language type, it can be In the actual application process, the search for this type of target text is realized.

在一个具体的例子中,图3示出了一种屏幕取词搜索时的界面显示图,由于搜索图标为下拉通知栏后出现的,因此,图3中并未示出搜索图标。另外,图3中,“识屏查词”是表明当前显示页面的状态为查词状态,而不是阅读状态;“请点击单词/字词查看释义”为提醒用户及时进行查询;“提交”按钮供用户在取词结束后进行点击,点击了“提交”按钮,学习平板的后台服务开始进行搜索。In a specific example, FIG. 3 shows an interface display diagram of an on-screen word search. Since the search icon appears after pulling down the notification bar, the search icon is not shown in FIG. 3 . In addition, in Figure 3, "recognition screen search word" indicates that the status of the currently displayed page is the word search state, not the reading state; "Please click the word/word to view the definition" is to remind the user to query in time; the "Submit" button For the user to click after the end of word retrieval, and click the "Submit" button, and the background service of the learning tablet starts to search.

2061、展示搜索结果。2061. Display search results.

示例性的,搜索结果可以展示在整个显示页面,也可以展示在某个设定的区域,这样可以不遮挡原阅读文字,用户可以在同一个显示页面中查看目标文字以及搜索结果,更具有实用性,方便用户进行学习。Exemplarily, the search results can be displayed on the entire display page, or in a certain set area, so that the original reading text can not be blocked, and the user can view the target text and search results on the same display page, which is more practical It is convenient for users to learn.

可选的,所述展示搜索结果包括:展示所述目标文字对应的搜索结果,以及,所述目标文字在当前显示页面中预设区域范围内的相关文字供用户进行选择搜索。Optionally, the displaying the search results includes: displaying the search results corresponding to the target text, and providing related texts within the preset range of the target text on the currently displayed page for the user to select and search.

图4示出了一种屏幕取词搜索结果的界面显示图,参考图4,这个例子中的目标文字为“也”,则搜索结果中包括了其音序、笔顺、拼读、部首、笔画、去部首笔画等拼读信息,还包括了释义、近义词、反义词、组词、书写、造句和易混易错等信息。由于显示页面有限,还可以在一个显示页面中只显示一个条目的搜索结果,通过点击操作实时切换至另一个条目,例如,图4中未显示“组词”条目的搜索结果,如果用户有需求,可以进行实时切换。这样可以比较全面的将目标文字的相关信息展示给用户。另外,如果目标文字是英文,则搜索结果可以是发音、释义和例句等。Fig. 4 shows an interface display diagram of a screen word search result. With reference to Fig. 4, the target text in this example is "also", and the search result includes its sequence, stroke order, spelling, radicals, The spelling information such as strokes and strokes without radicals also includes information such as interpretation, synonyms, antonyms, word formation, writing, sentence formation, and confusion and error. Due to the limited display pages, it is also possible to only display the search results of one item in a display page, and switch to another item in real time by clicking. For example, the search results of the "group word" item are not displayed in Figure 4. , real-time switching is possible. In this way, the relevant information of the target text can be presented to the user in a relatively comprehensive manner. In addition, if the target text is English, the search results can be pronunciation, paraphrase, example sentences, etc.

另外,为了方便用户操作,所述结果还可以包括目标文字在当前显示页面中预设区域范围内的相关文字。具体的,仍以图4进行举例,当用户搜索“也”字的释义等信息后,有可能还想要搜索上下文语境中的其他目标文字的释义等,此时,根据“也”的当前显示页面中的坐标范围确定一个预设区域范围,例如可以是减小“也”的横坐标一定大小获取第一横坐标,增加“也”的横坐标一定大小获得第二横坐标,通过第一横坐标和第二横坐标来确定预设区域范围,这个过程中默认纵坐标不变,也即,为“也”的纵坐标范围,这里只是用来举例。另外,减小的横坐标大小和增加的横坐标大小可以相同也可以不同,这里不进行限定。In addition, for the convenience of the user's operation, the result may also include related text within the preset area range of the target text on the currently displayed page. Specifically, still take Figure 4 as an example, when the user searches for information such as the interpretation of the word "also", it is possible to also want to search for the interpretation of other target words in the context, at this time, according to the current The coordinate range in the display page determines a preset area range. For example, the first horizontal coordinate can be obtained by reducing the horizontal coordinate of "Ye" to a certain size, and the second horizontal coordinate can be obtained by increasing the horizontal coordinate of "Ye" to a certain size. Through the first The abscissa and the second abscissa are used to determine the range of the preset area. In this process, the default ordinate remains unchanged, that is, the range of the ordinate is "also", which is only used as an example here. In addition, the size of the reduced abscissa and the size of the increased abscissa may be the same or different, which is not limited here.

在这个具体的例子中,该预设区域范围内的相关文字包括“后”、“他们”、“变得”和“又”。在这个例子中,这些相关文字显示在屏幕上方。这样就实现了基于当前显示页面进行多个不认识的生字词的查询,例如多个单词或短语。另外,还可以在搜索结果中展示“有帮助”和“没帮助”图标,这样,学习平板的后台服务可以及时获取并统计搜索结果,以便对各个搜索结果进行分析,进而更新预设字词库,从而为用户提供更好的取词搜索服务。In this specific example, the relevant words within the preset area include "after", "they", "become" and "again". In this example, these relevant texts are displayed at the top of the screen. In this way, it is possible to query multiple unknown new words based on the currently displayed page, such as multiple words or phrases. In addition, "helpful" and "not helpful" icons can also be displayed in the search results, so that the background service of the learning tablet can obtain and count the search results in time, so as to analyze each search result, and then update the preset word library , so as to provide users with better word search services.

S2062、若所述预设字词库中不存在与所述目标文字,则展示搜索无结果的提示信息。S2062. If the target text does not exist in the preset word library, display a prompt message indicating that there is no search result.

具体的,如果在预设字词库中搜索不到与目标文字匹配的释义等信息,表明该预设字词库中没有收录该目标文字的释义等信息,此时,可以及时将该信息反馈给用户,以便用户及时通过其他方式或途径进行搜索。例如,可以将搜索无结果的提示信息显示在学习平板上,还可以是将搜索无结果的提示信息以语音的形式播报给用户。Specifically, if no information such as the definition matching the target text can be found in the preset word library, it indicates that the information such as the definition of the target text is not included in the default word library. At this time, the information can be fed back in time To the user, so that the user can search in other ways or ways in a timely manner. For example, the prompt information of no search results may be displayed on the learning tablet, or the prompt information of no search results may be broadcast to the user in the form of voice.

本申请实施例中,根据所述取词操作计算所述取词操作在当前显示页面的坐标范围;识别所述坐标对应显示区域的文字作为当前显示页面中的目标文字;这样确定的目标文字的准确率高,避免了目标文字识别错误导致的搜索错误。判断所述目标文字的类型,将所述目标文字发送至与所述类型对应的预设字词库进行搜索,有针对性的进行搜索,节约了搜索量,提高了搜索效率。展示搜索结果;若所述预设字词库中不存在与所述目标文字,则展示搜索无结果的提示信息,即使没有搜索到对应的释义等信息,也及时将搜索无结果的信息反馈给用户,提高了用户体验。In the embodiment of the present application, the coordinate range of the word fetching operation on the current display page is calculated according to the word fetching operation; the text in the display area corresponding to the coordinates is identified as the target text in the current display page; the target text determined in this way The accuracy rate is high, and search errors caused by target text recognition errors are avoided. The type of the target text is judged, and the target text is sent to a preset word library corresponding to the type for searching, and the search is carried out in a targeted manner, which saves search volume and improves search efficiency. Display the search results; if the target text does not exist in the preset word bank, then display the prompt information of no search results, even if no corresponding interpretation and other information are searched, the information of no search results will be fed back to users, improving the user experience.

在上述实施例的基础上,图5为本申请实施例提供的一种屏幕取词搜索装置的结构示意图。参考图5,本实施例提供的屏幕取词搜索装置具体包括:图标展示模块501、搜索功能开启模块502、目标文字识别模块503和搜索模块504。On the basis of the above-mentioned embodiments, FIG. 5 is a schematic structural diagram of a search device for extracting words from a screen according to an embodiment of the present application. Referring to FIG. 5 , the screen word search device provided in this embodiment specifically includes: an icon display module 501 , a search function enabling module 502 , a target text recognition module 503 and a search module 504 .

其中,图标展示模块501,用于检测到搜索操作时,向用户展示搜索图标;搜索功能开启模块502,用于响应针对所述搜索图标的点击操作,以开启搜索功能;目标文字识别模块503,用于获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;搜索模块504,用于将所述目标文字发送至预设字词库中进行搜索。Wherein, the icon display module 501 is used to display the search icon to the user when a search operation is detected; the search function opening module 502 is used to respond to the click operation on the search icon to open the search function; the target text recognition module 503, Used to obtain the word extraction operation, and identify the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word; the search module 504 is used to send the target text to a preset word Search the library.

本发明采用的技术方案中有如下有益效果:在检测到搜索操作时,向用户展示搜索图标;响应针对所述搜索图标的点击操作,以开启搜索功能,这样通过点击搜索图标快速启动搜索功能而不影响当前应用,操作方便;获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;将所述目标文字发送至预设字词库中进行搜索,这样,避免了多次退出当前应用和搜索应用以及通过键盘输入的方式或者通过复制粘贴的方式输入要搜索的文字带来的操作繁琐的问题,提高了查询效率和查询准确率。The technical solution adopted by the present invention has the following beneficial effects: when a search operation is detected, the search icon is displayed to the user; the search function is activated in response to the click operation on the search icon, so that the search function can be started quickly by clicking the search icon. Does not affect the current application, easy to operate; obtain the word extraction operation, identify the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word; send the target text to a preset word In this way, it avoids the cumbersome operation caused by exiting the current application and search application multiple times and inputting the text to be searched through the keyboard or copying and pasting, and improves the query efficiency and accuracy. .

进一步的,还包括搜索结果展示模块,用于将所述目标文字发送至预设字词库中进行搜索之后,展示搜索结果。Further, it also includes a search result display module, which is used to display the search results after sending the target text to the preset word library for searching.

进一步的,搜索结果展示模块具体用于:Further, the search result display module is specifically used for:

展示所述目标文字对应的搜索结果,以及,所述目标文字在当前显示页面中预设区域范围内的相关文字供用户进行选择搜索。The search results corresponding to the target text are displayed, and the relevant text of the target text within the preset area range on the currently displayed page is provided for the user to select and search.

进一步的,搜索模块504具体用于:Further, the search module 504 is specifically used for:

判断所述目标文字的类型,将所述目标文字发送至与所述类型对应的预设字词库进行搜索。The type of the target text is judged, and the target text is sent to a preset word library corresponding to the type for searching.

进一步的,还包括转换模块,用于在获取取词操作之前,将当前显示页面转化成包括当前显示页面显示信息的图片;Further, it also includes a conversion module, which is used to convert the current display page into a picture including display information of the current display page before obtaining the word extraction operation;

相应的,目标文字识别模块503具体用于:Correspondingly, the target text recognition module 503 is specifically used for:

根据所述取词操作,应用光学字符识别来识别图片形式的当前显示页面中的目标文字。According to the word extraction operation, the optical character recognition is applied to recognize the target text in the currently displayed page in the form of a picture.

进一步的,还包括信息提示模块,用于将所述目标文字发送至预设字词库中进行搜索之后,若所述预设字词库中不存在与所述目标文字,则展示搜索无结果的提示信息。Further, it also includes an information prompt module, which is used to send the target text to the preset word library for searching, if the target text does not exist in the preset word library, it will display that there is no search result prompt information.

进一步的,目标文字识别模块503具体用于:Further, the target text recognition module 503 is specifically used for:

根据所述取词操作计算所述取词操作在当前显示页面的坐标范围;Calculate the coordinate range of the word fetching operation on the currently displayed page according to the word fetching operation;

识别所述坐标对应显示区域的文字作为当前显示页面中的目标文字。Identifying the text in the display area corresponding to the coordinates as the target text in the currently displayed page.

本申请实施例提供的屏幕取词搜索装置可以用于执行上述实施例提供的屏幕取词搜索方法,具备相应的功能和有益效果。The screen word search device provided in the embodiment of the present application can be used to execute the screen word search method provided in the above embodiments, and has corresponding functions and beneficial effects.

本申请实施例提供了一种电子设备,且该电子设备中可集成本申请实施例提供的装置。图6是本申请实施例提供的一种电子设备的结构示意图。参考图6,该电子设备包括:处理器60、存储器61。该电子设备中处理器60的数量可以是一个或者多个,图6中以一个处理器60为例。该电子设备中存储器61的数量可以是一个或者多个,图6中以一个存储器61为例。该电子设备的处理器60和存储器61可以通过总线或者其他方式连接,图6中以通过总线连接为例。The embodiment of the present application provides an electronic device, and the device provided in the embodiment of the present application can be integrated into the electronic device. FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Referring to FIG. 6 , the electronic device includes: a processor 60 and a memory 61 . The number of processors 60 in the electronic device may be one or more, and one processor 60 is taken as an example in FIG. 6 . The number of memory 61 in the electronic device may be one or more, and one memory 61 is taken as an example in FIG. 6 . The processor 60 and memory 61 of the electronic device may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 6 .

存储器61作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的屏幕取词搜索方法对应的程序指令/模块(例如,屏幕取词搜索装置中的图标展示模块501、搜索功能开启模块502、目标文字识别模块503和搜索模块504)。存储器61可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器61可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器61可进一步包括相对于处理器60远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 61, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as the program instructions/modules corresponding to the screen capture word search method described in any embodiment of the present application (for example, screen capture word Icon display module 501, search function enabling module 502, target text recognition module 503 and search module 504) in the search device. The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the electronic device, and the like. In addition, the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 61 may further include a memory that is remotely located relative to the processor 60, and these remote memories may be connected to the electronic device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

处理器60通过运行存储在存储器61中的软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述的屏幕取词搜索方法,该屏幕取词搜索方法包括:检测到搜索操作时,向用户展示搜索图标;响应针对所述搜索图标的点击操作,以开启搜索功能;获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;将所述目标文字发送至预设字词库中进行搜索。The processor 60 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 61, that is, realizes the above-mentioned screen word search method, the screen word search method includes: detecting When the search operation is reached, the search icon is displayed to the user; the search function is opened in response to the click operation on the search icon; the word extraction operation is obtained, and the target text in the currently displayed page is identified according to the word extraction operation; wherein, the The target text includes single characters or phrases; the target text is sent to a preset word library for searching.

上述提供的电子设备可用于执行上述实施例提供的屏幕取词搜索方法,具备相应的功能和有益效果。The electronic device provided above can be used to execute the screen word search method provided in the above embodiment, and has corresponding functions and beneficial effects.

本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种屏幕取词搜索方法,该屏幕取词搜索方法包括:检测到搜索操作时,向用户展示搜索图标;响应针对所述搜索图标的点击操作,以开启搜索功能;获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;将所述目标文字发送至预设字词库中进行搜索。The embodiment of the present application also provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to execute a screen word search method, the screen word search method includes: detecting When the search operation is reached, the search icon is displayed to the user; the search function is opened in response to the click operation on the search icon; the word extraction operation is obtained, and the target text in the currently displayed page is identified according to the word extraction operation; wherein, the The target text includes single characters or phrases; the target text is sent to a preset word library for searching.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的屏幕取词搜索方法,还可以执行本申请任意实施例所提供的屏幕取词搜索方法中的相关操作。Certainly, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the above-mentioned method of searching for words from the screen, and may also execute the screen capture method provided in any embodiment of the present application. Related operations in the word search method.

上述实施例中提供的屏幕取词搜索装置、存储介质及电子设备可执行本申请任意实施例所提供的屏幕取词搜索方法,未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的屏幕取词搜索方法。The screen word search device, storage medium and electronic equipment provided in the above embodiments can execute the screen word search method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to any The embodiment provides a search method for extracting words from a screen.

注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.

Claims (10)

1.一种屏幕取词搜索方法,其特征在于,包括:1. A screen fetching word search method is characterized in that, comprising: 检测到搜索操作时,向用户展示搜索图标;When a search operation is detected, display the search icon to the user; 响应针对所述搜索图标的点击操作,以开启搜索功能;Responding to a click operation on the search icon to enable a search function; 获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;Obtain the word extraction operation, and identify the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word; 将所述目标文字发送至预设字词库中进行搜索。Send the target text to a preset word bank for searching. 2.根据权利要求1所述的方法,其特征在于,所述将所述目标文字发送至预设字词库中进行搜索之后,包括:2. The method according to claim 1, characterized in that, after sending the target text to a preset word library for searching, it includes: 展示搜索结果。Show search results. 3.根据权利要求2所述的方法,其特征在于,所述展示搜索结果包括:3. The method according to claim 2, wherein said displaying search results comprises: 展示所述目标文字对应的搜索结果,以及,所述目标文字在当前显示页面中预设区域范围内的相关文字供用户进行选择搜索。The search results corresponding to the target text are displayed, and the relevant text of the target text within the preset area range on the currently displayed page is provided for the user to select and search. 4.根据权利要求1所述的方法,其特征在于,所述将所述目标文字发送至预设字词库中进行搜索,包括:4. The method according to claim 1, wherein the sending the target text to a preset word library for searching includes: 判断所述目标文字的类型,将所述目标文字发送至与所述类型对应的预设字词库进行搜索。The type of the target text is judged, and the target text is sent to a preset word library corresponding to the type for searching. 5.根据权利要求1所述的方法,其特征在于,所述获取取词操作之前,还包括:将当前显示页面转化成包括当前显示页面显示信息的图片;5. The method according to claim 1, further comprising: converting the currently displayed page into a picture including the display information of the currently displayed page before the acquisition of the word extraction operation; 相应的,根据所述取词操作识别当前显示页面中的目标文字包括:Correspondingly, identifying the target text in the currently displayed page according to the word fetching operation includes: 根据所述取词操作,应用光学字符识别来识别图片形式的当前显示页面中的目标文字。According to the word extraction operation, the optical character recognition is applied to recognize the target text in the currently displayed page in the form of a picture. 6.根据权利要求1所述的方法,其特征在于,所述将所述目标文字发送至预设字词库中进行搜索之后,还包括:6. The method according to claim 1, characterized in that, after sending the target text to a preset word bank for searching, further comprising: 若所述预设字词库中不存在与所述目标文字,则展示搜索无结果的提示信息。If the target text does not exist in the preset word library, a prompt message showing no search results is displayed. 7.根据权利要求1所述的方法,其特征在于,所述据所述取词操作识别当前显示页面中的目标文字,包括:7. The method according to claim 1, wherein the identifying the target text in the currently displayed page according to the word extraction operation includes: 根据所述取词操作计算所述取词操作在当前显示页面的坐标范围;Calculate the coordinate range of the word fetching operation on the currently displayed page according to the word fetching operation; 识别所述坐标对应显示区域的文字作为当前显示页面中的目标文字。Identifying the text in the display area corresponding to the coordinates as the target text in the currently displayed page. 8.一种屏幕取词搜索装置,其特征在于,包括:8. A screen fetching word search device, characterized in that, comprising: 图标展示模块,用于检测到搜索操作时,向用户展示搜索图标;An icon display module, configured to display a search icon to the user when a search operation is detected; 搜索功能开启模块,用于响应针对所述搜索图标的点击操作,以开启搜索功能;A search function enabling module, configured to respond to a click operation on the search icon to enable the search function; 目标文字识别模块,用于获取取词操作,根据所述取词操作识别当前显示页面中的目标文字;其中,所述目标文字包括单字或词语;The target text recognition module is used to obtain the word extraction operation, and recognizes the target text in the currently displayed page according to the word extraction operation; wherein, the target text includes a single word or a word; 搜索模块,用于将所述目标文字发送至预设字词库中进行搜索。The search module is used to send the target text to a preset word library for searching. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that it comprises: 存储器以及一个或多个处理器;memory and one or more processors; 所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs; 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7任一所述的屏幕取词搜索方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for searching words from a screen according to any one of claims 1-7. 10.一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7任一所述的屏幕取词搜索方法。10. A storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the screen word search method according to any one of claims 1-7 when executed by a computer processor.
CN201910747787.0A 2019-08-14 2019-08-14 Screen word-selecting searching method, device, electronic equipment and storage medium Pending CN110471599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910747787.0A CN110471599A (en) 2019-08-14 2019-08-14 Screen word-selecting searching method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910747787.0A CN110471599A (en) 2019-08-14 2019-08-14 Screen word-selecting searching method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110471599A true CN110471599A (en) 2019-11-19

Family

ID=68510691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910747787.0A Pending CN110471599A (en) 2019-08-14 2019-08-14 Screen word-selecting searching method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110471599A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107422A (en) * 2019-12-26 2020-05-05 腾讯科技(深圳)有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN111597325A (en) * 2020-05-20 2020-08-28 北京搜狗科技发展有限公司 Text query method and device
CN112764600A (en) * 2020-08-13 2021-05-07 腾讯科技(深圳)有限公司 Resource processing method, device, storage medium and computer equipment
CN112861504A (en) * 2021-02-08 2021-05-28 北京百度网讯科技有限公司 Text interaction method, device, equipment, storage medium and program product
CN113158060A (en) * 2021-05-07 2021-07-23 广州三星通信技术研究有限公司 Method and device for providing recommended service information
CN113361518A (en) * 2021-06-29 2021-09-07 读书郎教育科技有限公司 Method and device for quickly fetching words and searching
CN113552977A (en) * 2020-04-23 2021-10-26 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN113641816A (en) * 2021-08-20 2021-11-12 安徽淘云科技股份有限公司 An information display method, device, storage medium and device
CN113762924A (en) * 2021-09-06 2021-12-07 威渡科技(北京)有限公司 Job information processing method, apparatus, electronic device, and storage medium
CN114282494A (en) * 2021-12-02 2022-04-05 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium
CN115243062A (en) * 2022-06-16 2022-10-25 科大讯飞股份有限公司 Scene display method and device, screen display equipment, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959674A (en) * 2006-11-09 2007-05-09 华为技术有限公司 Network search method, network search device, and user terminals
CN101145153A (en) * 2006-09-13 2008-03-19 阿里巴巴公司 Method and system for searching information
CN101388007A (en) * 2007-09-14 2009-03-18 英业达股份有限公司 Computer executable language translation system and method thereof
US20100185622A1 (en) * 2005-10-19 2010-07-22 Mcafee, Inc. Attributes of Captured Objects in a Capture System
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
US20120317133A1 (en) * 2011-06-09 2012-12-13 International Business Machines Corporation Task context recovery
CN102929926A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Word-taking search method and device based on browsed contents
CN105138519A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Lexical translation method and device
CN107066497A (en) * 2016-12-29 2017-08-18 努比亚技术有限公司 A kind of searching method and device
CN108874283A (en) * 2018-05-29 2018-11-23 努比亚技术有限公司 Image identification method, mobile terminal and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100185622A1 (en) * 2005-10-19 2010-07-22 Mcafee, Inc. Attributes of Captured Objects in a Capture System
CN101145153A (en) * 2006-09-13 2008-03-19 阿里巴巴公司 Method and system for searching information
CN1959674A (en) * 2006-11-09 2007-05-09 华为技术有限公司 Network search method, network search device, and user terminals
CN101388007A (en) * 2007-09-14 2009-03-18 英业达股份有限公司 Computer executable language translation system and method thereof
US20120317133A1 (en) * 2011-06-09 2012-12-13 International Business Machines Corporation Task context recovery
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN102929926A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Word-taking search method and device based on browsed contents
CN105138519A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Lexical translation method and device
CN107066497A (en) * 2016-12-29 2017-08-18 努比亚技术有限公司 A kind of searching method and device
CN108874283A (en) * 2018-05-29 2018-11-23 努比亚技术有限公司 Image identification method, mobile terminal and computer readable storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107422A (en) * 2019-12-26 2020-05-05 腾讯科技(深圳)有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN113552977A (en) * 2020-04-23 2021-10-26 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN111597325A (en) * 2020-05-20 2020-08-28 北京搜狗科技发展有限公司 Text query method and device
CN111597325B (en) * 2020-05-20 2023-11-10 北京搜狗科技发展有限公司 Text query method and device
CN112764600A (en) * 2020-08-13 2021-05-07 腾讯科技(深圳)有限公司 Resource processing method, device, storage medium and computer equipment
CN112861504A (en) * 2021-02-08 2021-05-28 北京百度网讯科技有限公司 Text interaction method, device, equipment, storage medium and program product
CN113158060A (en) * 2021-05-07 2021-07-23 广州三星通信技术研究有限公司 Method and device for providing recommended service information
CN113361518A (en) * 2021-06-29 2021-09-07 读书郎教育科技有限公司 Method and device for quickly fetching words and searching
CN113641816A (en) * 2021-08-20 2021-11-12 安徽淘云科技股份有限公司 An information display method, device, storage medium and device
CN113762924A (en) * 2021-09-06 2021-12-07 威渡科技(北京)有限公司 Job information processing method, apparatus, electronic device, and storage medium
CN114282494A (en) * 2021-12-02 2022-04-05 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium
CN114282494B (en) * 2021-12-02 2024-12-31 北京达佳互联信息技术有限公司 Information display method, device, electronic device and storage medium
CN115243062A (en) * 2022-06-16 2022-10-25 科大讯飞股份有限公司 Scene display method and device, screen display equipment, electronic equipment and storage medium
CN115243062B (en) * 2022-06-16 2024-06-07 科大讯飞股份有限公司 Scene display method and device, screen display device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN110471599A (en) Screen word-selecting searching method, device, electronic equipment and storage medium
US10114809B2 (en) Method and apparatus for phonetically annotating text
CN107391505B (en) Image processing method and system
CN111680490B (en) A cross-modal document processing method, device and electronic device
US10146318B2 (en) Techniques for using gesture recognition to effectuate character selection
CN112085090B (en) Translation method and device and electronic equipment
CN107436691B (en) Method, client, server and device for correcting errors of input method
CN107885430B (en) Audio playing method and device, storage medium and electronic equipment
CN104253904A (en) Method for realizing point-reading learning and smart phone
CN105760359B (en) Question processing system and method thereof
CN113743102B (en) Method and device for recognizing characters and electronic equipment
CN112700769A (en) Semantic understanding method, device, equipment and computer readable storage medium
CN101561725B (en) Method and system of fast handwriting input
CN113268981B (en) Information processing method and device and electronic equipment
CN109192198B (en) A text input method based on sound wave perception
CN107239209B (en) Photographing search method, device, terminal and storage medium
CN110489746A (en) A kind of information extracting method, information extracting device and intelligent terminal
CN106855854A (en) A kind of recognition methods of english information and device
CN106354752A (en) Character searching method and device and electronic equipment
CN113641816B (en) Information display method, device, storage medium and equipment
TWI782436B (en) Display system and method of interacting with the same
CN109871195B (en) Control method and device capable of voice input and recognition
CN109255131B (en) Translation method, device, terminal and storage medium
CN111913563B (en) A human-computer interaction method and device based on semi-supervised learning
CN114357112A (en) Document efficacy display method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication