Question search method, device, terminal device and readable storage medium

Through full-page question image segmentation and splicing text information, combined with index database search, the problem of OCR recognition errors in massive questions is solved, and the accuracy and efficiency of question search are improved.

CN114581919BActive Publication Date: 2024-10-25GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210250000.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2024-10-25
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

In the existing photo-based question search technology, when only using the OCR text information of one question to search a large number of questions, recognition errors are prone to occur, resulting in a decrease in the accuracy of the search results and the inability to accurately search for the original question.

Method used

By obtaining the image of the full-page title, segmenting and coding, identifying and splicing the text information, determining the book information corresponding to the text information of the full-page title, and searching in the preset index library, increasing the weight of relevant book information and improving retrieval accuracy sex.

Benefits of technology

It improves the accuracy of search results, reduces the calculation amount and search time in the massive question bank, and enhances the recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581919B_ABST
    Figure CN114581919B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of question searching, and in particular, relates to a question searching method, apparatus, terminal device and readable storage medium. The communication method of the present application includes: obtaining an image of a whole page of questions, the whole page of questions including the questions to be searched; segmenting the image of the whole page of questions to obtain multiple groups of segmented images; identifying text information in multiple groups of segmented images, and splicing the text information in multiple groups of segmented images to obtain text information of the whole page of questions; determining the book information corresponding to the text information of the whole page of questions based on the text information of the whole page of questions; determining the target question information corresponding to the questions to be searched based on the book information. That is, the question searching method of the present application improves the accuracy of question searching compared to searching in a question bank with a large number of questions and a large number of similar questions using only the OCR text information of one question.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of question searching, and in particular to a question searching method, apparatus, terminal device and readable storage medium. Background Art

[0002] In the existing photo-taking search technology, a user usually clicks or frames a question to be searched for optical character recognition (OCR) and searches for the question.

[0003] The problem with this method is that when only the OCR text information of one question is used to search in a question bank with a large number of questions and a large number of similar questions, some key information in the question will be recognized incorrectly, resulting in a decrease in the accuracy of the search results and the failure to search out the original question. Summary of the invention

[0004] The embodiments of the present application provide a question search method, apparatus, terminal device and readable storage medium to improve the accuracy of question search results.

[0005] In a first aspect, an embodiment of the present application provides a question search method, comprising:

[0006] Acquire an image of a full page of topics, wherein the full page of topics includes the topic to be searched;

[0007] Segmenting the image of the entire page of titles to obtain multiple groups of segmented images;

[0008] Identify the text information in the multiple groups of segmented images, and splice the text information in the multiple groups of segmented images to obtain the text information of the entire page title;

[0009] Determining book information corresponding to the text information of the whole page of titles according to the text information of the whole page of titles;

[0010] According to the book information, target topic information corresponding to the topic to be searched is determined.

[0011] In a possible implementation of the first aspect, segmenting the image of the entire page of titles to obtain a plurality of groups of segmented images includes:

[0012] The image of the entire page of titles is divided equally or unequally to obtain a plurality of groups of the divided images, and the plurality of groups of the divided images are encoded to obtain encoding information of the plurality of groups of the divided images.

[0013] The step of splicing the text information in the plurality of groups of segmented images to obtain the text information of the entire page title includes:

[0014] According to the coding information of the multiple groups of segmented images, the text information in the multiple groups of segmented images is spliced ​​to obtain the text information of the full page title.

[0015] Wherein, determining the book information corresponding to the text information of the whole page title according to the text information of the whole page title includes:

[0016] Searching for document information related to the text information of the full-page title in a preset first index library, wherein the preset first index library contains document information corresponding to each full-page title, and the document information corresponding to each full-page title includes the text information of the full-page title, the book information corresponding to the text information of the full-page title, and the page number information of the text information of the full-page title in the book;

[0017] Based on the document information, book information corresponding to the text information of the entire page title is determined.

[0018] The searching for document information related to the text information of the entire page title includes:

[0019] Determining the relevance between the text information of the entire page title and the document information in the preset first index library according to a preset relevance operator;

