CN105975552B - Question searching method and device of intelligent equipment - Google Patents

Question searching method and device of intelligent equipment Download PDF

Info

Publication number
CN105975552B
CN105975552B CN201610284975.0A CN201610284975A CN105975552B CN 105975552 B CN105975552 B CN 105975552B CN 201610284975 A CN201610284975 A CN 201610284975A CN 105975552 B CN105975552 B CN 105975552B
Authority
CN
China
Prior art keywords
cursor
picture
content
pattern
searching
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
Application number
CN201610284975.0A
Other languages
Chinese (zh)
Other versions
CN105975552A (en
Inventor
郭贤亮
黄东
李先兵
金志江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong 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 CN201610284975.0A priority Critical patent/CN105975552B/en
Publication of CN105975552A publication Critical patent/CN105975552A/en
Application granted granted Critical
Publication of CN105975552B publication Critical patent/CN105975552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0425Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means using a single imaging device like a video camera for tracking the absolute position of a single or a plurality of objects with respect to an imaged reference surface, e.g. video camera imaging a display or a projection screen, a table or a wall surface, on which a computer generated image is displayed or projected
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/414Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种智能设备的题目搜索方法,所述方法包括:开启光标显示,在摄像头获取的画面中显示光标;检测所述光标是否在所述画面中处于静止状态;如果所述光标在所述画面中处于静止状态,则根据所述光标的位置查找所述画面中的题目内容;识别所查找的所述画面中的题目内容,根据识别的题目内容搜索。本发明在打开光标显示对准题目后,即可自动进行搜索,大大的简化了用户操作的便利性,有利于提高题目搜索的效率。

Figure 201610284975

The present invention provides a method for searching questions on a smart device, the method comprising: turning on cursor display, displaying a cursor in a picture captured by a camera; detecting whether the cursor is in a stationary state in the picture; if the cursor is in a stationary state in the picture, searching for question content in the picture according to the position of the cursor; identifying the question content in the picture to be searched, and searching according to the identified question content. After turning on the cursor display and aligning the question, the present invention can automatically search, which greatly simplifies the convenience of user operation and is conducive to improving the efficiency of question search.

Figure 201610284975

Description

一种智能设备的题目搜索方法和装置Method and device for topic search for intelligent equipment

技术领域technical field

本发明属于学习机领域,尤其涉及一种智能设备的题目搜索方法和装置。The invention belongs to the field of learning machines, and in particular relates to a topic search method and device for intelligent equipment.

背景技术Background technique

学习机是一种辅助用户进行学习的电子产品。学习机中通常存储有大量的学习资源。学习机通过将学习资源按照一定的交互模式,通过显示屏或者扬声器输出,从而能够较好的帮助用户理解或者掌握学习内容。A learning machine is an electronic product that assists users in learning. A large number of learning resources are usually stored in the learning machine. The learning machine can better help users understand or master the learning content by outputting learning resources through a display screen or a speaker according to a certain interactive mode.

为了帮助用户提高做题效率,目前的学习机通常会有搜索功能。通过学习机的摄像头拍摄包括题目内容的画面后,对画面中的题目内容进行识别,根据识别的内容,在资源库中搜索与所述题目内容相同,或者相似的题目,并显示题目的解答方案和答案。In order to help users improve the efficiency of answering questions, current learning machines usually have a search function. After shooting the picture including the question content through the camera of the learning machine, identify the question content in the picture, according to the identified content, search the resource library for questions that are the same or similar to the question content, and display the solution to the question and answers.

但是,目前的学习机在进行题目搜索时,通常需要先打开搜题的APP应用程序,然后打开照相机,对题目进行对焦后手动拍照后,对照片中的题目内容进行识别,这种搜索方式操作较为麻烦,搜索效率较低。However, when the current learning machine searches for a question, it usually needs to open the APP for searching questions first, then open the camera, focus on the question and take a photo manually, and then identify the content of the question in the photo. This search method operates It is more troublesome and the search efficiency is low.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种智能设备的题目搜索方法,以解决现有技术进行题目搜索时,操作较为麻烦,搜索效率较低的问题。The purpose of the present invention is to provide a topic search method for an intelligent device, so as to solve the problems of troublesome operation and low search efficiency when performing topic search in the prior art.

第一方面,本发明实施例提供了一种智能设备的题目搜索方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for searching a topic of a smart device, the method comprising:

开启光标显示,在摄像头获取的画面中显示光标;Turn on the cursor display, and display the cursor in the screen captured by the camera;

检测所述光标是否在所述画面中处于静止状态;detecting whether the cursor is in a static state in the picture;

如果所述光标在所述画面中处于静止状态,则根据所述光标的位置查找所述画面中的题目内容;If the cursor is in a static state in the picture, searching for the title content in the picture according to the position of the cursor;

识别所查找的所述画面中的题目内容,根据识别的题目内容搜索。Identify the subject content in the screen that is found, and search according to the identified subject content.

结合第一方面,在第一方面的第一种可能实现方式中,所述在摄像头获取的画面中显示光标步骤具体为:With reference to the first aspect, in a first possible implementation manner of the first aspect, the step of displaying the cursor in the picture acquired by the camera is specifically:

在摄像头获取的画面中显示第一光标图案,所述第一光标图案包括光标中心图案和与所述中心图案相邻的光标的边框图案;Displaying a first cursor pattern in the picture acquired by the camera, where the first cursor pattern includes a cursor center pattern and a border pattern of a cursor adjacent to the center pattern;

所述如果所述光标在所述画面中处于静止状态,则根据所述光标的位置查找所述画面中的题目内容步骤包括:If the cursor is in a static state in the picture, the step of searching for the topic content in the picture according to the position of the cursor includes:

如果所述光标在所述画面中处于静止状态,则根据所述光标的中心图案确定题目内容的位置;If the cursor is in a static state in the picture, then determine the position of the topic content according to the center pattern of the cursor;

根据画面查找所述题目内容的边界,并在所述题目内容的边界的位置显示所述光标的边框图案。The boundary of the title content is searched according to the screen, and the border pattern of the cursor is displayed at the position of the boundary of the title content.

结合第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述光标中心图案为十字光标图案,所述光标的边框图案为四角边框图案。With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the cursor center pattern is a cross cursor pattern, and the cursor border pattern is a four-corner border pattern.

结合第一方面的第一种可能实现方式,在第一方面的第三种可能实现方式中,所述根据画面查找所述题目内容的边界步骤包括:With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the step of searching for the boundary of the topic content according to the screen includes:

根据所述画面内容中包括的换行标识符查找所述题目内容的边界;Find the boundary of the title content according to the line feed identifier included in the screen content;

或者,获取所述画面内容中包括的文字的行距,当行距大于画面中的预设的行距值时,判断当前位置为题目的边界。Or, the line spacing of the text included in the screen content is acquired, and when the line spacing is greater than a preset line spacing value in the screen, it is determined that the current position is the boundary of the topic.

结合第一方面,在第一方面的第四种可能实现方式中,所述检测所述光标是否在所述画面中处于静止状态步骤包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the step of detecting whether the cursor is in a static state in the screen includes:

检测所述摄像头获取的画面是否发生变化,以及检测所述光标是否接收到移动指令。It is detected whether the picture acquired by the camera has changed, and whether the cursor has received a movement instruction.

第二方面,本发明实施例提供了一种智能设备的题目搜索装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a topic search apparatus for a smart device, the apparatus comprising:

光标开启显示单元,用于开启光标显示,在摄像头获取的画面中显示光标;The cursor opens the display unit, which is used to open the cursor display and display the cursor in the picture obtained by the camera;

状态检测单元,用于检测所述光标是否在所述画面中处于静止状态;a state detection unit, configured to detect whether the cursor is in a static state in the picture;

内容查找单元,用于如果所述光标在所述画面中处于静止状态,则根据所述光标的位置查找所述画面中的题目内容;a content search unit, configured to search for topic content in the screen according to the position of the cursor if the cursor is in a static state in the screen;

内容识别单元,用于识别所查找的所述画面中的题目内容,根据识别的题目内容搜索。The content identification unit is configured to identify the searched topic content in the screen, and search according to the identified topic content.

结合第二方面,在第二方面的第一种可能实现方式中,所述光标开启显示单元具体用于:With reference to the second aspect, in a first possible implementation manner of the second aspect, the cursor-on display unit is specifically used for:

在摄像头获取的画面中显示第一光标图案,所述第一光标图案包括光标中心图案和与所述中心图案相邻的光标的边框图案;Displaying a first cursor pattern in the picture acquired by the camera, where the first cursor pattern includes a cursor center pattern and a border pattern of a cursor adjacent to the center pattern;

所述内容查找单元包括:The content search unit includes:

位置确定子单元,用于如果所述光标在所述画面中处于静止状态,则根据所述光标的中心图案确定题目内容的位置;a position determination subunit, used for determining the position of the topic content according to the center pattern of the cursor if the cursor is in a static state in the picture;

边界显示子单元,用于根据画面查找所述题目内容的边界,并在所述题目内容的边界的位置显示所述光标的边框图案。The boundary display subunit is used for searching the boundary of the title content according to the screen, and displaying the border pattern of the cursor at the position of the boundary of the title content.

结合第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述光标中心图案为十字光标图案,所述光标的边框图案为四角边框图案。With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the cursor center pattern is a cross cursor pattern, and the cursor border pattern is a four-corner border pattern.

结合第二方面的第一种可能实现方式,在第二方面的第三种可能实现方式中,所述内容查找单元包括:With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the content search unit includes:

第一查找子单元,用于根据所述画面内容中包括的换行标识符查找所述题目内容的边界;a first search subunit, configured to search for the boundary of the title content according to the line feed identifier included in the screen content;

或者,第二查找子单元,用于获取所述画面内容中包括的文字的行距,当行距大于画面中的预设的行距值时,判断当前位置为题目的边界。Alternatively, the second search subunit is configured to obtain the line spacing of the text included in the screen content, and when the line spacing is greater than a preset line spacing value in the screen, determine that the current position is the boundary of the topic.

结合第二方面,在第二方面的第四种可能实现方式中,所述状态检测单元具体用于:With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the state detection unit is specifically configured to:

检测所述摄像头获取的画面是否发生变化,以及检测所述光标是否接收到移动指令。It is detected whether the picture acquired by the camera has changed, and whether the cursor has received a movement instruction.

在本发明中,当用户开启光标显示时,在摄像头获取的画面中显示光标,系统检测所述画面中的光标是否为静止状态,当光标处于静止状态时,则根据光标的位置查找题目内容,并根据识别的题目内容进行搜索,从而使得本发明在打开光标显示对准题目后,即可自动进行搜索,大大的简化了用户操作的便利性,有利于提高题目搜索的效率。In the present invention, when the user turns on the cursor display, the cursor is displayed in the picture obtained by the camera, and the system detects whether the cursor in the picture is in a static state. And search is performed according to the identified topic content, so that the present invention can automatically search after the cursor is turned on to display and align the topic, which greatly simplifies the convenience of user operation and helps to improve the efficiency of topic search.

附图说明Description of drawings

图1是本发明第一实施例提供的智能设备的题目搜索方法的实现流程图;Fig. 1 is the realization flow chart of the topic search method of the smart device provided by the first embodiment of the present invention;

图2是本发明第二实施例提供的智能设备的题目搜索方法的实现流程图;Fig. 2 is the realization flow chart of the topic search method of the smart device provided by the second embodiment of the present invention;

图3是本发明第二实施例提供的光标显示状态示意图;3 is a schematic diagram of a cursor display state provided by a second embodiment of the present invention;

图4为本发明第三实施例提供的智能设备的题目搜索装置的结构示意图。FIG. 4 is a schematic structural diagram of a topic search apparatus for a smart device according to a third embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

本发明实施例的目的在于提供智能设备的题目搜索方法,以解决现有技术中对于题目进行搜索时,操作较为麻烦,搜索效率低下的问题。在现有技术中,使用学习机或者其它学习类设备进行搜索时,需要先打开搜索题目的应用程序,在应用程序打开的状态下,开启摄像头,由摄像头拍摄包括题目内容的画面,然后由文字识别程序对画面中的题目内容进行文字识别,由用户选择需要的题目内容,或者直接将识别结果发送至服务器或者本地题目数据库,并在设备中显示相应的题目结果。为具体描述如何解决上述问题,下面结合附图,对本发明进行具体的说明。The purpose of the embodiments of the present invention is to provide a topic search method for a smart device, so as to solve the problems of complicated operation and low search efficiency when searching for topics in the prior art. In the prior art, when using a learning machine or other learning equipment to search, it is necessary to open an application program to search for a topic first, and when the application program is open, turn on the camera, and the camera shoots a picture including the topic content, and then uses the text The recognition program performs text recognition on the topic content in the screen, and the user selects the required topic content, or directly sends the recognition result to the server or local topic database, and displays the corresponding topic result in the device. In order to specifically describe how to solve the above problems, the present invention will be specifically described below with reference to the accompanying drawings.

实施例一:Example 1:

图1示出了本发明第一实施例提供的智能设备的题目搜索方法的实现流程,详述如下:Fig. 1 shows the realization flow of the topic search method of the smart device provided by the first embodiment of the present invention, which is described in detail as follows:

在步骤S101中,开启光标显示,在摄像头获取的画面中显示光标。In step S101 , the cursor display is turned on, and the cursor is displayed on the screen captured by the camera.

具体的,本发明实施例中所述开启光标显示,可以在学习机等设备中设置硬件开关,通过将硬件开关切换至开启状态,从而可以在学习机的使用过程中快速的切换至题目搜索的状态。Specifically, to enable the cursor display in the embodiment of the present invention, a hardware switch can be set in the learning machine and other equipment, and by switching the hardware switch to the on state, it is possible to quickly switch to the topic search mode during the use of the learning machine. state.

当然,也可以在学习机等设备中设置光标开启按键,用户点击该按键后,学习机等设备可以快速的打开摄像头,显示由摄像头获取的画面,并在所述画面中显示光标。Of course, a cursor start button can also be set in the learning machine and other devices. After the user clicks the button, the learning machine and other devices can quickly turn on the camera, display the picture obtained by the camera, and display the cursor in the picture.

优选的一种实施方式中,所述开启光标显示时,可以是设备处于待机状态。这样,可以随时快速的使用设备进行题目搜索,能够进一步的方便用户使用。In a preferred implementation manner, when the cursor display is turned on, the device may be in a standby state. In this way, the device can be used to quickly search for topics at any time, which can further facilitate the use of the user.

所述摄像头获取的画面,可以通过全屏的方式显示,也可以在屏幕的指定区域通过窗口的形式显示。所述光标可以通过默认的显示方式,显示在所述画面的中部位置,也可以预先设定为光标显示在所述画面的其它位置。The picture acquired by the camera may be displayed in a full-screen manner, or may be displayed in a window manner in a designated area of the screen. The cursor may be displayed in the middle of the screen by a default display mode, or it may be preset to display the cursor at other positions of the screen.

用户可以通过触摸的方式,或者通过移动鼠标的方式,改变所述光标的位置,比如通过触摸的方式,将光标移动至画面中的题目所在位置等。The user can change the position of the cursor by touching or moving the mouse, for example, by touching, moving the cursor to the position of the title in the screen.

在步骤S102中,检测所述光标是否在所述画面中处于静止状态。In step S102, it is detected whether the cursor is in a static state in the screen.

具体的,在开启光标显示后,摄像头对准的画面可能不是题目所在的画面,需要用户调整摄像头所对的画面,或者通过调整光标调整所需要识别的题目所在的位置。当用户调整所需要搜索的题目所在的画面后,在画面中,光标在画面中的位置则处于静止状态,则表示用户已对准需要搜索的题目,如果光标在画面中处于相对运动状态,则表示用户当前在移动摄像头,或者在移动光标,还不能确定题目所在的位置。Specifically, after the cursor display is turned on, the picture on which the camera is aimed may not be the picture where the question is, and the user needs to adjust the picture on which the camera is directed, or adjust the position of the question to be identified by adjusting the cursor. After the user adjusts the screen where the title to be searched is located, the position of the cursor in the screen is in a static state, which means that the user has aimed at the subject to be searched. If the cursor is in a relative motion state in the screen, then Indicates that the user is currently moving the camera or moving the cursor, and the location of the question cannot be determined yet.

因此,本发明实施例中检测光标是否在所述画面中处于静止状态时,可以包括检测所述摄像头获取的画面是否发生变化,以及检测所述光标是否接收到移动指令。Therefore, in the embodiment of the present invention, when detecting whether the cursor is in a static state in the picture, it may include detecting whether the picture acquired by the camera changes, and detecting whether the cursor receives a movement instruction.

当用户确定摄像头当前的画面中包括所需要搜索的题目内容时,则需要调整设备为静止状态,保持摄像头获取的画面不发生变化,再进一步通过光标进行题目内容所在位置的调整。When the user determines that the current image of the camera includes the subject content to be searched, the user needs to adjust the device to a static state, keep the image captured by the camera unchanged, and further adjust the position of the subject content through the cursor.

如果用户在保证画面静止,并且光标静止的时间达到一定时长,比如处于静止状态的时间超过500-800毫秒时,则可以认为当前光标所在位置对应题目内容所在的位置。If the user is ensuring that the screen is still and the cursor is still for a certain period of time, for example, when the time in the still state exceeds 500-800 milliseconds, it can be considered that the current cursor position corresponds to the position of the topic content.

在步骤S103中,如果所述光标在所述画面中处于静止状态,则根据所述光标的位置查找所述画面中的题目内容。In step S103, if the cursor is in a static state in the picture, search for the topic content in the picture according to the position of the cursor.

具体的,如果光标在所述画面中处于静止状态,则说明光标当前指示的位置为题目所在的位置。因此,本发明通过光标所在的位置,自动查找画面中题目内容所在的位置,从而能够高效的查找到画面中的题目,避免用户繁琐的操作。Specifically, if the cursor is in a static state in the picture, it means that the position currently indicated by the cursor is the position where the title is located. Therefore, the present invention automatically finds the position of the subject content in the screen through the position of the cursor, so that the subject in the screen can be found efficiently and the cumbersome operation of the user is avoided.

其中,根据所述光标的位置查找所述画面中的题目内容,可以根据所述光标的位置为中心,按照预定的题目范围标识进行题目内容的查找,比如题目与题目之间通常会有换行符,或者题目与题目之间的间距通常大于正常的间距等,确定所述题目的内容的大小。Wherein, according to the position of the cursor to search for the title content in the screen, the title content can be searched according to the position of the cursor as the center and according to the predetermined title range identifier, for example, there is usually a line break between the title and the title. , or the distance between topics is usually larger than the normal distance, etc., to determine the size of the content of the topic.

在查找到所述题目内容后,可以发出声音提示或者显示提示的方式,提示当前已查找到画面中的题目内容,提示用户确认是否正确,如果用户认为正确的话,可以继续保持这样的状态,并等待返回搜索结果,如果查找的内容不正确,则可以改变光标的位置,或者改变摄像头获取的画面,重新进行题目内容的获取。After finding the content of the subject, a voice prompt or a prompt can be issued to prompt the content of the subject in the screen that has been found, and prompt the user to confirm whether it is correct. Wait for the search result to be returned. If the searched content is incorrect, you can change the position of the cursor, or change the screen obtained by the camera, and obtain the title content again.

在步骤S104中,识别所查找的所述画面中的题目内容,根据识别的题目内容搜索。In step S104, the title content in the searched screen is identified, and the search is performed according to the identified title content.

在确定了所述画面中的题目内容的位置和大小后,可以通过文字识别程序对该区域的题目内容进行识别,从识别效率上来说,本发明只需要对题目所在位置的部分画面进行识别,可以显示的提高对画面中的题目进行识别的效率。After determining the position and size of the topic content in the screen, the topic content in the area can be identified through a character recognition program. In terms of recognition efficiency, the present invention only needs to identify part of the screen where the topic is located. It can be displayed to improve the efficiency of recognizing the subject in the screen.

本发明实施例中,当用户开启光标显示时,在摄像头获取的画面中显示光标,系统检测所述画面中的光标是否为静止状态,当光标处于静止状态时,则根据光标的位置查找题目内容,并根据识别的题目内容进行搜索,从而使得本发明在打开光标显示对准题目后,即可自动进行搜索,大大的简化了用户操作的便利性,有利于提高题目搜索的效率。In the embodiment of the present invention, when the user turns on the cursor display, the cursor is displayed in the picture obtained by the camera, and the system detects whether the cursor in the picture is in a static state. , and search according to the identified topic content, so that the present invention can automatically search after turning on the cursor display and aiming at the topic, which greatly simplifies the convenience of user operation and helps to improve the efficiency of topic search.

实施例二:Embodiment 2:

图2示出了本发明第二实施例提供的智能设备的题目搜索方法的实现流程,详述如下:Fig. 2 shows the realization flow of the topic search method of the smart device provided by the second embodiment of the present invention, which is described in detail as follows:

在步骤S201中,开启光标显示,在摄像头获取的画面中显示第一光标图案,所述第一光标图案包括光标中心图案和与所述中心图案相邻的光标的边框图案。In step S201 , the cursor display is turned on, and a first cursor pattern is displayed on the screen captured by the camera, where the first cursor pattern includes a cursor center pattern and a border pattern of a cursor adjacent to the center pattern.

具体的,作为本发明实施例所述光标的一种实施方式,如图3所示,所述光标包括中心图案和光标的边框图案,所述中心图案为十字光标图案,所述光标的边框图案为四角边框图案。当然,这只是其中一种实施方式,根据用户使用需要,可以灵活的更换中心图案和光标的边框图案。Specifically, as an implementation of the cursor according to the embodiment of the present invention, as shown in FIG. 3 , the cursor includes a center pattern and a border pattern of the cursor, the center pattern is a cross cursor pattern, and the border pattern of the cursor For the four-corner border pattern. Of course, this is just one of the implementations, and the center pattern and the border pattern of the cursor can be flexibly replaced according to the needs of the user.

在本发明实施例中,所述光标包括两种显示状态,第一种是光标完整显示状态,所述光标的中心图案与光标的边框图案相邻,在这种状态下,用户可以移动光标,或者可以改变摄像头获取的画面内容,使处于完整显示状态下的光标与摄像头获取的画面中的内容保持相对静止。从而确定画面中的题目内容。In this embodiment of the present invention, the cursor includes two display states. The first is a complete cursor display state. The center pattern of the cursor is adjacent to the border pattern of the cursor. In this state, the user can move the cursor. Alternatively, the content of the picture acquired by the camera can be changed, so that the cursor in the complete display state and the content in the picture acquired by the camera remain relatively still. Thereby, the content of the title in the screen is determined.

第二种状态是在第一种状态后,检测到光标在画面中处于静止状态后,光标的边框图案进行自动的题目边界查找,并将所述光标的边框图案在题目的边界位置显示,所述中心图案可以根据查找的边界的位置,调整所述中心图案在所述光标的边框图案的中心位置显示。The second state is after the first state, after detecting that the cursor is in a static state in the screen, the border pattern of the cursor performs automatic topic boundary search, and the border pattern of the cursor is displayed at the border position of the topic, so The center pattern can be adjusted to be displayed at the center of the border pattern of the cursor according to the position of the searched boundary.

在步骤S202中,检测所述光标是否在所述画面中处于静止状态。In step S202, it is detected whether the cursor is in a static state in the picture.

在步骤S203中,如果所述光标在所述画面中处于静止状态,则根据所述光标的中心图案确定题目内容的位置。In step S203, if the cursor is in a static state in the screen, the position of the topic content is determined according to the center pattern of the cursor.

具体的,本发明实施例中所述光标在所述画面中处于静止状态,包括两个必要条件:Specifically, in this embodiment of the present invention, the cursor is in a static state on the screen, including two necessary conditions:

1)画面中的内容处于静止状态,也就是说摄像头所获取的画面内容没有发生变化,用户已确认当前画面中包括所需要搜索的题目;1) The content in the screen is in a static state, that is to say, the content of the screen obtained by the camera has not changed, and the user has confirmed that the current screen includes the subject to be searched;

