CN108021648B - Question searching method and device and intelligent terminal - Google Patents

Question searching method and device and intelligent terminal 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
test
test questions
question
questions
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

Question searching method and device and intelligent terminal
Technical Field
The invention belongs to the technical field of intelligent terminals, and particularly relates to a method and a device for searching questions, an intelligent terminal and a computer readable storage medium.
Background
The homework problem is always the core pain point of students, and with the popularization of the application of the intelligent terminal, the students can quickly acquire correct answers of difficult test questions by using the intelligent terminal provided with question answering application.
However, most of the existing intelligent terminals perform the problem searching in a single mode by photographing, that is, only one test problem can be searched at a time, the problem searching efficiency is low, and the requirements of users are difficult to meet.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for searching for questions, and an intelligent terminal, so as to search for multiple test questions at a time and improve the search efficiency.
A first aspect of an embodiment of the present invention provides a method for searching for a question, including:
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 results which are fed back by the server and correspond to the matched test questions to be searched, wherein the number of the problem solving results is less than or equal to that of the test questions to be searched.
A second aspect of the embodiments of the present invention provides a device for searching questions by an intelligent terminal, where the device includes:
the receiving unit is used for receiving an instruction for starting a multi-channel test question searching mode sent by a user;
the acquisition unit is used for acquiring a photo containing the test questions to be searched after entering the multi-channel test question searching mode;
the automatic frame selection unit is used for selecting each test question to be searched from the picture, recording the number of the test questions to be searched selected from the picture, and identifying each test question to be searched selected from the picture;
the uploading unit is used for 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 the server for matching the test questions;
and the display unit is used for receiving and displaying the problem solving results which are fed back by the server and correspond to the matched test questions to be searched, and the number of the problem solving results is less than or equal to that of the test questions to be searched.
A third aspect of an embodiment of the present invention provides an intelligent terminal, including: the intelligent terminal problem searching method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the intelligent terminal problem searching method in the first aspect.
A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, including: the computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for searching for a question by an intelligent terminal according to the first aspect or the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, the current test question searching mode is a multi-channel test question searching mode by receiving an instruction for starting the multi-channel test question searching mode sent by a user; selecting each test question to be searched from the picture frame by obtaining the picture containing the test questions to be searched, recording the number of the test questions to be searched selected by the picture frame, identifying each test question to be searched selected by the picture frame, uploading the number of the test questions to be searched selected by the picture frame and the content of the identified test questions to be searched to a server for matching the test questions, and improving the uploading speed and the matching accuracy; by receiving and displaying the problem solving result which is fed back by the server and corresponds to the matched test question to be searched, the embodiment of the invention can upload a plurality of test questions to be searched at one time, effectively improves the efficiency of searching the test questions and has stronger usability and practicability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a question searching method of an intelligent terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a specific implementation of step S103 in fig. 1 according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of the block-selected test questions in step S201 in fig. 2 according to an embodiment of the present invention;
fig. 4 is a schematic diagram of the block-selected test questions in step S203 in fig. 2 according to an embodiment of the present invention;
fig. 5 is a schematic diagram of the block-selected test questions in step S203 in fig. 2 according to an embodiment of the present invention;
fig. 6 is a schematic diagram of the block-selected test questions in step S203 in fig. 2 according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an apparatus for searching questions by an intelligent terminal according to a second embodiment of the present invention;
fig. 8 is a schematic diagram of an intelligent terminal according to a third embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from 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 will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes 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 interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the smart terminals described in embodiments of the present invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., 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 is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a smart terminal is described that includes a display and a touch-sensitive surface. 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.
The intelligent terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
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 can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
The present invention provides a method for searching for questions, please refer to fig. 1, the method for searching for questions in the embodiment of the present invention includes the following steps:
step S101: and receiving an instruction for starting a multi-channel test question searching mode sent by a user.
In this embodiment, when the intelligent terminal is in a dormant state, if an operation that a user presses a preset key of the intelligent terminal is received, the camera of the intelligent terminal is started to shoot a picture containing a test question to be searched, so that the user is prevented from taking a picture only by complicated operations such as starting, unlocking, opening an application program and the like, and the purpose of starting up the terminal by one key is achieved. The intelligent terminal can be any one of terminal equipment such as a smart phone, a smart bracelet, a tablet computer and the like; the dormant state can be screen off, screen blacking, screen locking and the like; the preset key can be any one physical key; the instruction for starting the camera of the intelligent terminal to shoot the photo containing the test questions to be searched can also be a preset voice or a preset sliding operation of a user on a display screen of the intelligent terminal, and therefore excessive limitation is not imposed.
Optionally, the selection of the question searching mode may be completed at a predetermined position of a predetermined APP. The APP preset by the mobile terminal can be hot application software such as a job help; the predetermined position may be any position in the display interface that does not affect the user's viewing of the display content, for example, the upper right corner, the lower right corner, the upper left corner, or the lower left corner of the display interface.
Optionally, the topic searching mode may include: a search mode of single-channel test questions and a search mode of multiple-channel test questions; it is to be understood that when the user performs only one test question search, either of the two question search modes may be selected.
In this embodiment, the types of the test questions to be searched include, but are not limited to: selecting questions, filling in blank questions, solving and answering the questions.
Step S102: and after entering the multi-channel test question searching mode, acquiring a photo containing the test question to be searched.
Optionally, the photo containing the test question to be searched may be generated by starting a camera of the intelligent terminal to shoot.
Optionally, when the user takes a picture, the user selects horizontal screen shooting.
Optionally, when taking a picture, the user may select to take only the portion containing the test questions to be searched, or may take a picture of the entire content of the page where the test questions to be searched are located.
Optionally, when the user selects to photograph all the contents of the page where the test questions to be searched are located, the intelligent terminal automatically cuts the photos containing the test questions to be searched, so that the photos only contain all the information of the test questions to be searched, interference contents except the test questions to be searched by the user are reduced, the purpose of quickly identifying the test questions to be searched by the user is achieved, and the efficiency of searching the test questions is improved.
Step S103: and selecting each test question to be searched from the picture frames, recording the number of the test questions to be searched selected from the frames, and identifying each test question to be searched selected from the frames.
Optionally, to describe the step S103 more clearly and clearly, fig. 2 shows a specific implementation flow for obtaining each test question to be searched, which is detailed as follows:
as shown in fig. 2, in an embodiment of the present invention, the selecting each test question to be searched from the photo frame includes:
step S201: carrying out binarization processing on the photo containing the test questions to be searched, and framing character parts in the photo containing the test questions to be searched according to a first preset condition to obtain at least one text box;
wherein, the binarization processing process may include:
carrying out gray processing on the obtained picture containing the test questions to be searched to obtain a gray image containing the test questions to be searched;
segmenting the bar code region in the gray level image to obtain a black and white image of the gray level image;
and positioning the black-and-white image, and correcting the positioned black-and-white image.
In this embodiment, the first preset condition may be: framing the question stem in the photo containing the test question to be searched line by line; and selecting options in the photos containing the test questions to be searched one by one.
Illustratively, as shown in fig. 3, when the type of the test questions to be searched is a choice question, the complete part of each test question contains two parts, namely a question stem and a choice. At this time, when the frame selection operation is performed, the question stem is subjected to frame selection line by line, and the four options are subjected to frame selection one by one. The method specifically comprises the following steps: firstly, carrying out frame selection on a first line of a question stem to obtain a text box 1 (the text box with the largest upper surface); and then A, B, C, D of the four options below the question stem are respectively selected one by one to obtain 4 corresponding text boxes, namely a text box 2, a text box 3, a text box 4 and a text box 5 from left to right.
Step S202: calculating the area and the center point coordinate corresponding to each text box;
optionally, each text box obtained after the 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 may be obtained by a mathematical method using the formula S ═ ab, where a denotes the length of each rectangle and b denotes the width of each rectangle.
Alternatively, the coordinates of the center point of each text box may be the geometric center position of each text box.
Step S203: and clustering the coordinates of each central point according to the area of each text box and a second preset condition to obtain each complete test question to be searched.
In this embodiment, the second preset condition may be: the sequence between the question stem and the option preset in the photo containing the test question to be searched.
Optionally, the area of each text box is a weight value of each central point in clustering.
Optionally, the number of the test questions to be searched can be obtained by clustering. The clustering operation in this embodiment may use a common clustering algorithm, taking fig. 3 as an example, the initial class center is the geometric center of the text box 1, the distances between the coordinates of the center points of the remaining text boxes and the coordinates of the center point of the text box 1 are calculated, and the text box closest to the geometric center of the text box 1 is selected as the class to which the sample belongs. Wherein, the distance can be obtained by adopting a distance calculation method between two points on a plane. It can be understood that, after performing the clustering operation for a plurality of times, if the number of the obtained test questions to be searched remains unchanged all the time, the number can be used as the actual number of the test questions to be searched.
It should be noted that, for the choice questions, the distance between two previous and next test questions is relatively close due to the influence of various factors such as the number of test questions and paper, and at this time, clustering needs to be performed by adding some preset conditions to perform clustering judgment. Optionally, the order of the question stem and the option setting is used as an auxiliary condition to perform clustering judgment.
For convenience of description, when the question stem and the option of the 2 nd test question are respectively selected, the obtained text boxes are all represented by dashed boxes. For example, when the 2 nd test question shown in fig. 3 needs to be clustered, the method described in step S201 may be firstly performed to perform frame selection, and 6 text boxes identified by dashed lines are obtained as shown in fig. 4; then, the center coordinate of the text box with the largest dotted line in fig. 4 is used as the initial class center for clustering, and at this time, an auxiliary condition that whether the test questions are the same is judged according to the sequence of the question stem and the option setting is added. Therefore, when the complete part of the 2 nd test question is judged, 4 options above the question stem closest to the 2 nd test question are not classified as the rest contents of the same test question as shown in fig. 5; instead, as shown in fig. 6, 4 options below the stem closest to the 2 nd test question are classified as the rest of the same test question, so that the classification precision and the frame selection accuracy are improved.
Alternatively, each of the test questions to be searched selected by the frame may be recognized by an Optical Character Recognition (OCR) technique. And after the photo containing the test questions to be searched is identified by OCR, extracting character information contained in the photo.
Step S104: and 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.
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 that uploading failure caused by factors such as the size of a picture or pixel incompatibility is avoided, uploading speed can be increased, and the purpose of fast matching is achieved.
Optionally, the server stores a high-frequency question bank and a question sea containing the test questions to be searched.
Optionally, after receiving the number of the framed test questions to be searched and the identified text information, the server searches in a high-frequency question bank first, and if no test question matched with the test question to be searched is found within a preset time length; a second search in the foreign sea is started. Wherein the matching may include: the test questions are completely the same as or the same as the test questions to be searched.
Optionally, after the test questions to be searched are searched in the high-frequency question bank, the high-frequency question bank is updated in time according to the number of times of searching the same test question in the high-frequency question bank.
Step S105: and receiving and displaying the problem solving result fed back by the server and corresponding to the matched test question to be searched.
And the number of the problem solving results is less than or equal to the number of the test problems to be searched. It can be understood that, after the secondary search is performed according to the method in step S104, if the test questions matched with the test questions to be searched are not searched in the topic sea within the preset time period, the number of the answer results corresponding to the currently matched test questions to be searched, which are fed back by the server, will be smaller than the number of the test questions to be searched.
Optionally, after receiving the test questions to be searched selected from the picture frame, the server corrects the content to reduce the probability that the test questions cannot be searched and matched with the test questions due to errors of the test questions.
Optionally, the search result fed back by the server may include: the correct answers of the test questions to be searched and/or the solution thinking of the test questions to be searched. In order to inspire students to think, after the test questions matched with the test questions to be searched are found, before the correct answers of the test questions to be searched are sent, the solution thought of the test questions to be searched can be sent to the users firstly, so that the users can try to answer the test questions firstly after obtaining the solution thought, after the users finish answering the test questions to be searched according to the solution thought of the test questions to be searched sent by the server or after obtaining the solution thought of the test questions to be searched, the users still have no trouble, and then the correct answers of the test questions to be searched are sent to the users.
Optionally, if the user can try to answer after obtaining the solution thought of the test question to be searched, after sending the correct answer of the test question to be searched to the user, the final answer condition of the user is counted, and the user can check the answer condition conveniently on the display interface of the preset APP.
As can be seen from the above, in the embodiment of the present invention, at least one text box is obtained by framing and selecting the text portion in the photo containing the test question to be searched according to a first preset condition, so that the area and the center point coordinate corresponding to each text box can be obtained; clustering the coordinates of each central point through the area of each text box and a second preset condition to obtain the complete test question to be searched; the complete part of the test questions to be searched can be further determined through two frame selections, and each complete test question can be used as an independent search object to be searched, so that the test questions to be searched can be identified more easily, the accuracy of the search questions is effectively improved, and the method has high usability and practicability.
Example two
Fig. 7 is a schematic diagram of an apparatus for searching questions by an intelligent terminal according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description.
The device that the intelligent terminal searched for the question includes:
a receiving unit 71, configured to receive an instruction sent by a user to start a multi-channel test question search mode;
an obtaining unit 72, configured to obtain a photo containing a test question to be searched after entering the multi-test question searching mode;
the automatic framing unit 73 is used for framing out each to-be-searched test question from the photo, recording the number of the to-be-searched test questions framed out, and identifying each to-be-searched test question framed out;
the uploading unit 74 is configured to upload the number of the test questions to be searched selected by the frame and the identified content of the test questions to be searched to the server for matching the test questions;
and a display unit 75, configured to receive and display problem solving results corresponding to the currently matched test questions to be searched, where the number of the problem solving results is less than or equal to the number of the test questions to be searched.
Optionally, the automatic frame selection unit specifically includes:
the processing subunit is used for carrying out binarization processing on the photo containing the test questions to be searched, and framing character parts in the photo containing the test questions to be searched according to a first preset condition to obtain at least one text box;
the calculation subunit is used for calculating the area and the center point coordinate corresponding to each text box;
and the automatic frame selection subunit is used for clustering the coordinates of each central point according to the area of each text box and a second preset condition so as to obtain each complete test question to be searched.
Further, the apparatus may further include:
and the picture shooting unit is used for receiving the operation of pressing a preset key of the intelligent terminal and/or receiving preset voice and/or receiving the preset sliding operation of the user on the display screen of the intelligent terminal when the intelligent terminal is in a screen-off state, a screen-blacking state, a screen-locking state or a dormant state, and starting a camera of the intelligent terminal to shoot the picture containing the test questions to be searched.
EXAMPLE III
Fig. 8 is a schematic diagram of an intelligent terminal according to an embodiment of the present invention. As shown in fig. 8, the intelligent terminal 8 of this embodiment includes: a processor 80, a memory 81 and a computer program 82 stored in said memory 81 and operable on said processor 80, such as the steps 101 to 105 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 71 to 75 shown in fig. 7.
Illustratively, the computer program 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 82 in the intelligent terminal 8. For example, the computer program 82 may be divided into a receiving unit, an acquiring unit, an automatic frame selection unit, an uploading unit, a display unit. The specific functions of each unit module are as follows:
the receiving unit is used for receiving an instruction for starting a multi-channel test question searching mode sent by a user;
the acquisition unit is used for acquiring a photo containing the test questions to be searched after entering the multi-channel test question searching mode;
the automatic frame selection unit is used for selecting each test question to be searched from the picture, recording the number of the test questions to be searched selected from the picture, and identifying each test question to be searched selected from the picture;
the uploading unit is used for 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 the server for matching the test questions;
and the display unit is used for receiving and displaying the problem solving results which are fed back by the server and correspond to the matched test questions to be searched, and the number of the problem solving results is less than or equal to that of the test questions to be searched.
The intelligent terminal 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a smart terminal 8 and does not constitute a limitation of the smart terminal 8 and may include more or less components than those shown, or some components in combination, or different components, for example, the smart terminal may also include input-output devices, network access devices, buses, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may be an internal storage unit of the intelligent terminal 8, such as a hard disk or a memory of the intelligent terminal 8. The memory 81 may also be an external storage device of the intelligent terminal 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the intelligent terminal 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the smart terminal 8. The memory 81 is used for storing the computer program and other programs and data required by the intelligent terminal. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated as examples, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different parts
The same functional units or modules to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed terminal device and method may be implemented in other ways. For example, the above-described terminal device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (6)