[0020] According to the relevance, document information related to the text information of the entire page title is determined.

[0021] Wherein, determining the book information corresponding to the text information of the entire page title based on the document information includes:

[0022] Counting the number of occurrences of the book information corresponding to the text information of the full-page title in the document information related to the text information of the full-page title;

[0023] According to the number of times, the book information corresponding to the text information of the full-page title is sorted to obtain sequentially arranged book information, and the sequentially arranged book information is determined as the book information corresponding to the full-page title.

[0024] Wherein, determining the target topic information corresponding to the topic to be searched according to the book information includes:

[0025] Searching for document information related to the text information of the title to be searched in a preset second index library, wherein the preset second index library contains document information corresponding to each title in a plurality of groups of books arranged in sequence, wherein the document information corresponding to each title includes the text information of the title, the book information corresponding to the text information of the title, and the page number information of the text information of the title in the book;

[0026] When searching, increase the weight of the book information with the maximum number of times;

[0027] According to the weights of the book information arranged in sequence, the target topic information corresponding to the topic to be searched is determined.

[0028] In a second aspect, an embodiment of the present application provides a question searching device, comprising:

[0029] An acquisition module, used to acquire an image of a whole page of titles, wherein the whole page of titles includes the title to be searched;

[0030] A segmentation module, used for segmenting the image of the whole page title to obtain multiple groups of segmented images;

[0031] A recognition module, used for recognizing text information in a plurality of groups of segmented images, and splicing the text information in the plurality of groups of segmented images to obtain text information of the entire page title;

[0032] A first determination module, configured to determine book information corresponding to the text information of the whole page of titles according to the text information of the whole page of titles;

[0033] The second determining module is used to determine the target title information corresponding to the title to be searched according to the book information.

[0034] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the question searching method as described in the first aspect when executing the computer program.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein the computer program, when executed by a processor, implements the question-searching method as described in the first aspect.

[0036] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the question search method of the embodiments of the present application obtains an image of a whole page of questions, the whole page of questions contains the questions to be searched; the image of the whole page of questions is segmented to obtain multiple groups of segmented images; the text information in the multiple groups of segmented images is identified, and the text information in the multiple groups of segmented images is spliced ​​to obtain the text information of the whole page of questions; the book information corresponding to the text information of the whole page of questions is determined based on the text information of the whole page of questions; the target question information corresponding to the questions to be searched is determined based on the book information. That is, the present application can determine the book information corresponding to the text information of the whole page of questions through the text information of the whole page of questions; and the target question information corresponding to the questions to be searched is determined based on the book information, which improves the accuracy of question search compared to searching in a question bank with a large number of questions and a large number of similar questions using only the OCR text information of one question. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 This is a schematic diagram of an application scenario of the question search method provided in one embodiment of the present application;

[0039] Figure 2 is a schematic flow chart of a control method of a scanning pen provided in an embodiment of the present application;

[0040] Figure 3 is a schematic flow chart of a specific method of S204 provided in an embodiment of the present application;

[0041] Figure 4 is a schematic flow chart of a specific method of S301 provided in an embodiment of the present application;

[0042] Figure 5 This is a schematic flow chart of a specific method of S302 provided in an embodiment of the present application;

[0043] Figure 6 is a schematic flow chart of a specific method of S205 provided in an embodiment of the present application;

[0044] Figure 7 It is a structural schematic diagram of a question-searching device provided in an embodiment of the present application;

[0045] Figure 8 It is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application. In other cases, the specific technical details of each embodiment may be referenced to each other, and a specific system not described in one embodiment may be referenced to other embodiments.

[0047] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0048] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0049] References to "an embodiment of the present application" or "some embodiments" described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in other embodiments", "an embodiment of the present application", "other embodiments of the present application", etc. that appear in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0050] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0051] In the existing photo-taking search technology, a user usually clicks or frames a question to be searched for optical character recognition (OCR) and searches for the question.

[0052] The problem with this method is that when only the OCR text information of one question is used to search in a question bank with a large number of questions and a large number of similar questions, some key information in the question will be recognized incorrectly, resulting in a decrease in the accuracy of the search results and the failure to search out the original question.