2)学习机等设备的显示屏上的光标处于静止状态,在这个时候,用户没有通过触摸或者鼠标等操作方式移动光标,也就是说用户已确认光标当前的位置处于题目所在的位置。2) The cursor on the display screen of the learning machine and other equipment is in a static state. At this time, the user does not move the cursor through touch or mouse operation, that is to say, the user has confirmed that the current position of the cursor is at the position of the question.

在步骤S204中,根据画面查找所述题目内容的边界,并在所述题目内容的边界的位置显示所述光标的边框图案。In step S204, the boundary of the title content is searched according to the screen, and the border pattern of the cursor is displayed at the position of the boundary of the title content.

在本发明实施例中,还进一步包括对题目内容的边界进行查找,其中,根据画面查找所述题目内容的边界步骤包括:In the embodiment of the present invention, it further includes searching for the boundary of the topic content, wherein the step of searching for the boundary of the topic content according to the screen includes:

根据所述画面内容中包括的换行标识符查找所述题目内容的边界;Find the boundary of the title content according to the line feed identifier included in the screen content;

或者,获取所述画面内容中包括的文字的行距,当行距大于画面中的预设的行距值时,判断当前位置为题目的边界。Or, the line spacing of the text included in the screen content is acquired, and when the line spacing is greater than a preset line spacing value in the screen, it is determined that the current position is the boundary of the topic.