1. A method for searching questions by an intelligent terminal is characterized by comprising 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;
receiving and displaying problem solving results which are fed back by the server and correspond to the matched test questions to be searched, wherein the number of the problem solving results is less than or equal to that of the test questions to be searched;
after the server receives the test questions to be searched selected from the photo frames, the content is corrected;
selecting each test question to be searched from the picture frames comprises the following steps:
carrying out binarization processing on the photo containing the test questions to be searched, and framing character parts in the photo containing the test questions to be searched according to a first preset condition to obtain at least one text box;
calculating the area and the center point coordinate corresponding to each text box;
clustering the coordinates of each central point according to the area of each text box and a second preset condition to obtain each complete test question to be searched;
the area of each text box is the weight value of each central point in clustering;
the first preset condition includes:
framing the question stem in the photo containing the test question to be searched line by line;
selecting options in the photos containing the test questions to be searched one by one;
the second preset condition includes:
and the sequence between the question stem and the option preset in the photo containing the test question to be searched.
2. The method of claim 1, wherein before receiving the instruction sent by the user to start the multi-channel test question search mode, the method further comprises:
when the intelligent terminal is in a screen-off state, a screen-blacking state, a screen-locking state or a dormant state, if receiving an operation of pressing a preset key of the intelligent terminal by a user and/or receiving a preset voice and/or receiving a preset sliding operation of the user on a display screen of the intelligent terminal, starting a camera of the intelligent terminal to shoot a photo containing a test question to be searched.
3. The utility model provides a device of intelligent terminal search for a question, its characterized in that, the device includes:
the receiving unit is used for receiving an instruction for starting a multi-channel test question searching mode sent by a user;
the acquisition unit is used for acquiring a photo containing the test questions to be searched after entering the multi-channel test question searching mode;
the automatic frame selection unit is used for selecting each test question to be searched from the picture, recording the number of the test questions to be searched selected from the picture, and identifying each test question to be searched selected from the picture;
the uploading unit is used for 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 the server for matching the test questions; after the server receives the test questions to be searched selected from the photo frames, the content is corrected;
the display unit is used for receiving and displaying the problem solving results which are fed back by the server and correspond to the matched test questions to be searched, and the number of the problem solving results is less than or equal to that of the test questions to be searched;
the automatic frame selection unit specifically comprises:
the processing subunit is used for carrying out binarization processing on the photo containing the test questions to be searched, and framing character parts in the photo containing the test questions to be searched according to a first preset condition to obtain at least one text box;
the calculation subunit is used for calculating the area and the center point coordinate corresponding to each text box;
the automatic frame selection subunit is used for clustering the coordinates of each central point according to the area of each text box and a 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 central point in clustering;
the first preset condition includes:
framing the question stem in the photo containing the test question to be searched line by line;
selecting options in the photos containing the test questions to be searched one by one;
the second preset condition includes:
and the sequence between the question stem and the option preset in the photo containing the test question to be searched.
4. The apparatus of claim 3, wherein the apparatus further comprises:
and the picture shooting unit is used for receiving the operation of pressing a preset key of the intelligent terminal and/or receiving preset voice and/or receiving the preset sliding operation of the user on the display screen of the intelligent terminal when the intelligent terminal is in a screen-off state, a screen-blacking state, a screen-locking state or a dormant state, and starting a camera of the intelligent terminal to shoot the picture containing the test questions to be searched.
5. An intelligent terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to claim 1 or 2 are implemented when the processor executes the computer program.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to claim 1 or 2.
CN201711239909.2A 2017-11-30 2017-11-30 Question searching method and device and intelligent terminal Active CN108021648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711239909.2A CN108021648B (en) 2017-11-30 2017-11-30 Question searching method and device and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711239909.2A CN108021648B (en) 2017-11-30 2017-11-30 Question searching method and device and intelligent terminal

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 Question searching method and device and intelligent terminal