[0053] In order to solve the above-mentioned defects, the inventive concept of the present application is as follows:

[0054] The present application can determine the book information corresponding to the text information of a whole page of questions through the text information of the whole page of questions; and determine the target question information corresponding to the question to be searched based on the book information. This improves the accuracy of question search compared to using only the OCR text information of one question to search in a question bank with a large number of questions and a large number of similar questions.

[0055] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0056] Please refer to Figure 1 , Figure 1 This is a schematic diagram of an application scenario of the question search method provided in an embodiment of the present application. For the convenience of explanation, only the part related to the present application is shown. The application scenario includes: a terminal device 100 and a full page of questions 200.

[0057] The terminal device 100 includes a scanning pen, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any limitation on the specific type of the terminal device.

[0058] The full page of questions 200 in the embodiment of the present application can be a full page of questions in a book, or multiple questions in a full page, or multiple questions in a test paper, or multiple questions written temporarily. Exemplarily, the full page of questions 200 includes three questions A, B and C. Among them, question B is the question to be searched.

[0059] The title in the embodiment of the present application can be a printed font or a handwritten font, and the embodiment of the present application does not limit the font type of the title.

[0060] The terminal device mainly obtains the image of the whole page title 200 to determine the book information corresponding to the text information of the whole page title; and determines the target title information corresponding to the title to be searched according to the book information.

[0061] For the method of determining the target topic information corresponding to the topic to be searched in the embodiment of the present application, please refer to Figure 2 , Figure 2 It is a schematic flowchart of a method for determining target topic information corresponding to a topic to be searched provided in an embodiment of the present application. Figure 2 The execution subject of the method in can be Figure 1 The terminal device 100 in FIG. Figure 2 As shown, the method includes: S201 to S205.

[0062] S201, obtaining an image of the entire page of titles.

[0063] Specifically, the entire page of titles contains the titles to be searched.

[0064] A photographic component is usually configured in the terminal device. In the embodiment of the present application, the terminal device can obtain an image of the entire page of titles through the photographic component. The embodiment of the present application does not limit the type of the photographic component.

[0065] In the embodiment of the present application, after obtaining the image of the entire page of titles, the obtained image needs to be preprocessed, and the preprocessing includes graying, binarization, smoothing and other processing. The purpose of the preprocessing is to correct the obtained image and unify the specifications. The embodiment of the present application does not limit the method of preprocessing.

[0066] S202, segment the image of the entire page of titles to obtain multiple groups of segmented images.

[0067] Specifically, in an embodiment of the present application, the terminal device can segment the image of the entire page of titles by a threshold-based segmentation method, an edge-based segmentation method, a region-based segmentation method, an image segmentation method based on cluster analysis, a wavelet transform-based segmentation method, a mathematical morphology-based segmentation method, or an artificial neural network-based segmentation method to obtain multiple groups of segmented images. The embodiment of the present application does not limit the image segmentation method.

[0068] In the embodiment of the present application, when segmenting the image of the whole page of titles, the image of the whole page of titles may be segmented into equal parts, or may be segmented into unequal parts to obtain multiple groups of segmented images.

[0069] In some embodiments, the terminal device may divide the image of the entire page of titles into multiple equal blocks according to the pixels of the entire page of titles, and the pixels of each block of the image are the same, and one block of the image is a group of divided images.

[0070] In some other embodiments, the terminal device may divide the image of the full-page title into multiple blocks in an unequal manner according to the pixels of the full-page title, and the pixels of each block of the image are different, or the pixels of each block of the image are not all the same.

[0071] In the implementation of the present application, when the image of the entire page title is segmented, multiple groups of segmented images may be encoded to obtain encoding information of the multiple groups of segmented images.

[0072] In some embodiments, when encoding multiple groups of segmented images, the multiple groups of segmented images may be labeled using an image annotation technology, and the label is used to identify the position information of each group of segmented images in the full-page image.

[0073] In some embodiments, obtaining encoding information of multiple groups of segmented images is to obtain label information of multiple groups of segmented images.