其中,所述预设的行距,可以为一般文字设定的行距。由于间距会画面随着画面的远近而发生变化,为了提高判断的准确率,还可以通过文字与间距的比例来判断,比如文字大小与行距的比例小于预定值时,则判断当前行为题目的边界位置。并在所述边界位置显示所述光标的边框图案。为了便于确认边框所在位置,可以通过闪烁的方式显示所述光标的边框图案。The preset line spacing may be the line spacing set for general characters. Since the spacing will change with the distance of the screen, in order to improve the accuracy of the judgment, it can also be judged by the ratio of the text to the spacing. For example, when the ratio of the text size to the line spacing is smaller than the predetermined value, the boundary of the current behavior topic is judged Location. and displaying the border pattern of the cursor at the border position. In order to facilitate the confirmation of the position of the frame, the frame pattern of the cursor may be displayed in a blinking manner.

在步骤S205中,识别所查找的所述画面中的题目内容,根据识别的题目内容搜索。In step S205, the title content in the searched screen is identified, and the search is performed according to the identified title content.

本发明实施例通过光标的边框图案确定题目内容所在的区域后,可以更进一步提高题目内容进行识别的效率,并且通过光标的边框图案对题目内容进行选定,可以提高题目搜索的准确率。In the embodiment of the present invention, after determining the area where the topic content is located by the border pattern of the cursor, the efficiency of identifying the topic content can be further improved, and selecting the topic content by the border pattern of the cursor can improve the accuracy of topic search.