Country Status (1)

Country Link
CN (1) CN108021648B (en)

Families Citing this family (1)

* 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

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 珠海市追梦网络科技有限公司 Method and equipment for automatically locking target topic and transmitting target topic through image pick-up
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 珠海市追梦网络科技有限公司 Method and equipment for automatically locking target topic and transmitting target topic through image pick-up
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
US11158057B2 (en) Device, method, and graphical user interface for processing document
CN109684980B (en) Automatic scoring method and device
CN108898082B (en) Picture processing method, picture processing device and terminal equipment
CN108961267B (en) Picture processing method, picture processing device and terminal equipment
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
CN109118447B (en) Picture processing method, picture processing device and terminal equipment
CN106991179B (en) Data deleting method and device and mobile terminal
CN110119733B (en) Page identification method and device, terminal equipment and computer readable storage medium
EP3107012A1 (en) Modifying search results based on context characteristics
CN108304562B (en) Question searching method and device and intelligent terminal
CN110431563B (en) Method and device for correcting image
CN109359582B (en) Information searching method, information searching device and mobile terminal
CN110463177A (en) The bearing calibration of file and picture and device
CN107729491B (en) Method, device and equipment for improving accuracy rate of question answer search
US20200320291A1 (en) Techniques to determine document recognition errors
US20190107929A1 (en) Method and device for loading content of page, and electronic device
CN107679222B (en) Picture processing method, mobile terminal and computer readable storage medium
CN109358927B (en) Application program display method and device and terminal equipment
CN111027533B (en) Click-to-read coordinate transformation method, system, terminal equipment and storage medium
CN108021648B (en) Question searching method and device and intelligent terminal
CN107071553B (en) Method, device and computer readable storage medium for modifying video and voice
CN112596725A (en) Grading method and grading device for programming works, terminal equipment and storage medium
CN111597936A (en) Face data set labeling method, system, terminal and medium based on deep learning
CN112417197B (en) Sorting method, sorting device, machine readable medium and equipment

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