[0074] S203, identifying text information in the multiple groups of segmented images, and splicing the text information in the multiple groups of segmented images to obtain text information of the entire page title.

[0075] Specifically, the embodiments of the present application can identify multiple groups of segmented images through OCR technology to obtain text information in the multiple groups of segmented images.

[0076] In some embodiments, when identifying text information in multiple groups of segmented images, the text information in each group of segmented images is first detected. Text detection is to locate the text area in each group of segmented images, and then mark the text in the form of a text box. In some embodiments, the text box can be a rectangular box. In the embodiment of the present application, a detection model based on deep learning can be used to detect text, such as: Efficient and AccuracyScene Text (EAST) model, etc.

[0077] Secondly, the text in the text box is recognized, and the text information in the multiple groups of segmented images can be obtained. In the embodiment of the present application, a recognition model based on deep learning can be used to recognize the text, for example, a residual neural network model ResNet.

[0078] In other embodiments, when identifying text information in multiple groups of segmented images, text detection and text recognition can also be implemented in one network structure, such as a Fast Oriented Text Spotting with a Unified Network (FOTS) model.

[0079] In the embodiment of the present application, the method for splicing the text information in multiple groups of segmented images to obtain the text information of the entire page title may be:

[0080] According to the coding information of the multiple groups of segmented images, the text information in the multiple groups of segmented images is spliced ​​to obtain the text information of the entire page title.

[0081] In some embodiments, based on the encoding information of multiple groups of segmented images, that is, based on the label information of the multiple groups of segmented images, that is, based on the position information of each group of segmented images in the full-page image, the text information in the multiple groups of segmented images is spliced ​​to obtain the text information of the full-page title.

[0082] In the embodiment of the present application, a string concatenation method may be used to concatenate text information in multiple groups of segmented images.

[0083] S204: Determine the book information corresponding to the text information of the entire page of titles according to the text information of the entire page of titles.

[0084] Specifically, in some embodiments, when determining the book information corresponding to the text information of the entire page title, the text information of the entire page title can be input into a trained neural network model. In the neural network model, multiple word segments of the entire page title can be obtained based on the text information of the entire page title. Then, based on the obtained word frequency values ​​of each word segment in multiple different subjects, the book information corresponding to the text information of the entire page title can be identified.

[0085] The training method of the neural network model is:

[0086] The text information of the sample full-page title is obtained, and the corresponding book information is marked in the text information of the sample full-page title.

[0087] Input the text information of the entire page of sample titles into the neural network model for training.

[0088] In the neural network model, multiple word segments of the sample full-page title and the word frequency values ​​of each word segment in different books are obtained.

[0089] According to the word frequency values ​​of each word segment in different books, the book information corresponding to the text information of the sample full-page title is identified. If the identification result is inconsistent with the marked book information, the word frequency values ​​of each word segment in different books are adjusted to obtain the adjusted word frequency values.

[0090] After the adjustment, book recognition is performed again according to the adjusted word frequency values ​​corresponding to each word segment in different books. The adjustment and recognition is a cyclic process until the adjusted word frequency values ​​can make the book recognition result consistent with the book mark.

[0091] Through the above process, after training a certain number of sample full-page titles, relatively accurate word segmentation of the full-page titles and their corresponding word frequency values ​​of different books can be obtained, so that when subsequently identifying the full-page titles of unknown books, the book information to which the full-page titles belong can be accurately identified.

[0092] In other embodiments, please refer to the method for determining the book information corresponding to the text information of the entire page title. Figure 3 , Figure 3 It is a schematic flow chart of a specific method of S204 provided in an embodiment of the present application. Figure 3 The execution subject of the method in can be Figure 1 The terminal device 100 in FIG. Figure 3 As shown, the method includes: S301 to S302.

[0093] S301. Searching for document information related to the text information of the entire page title in a preset first index library.

[0094] Specifically, the preset first index library contains document information corresponding to each full-page title, and the document information corresponding to each full-page title includes text information of the full-page title, book information corresponding to the text information of the full-page title, and page number information of the text information of the full-page title in the book.

[0095] In the embodiment of the present application, the method for constructing the preset first index library is:

[0096] An index document is constructed by combining the full page title, the book information corresponding to the full page title and the page number information of the full page title in the book. If all books involved in the basic education stage have m pages in total, m index documents are constructed, and the m index documents constitute a preset first index library.

[0097] All books involved in the basic education stage in the embodiment of the present application include textbooks, exercise books, exercise books, test papers, etc.

[0098] The traditional question search method needs to search and identify in the traditional question bank, which includes questions from all books on the market. The number of question banks is very large, resulting in excessive calculation during the search, long search time and low recognition accuracy. The question search method provided in the embodiment of the present application can search and identify in a preset first index library, which only includes full-page questions contained in all books involved in the basic education stage. Compared with the traditional subject recognition method, it can reduce the amount of calculation, save search time, and improve recognition accuracy.

[0099] In the embodiment of the present application, the method for searching for document information related to the text information of the entire page title is referred to Figure 4 , Figure 4 It is a schematic flow chart of a specific method S301 provided in an embodiment of the present application. Figure 4 The execution subject of the method in can be Figure 1 The terminal device 100 in FIG. Figure 4 As shown, the method includes: S401 to S402.

[0100] S401: Determine the relevance between the text information of the entire page title and the document information in the preset first index library according to a preset relevance operator.

[0101] Specifically, the preset relevance operator in the embodiment of the present application may be a weighted algorithm (Term Frequency–Inverse Document Frequency, TF-IDF) for information retrieval and data mining, or may be an algorithm BM25 based on a probability model.

[0102] In an embodiment of the present application, a preset relevance operator is used to score the similarity between the text information of the entire page title and the document information in the preset first index library, and the relevance between the text information of the entire page title and the document information in the preset first index library can be determined based on the score.

[0103] S402: Determine document information related to the text information of the entire page title based on the relevance.

[0104] For example, 10 pieces of document information are stored in the preset index library, and according to the preset relevance operator, the scores of the text information of the entire page title and the 10 pieces of document information are calculated to be 0, 0.1, 0.45, 0, 0.6, 0.7, 0.8, 0.6, 0, and 0, respectively. Then, the document information related to the text information of the entire page title is all the document information except the document information with a score of 0.

[0105] S302: Based on the document information, determine the book information corresponding to the text information of the entire page title.

[0106] For a method to determine the book information corresponding to the text information of the entire page title based on the document information, please refer to Figure 5 , Figure 5 It is a schematic flowchart of a specific method of S302 provided in an embodiment of the present application. Figure 5 The execution subject of the method in can be Figure 1 The terminal device 100 in FIG. Figure 5 As shown, the method includes: S501 to S502.

[0107] S501: Count the number of occurrences of book information corresponding to the text information of the whole page title in the document information related to the text information of the whole page title.

[0108] For example, there are 5 full pages of titles A, B, C, D and E. According to the method of S402, it is determined that the book information corresponding to the text information of the title on page A is a Chinese textbook, a Chinese workbook and an English workbook, the book information corresponding to the title on page B is a Chinese textbook and a mathematics textbook, the book information corresponding to the title on page C is a Chinese textbook, a Chinese workbook, an English textbook and a mathematics workbook, the book information corresponding to the title on page D is a Chinese textbook and a history textbook, and the book information corresponding to the title on page E is a Chinese textbook and a history workbook. Then, the number of times the book information corresponding to the 5 full pages of titles appears is: Chinese textbook 5 times, Chinese workbook 2 times, English workbook 1 time, mathematics textbook 1 time, English textbook 1 time, mathematics workbook 1 time, history textbook 1 time, and history workbook 1 time.

[0109] S502. Sort the book information corresponding to the text information of the entire page title according to the number of times to obtain sequentially arranged book information, and determine the sequentially arranged book information as the book information corresponding to the entire page title.

[0110] Specifically, according to the number of times obtained in S501, the book information corresponding to the text information of the entire page of titles is sorted to obtain the book information arranged in sequence.

[0111] S205: Determine target topic information corresponding to the topic to be searched based on the book information.

[0112] For more details, please refer to the method of determining the target title information corresponding to the searched title based on the book information. Figure 6 , Figure 6 It is a schematic flow chart of a specific method of S205 provided in an embodiment of the present application. Figure 6 The execution subject of the method in can be Figure 1 The terminal device 100 in FIG. Figure 6 As shown, the method includes: S601 to S603.

[0113] S601: Searching for document information related to text information of a topic to be searched in a preset second index library.

[0114] Specifically, the preset second index library contains document information corresponding to each title in the book arranged in sequence, and the document information corresponding to each title includes text information of the title, book information corresponding to the text information of the title, and page number information of the text information of the title in the book.

[0115] In the embodiment of the present application, the method for constructing the preset second index library is:

[0116] An index document is constructed for each question in the sequentially arranged book information obtained in S502, the book information corresponding to each question, and the page number information of each question in the book. If the sequentially arranged book contains n questions in total, n index documents are constructed, and the n index documents constitute a preset second index library.

[0117] The traditional question search method needs to search and identify in the traditional question bank. The traditional question bank includes questions from all books on the market. The number of question banks is very large, resulting in excessive calculation during the search, too long search time and low recognition accuracy. The question search method provided in the embodiment of the present application can search and identify in a preset first index library. The preset first index library only includes full-page questions contained in all books involved in the basic education stage, and identify the book information corresponding to the question to be searched, and then search and identify in a preset second index library. The preset second index library includes all questions contained in books arranged in sequence, and identifies the target question information corresponding to the question to be searched. Compared with the traditional subject recognition method, it can reduce the search range, reduce the calculation amount, save search time, and improve the recognition accuracy.

[0118] S602: When searching, increase the weight of the book information with the maximum number of times.

[0119] In some embodiments, when searching for document information related to the text information of the topic to be searched, the scores of the document information corresponding to the text information of the topic to be searched and the book information arranged in sequence are calculated based on a preset relevance operator, and when calculating the scores, the weight of the book information with the largest number of times is increased.

[0120] Exemplarily, the book information arranged in sequence is: Chinese textbook 5 times, Chinese exercise book 2 times, English exercise book 1 time, mathematics textbook 1 time, English textbook 1 time, mathematics exercise book 1 time, history textbook 1 time, and history exercise book 1 time.

[0121] Before the weight is increased, when calculating the text information of the question to be searched and the document information corresponding to the Chinese textbook, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the Chinese exercise book, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the English exercise book, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the mathematics exercise book, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the English textbook, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the mathematics exercise book, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the history textbook, the weight is set to 1; when calculating the text information of the question to be searched and the document information corresponding to the history exercise book, the weight is set to 1.

[0122] When the weight is increased, when calculating the text information of the question to be searched and the document information corresponding to the Chinese textbook, the weight is set to 3.5, when calculating the text information of the question to be searched and the document information corresponding to the Chinese exercise book, the weight is set to 1, when calculating the text information of the question to be searched and the document information corresponding to the English exercise book, the weight is set to 1, when calculating the text information of the question to be searched and the document information corresponding to the mathematics exercise book, the weight is set to 1, when calculating the text information of the question to be searched and the document information corresponding to the English textbook, the weight is set to 1, when calculating the text information of the question to be searched and the document information corresponding to the mathematics exercise book, the weight is set to 1, when calculating the text information of the question to be searched and the document information corresponding to the history textbook, the weight is set to 1, and when calculating the text information of the question to be searched and the document information corresponding to the history exercise book, the weight is set to 1.

[0123] In the embodiment of the present application, the preset relevance operator is to adjust the weight by setting the weight parameter boost. The purpose of increasing the weight of the book information with the maximum number of times is to make the score value of the document information corresponding to the text information of the title to be searched and the book information with the maximum number of times greater than the score value of the document information corresponding to the book information with other times.

[0124] S603: Determine target title information corresponding to the title to be searched according to the weights of the book information arranged in sequence.

[0125] Specifically, after the weights of the sequentially arranged book information are determined, the target title information corresponding to the to-be-searched title can be determined in the document information corresponding to the sequentially arranged book information according to a preset relevance operator.

[0126] In summary, the question search method of the embodiment of the present application obtains an image of a whole page of questions, the whole page of questions contains the questions to be searched; segments the image of the whole page of questions to obtain multiple groups of segmented images; identifies the text information in the multiple groups of segmented images, and splices the text information in the multiple groups of segmented images to obtain the text information of the whole page of questions; determines the book information corresponding to the text information of the whole page of questions based on the text information of the whole page of questions; determines the target question information corresponding to the questions to be searched based on the book information. That is, the present application can determine the book information corresponding to the text information of the whole page of questions through the text information of the whole page of questions; determines the target question information corresponding to the questions to be searched based on the book information, which improves the accuracy of question search compared to searching in a question bank with a large number of questions and a large number of similar questions using only the OCR text information of one question.

[0127] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0128] Please refer to Figure 7 , Figure 7 The invention is a question-searching device, comprising:

[0129] The acquisition module 71 is used to acquire an image of a whole page of titles, where the whole page of titles includes the title to be searched.

[0130] The segmentation module 72 is used to segment the image of the entire page of titles to obtain multiple groups of segmented images.

[0131] The recognition module 73 is used to recognize text information in multiple groups of segmented images and to splice the text information in the multiple groups of segmented images to obtain the text information of the entire page title.

[0132] The first determining module 73 is used to determine the book information corresponding to the text information of the whole page of titles according to the text information of the whole page of titles.

[0133] The second determining module 74 is used to determine target topic information corresponding to the topic to be searched according to the book information.

[0134] The segmentation module 72 is further used to segment the image of the entire page of titles into equal parts or unequal parts to obtain multiple groups of segmented images, and encode the multiple groups of segmented images to obtain encoding information of the multiple groups of segmented images.

[0135] The recognition module 73 is further used to splice the text information in the multiple groups of segmented images according to the coding information of the multiple groups of segmented images to obtain the text information of the entire page title.

[0136] The first determination module 74 is further used to search for document information related to the text information of the full-page title in a preset first index library, the preset first index library contains document information corresponding to each full-page title, and the document information corresponding to each full-page title includes the text information of the full-page title, the book information corresponding to the text information of the full-page title, and the page number information of the text information of the full-page title in the book.

[0137] Based on the document information, the book information corresponding to the text information of the entire page title is determined.

[0138] The first determination module 74 is further used to determine the relevance between the text information of the entire page title and the document information in the preset first index library according to a preset relevance operator.

[0139] According to the relevance, document information related to the text information of the entire page title is determined.

[0140] The first determining module 74 is further used to count the number of occurrences of the book information corresponding to the text information of the whole page title in the document information related to the text information of the whole page title.

[0141] According to the number of times, the book information corresponding to the text information of the whole page title is sorted to obtain the book information arranged in sequence, and the book information arranged in sequence is determined as the book information corresponding to the whole page title.

[0142] The second determination module 75 is further used to search for document information related to the text information of the title to be searched in a preset second index library, the preset second index library contains document information corresponding to each title in a plurality of groups of books arranged in sequence, and the document information corresponding to each title includes the text information of the title, the book information corresponding to the text information of the title, and the page number information of the text information of the title in the book.

[0143] When searching, increase the weight of the book information with the maximum number of times.

[0144] According to the weights of the book information arranged in sequence, the target topic information corresponding to the topic to be searched is determined.

[0145] The technicians in the relevant field 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 for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or 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 each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0146] like Figure 8 As shown, an embodiment of the present application also provides a terminal device 100, including a memory 21, a processor 22, and a computer program 23 stored in the memory 21 and executable on the processor 22, and when the processor 22 executes the computer program 23, the question searching methods of the above-mentioned embodiments are implemented.

[0147] The processor 22 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0148] The memory 21 may be an internal storage unit of the terminal device 100. The memory 21 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 100. Further, the memory 21 may also include both an internal storage unit of the terminal device 100 and an external storage device. The memory 21 is used to store computer programs and other programs and data required by the terminal device 100. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0149] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the question searching methods of the above embodiments are implemented.

[0150] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal implements the question searching methods of the above-mentioned embodiments when executing the computer program product.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program generation data, which can be in the form of source generation data, object generation data, executable files or some intermediate forms. The computer-readable storage medium may at least include: any entity or device that can carry the computer program generation data to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable storage medium cannot be an electric carrier signal and a telecommunication signal.

[0152] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0153] Those of ordinary skill in the art will appreciate 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0155] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A question searching method, characterized in that: include: Acquire an image of a full page of topics, wherein the full page of topics includes the topic to be searched; Segmenting the image of the entire page of titles to obtain multiple groups of segmented images; Identify the text information in the multiple groups of segmented images, and splice the text information in the multiple groups of segmented images to obtain the text information of the entire page title; Determining book information corresponding to the text information of the whole page of titles according to the text information of the whole page of titles; Determining target topic information corresponding to the topic to be searched based on the book information; The step of determining the book information corresponding to the text information of the whole page title according to the text information of the whole page title includes: Searching for document information related to the text information of the full-page title in a preset first index library, wherein the preset first index library contains document information corresponding to each full-page title, and the document information corresponding to each full-page title includes the text information of the full-page title, the book information corresponding to the text information of the full-page title, and the page number information of the text information of the full-page title in the book; Counting the number of occurrences of the book information corresponding to the text information of the full-page title in the document information related to the text information of the full-page title; According to the number of times, the book information corresponding to the text information of the whole page title is sorted to obtain the sequentially sorted book information, and the sequentially sorted book information is determined as the book information corresponding to the whole page title; The step of determining target topic information corresponding to the topic to be searched based on the book information includes: Searching for document information related to the text information of the title to be searched in a preset second index library, wherein the preset second index library contains document information corresponding to each title in a plurality of groups of books arranged in sequence, wherein the document information corresponding to each title includes the text information of the title, the book information corresponding to the text information of the title, and the page number information of the text information of the title in the book; When searching, increase the weight of the book information with the maximum number of times; Determining target topic information corresponding to the topic to be searched according to the weights of the book information arranged in sequence; The method for constructing the preset second index library is as follows: construct an index document for each question in the book information arranged in sequence, the book information corresponding to each question, and the page number information of each question in the book, and multiple index documents constitute the preset second index library.

2. The question searching method according to claim 1, characterized in that: The step of segmenting the image of the entire page of titles to obtain a plurality of groups of segmented images includes: The image of the entire page of titles is divided equally or unequally to obtain a plurality of groups of the divided images, and the plurality of groups of the divided images are encoded to obtain encoding information of the plurality of groups of the divided images.

3. The question searching method according to claim 2, characterized in that: The step of splicing the text information in the plurality of groups of segmented images to obtain the text information of the entire page title includes: According to the coding information of the multiple groups of segmented images, the text information in the multiple groups of segmented images is spliced ​​to obtain the text information of the full page title.

4. The question searching method according to claim 1, characterized in that: The searching for document information related to the text information of the entire page title includes: Determining the relevance between the text information of the entire page title and the document information in the preset first index library according to a preset relevance operator; According to the relevance, document information related to the text information of the entire page title is determined.

5. A question-searching device, characterized in that: The question search method applied to any one of claims 1 to 4 comprises: An acquisition module, used to acquire an image of a whole page of titles, wherein the whole page of titles includes the title to be searched; A segmentation module, used for segmenting the image of the whole page title to obtain multiple groups of segmented images; A recognition module, used for recognizing text information in a plurality of groups of segmented images, and splicing the text information in the plurality of groups of segmented images to obtain text information of the entire page title; A first determination module, configured to determine book information corresponding to the text information of the whole page of titles according to the text information of the whole page of titles; The second determining module is used to determine the target title information corresponding to the title to be searched according to the book information.

6. A terminal device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the question searching method as claimed in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the question searching method as described in any one of claims 1 to 4 is implemented.