实施例三:Embodiment three:

图4示出了本发明第三实施例提供的智能设备的题目搜索装置的结构示意图,详述如下:FIG. 4 shows a schematic structural diagram of a topic search apparatus for a smart device provided by a third embodiment of the present invention, which is described in detail as follows:

本发明实施例所述智能设备的题目搜索装置,包括:The topic search device of the smart device according to the embodiment of the present invention includes:

光标开启显示单元401,用于开启光标显示,在摄像头获取的画面中显示光标;The cursor open display unit 401 is used to open the cursor display, and display the cursor in the picture obtained by the camera;

状态检测单元402,用于检测所述光标是否在所述画面中处于静止状态;a state detection unit 402, configured to detect whether the cursor is in a static state in the picture;

内容查找单元403,用于如果所述光标在所述画面中处于静止状态,则根据所述光标的位置查找所述画面中的题目内容;A content search unit 403, configured to search the title content in the screen according to the position of the cursor if the cursor is in a static state in the screen;

内容识别单元404,用于识别所查找的所述画面中的题目内容,根据识别的题目内容搜索。The content identification unit 404 is configured to identify the title content in the screen that is found, and search according to the identified title content.

优选的,所述光标开启显示单元具体用于:Preferably, the cursor opening display unit is specifically used for:

在摄像头获取的画面中显示第一光标图案,所述第一光标图案包括光标中心图案和与所述中心图案相邻的光标的边框图案;Displaying a first cursor pattern in the picture acquired by the camera, where the first cursor pattern includes a cursor center pattern and a border pattern of a cursor adjacent to the center pattern;

所述内容查找单元包括:The content search unit includes:

位置确定子单元,用于如果所述光标在所述画面中处于静止状态,则根据所述光标的中心图案确定题目内容的位置;a position determination subunit, used for determining the position of the topic content according to the center pattern of the cursor if the cursor is in a static state in the picture;

边界显示子单元,用于根据画面查找所述题目内容的边界,并在所述题目内容的边界的位置显示所述光标的边框图案。The boundary display subunit is used for searching the boundary of the title content according to the screen, and displaying the border pattern of the cursor at the position of the boundary of the title content.

优选的,所述光标中心图案为十字光标图案,所述光标的边框图案为四角边框图案。Preferably, the center pattern of the cursor is a cross cursor pattern, and the border pattern of the cursor is a four-corner border pattern.

优选的,所述内容查找单元包括:Preferably, the content search unit includes:

第一查找子单元,用于根据所述画面内容中包括的换行标识符查找所述题目内容的边界;a first search subunit, configured to search for the boundary of the title content according to the line feed identifier included in the screen content;

