CN108021648B - Method, device and intelligent terminal for searching questions - Google Patents

Method, device and intelligent terminal for searching questions Download PDF

Info

Publication number
CN108021648B
CN108021648B CN201711239909.2A CN201711239909A CN108021648B CN 108021648 B CN108021648 B CN 108021648B CN 201711239909 A CN201711239909 A CN 201711239909A CN 108021648 B CN108021648 B CN 108021648B
Authority
CN
China
Prior art keywords
searched
question
questions
photo
test
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
CN201711239909.2A
Other languages
Chinese (zh)
Other versions
CN108021648A (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 CN201711239909.2A priority Critical patent/CN108021648B/en
Publication of CN108021648A publication Critical patent/CN108021648A/en
Application granted granted Critical
Publication of CN108021648B publication Critical patent/CN108021648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5846Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using extracted text

Landscapes

  • Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention is suitable for the technical field of intelligent terminals, and provides a question searching method for an intelligent terminal, which comprises the following steps: receiving an instruction for starting a multi-channel test question searching mode sent by a user; after entering the multi-channel test question searching mode, acquiring a photo containing a test question to be searched; selecting each test question to be searched from the picture frames, recording the number of the test questions to be searched selected from the picture frames, and identifying each test question to be searched selected from the picture frames; uploading the number of the test questions to be searched selected by the frame and the content of the identified test questions to be searched to a server for matching the test questions; and receiving and displaying the problem solving result fed back by the server and corresponding to the matched test question to be searched. According to the invention, each test question to be searched is selected from the photo frames, and the number of the test questions to be searched selected from the frames and the content of the identified test questions to be searched are uploaded to the server, so that the multiple test questions can be quickly and accurately matched.

Description

一种搜题的方法、装置及智能终端Method, device and intelligent terminal for searching questions

技术领域technical field

本发明属于智能终端技术领域,尤其涉及一种搜题的方法、装置、智能终端及计算机可读存储介质。The present invention belongs to the technical field of intelligent terminals, and in particular, relates to a method, a device, an intelligent terminal and a computer-readable storage medium for searching questions.

背景技术Background technique

作业难题一直都是学生的核心痛点,随着智能终端的应用普及,学生可以通过使用安装有答疑应用的智能终端,来快速获取疑难试题的正确答案。Homework problems have always been a core pain point for students. With the popularization of smart terminals, students can quickly obtain the correct answers to difficult questions by using smart terminals with Q&A applications installed.

然而,现有的智能终端大多是通过拍照进行单一模式下的搜题,即每次只能搜索一道试题,搜题效率较低,难以满足用户的需求。However, most of the existing smart terminals search questions in a single mode by taking pictures, that is, only one question can be searched at a time, and the question search efficiency is low, and it is difficult to meet the needs of users.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供了一种搜题的方法、装置及智能终端,以实现一次搜索多道试题,提高搜索的效率。In view of this, the embodiments of the present invention provide a method, a device and an intelligent terminal for searching questions, so as to realize searching for multiple test questions at one time and improve the efficiency of searching.

本发明实施例的第一方面提供了一种搜题的方法,包括:A first aspect of the embodiments of the present invention provides a method for searching questions, including:

接收用户发送的开启多道试题搜索模式的指令;Receive the instruction sent by the user to enable the multi-question search mode;

在进入所述多道试题搜索模式后,获取包含待搜索试题的照片;After entering the multi-question search mode, obtain a photo containing the question to be searched;

从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别;Select each question to be searched from the photo, record the number of questions to be searched selected by the box, and identify each question to be searched selected by the box;

将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配;Upload the number of questions to be searched selected in the box and the content of the identified questions to be searched to the server for question matching;

接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,所述解题结果的数量小于或等于所述待搜索试题的数量。Receive and display the problem solving results that are fed back by the server and corresponding to the to-be-searched questions matched this time, where the number of the problem-solving results is less than or equal to the number of the to-be-searched questions.

本发明实施例的第二方面提供了一种智能终端搜题的装置,所述装置包括:A second aspect of the embodiments of the present invention provides an apparatus for searching questions by an intelligent terminal, the apparatus comprising:

接收单元,用于接收用户发送的开启多道试题搜索模式的指令;a receiving unit, used for receiving an instruction to open the multi-question question search mode sent by the user;

获取单元,用于在进入所述多道试题搜索模式后,获取包含待搜索试题的照片;an acquisition unit, used to acquire a photo containing the test question to be searched after entering the multi-question search mode;

自动框选单元,用于从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别;An automatic frame selection unit, used to frame each question to be searched from the photo, record the number of the questions to be searched selected by the frame, and identify each question to be searched selected by the frame;

上传单元,用于将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配;The uploading unit is used for uploading the number of the questions to be searched selected by the box and the content of the identified questions to be searched to the server for question matching;

显示单元,用于接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,所述解题结果的数量小于或等于所述待搜索试题的数量。A display unit, configured to receive and display the problem solving results fed back by the server and corresponding to the to-be-searched questions matched this time, where the number of the problem-solving results is less than or equal to the number of the to-be-searched questions.

本发明实施例的第三方面提供了一种智能终端,包括:包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现上述第一方面提及的智能终端搜题的方法。A third aspect of the embodiments of the present invention provides an intelligent terminal, including: a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implements the above-mentioned first computer program when the above-mentioned computer program is executed. The method for searching questions on the intelligent terminal mentioned in the aspect.

本发明实施例的第四方面提供了一种计算机可读存储介质,包括:该计算机可读存储介质上存储有计算机程序,上述计算机程序被处理器执行时实现上述第一方面或者上述第一方面提及的智能终端搜题的方法。A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, including: a computer program is stored on the computer-readable storage medium, and the computer program implements the first aspect or the first aspect when executed by a processor The mentioned method of searching questions on the smart terminal.

本发明实施例与现有技术相比存在的有益效果是:本发明实施例中,通过接收用户发送的开启多道试题搜索模式的指令,使得当前搜题模式为多道试题搜索模式;通过获取包含待搜索试题的照片来从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别,可以将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配,提升了上传的速度和匹配的准确度;通过接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,本发明实施例可以一次上传多道待搜索试题,有效的提高了搜题的效率,具有较强的易用性和实用性。The beneficial effects of the embodiment of the present invention compared with the prior art are: in the embodiment of the present invention, by receiving an instruction to enable the multi-question question search mode sent by the user, the current question search mode is a multi-question question search mode; Include the photo of the test question to be searched to select each question to be searched from the photo, record the number of the question to be searched selected by the frame, and identify each question to be searched selected by the frame, you can select the question to be searched by the frame The number of the questions to be searched and the content of the identified questions to be searched are uploaded to the server for question matching, which improves the upload speed and the accuracy of matching; When searching for the solution result corresponding to the test question, the embodiment of the present invention can upload multiple test questions to be searched at one time, which effectively improves the efficiency of the question search, and has strong ease of use and practicability.

附图说明Description of drawings

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

图1是本发明实施例一提供的智能终端搜题方法的实现流程示意图;FIG. 1 is a schematic flowchart of the implementation of a method for searching questions on an intelligent terminal provided in Embodiment 1 of the present invention;

图2是本发明实施例一提供的图1中步骤S103的具体实现流程示意图;FIG. 2 is a schematic flowchart of a specific implementation of step S103 in FIG. 1 according to Embodiment 1 of the present invention;

图3是本发明实施例一提供的图2中步骤S201的框选试题示意图;3 is a schematic diagram of the frame selection test question in step S201 in FIG. 2 provided by Embodiment 1 of the present invention;

图4是本发明实施例一提供的图2中步骤S203的框选试题示意图;4 is a schematic diagram of the frame selection test question in step S203 in FIG. 2 provided by Embodiment 1 of the present invention;

图5是本发明实施例一提供的图2中步骤S203的框选试题示意图;5 is a schematic diagram of the frame selection test question in step S203 in FIG. 2 provided by Embodiment 1 of the present invention;

图6是本发明实施例一提供的图2中步骤S203的框选试题示意图;6 is a schematic diagram of the frame selection test question in step S203 in FIG. 2 according to Embodiment 1 of the present invention;

图7是本发明实施例二提供的智能终端搜题的装置示意图;7 is a schematic diagram of an apparatus for searching questions by an intelligent terminal provided in Embodiment 2 of the present invention;

图8是本发明实施例三提供的智能终端的示意图。FIG. 8 is a schematic diagram of an intelligent terminal according to Embodiment 3 of the present invention.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are set forth in order to provide a thorough understanding of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.

还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个及“该”意在包括复数形式。It is also to be understood that the terminology used in this specification of the present invention is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise.

还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should further be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

具体实现中,本发明实施例中描述的智能终端包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,所述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算机。In specific implementations, the smart terminals described in the embodiments of the present invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (eg, touch screen displays and/or touch pads). . It should also be understood that in some embodiments, the device is not a portable communication device, but rather a desktop computer with a touch-sensitive surface (eg, a touch screen display and/or a touch pad).

在接下来的讨论中,描述了包括显示器和触摸敏感表面的智能终端。然而,应当理解的是,智能终端可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其它物理用户接口设备。In the discussion that follows, a smart terminal including a display and a touch-sensitive surface is described. However, it should be understood that the smart terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and/or joystick.

智能终端支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The smart terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, game applications, telephone Apps, Video Conferencing Apps, Email Apps, Instant Messaging Apps, Workout Support Apps, Photo Management Apps, Digital Camera Apps, Digital Video Camera Apps, Web Browsing Apps, Digital Music Player Apps and/or digital video player applications.

可以在智能终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that may be executed on the smart terminal may use at least one common physical user interface device, such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within respective applications. In this way, the common physical architecture of the terminal (eg, touch-sensitive surface) can support various applications with a user interface that is intuitive and transparent to the user.

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

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

实施例一Example 1

本发明提供了一种搜题的方法,请参阅图1,本发明实施例中的搜题方法包括以下步骤:The present invention provides a method for searching questions. Please refer to FIG. 1. The method for searching questions in an embodiment of the present invention includes the following steps:

步骤S101:接收用户发送的开启多道试题搜索模式的指令。Step S101: Receive an instruction sent by a user to enable a multi-question search mode.

本实施例中,在所述智能终端处于休眠状态时,若接收到用户按压所述智能终端预定按键的操作,则启动所述智能终端的摄像头拍摄包含待搜索试题的照片,避免用户需要复杂的开机、解锁和打开应用程序等操作才能进行拍照,实现一键开机的目的。其中,所述智能终端可以是智能手机、智能手环、平板电脑等终端设备中的任意一种;所述休眠状态可以为熄屏、黑屏、锁屏等;所述预定按键可以为任意一个物理键;所述用于启动所述智能终端的摄像头拍摄包含待搜索试题照片的指令还可以为预先设置的一段语音或者是用户在所述智能终端的显示屏上的预定滑动操作,对此不做过多的限制。In this embodiment, when the intelligent terminal is in a dormant state, if an operation of pressing a predetermined button of the intelligent terminal is received from the user, the camera of the intelligent terminal is activated to take a photo containing the test questions to be searched, so as to avoid the user needing complex Only the operations such as booting, unlocking and opening the application can take pictures, so as to realize the purpose of one-key boot. Wherein, the intelligent terminal may be any one of terminal devices such as a smartphone, a smart bracelet, a tablet computer, etc.; the sleep state may be screen off, black screen, screen lock, etc.; the predetermined button may be any physical key; the instruction used to start the camera of the smart terminal to take a photo containing the test question to be searched can also be a preset voice or a predetermined sliding operation by the user on the display screen of the smart terminal, and do not do this. Excessive restrictions.

可选的,所述搜题模式的选择可以是在预定APP的预定位置上完成。其中,所述移动终端预定的APP可以是作业帮等热门应用软件;所述预定位置可以是所述显示界面中任一不影响用户查看显示内容的位置,例如,所述显示界面的右上角、右下角、左上角或左下角。Optionally, the selection of the question search mode may be completed at a predetermined position of a predetermined APP. Wherein, the APP predetermined by the mobile terminal may be popular application software such as Jobbang; the predetermined position may be any position in the display interface that does not affect the user's viewing of the displayed content, for example, the upper right corner of the display interface, Bottom right, top left, or bottom left.

可选的,所述搜题模式可以包括:单道试题的搜索模式和多道试题的搜索模式;可以理解的是,当用户仅进行一道试题搜索时,可以选择上述两种搜题模式中的任意一种。Optionally, the question search mode may include: a single-question search mode and a multi-question search mode; it can be understood that when the user only searches for one question, he can select one of the above two search modes. any kind.

本实施例中的,所述待搜索试题的类型包括但不限于:选择题、填空题解答题。In this embodiment, the types of the test questions to be searched include but are not limited to: multiple-choice questions, fill-in-the-blank answer questions.

步骤S102:在进入所述多道试题搜索模式后,获取包含待搜索试题的照片。Step S102: After entering the multi-question search mode, obtain a photo containing the question to be searched.

可选的,所述包含待搜索试题的照片可以通过启动所述智能终端的摄像头进行拍摄的方式生成。Optionally, the photo containing the test question to be searched may be generated by activating the camera of the smart terminal to shoot.

可选的,用户在进行拍照时,选择横屏拍摄。Optionally, when the user takes a photo, he/she selects to shoot in a landscape orientation.

可选的,用户在进行拍照时,可以选择只拍包含所述待搜索试题的部分,也可以将所述待搜索试题所在页的全部内容进行拍照。Optionally, when taking a photo, the user may choose to only take a photo of the part containing the test question to be searched, or may take a photo of the entire content of the page where the test question to be searched is located.

可选的,当用户选择将所述待搜索试题所在页的全部内容进行拍照时,智能终端在获取到所述包含待搜索试题的照片后,会自动剪裁,使其仅包含所述待搜索试题的全部信息,减少除用户需要搜索的试题之外的干扰内容,达到快速识别用户需要搜索试题的目的,提升搜索试题的效率。Optionally, when the user chooses to take a photo of the entire content of the page where the test question to be searched is located, the intelligent terminal will automatically crop the photo containing the test question to be searched so that it only contains the test question to be searched. It can reduce the interference content except the test questions that the user needs to search, achieve the purpose of quickly identifying the test questions that the user needs to search for, and improve the efficiency of searching for the test questions.

步骤S103:从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别。Step S103: Select each question to be searched from the photo, record the number of the question to be searched selected by the box, and identify each question to be searched selected by the box.

可选的,为了更加清楚明白的说明上述步骤S103,图2示出了获得每道待搜索试题的具体实现流程,详述如下:Optionally, in order to explain the above step S103 more clearly, FIG. 2 shows the specific implementation process of obtaining each test question to be searched, and the details are as follows:

如图2所示,在本发明的一个实施例中,所述从所述照片中框选出每道待搜索试题包括:As shown in Figure 2, in one embodiment of the present invention, the frame selection of each test question to be searched from the photo includes:

步骤S201:对所述包含待搜索试题的照片进行二值化处理,并根据第一预设条件框选所述包含待搜索试题的照片中的文字部分得到至少一个文本框;Step S201: performing binarization processing on the photo containing the test question to be searched, and frame-selecting the text part in the photo containing the test question to be searched according to the first preset condition to obtain at least one text box;

其中,上述二值化处理过程可包括:Wherein, the above-mentioned binarization processing process may include:

对获取的所述包含待搜索试题的照片进行灰度化处理,得到包含所述待搜索试题的灰度图像;Grayscale processing is performed on the obtained photo containing the question to be searched to obtain a grayscale image containing the question to be searched;

对所述灰度图像中的条码区域进行分割,得到所述灰度图像的黑白图像;Segmenting the barcode area in the grayscale image to obtain a black and white image of the grayscale image;

对所述黑白图像进行定位,并对被定位到的黑白图像进行校正。The black and white images are located, and the located black and white images are corrected.

本实施例中的,第一预设条件可以为:逐行框选包含所述待搜索试题的照片中的题干;逐个框选包含所述待搜索试题的照片中的选项。In this embodiment, the first preset condition may be: box-selecting the question stems in the photo containing the test question to be searched row by row; box-selecting the options in the photo containing the test question to be searched one by one.

示例性的,如图3所示,当所述待搜索试题的类型为选择题时,每道试题的完整部分包含题干和选项两部分内容。此时,在执行框选操作时,应分别对题干进行逐行框选,对四个选项进行逐个框选。具体可以为:先对题干的第一行进行框选得到文本框1(上面最大的文本框);然后分别对题干下方四个选项中的A、B、C、D进行逐个框选,得到4个对应的文本框,自左向右依次为文本框2、文本框3、文本框4、文本框5。Exemplarily, as shown in FIG. 3 , when the type of the test question to be searched is multiple-choice questions, the complete part of each test question includes the content of the question stem and the options. At this time, when performing the box selection operation, the question stems should be box-selected line by line, and the four options should be box-selected one by one. Specifically, it can be as follows: first, select the first line of the question stem to obtain text box 1 (the largest text box above); then select A, B, C, and D in the four options below the question stem. Four corresponding text boxes are obtained, from left to right are text box 2, text box 3, text box 4, and text box 5.

步骤S202:计算每一个所述文本框对应的面积和中心点坐标;Step S202: Calculate the area and center point coordinates corresponding to each of the text boxes;

可选的,由于进行框选后得到的每一个文本框均是规则的长方形。因此,在计算每一个所述文本框的面积时,可以按照数学上计算面积的方法,即利用公式S=ab得到每一个所述文本框的面积,其中,a表示每一个长方形的长度,b表示每一个长方形的宽度。Optionally, each text box obtained after frame selection is a regular rectangle. Therefore, when calculating the area of each of the text boxes, the area of each of the text boxes can be calculated mathematically, that is, the area of each of the text boxes can be obtained by using the formula S=ab, where a represents the length of each rectangle, b Indicates the width of each rectangle.

可选的,每一个文本框的中心点坐标可以为每一个文本框的几何中心位置。Optionally, the coordinates of the center point of each text box may be the geometric center position of each text box.

步骤S203:根据所述每一个文本框的面积和第二预设条件,对所述每一个中心点坐标进行聚类,以获得每一道完整的待搜索试题。Step S203: According to the area of each text box and the second preset condition, cluster the coordinates of each center point to obtain each complete test question to be searched.

本实施例中,所述第二预设条件可以为:包含待搜索试题的照片中预先设置的题干和选项之间的先后顺序。In this embodiment, the second preset condition may be: the sequence of questions and options preset in the photo containing the test questions to be searched.

可选的,所述每一个文本框的面积为聚类时每一个中心点的权重值。Optionally, the area of each text box is the weight value of each center point during clustering.

可选的,所述获得待搜索试题的数量还可以通过聚类得到。本实施例中的聚类操作可以采用常见的聚类算法,以图3为例,则初始类中心为文本框1的几何中心,计算其余文本框的中心点坐标与所述文本框1的中心点坐标之间的距离,选择与所述文本框1的几何中心距离最近的文本框作为该样本所属的类。其中,所述距离可以采用平面上两点之间的距离计算方法得到。可以理解的是,在进行多次聚类操作后,若得到待搜索试题的数量始终保持不变,则可以将该数量作为所述待搜索试题的实际数量。Optionally, the obtained number of test questions to be searched may also be obtained by clustering. The clustering operation in this embodiment can use a common clustering algorithm. Taking FIG. 3 as an example, the initial cluster center is the geometric center of the text box 1, and the center point coordinates of the remaining text boxes and the center of the text box 1 are calculated. The distance between point coordinates, select the text box closest to the geometric center of the text box 1 as the class to which the sample belongs. Wherein, the distance can be obtained by using a distance calculation method between two points on a plane. It can be understood that, after performing multiple clustering operations, if the number of questions to be searched remains unchanged, the number can be taken as the actual number of questions to be searched.

需要说明的是,对于选择题,常常会受到试题数量和纸张等多种因素的影响,导致前后两道试题的距离会比较接近,此时进行聚类操作,往往需要附加一些预先设定的条件来进行聚类判断。可选的,将题干和选项设置的先后顺序作为辅助条件来进行聚类判断。It should be noted that for multiple-choice questions, it is often affected by various factors such as the number of test questions and paper, resulting in a relatively close distance between the two test questions before and after. At this time, clustering operations often require additional pre-set conditions. for clustering judgment. Optionally, clustering judgment is performed using the sequence of question stems and option settings as auxiliary conditions.

为了便于描述,在对第2道试题的题干和选项进行分别框选时,得到的文本框均采用虚线框表示。示例性的,当需要对如图3所示的第2道试题进行聚类时,可以先按照步骤S201中描述的方法进行框选,得到6个用虚线标识的文本框如图4所示;然后以图4中所示的用虚线标识最大的文本框的中心坐标为初始类中心进行聚类,此时由于加入了可以根据题干和选项设置的先后顺序来判断是否为同一道试题这一辅助条件。因此,在判断第2道试题的完整部分时,就不会如图5所示把距离第2道试题最近的题干上方的4个选项作为同一道试题的其余内容进行分类;而是如图6所示将距离第2道试题最近的题干下方的4个选项作为同一道试题的其余部分进行分类,提高了分类的精度和框选的正确率。For the convenience of description, when the question stems and options of the second test question are box-selected respectively, the obtained text boxes are all represented by dashed boxes. Exemplarily, when the second test question as shown in Figure 3 needs to be clustered, frame selection can be performed first according to the method described in step S201, and six text boxes marked with dotted lines are obtained as shown in Figure 4; Then use the center coordinate of the text box with the largest dotted line as shown in Figure 4 as the initial class center for clustering. At this time, because of the addition of the sequence of question stem and option settings, it can be judged whether it is the same question or not. auxiliary conditions. Therefore, when judging the complete part of the second question, the 4 options above the question stem closest to the second question will not be classified as the rest of the same question as shown in Figure 5; As shown in 6, the 4 options below the question stem closest to the second question are classified as the rest of the same question, which improves the accuracy of classification and the correct rate of frame selection.

可选的,可以通过光学字符识别技术(Optical Character Recognition,OCR)来识别所述框选出的每道待搜索试题。当所述包含待搜索试题的照片经过OCR识别后,会提取出照片中包含的文字信息。Optionally, each question to be searched selected by the box may be identified by optical character recognition (Optical Character Recognition, OCR). After the photo containing the test question to be searched is recognized by OCR, the text information contained in the photo will be extracted.

步骤S104:将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配。Step S104: Upload the number of the question to be searched selected by the box and the content of the identified question to be searched to the server for question matching.

本实施例中,将所述识别后的待搜索试题的内容,即仅文字信息,作为上传的内容进行上传,避免由于图片的尺寸大小或者是像素不合适等因素造成的上传失败,可以提升上传的速度,实现快速匹配的目的。In this embodiment, the identified content of the test question to be searched, that is, only the text information, is uploaded as the uploaded content, so as to avoid upload failure caused by factors such as the size of the picture or the inappropriate pixels, which can improve the upload process. speed to achieve the purpose of fast matching.

可选的,所述服务器存储有包含所述待搜索试题的高频题库和题海。Optionally, the server stores a high-frequency question bank and a question list containing the to-be-searched questions.

可选的,所述服务器在接收到所述经框选后的待搜索试题的数量和经识别后的文字信息后,首先在高频题库中进行搜索,若在预设时长内没有发现与所述待搜索试题相匹配的试题后;则开始在题海中进行二次搜索。其中,所述匹配可以包括:与所述待搜索试题完全相同或者同等变形的试题。Optionally, after receiving the frame-selected number of questions to be searched and the identified text information, the server first searches the high-frequency question bank. After describing the test questions that match the test questions to be searched; then start a second search in the question sea. Wherein, the matching may include: test questions that are identical to or equivalently deformed to the test questions to be searched.

可选的,在高频题库中对所述待搜索试题进行搜索后,根据在高频题库中对同一道试题的搜索次数,及时更新所述高频题库。Optionally, after searching the to-be-searched question in the high-frequency question bank, the high-frequency question bank is updated in time according to the number of searches for the same question in the high-frequency question bank.

步骤S105:接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果。Step S105: Receive and display the problem-solving result fed back by the server and corresponding to the to-be-searched question matched this time.

其中,所述解题结果的数量小于或等于所述待搜索试题的数量。可以理解的是,在按照步骤S104所述的方法进行二次搜索后,若在预设时长内在题海中仍未搜索到与所述待搜索试题相匹配的试题,此时服务器反馈的与本次匹配到的待搜索试题对应的解题结果的数量将小于所述待搜索试题的数量。Wherein, the number of the problem-solving results is less than or equal to the number of the to-be-searched questions. It can be understood that, after the secondary search is performed according to the method described in step S104, if no question matching the to-be-searched question is found in the question sea within the preset time period, the server feedback at this time is the same as this time. The number of solution results corresponding to the matched test questions to be searched will be smaller than the number of the to-be-searched questions.

可选的,服务器在接收到从所述照片中框选出每道待搜索试题后,先进行内容的校正,以减少由于试题本身存在错误而出现无法搜索到与之匹配试题的概率。Optionally, after receiving each question to be searched in the frame selected from the photo, the server first performs content correction to reduce the probability that the matching question cannot be searched due to errors in the question itself.

可选的,服务器反馈的搜索结果可以包括:所述待搜索试题的正确答案和/或所述待搜索试题的解题思路。为了启发学生进行思考,在查找到与所述待搜索试题匹配的试题后,可以在发送所述待搜索试题的正确答案之前,先向用户发送所述待搜索试题的解题思路,使得用户在获得所述解题思路之后,可以先进行尝试性答题,在用户根据服务器发送的待搜索题目的解题思路解答完所述待搜索试题后或者用户在获得所述待搜索试题的解题思路后仍然无从下手,再向用户发送所述待搜索试题的正确答案。Optionally, the search result fed back by the server may include: the correct answer of the test question to be searched and/or the problem-solving idea of the test question to be searched. In order to inspire students to think, after finding the question that matches the question to be searched, before sending the correct answer to the question to be searched, the solution idea of the question to be searched may be sent to the user, so that the user can After obtaining the problem-solving idea, you can try to answer the question first, after the user has solved the to-be-searched question according to the problem-solving idea of the to-be-searched question sent by the server, or after the user obtains the problem-solving idea of the to-be-searched question. Still unable to start, then send the correct answer to the question to be searched to the user.

可选的,若用户在获得所述待搜索试题的解题思路后,可进行尝试性答题,则在向用户发送完所述待搜索试题的正确答案后,统计用户最终的答题情况,并在该预定APP的显示界面上,方便用户查看。Optionally, if the user can try to answer the question after obtaining the solution idea of the question to be searched, after sending the correct answer of the question to be searched to the user, the user's final answer is counted, and the user is On the display interface of the reservation APP, it is convenient for the user to view.

由上可见,在本发明实施例中,通过根据第一预设条件框选所述包含待搜索试题的照片中的文字部分得到至少一个文本框,以使得可以得到每一个所述文本框对应的面积和中心点坐标;通过所述每一个文本框的面积和第二预设条件,对所述每一个中心点坐标进行聚类,可以获得完整的所述待搜索试题;通过两次框选可以进一步的确定所述待搜索试题的完整部分,可以将每一道完整的试题作为一个独立的搜索对象来进行搜索,使得上述待搜索试题更加容易识别,有效提升了搜题的准确率,具有较强的易用性和实用性。As can be seen from the above, in this embodiment of the present invention, at least one text box is obtained by box-selecting the text part in the photo containing the test question to be searched according to the first preset condition, so that the corresponding text box can be obtained. area and center point coordinates; through the area of each text box and the second preset condition, the coordinates of each center point are clustered, and the complete test question to be searched can be obtained; through two frame selections To further determine the complete part of the test questions to be searched, each complete test question can be searched as an independent search object, making the above-mentioned questions to be searched easier to identify, effectively improving the accuracy of the search questions, and having a strong ease of use and practicality.

实施例二Embodiment 2

图7是本发明实施例提供的智能终端搜题的装置示意图,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 7 is a schematic diagram of an apparatus for searching questions by an intelligent terminal according to an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.

所述智能终端搜题的装置包括:The device for searching questions by the intelligent terminal includes:

接收单元71,用于接收用户发送的开启多道试题搜索模式的指令;Receiving unit 71 is used for receiving the instruction of opening the multi-question search mode sent by the user;

获取单元72,用于在进入所述多道试题搜索模式后,获取包含待搜索试题的照片;Obtaining unit 72 is used to obtain a photo containing the test question to be searched after entering the multi-question search mode;

自动框选单元73,用于从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别;The automatic frame selection unit 73 is used to frame each question to be searched from the photo, record the number of the question to be searched selected by the frame, and identify each question to be searched selected by the frame;

上传单元74,用于将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配;The uploading unit 74 is used to upload the number of the question to be searched selected by the frame and the content of the question to be searched after the identification to the server for question matching;

显示单元75,用于接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,所述解题结果的数量小于或等于所述待搜索试题的数量。The display unit 75 is configured to receive and display the problem solving results fed back by the server and corresponding to the to-be-searched questions matched this time, where the number of the problem-solving results is less than or equal to the number of the to-be-searched questions.

可选的,所述自动框选单元具体包括:Optionally, the automatic frame selection unit specifically includes:

处理子单元,用于对所述包含待搜索试题的照片进行二值化处理,并根据第一预设条件框选所述包含待搜索试题的照片中的文字部分得到至少一个文本框;a processing subunit, used to perform binarization processing on the photo containing the test question to be searched, and frame-select the text part in the photo containing the test question to be searched according to the first preset condition to obtain at least one text box;

计算子单元,用于计算每一个所述文本框对应的面积和中心点坐标;a calculation subunit for calculating the corresponding area and center point coordinates of each of the text boxes;

自动框选子单元,用于根据所述每一个文本框的面积和第二预设条件,对所述每一个中心点坐标进行聚类,以获得每一道完整的待搜索试题。The automatic frame selection subunit is used for clustering the coordinates of each center point according to the area of each text box and the second preset condition, so as to obtain each complete test question to be searched.

进一步的,所述装置还可包括:Further, the device may also include:

照片拍摄单元,用于在所述智能终端处于熄屏、黑屏、锁屏或休眠状态时,接收到用户按压所述智能终端预定按键的操作和/或接收到预定的语音和/或接收到用户在所述智能终端的显示屏上的预定滑动操作,来启动所述智能终端的摄像头拍摄包含待搜索试题的照片。A photo shooting unit, configured to receive an operation of pressing a predetermined button of the smart terminal by the user and/or receive a predetermined voice and/or receive a user's A predetermined sliding operation on the display screen of the smart terminal starts the camera of the smart terminal to take a photo containing the question to be searched.

实施例三Embodiment 3

图8是本发明实施例提供的智能终端的示意图。如图8所示,该实施例的智能终端8包括:处理器80、存储器81以及存储在所述存储器81中并可在所述处理器80上运行的计算机程序82,例如图1所示的步骤101至105。或者,所述处理器80执行所述计算机程序82时实现上述各装置实施例中各模块/单元的功能,例如图7所示模块71至75的功能。FIG. 8 is a schematic diagram of an intelligent terminal provided by an embodiment of the present invention. As shown in FIG. 8 , the smart terminal 8 of this embodiment includes: a processor 80 , a memory 81 , and a computer program 82 stored in the memory 81 and running on the processor 80 , such as the one shown in FIG. 1 . Steps 101 to 105. Alternatively, when the processor 80 executes the computer program 82, the functions of the modules/units in each of the foregoing apparatus embodiments, such as the functions of the modules 71 to 75 shown in FIG. 7, are implemented.

示例性的,所述计算机程序82可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器81中,并由所述处理器80执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序82在所述智能终端8中的执行过程。例如,所述计算机程序82可以被分割成接收单元、获取单元、自动框选单元、上传单元、显示单元。各单元模块具体功能如下:Exemplarily, the computer program 82 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 81 and executed by the processor 80 to complete the this invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 82 in the intelligent terminal 8 . For example, the computer program 82 can be divided into a receiving unit, an acquiring unit, an automatic frame selection unit, an uploading unit, and a displaying unit. The specific functions of each unit module are as follows:

接收单元,用于接收用户发送的开启多道试题搜索模式的指令;a receiving unit, used for receiving an instruction to open the multi-question question search mode sent by the user;

获取单元,用于在进入所述多道试题搜索模式后,获取包含待搜索试题的照片;an acquisition unit, used to acquire a photo containing the test question to be searched after entering the multi-question search mode;

自动框选单元,用于从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别;An automatic frame selection unit, used to frame each question to be searched from the photo, record the number of the questions to be searched selected by the frame, and identify each question to be searched selected by the frame;

上传单元,用于将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配;The uploading unit is used for uploading the number of the questions to be searched selected by the box and the content of the identified questions to be searched to the server for question matching;

显示单元,用于接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,所述解题结果的数量小于或等于所述待搜索试题的数量。A display unit, configured to receive and display the problem solving results fed back by the server and corresponding to the to-be-searched questions matched this time, where the number of the problem-solving results is less than or equal to the number of the to-be-searched questions.

所述智能终端8可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图8仅仅是智能终端8的示例,并不构成对智能终端8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述智能终端还可以包括输入输出设备、网络接入设备、总线等。The intelligent terminal 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer and a cloud server. The terminal device may include, but is not limited to, the processor 80 and the memory 81 . Those skilled in the art can understand that FIG. 8 is only an example of the smart terminal 8, and does not constitute a limitation on the smart terminal 8, and may include more or less components than the one shown, or combine some components, or different components For example, the intelligent terminal may further include input and output devices, network access devices, buses, and the like.

所称处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 80 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器81可以是所述智能终端8的内部存储单元,例如智能终端8的硬盘或内存。所述存储器81也可以是所述智能终端8的外部存储设备,例如所述智能终端8上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器81还可以既包括所述智能终端8的内部存储单元也包括外部存储设备。所述存储器81用于存储所述计算机程序以及所述智能终端所需的其他程序和数据。所述存储器81还可以用于暂时地存储已经输出或者将要输出的数据。The memory 81 may be an internal storage unit of the smart terminal 8 , such as a hard disk or a memory of the smart terminal 8 . The memory 81 may also be an external storage device of the smart terminal 8, such as a plug-in hard disk equipped on the smart terminal 8, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash card (Flash Card) and so on. Further, the memory 81 may also include both an internal storage unit of the smart terminal 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the intelligent terminal. The memory 81 can also be used to temporarily store data that has been output or will be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. The module is completed, that is, the internal structure of the device is divided into different

同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。The same functional unit or module can complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above-mentioned system, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

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

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

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described 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,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

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

Claims (6)

1.一种智能终端搜题的方法,其特征在于,包括:1. a method for searching questions by an intelligent terminal, is characterized in that, comprising: 接收用户发送的开启多道试题搜索模式的指令;Receive the instruction sent by the user to enable the multi-question search mode; 在进入所述多道试题搜索模式后,获取包含待搜索试题的照片;After entering the multi-question search mode, obtain a photo containing the question to be searched; 从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别;Select each question to be searched from the photo, record the number of questions to be searched selected by the box, and identify each question to be searched selected by the box; 将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配;Upload the number of questions to be searched selected in the box and the content of the identified questions to be searched to the server for question matching; 接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,所述解题结果的数量小于或等于所述待搜索试题的数量;Receive and display the problem solving results corresponding to the to-be-searched questions matched this time fed back by the server, and the number of the problem-solving results is less than or equal to the number of the to-be-searched questions; 其中,在服务器接收到从所述照片中框选出每道待搜索试题后,先进行内容的校正;Wherein, after the server receives and selects each question to be searched from the photo, the content is corrected first; 从所述照片中框选出每道待搜索试题包括:Each question to be searched for framed from the photo includes: 对所述包含待搜索试题的照片进行二值化处理,并根据第一预设条件框选所述包含待搜索试题的照片中的文字部分得到至少一个文本框;Binarization is performed on the photo containing the test question to be searched, and at least one text box is obtained by box-selecting the text part in the photo containing the test question to be searched according to the first preset condition; 计算每一个所述文本框对应的面积和中心点坐标;Calculate the area and center point coordinates corresponding to each of the text boxes; 根据所述每一个文本框的面积和第二预设条件,对所述每一个中心点坐标进行聚类,以获得每一道完整的待搜索试题;According to the area of each text box and the second preset condition, the coordinates of each center point are clustered to obtain each complete test question to be searched; 所述每一个文本框的面积为聚类时每一个中心点的权重值;The area of each text box is the weight value of each center point during clustering; 所述第一预设条件包括:The first preset conditions include: 逐行框选包含所述待搜索试题的照片中的题干;box-select line by line the question stem in the photo containing the test question to be searched; 逐个框选包含所述待搜索试题的照片中的选项;box-select one by one the options in the photo containing the question to be searched; 所述第二预设条件包括:The second preset condition includes: 所述包含待搜索试题的照片中预先设置的题干和选项之间的先后顺序。The sequence of question stems and options preset in the photo containing the test questions to be searched. 2.如权利要求1所述的方法,其特征在于,在接收用户发送的开启多道试题搜索模式的指令之前,还包括:2. method as claimed in claim 1, is characterized in that, before receiving the instruction of opening multi-test question search mode that the user sends, also comprises: 在所述智能终端处于熄屏、黑屏、锁屏或休眠状态时,若接收到用户按压所述智能终端预定按键的操作和/或接收到预定的语音和/或接收到用户在所述智能终端的显示屏上的预定滑动操作,启动所述智能终端的摄像头拍摄包含待搜索试题的照片。When the smart terminal is in the screen-off, black screen, screen-locked or dormant state, if the user presses the predetermined button of the smart terminal and/or receives the predetermined voice and/or receives the user's message on the smart terminal A predetermined sliding operation on the display screen of the smart terminal starts the camera of the smart terminal to take a photo containing the question to be searched. 3.一种智能终端搜题的装置,其特征在于,所述装置包括:3. A device for searching questions by an intelligent terminal, wherein the device comprises: 接收单元,用于接收用户发送的开启多道试题搜索模式的指令;a receiving unit, used for receiving an instruction to open the multi-question question search mode sent by the user; 获取单元,用于在进入所述多道试题搜索模式后,获取包含待搜索试题的照片;an acquisition unit, used to acquire a photo containing the test question to be searched after entering the multi-question search mode; 自动框选单元,用于从所述照片中框选出每道待搜索试题,记录框选出的待搜索试题的数量,并对框选出的每道待搜索试题进行识别;An automatic frame selection unit, used to frame each question to be searched from the photo, record the number of the questions to be searched selected by the frame, and identify each question to be searched selected by the frame; 上传单元,用于将框选出的待搜索试题的数量以及识别后的待搜索试题的内容上传至服务器进行试题匹配;其中,在服务器接收到从所述照片中框选出每道待搜索试题后,先进行内容的校正;The uploading unit is used to upload the number of the question to be searched selected by the frame and the content of the question to be searched after the identification to the server for question matching; wherein, the server receives and selects each question to be searched by the frame from the photo. After that, correct the content first; 显示单元,用于接收并显示所述服务器反馈的与本次匹配到的待搜索试题对应的解题结果,所述解题结果的数量小于或等于所述待搜索试题的数量;a display unit, configured to receive and display the problem solving results corresponding to the to-be-searched questions matched this time fed back by the server, where the number of the problem-solving results is less than or equal to the number of the to-be-searched questions; 所述自动框选单元具体包括:The automatic frame selection unit specifically includes: 处理子单元,用于对所述包含待搜索试题的照片进行二值化处理,并根据第一预设条件框选所述包含待搜索试题的照片中的文字部分得到至少一个文本框;a processing subunit, used to perform binarization processing on the photo containing the test question to be searched, and frame-select the text part in the photo containing the test question to be searched according to the first preset condition to obtain at least one text box; 计算子单元,用于计算每一个所述文本框对应的面积和中心点坐标;a calculation subunit for calculating the corresponding area and center point coordinates of each of the text boxes; 自动框选子单元,用于根据所述每一个文本框的面积和第二预设条件,对所述每一个中心点坐标进行聚类,以获得每一道完整的待搜索试题;The automatic frame selection subunit is used for clustering the coordinates of each center point according to the area of each text box and the second preset condition, so as to obtain each complete test question to be searched; 所述每一个文本框的面积为聚类时每一个中心点的权重值;The area of each text box is the weight value of each center point during clustering; 所述第一预设条件包括:The first preset conditions include: 逐行框选包含所述待搜索试题的照片中的题干;box-select line by line the question stem in the photo containing the test question to be searched; 逐个框选包含所述待搜索试题的照片中的选项;box-select one by one the options in the photo containing the question to be searched; 所述第二预设条件包括:The second preset condition includes: 所述包含待搜索试题的照片中预先设置的题干和选项之间的先后顺序。The sequence of question stems and options preset in the photo containing the test questions to be searched. 4.如权利要求3所述的装置,其特征在于,所述装置还包括:4. The apparatus of claim 3, wherein the apparatus further comprises: 照片拍摄单元,用于在所述智能终端处于熄屏、黑屏、锁屏或休眠状态时,接收到用户按压所述智能终端预定按键的操作和/或接收到预定的语音和/或接收到用户在所述智能终端的显示屏上的预定滑动操作,来启动所述智能终端的摄像头拍摄包含待搜索试题的照片。A photo shooting unit, configured to receive an operation of pressing a predetermined button of the smart terminal by the user and/or receive a predetermined voice and/or receive a user's A predetermined sliding operation on the display screen of the smart terminal starts the camera of the smart terminal to take a photo containing the question to be searched. 5.一种智能终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1或2所述方法的步骤。5. An intelligent terminal comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements the computer program as claimed in the claims Steps of the method described in 1 or 2. 6.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1或2所述方法的步骤。6. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to claim 1 or 2 are implemented.
CN201711239909.2A 2017-11-30 2017-11-30 Method, device and intelligent terminal for searching questions Active CN108021648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711239909.2A CN108021648B (en) 2017-11-30 2017-11-30 Method, device and intelligent terminal for searching questions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711239909.2A CN108021648B (en) 2017-11-30 2017-11-30 Method, device and intelligent terminal for searching questions

Publications (2)

Publication Number Publication Date
CN108021648A CN108021648A (en) 2018-05-11
CN108021648B true CN108021648B (en) 2020-09-04

Family

ID=62077558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711239909.2A Active CN108021648B (en) 2017-11-30 2017-11-30 Method, device and intelligent terminal for searching questions

Country Status (1)

Country Link
CN (1) CN108021648B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697242B (en) * 2018-12-27 2022-03-08 网易有道信息技术(北京)有限公司 Photographing question searching method and device, storage medium and computing equipment
CN118820282A (en) * 2024-09-20 2024-10-22 山东正禾大教育科技有限公司 A fast test question search intelligent terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636742A (en) * 2015-02-16 2015-05-20 珠海市追梦网络科技有限公司 A method and device for automatically locking and transmitting a target topic by camera
CN104866850A (en) * 2015-05-13 2015-08-26 湘潭大学 Optimized binarization method for document images
CN106372126A (en) * 2016-08-24 2017-02-01 广东小天才科技有限公司 Method and device for searching questions by photographing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636742A (en) * 2015-02-16 2015-05-20 珠海市追梦网络科技有限公司 A method and device for automatically locking and transmitting a target topic by camera
CN104866850A (en) * 2015-05-13 2015-08-26 湘潭大学 Optimized binarization method for document images
CN106372126A (en) * 2016-08-24 2017-02-01 广东小天才科技有限公司 Method and device for searching questions by photographing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于二值化聚类的图像文字提取算法";戴维;《计算机应用》;20090131;第29卷(第1期);第57-59页 *

Also Published As

Publication number Publication date
CN108021648A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN108319592B (en) Translation method and device and intelligent terminal
CN109189879B (en) Electronic book display method and device
CN107871000B (en) Audio playback method, device, storage medium and electronic device
CN108898082B (en) Picture processing method, picture processing device and terminal equipment
CN107818168B (en) Topic searching method, device and equipment
CN108961267B (en) Picture processing method, picture processing device and terminal equipment
CN110431563B (en) Method and apparatus for image correction
CN107977431A (en) Image processing method, device, computer device, and computer-readable storage medium
CN111984803B (en) Multimedia resource processing method and device, computer equipment and storage medium
CN108038195A (en) Intelligent terminal question searching method and device, intelligent terminal and storage medium
CN107578659A (en) Electronic title generation method and device and terminal
WO2019137259A1 (en) Image processing method and apparatus, storage medium, and electronic device
US10185724B2 (en) Method for sorting media content and electronic device implementing same
US20170171462A1 (en) Image Collection Method, Information Push Method and Electronic Device, and Mobile Phone
KR20180121273A (en) Method for outputting content corresponding to object and electronic device thereof
CN106776760A (en) Question searching method and device applied to intelligent terminal
CN109359582B (en) Information searching method, information searching device and mobile terminal
CN117668290A (en) Cross-modal retrieval methods, devices, equipment, storage media and computer programs
CN111797746B (en) Face recognition method, device and computer readable storage medium
CN108062405B (en) Image classification method, device, storage medium and electronic device
CN108021648B (en) Method, device and intelligent terminal for searching questions
CN107729491A (en) Method, device and equipment for improving accuracy rate of question answer search
CN107885449A (en) Photographing search method and device, terminal equipment and storage medium
CN110263741A (en) Video frame extraction method, apparatus and terminal device
CN107679222A (en) Image processing method, mobile terminal and computer-readable recording 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
GR01 Patent grant
GR01 Patent grant