或者,第二查找子单元,用于获取所述画面内容中包括的文字的行距,当行距大于画面中的预设的行距值时,判断当前位置为题目的边界。Alternatively, the second search subunit is configured to obtain the line spacing of the text included in the screen content, and when the line spacing is greater than a preset line spacing value in the screen, determine that the current position is the boundary of the topic.

优选的,所述状态检测单元具体用于:Preferably, the state detection unit is specifically used for:

检测所述摄像头获取的画面是否发生变化,以及检测所述光标是否接收到移动指令。It is detected whether the picture acquired by the camera has changed, and whether the cursor has received a movement instruction.

本发明实施例所述智能设备的题目搜索装置,与实施例一和二所述智能设备的题目搜索方法对应,在此不作重复描述。The topic searching apparatus of the smart device according to the embodiment of the present invention corresponds to the topic searching method of the smart device according to the first and second embodiments, and will not be described repeatedly here.

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

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

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

1. A title searching method of intelligent equipment is characterized by comprising the following steps:
when the equipment is in a standby state, starting cursor display through a hardware switch, and displaying a cursor in a picture acquired by a camera;
detecting whether the cursor is in a static state in the picture or not, wherein the static time reaches a certain duration;
if the cursor is in a static state in the picture and the static time reaches a certain duration, searching the title content in the picture according to the position of the cursor;
identifying the searched topic content in the picture, and searching according to the identified topic content;
the step of displaying the cursor in the picture acquired by the camera specifically comprises the following steps: displaying a first cursor pattern in a picture acquired by a camera, wherein the first cursor pattern comprises a cursor center pattern and a frame pattern of a cursor adjacent to the center pattern;
if the cursor is in a static state in the picture and the static time reaches a certain duration, the step of searching the title content in the picture according to the position of the cursor comprises the following steps:
if the cursor is in a static state in the picture, determining the position of the title content according to the central pattern of the cursor;
searching the boundary of the theme content according to the picture, and displaying the border pattern of the cursor at the position of the boundary of the theme content, wherein the step of searching the boundary of the theme content according to the picture comprises the following steps:
and acquiring the line spacing of characters included in the picture content, and judging that the current position is the boundary of the topic when the line spacing is larger than a preset line spacing value in the picture.
2. The method of claim 1, wherein the cursor center pattern is a cross cursor pattern and the border pattern of the cursor is a four-corner border pattern.
3. The method according to claim 1, wherein the step of finding the boundary of the title content according to the frame comprises:
and searching the boundary of the title content according to the line feed identifier included in the picture content.
4. The method according to claim 1, wherein the step of detecting whether the cursor is in a still state in the screen comprises:
and detecting whether the picture acquired by the camera changes or not and detecting whether the cursor receives a moving instruction or not.
5. A title search device of intelligent equipment, characterized in that, the device includes:
the cursor opening display unit is used for opening cursor display through a hardware switch when the equipment is in a standby state and displaying a cursor in a picture acquired by the camera;
the state detection unit is used for detecting whether the cursor is in a static state in the picture or not, and the static time reaches a certain duration;
the content searching unit is used for searching the title content in the picture according to the position of the cursor if the cursor is in a static state in the picture and the static time reaches a certain duration;
the content identification unit is used for identifying the searched topic content in the picture and searching according to the identified topic content;
the cursor opening display unit is specifically configured to:
displaying a first cursor pattern in a picture acquired by a camera, wherein the first cursor pattern comprises a cursor center pattern and a frame pattern of a cursor adjacent to the center pattern;
the content search unit includes:
the position determining subunit is used for determining the position of the title content according to the central pattern of the cursor if the cursor is in a static state in the picture;
the boundary display subunit is used for searching the boundary of the theme content according to the picture and displaying the frame pattern of the cursor at the position of the boundary of the theme content;
the content search unit includes:
and the second searching subunit is used for acquiring the line spacing of the characters included in the picture content, and judging that the current position is the boundary of the topic when the line spacing is larger than a preset line spacing value in the picture.
6. The apparatus of claim 5, wherein the cursor center pattern is a cross cursor pattern, and the border pattern of the cursor is a four-corner border pattern.
7. The apparatus of claim 5, wherein the content search unit comprises:
and the first searching subunit is used for searching the boundary of the title content according to the line feed identifier included in the picture content.
8. The apparatus according to claim 5, wherein the state detection unit is specifically configured to:
and detecting whether the picture acquired by the camera changes or not and detecting whether the cursor receives a moving instruction or not.
CN201610284975.0A 2016-04-29 2016-04-29 Question searching method and device of intelligent equipment Active CN105975552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610284975.0A CN105975552B (en) 2016-04-29 2016-04-29 Question searching method and device of intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610284975.0A CN105975552B (en) 2016-04-29 2016-04-29 Question searching method and device of intelligent equipment

Publications (2)

Publication Number Publication Date
CN105975552A CN105975552A (en) 2016-09-28
CN105975552B true CN105975552B (en) 2020-01-03

Family

ID=56994594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610284975.0A Active CN105975552B (en) 2016-04-29 2016-04-29 Question searching method and device of intelligent equipment

Country Status (1)

Country Link
CN (1) CN105975552B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681538B (en) * 2016-12-07 2019-08-09 广东小天才科技有限公司 Content positioning method, device and system
CN107463681B (en) * 2017-08-08 2021-03-19 广东小天才科技有限公司 A method and device for identifying a topic to be searched
CN110069206A (en) * 2019-04-23 2019-07-30 广东小天才科技有限公司 Method and device for obtaining question picture
CN111711757B (en) * 2020-06-29 2022-03-08 广东小天才科技有限公司 Test question shooting method and device capable of preventing finger from being blocked, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318365A (en) * 2003-04-15 2004-11-11 Hokkaido Univ Image retrieval system, image retrieval method and program thereof
CN103955525A (en) * 2014-05-09 2014-07-30 北京奇虎科技有限公司 Method and client for searching answer to test question
CN104715253A (en) * 2015-04-02 2015-06-17 北京贞观雨科技有限公司 Method and server for obtaining test question analysis information
CN105426390A (en) * 2015-10-23 2016-03-23 广东小天才科技有限公司 Test question searching method and system based on image recognition

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1065053C (en) * 1997-08-12 2001-04-25 英业达股份有限公司 Method and device for fast translation of text data in computer windows
CN103237109A (en) * 2013-04-10 2013-08-07 广东欧珀移动通信有限公司 Method and device for turning on flashlight based on mobile phone in standby state
CN103927552A (en) * 2014-04-23 2014-07-16 北京奇虎科技有限公司 Method and device for matching answers of target test questions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318365A (en) * 2003-04-15 2004-11-11 Hokkaido Univ Image retrieval system, image retrieval method and program thereof
CN103955525A (en) * 2014-05-09 2014-07-30 北京奇虎科技有限公司 Method and client for searching answer to test question
CN104715253A (en) * 2015-04-02 2015-06-17 北京贞观雨科技有限公司 Method and server for obtaining test question analysis information
CN105426390A (en) * 2015-10-23 2016-03-23 广东小天才科技有限公司 Test question searching method and system based on image recognition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
手机百度APP版本7.2;手机百度;《安智市场》;20160325;图1-10 *

Also Published As

Publication number Publication date
CN105975552A (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN105975560B (en) Question searching method and device of intelligent equipment
CN105975550B (en) Question searching method and device of intelligent equipment
US11194448B2 (en) Apparatus for vision and language-assisted smartphone task automation and method thereof
EP2624110A1 (en) Method and device for placing icons
CN105892685A (en) Question searching method and device of intelligent equipment
CN105975552B (en) Question searching method and device of intelligent equipment
JP6239783B2 (en) Information selection method and apparatus
WO2014201832A1 (en) Page turning method, page turning apparatus and terminal as well as computer readable medium
US20170139911A1 (en) Address book based picture matching method and terminal
CN107451127A (en) Word translation method and system based on image and mobile device
CN106469308A (en) Efficient question searching method and device
CN106407977A (en) Method and device for positioning and searching target content
WO2022022566A1 (en) Graphic code identification method and apparatus and electronic device
WO2017101391A1 (en) Method and device for magnifying video image
CN103268198A (en) Gesture input method and device
CN106294717A (en) Question searching method and device based on intelligent terminal
CN105956078B (en) Method and device for topic search for intelligent equipment
CN104615348B (en) Information processing method and electronic equipment
CN106325522A (en) Method and device for adjusting size of cursor by electronic terminal
CN106326491A (en) Efficient topic searching method and device
CN107463681B (en) A method and device for identifying a topic to be searched
CN103268151A (en) Data processing device and specific function starting method thereof
WO2022001564A1 (en) Operation set obtaining and executing methods and apparatuses, storage medium, and terminal device
US9971413B2 (en) Positioning method and apparatus
CN105446629A (en) Content pane switching method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant