CN117828141A - Method, system, electronic equipment, server and storage medium for scanning and searching questions - Google Patents

Method, system, electronic equipment, server and storage medium for scanning and searching questions Download PDF

Info

Publication number
CN117828141A
CN117828141A CN202311863166.1A CN202311863166A CN117828141A CN 117828141 A CN117828141 A CN 117828141A CN 202311863166 A CN202311863166 A CN 202311863166A CN 117828141 A CN117828141 A CN 117828141A
Authority
CN
China
Prior art keywords
question
searching
server
image
scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311863166.1A
Other languages
Chinese (zh)
Inventor
曾乙峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Bubugao Education Software Co ltd
Original Assignee
Dongguan Bubugao Education Software 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 Dongguan Bubugao Education Software Co ltd filed Critical Dongguan Bubugao Education Software Co ltd
Priority to CN202311863166.1A priority Critical patent/CN117828141A/en
Publication of CN117828141A publication Critical patent/CN117828141A/en
Pending legal-status Critical Current

Links

Abstract

The application relates to the technical field of teaching equipment, and provides a method, a system, electronic equipment, a server and a storage medium for scanning and searching questions. The method comprises the following steps: in the process of scanning a question page by electronic equipment, sending a question image to a question searching server every time a question image is obtained by scanning so as to instruct the question searching server to preprocess the question image; if the scanning process of the questions is determined to be completed, a question searching instruction is sent to a question searching server to instruct the question searching server to search questions based on all the preprocessed question images, and a question searching result is returned to the electronic equipment. Through the arrangement, after the electronic equipment finishes scanning, the corresponding question searching result can be waited to be obtained only by sending a question searching instruction to the question searching server, and long processing flows such as image preprocessing, image splicing and the like are not needed to be executed, so that the speed of the electronic equipment for responding to a user during question searching can be improved.

Description

Method, system, electronic equipment, server and storage medium for scanning and searching questions
Technical Field
The application relates to the technical field of teaching equipment, in particular to a method and a system for scanning and searching questions, electronic equipment, a server and a storage medium.
Background
Currently, when a user scans a question page by using electronic equipment such as a dictionary pen, if the user aims at questions of a plurality of lines, the user is required to scan for a plurality of times, and a question image is obtained by scanning each time. After the scanning is completed, the electronic equipment carries out preprocessing and splicing on all the topic images obtained by scanning, then the spliced images are sent to a topic searching server, and the topic searching server finishes topic searching and returns a topic searching result. In the above process, the overall processing flow of the electronic device is long, resulting in a slower speed of responding to the user.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, a system, an electronic device, a server, and a storage medium for scanning a question, which can improve the speed of the electronic device responding to a user during searching a question.
A first aspect of an embodiment of the present application provides a method for searching questions in a scanning manner, where the method includes:
in the process of scanning a question page by electronic equipment, sending a question image to a question searching server every time a question image is obtained by scanning so as to instruct the question searching server to preprocess the question image;
if the scanning process of the questions is determined to be completed, a question searching instruction is sent to a question searching server to instruct the question searching server to search questions based on all the preprocessed question images, and a question searching result is returned to the electronic equipment.
For the technical scheme of the embodiment of the application, in the process of scanning the questions, the electronic equipment sends a question image to the question searching server every time when scanning one question image, and the question searching server can perform corresponding preprocessing operations, such as image correction, image denoising, image compression and the like, on the question image every time the question searching server receives one question image; and if the electronic equipment determines that the scanning process of the questions is finished, a question searching instruction is sent to the question searching server, the question searching server can search the questions based on all the preprocessed question images after receiving the question searching instruction, and a question searching result is returned to the electronic equipment. Through the arrangement, in the process of scanning the questions by the electronic equipment, the question searching server can preprocess the received question images in advance, and after the electronic equipment finishes scanning, the electronic equipment can wait for obtaining the corresponding question searching result by sending a question searching instruction to the question searching server without executing long processing flows such as image preprocessing, image splicing and the like, so that the speed of responding to a user when the electronic equipment searches questions can be improved.
In one implementation of an embodiment of the present application, it is determined whether a process of scanning a topic has been completed by:
detecting the duration of leaving the target part of the electronic equipment from the question page;
if the duration exceeds the set threshold, determining that the scanning process of a title is completed.
In one implementation manner of the embodiment of the present application, the method for sending the topic image to the topic searching server includes:
generating a unique topic identification;
associating the topic image with the topic identifier, and transmitting the associated topic image and the topic identifier to a topic searching server;
the method comprises the steps of sending a question searching instruction to a question searching server to instruct the question searching server to search questions based on all the preprocessed question images, and comprises the following steps:
and sending a question searching instruction carrying the question mark to the question searching server so as to instruct the question searching server to search questions based on all the preprocessed question images associated with the question mark.
A second aspect of the embodiments of the present application provides a method for scanning and searching questions applied to a question searching server, including:
each time a question image sent by the electronic equipment is received, preprocessing the question image;
if a question searching instruction sent by the electronic equipment is received, searching questions based on all the preprocessed question images, and returning a question searching result to the electronic equipment; and sending the question searching instruction to the question searching server after the electronic equipment determines that the scanning process of a question is finished.
In one implementation manner of the embodiment of the present application, after preprocessing the topic image, the method further includes:
the preprocessed topic image is sent to an OCR server to instruct the OCR server to carry out OCR recognition on the topic image, and an OCR recognition result of the topic image is returned;
searching questions based on all the preprocessed question images comprises the following steps:
splicing the OCR recognition results of all the preprocessed topic images into a target text;
and searching the questions according to the target text.
In another implementation manner of the embodiment of the present application, searching questions based on all the pre-processed question images includes:
splicing all the preprocessed question images into a target image;
and searching questions according to the target image.
A third aspect of the embodiments of the present application provides a scanning and question searching apparatus applied to an electronic device, including:
the image scanning module is used for sending the question image to the question searching server every time a question image is obtained in the process of scanning the question page by the electronic equipment so as to instruct the question searching server to preprocess the question image;
and the question searching instruction sending module is used for sending a question searching instruction to the question searching server if the scanning process of one question is determined to be completed, so as to instruct the question searching server to search questions based on all the preprocessed question images, and returning a question searching result to the electronic equipment.
A fourth aspect of the embodiments of the present application provides a scanning question searching device applied to a question searching server, including:
the image preprocessing module is used for preprocessing the question image after receiving one question image sent by the electronic equipment;
the question searching module is used for searching questions based on all the preprocessed question images if a question searching instruction sent by the electronic equipment is received, and returning a question searching result to the electronic equipment; and sending the question searching instruction to the question searching server after the electronic equipment determines that the scanning process of a question is finished.
A fifth aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for scanning and searching questions as provided in the first aspect of the embodiments of the present application when the computer program is executed by the processor.
A sixth aspect of the embodiments of the present application provides a server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of scanning for questions as provided in the second aspect of the embodiments of the present application when the computer program is executed.
A seventh aspect of the embodiments of the present application provides a scanning question searching system, which includes the electronic device provided in the fifth aspect of the embodiments of the present application and the server provided in the sixth aspect of the embodiments of the present application.
An eighth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the method of scanning questions as provided in the first aspect of the embodiments of the present application, or implements the method of scanning questions as provided in the second aspect of the embodiments of the present application.
A ninth aspect of the embodiments of the present application provides a computer program product which, when run on an electronic device, causes the electronic device to perform a method of scanning questions as provided in the first aspect of the embodiments of the present application, and when run on a server, causes the server to perform a method of scanning questions as provided in the second aspect of the embodiments of the present application.
It will be appreciated that the advantages of the second to ninth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
FIG. 1 is a schematic diagram of a scanning question searching system according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for scanning a search question according to an embodiment of the present application;
fig. 3 is a schematic diagram of an operation flow of the method for scanning and searching questions provided in the embodiment of the present application in an actual application scenario;
FIG. 4 is a structural framework diagram of a scanning and question searching device applied to an electronic device according to an embodiment of the present application;
FIG. 5 is a structural framework diagram of a scanning and question searching device applied to a question searching server according to an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device/server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application 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 application with unnecessary detail. In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
At present, the shooting and question searching technology is mature, and is widely applied to electronic equipment such as mobile phones, learning machines, tablet computers, dictionary pens, learning desk lamps and the like. The electronic devices such as dictionary pens have a characteristic that when searching questions, the electronic devices need to be scanned for multiple times when scanning questions in multiple rows, and a question image is obtained by scanning each time. After the scanning is completed, the dictionary pen needs to preprocess and splice all the topic images obtained by the scanning, and then sends the spliced images to a topic searching server to obtain corresponding topic searching results. It can be seen that the overall process flow of the electronic device is lengthy during this process, which results in a slower response speed for the user.
Aiming at the problem, the embodiment of the application provides a method, a system, electronic equipment, a server and a storage medium for scanning and searching questions, which can improve the speed of the electronic equipment for responding to users during searching questions. For more specific technical implementation details of embodiments of the present application, please refer to various embodiments described below.
Referring to fig. 1, a scanning question searching system provided in an embodiment of the present application is shown, where the system includes an electronic device and a question searching server. The electronic device is a question searching terminal used by a user, and can be specifically a dictionary pen, a translation pen, a learning machine, a smart watch or a tablet computer. The question searching server is a remote device for providing question searching service, and communication connection can be established between the question searching server and the electronic device through a network and the like. In addition, the system shown in FIG. 1 may also include an OCR server that may interact with the search server during the scanning of the search questions to provide OCR recognition services. The embodiment of the application does not limit the specific device types of the electronic device, the question searching server and the OCR server of the system, and as for the specific working principle of the system, please refer to the method embodiment described below.
Referring to fig. 2, a method for searching questions by scanning according to an embodiment of the present application is shown, including:
201. in the process of scanning the topic page, the electronic equipment sends the topic image to the topic searching server every time a topic image is obtained by scanning;
when a user uses electronic equipment such as a dictionary pen to scan and search questions, the target part of the electronic equipment can be aligned with a certain question in a question page and start scanning, for example, the pen point part of the dictionary pen is aligned with and contacted with the question in the question page, and the scanning is started to obtain a corresponding question image. If the target question is a single-line question, the user only needs to scan once, and the electronic equipment sends a scanned question image to the question searching server. If the target questions are multi-line questions, the user needs to scan for a plurality of times in sequence, each time a question image is obtained by scanning, and each time the electronic equipment obtains a question image by scanning, the question image is sent to the question searching server so as to pre-process the question image in advance by the question searching server. For example, assuming that a plurality of lines of questions are scanned, the electronic device may send the question image 1 to the question searching server after scanning the first line of questions to obtain the question image 1, and the question searching server may start preprocessing for the question image 1 after receiving the question image 1, without waiting for the electronic device to scan to obtain all the question images and then starting preprocessing.
In one implementation manner of the embodiment of the present application, the electronic device sends the topic image to the topic searching server, including:
(1) Generating a unique topic identification;
(2) And associating the topic image with the topic identifier, and transmitting the associated topic image and the topic identifier to a topic searching server.
For the search server, it receives the topic images corresponding to different topics sent by different electronic devices, or receives the topic images corresponding to different topics sent by the same electronic device, and the same topic may also correspond to multiple topic images (such as multiple lines of topics). In order to facilitate the distinction of the search server, when the electronic device does not determine that the scanning process of a question is completed, a unique question mark can be generated, the mark is used for uniquely representing a question, each time a question image is obtained through scanning, the question image is associated with the mark, and the associated question image and the question mark are both sent to the search server. For example, for a topic a of 3 lines, 3 scans are required to obtain a topic image 1, a topic image 2 and a topic image 3, and after the topic image 1 is obtained by scanning, the electronic device associates the topic image 1 with the unique identifier of the topic a and sends the unique identifier to the topic search server, after the topic image 2 is obtained by scanning, associates the topic image 2 with the unique identifier of the topic a and sends the unique identifier to the topic search server, and after the topic image 3 is obtained by scanning, associates the topic image 3 with the unique identifier of the topic a and sends the unique identifier to the topic search server. The electronic device then determines that the scanning process for topic a has been completed, regenerates another topic identification when the next topic image is scanned subsequently, processes it in the same manner, and so on.
202. The question searching server preprocesses the question image after receiving one question image sent by the electronic equipment;
and when the question searching server receives a question image sent by the electronic equipment, carrying out corresponding preprocessing operation on the question image. The preprocessing operations herein may include, but are not limited to: image correction, image beautification, image cropping, image denoising, image compression, removal of handwriting from an image, and the like. By preprocessing the topic image, the quality of the topic image and the accuracy of identifying the content of the topic image can be improved, and the accuracy of searching the topic is further improved.
In an implementation manner of the embodiment of the present application, after preprocessing the topic image, the topic searching server further includes:
and sending the preprocessed topic image to an OCR server to instruct the OCR server to perform OCR recognition on the topic image, and returning an OCR recognition result of the topic image.
The method for searching the questions by the question searching server can comprise two modes, wherein the first mode is to search the questions based on the images, and the method only needs to splice all received question images corresponding to the same question, and search the questions according to the spliced images. The second way is to search questions based on text, which requires OCR recognition of the question image to obtain the corresponding question text, and then search questions based on the question text. If the first mode is adopted, the problem searching server does not need to interact with the OCR server, and the problem searching process can be completed automatically. If the second mode is adopted, the question searching server needs to interact with the OCR server, and OCR recognition is carried out on the question image through the OCR server, so that corresponding question text is obtained. Specifically, each time the question searching server completes a preprocessing process of a question image, the question image can be sent to the OCR server, OCR recognition is performed on the question image by the OCR server to obtain an OCR recognition result, namely a corresponding question text, and then the OCR recognition result is returned to the question searching server. The question searching server can store data such as each preprocessed question image, an OCR recognition result corresponding to each preprocessed question image, a question identifier associated with the question image and the like through a database.
203. If the electronic equipment determines that the scanning process of a question is completed, sending a question searching instruction to a question searching server;
each time the electronic device completes a scan, a determination may be made as to whether a process of scanning a topic has been completed. If the scanning process of one question is not completed, the judgment is carried out again after the next scanning is waited until the scanning process of one question is determined to be completed. If the scanning process of the title is determined to be completed, the electronic equipment sends a title searching instruction to the title searching server, wherein the title searching instruction is used for instructing the title searching server to start a title searching operation and returning a title searching result.
In one implementation of an embodiment of the present application, an electronic device determines whether a process of scanning a topic has been completed by:
(1) Detecting the duration of leaving the target part of the electronic equipment from the question page;
(2) If the duration exceeds the set threshold, determining that the scanning process of a title is completed.
After completing one scan, the user usually lifts up the electronic device, if one question is not scanned, the user needs to start another line to continue scanning, and the next scan can be performed in a short time; conversely, if a topic has been scanned, the user will typically not proceed to the next scan for a short period of time. Taking this feature into consideration, taking an electronic device such as a dictionary pen as an example, it is possible to determine whether a scanning process of a question has been completed by detecting a duration of a target portion (e.g., a pen tip) of the dictionary pen leaving a page of the question. Specifically, when the pen point of the dictionary pen is detected to leave the question page, the user is shown to lift the pen point, the duration is counted at the moment, if the pen point contacts the question page again in a short time (for example, within 1 s), the second scanning is started, the scanning process of a question is determined not to be completed, and after the second scanning of the user is waited to complete and the pen is lifted, judgment is performed again. If the pen point does not contact the question page again in a short time, namely the duration of pen lifting by the user exceeds a set threshold value, the second scanning is not started in a short time by the user, so that the scanning process of a question can be considered to be finished currently.
In addition to the above-mentioned method of detecting the duration, the electronic device may determine whether the scanning process of a question has been completed in various other ways, for example, the electronic device may set a button, the user may manually press the button after scanning a question, and the electronic device may determine that the scanning process of a question has been completed after detecting that the button is pressed. For another example, the electronic device may obtain the topic image obtained by the current scan, perform text recognition on the topic image to obtain the topic text, and if it is detected that the end of the topic text has the text. "or"? "etc., it is determined that the scanning process of a title has been completed.
In one implementation manner of the embodiment of the present application, sending a question searching instruction to a question searching server includes:
and sending a question searching instruction carrying the question mark to the question searching server so as to instruct the question searching server to search questions based on all the preprocessed question images associated with the question mark.
When the electronic equipment sends the question searching instruction to the question searching server, the question searching instruction can carry the question mark corresponding to the current question. According to the content description about the topic identification, it can be known that all topic images corresponding to each topic are associated with the same topic identification, so that after receiving a topic searching instruction, the topic searching server can search all the topic images associated with the topic identification after preprocessing from a database according to the topic identification carried by the topic searching instruction, and complete topic searching based on the topic images.
204. And if the question searching server receives a question searching instruction sent by the electronic equipment, searching questions based on all the preprocessed question images, and returning a question searching result to the electronic equipment.
After receiving a question searching instruction sent by the electronic equipment, the question searching server starts a question searching operation, at the moment, all question images corresponding to the current questions stored after preprocessing can be searched from the database, the question searching is completed in a mode of searching the questions based on the images or in a mode of searching the questions based on texts, and therefore corresponding question searching results are obtained, and the question searching results are returned to the electronic equipment.
In an implementation manner of the embodiment of the present application, the question searching server performs question searching based on all the preprocessed question images, including:
(1) Splicing the OCR recognition results of all the preprocessed topic images into a target text;
(2) And searching the questions according to the target text.
If a text-based question searching mode is adopted, the question searching server can send the preprocessed question images to the OCR server before receiving the question searching instruction, and after the OCR server carries out OCR recognition on the question images and returns OCR recognition results, the question searching server can store the OCR recognition results of each question image. After receiving the question searching instruction carrying the question mark, the question searching server can find all the question images corresponding to the current question and preprocessed according to the question mark, acquire OCR recognition results of the question images, and splice the OCR recognition results according to the scanning sequence of the question images in sequence, so that a target text is obtained. And finally, searching the questions by the question searching server according to the target text, thereby obtaining a corresponding question searching result.
In another implementation manner of the embodiment of the present application, the question searching server performs question searching based on all the preprocessed question images, including:
(1) Splicing all the preprocessed question images into a target image;
(2) And searching questions according to the target image.
If the mode of searching questions based on the images is adopted, after receiving a question searching instruction carrying a question mark, the question searching server can find all the question images which correspond to the current question and are preprocessed according to the question mark, and then the question images are spliced in sequence according to the scanning sequence, so that a target image is obtained. And finally, searching the questions by the question searching server according to the target image, thereby obtaining a corresponding question searching result.
For the technical scheme of the embodiment of the application, in the process of scanning the questions, the electronic equipment sends a question image to the question searching server every time when scanning one question image, and the question searching server can perform corresponding preprocessing operations, such as image correction, image denoising, image compression and the like, on the question image every time the question searching server receives one question image; and if the electronic equipment determines that the scanning process of the questions is finished, a question searching instruction is sent to the question searching server, the question searching server can search the questions based on all the preprocessed question images after receiving the question searching instruction, and a question searching result is returned to the electronic equipment. Through the arrangement, in the process of scanning the questions by the electronic equipment, the question searching server can preprocess the received question images in advance, and after the electronic equipment finishes scanning, the electronic equipment can wait for obtaining the corresponding question searching result by sending a question searching instruction to the question searching server without executing long processing flows such as image preprocessing, image splicing and the like, so that the speed of responding to a user when the electronic equipment searches questions can be improved.
In order to facilitate understanding of the method for scanning and searching questions provided by the embodiment of the application, the following lists practical application scenarios. Fig. 3 is a schematic operation flow chart of the method for scanning and searching questions in the practical application scenario according to the embodiment of the present application. In fig. 3, 3 devices including a dictionary pen, a question searching server, and an OCR server are included. Firstly, a user scans a question by using a dictionary pen, and when the user lifts the pen every time, the dictionary pen can count the duration of lifting the pen, and whether the scanning process of the question is completed is judged according to the duration. If the duration is short, that is, the user performs the second scanning in a short time, it is determined that the scanning process of a question is not completed, at this time, the dictionary pen correlates the question image obtained by the current scanning with the identification of the current question and sends the question image to the question searching server, and returns to the step of the user for scanning the question, and waits for the next time of lifting the user to repeat the same judging process, and the operations in the two aspects can be performed asynchronously. And after receiving the topic image, the topic searching server can preprocess the topic image. In addition, the question searching server can also send the preprocessed question images to the OCR server, the OCR server carries out OCR recognition processing on the question images to obtain corresponding OCR recognition results, the OCR recognition results are returned to the question searching server, and the question searching server can store the OCR recognition results of each question image in the database. If the duration of pen lifting by the user is long enough, the dictionary pen determines that the scanning process of a question is completed, a question searching instruction carrying the current question mark is generated at the moment, and the question searching instruction is sent to the question searching server. After receiving the question searching instruction, the question searching server can find OCR recognition results of all corresponding question images from the database according to the current question mark, splice the OCR recognition results into a question text, finish the question searching according to the question text, and return the question searching result to the dictionary pen.
In summary, in the scenario of searching questions in multi-line scanning, the embodiment of the application can send the scanned question image to the question searching server for preprocessing in advance, and after the user scans a question, the electronic device does not need to execute long processing flows such as image preprocessing, image splicing and the like, so that the speed of responding to the user can be effectively improved.
It should be understood that the sequence numbers of the steps in the foregoing embodiments do not mean the order of execution, and the execution order of the processes should be determined by the functions and the internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The above mainly describes a method for scanning and searching questions, and a device for scanning and searching questions will be described below.
Referring to fig. 4, an embodiment of a scanning device for searching questions applied to an electronic device in an embodiment of the present application includes:
the image scanning module 401 is configured to send, when one question image is obtained during scanning of the question page by the electronic device, the question image to the question searching server to instruct the question searching server to perform preprocessing on the question image;
and the question searching instruction sending module 402 is configured to send a question searching instruction to the question searching server if it is determined that a question scanning process is completed, so as to instruct the question searching server to perform question searching based on all the preprocessed question images, and return a question searching result to the electronic device.
In an implementation manner of the embodiment of the present application, the scanning and searching device further includes:
the duration detection module is used for detecting the duration of the target part of the electronic equipment leaving the question page;
and the scanning judgment module is used for determining that the scanning process of a question is finished if the duration exceeds a set threshold.
In one implementation of an embodiment of the present application, an image scanning module includes:
a representation generation unit for generating a unique topic identification;
the image sending unit is used for associating the topic image with the topic identifier and sending the associated topic image and the associated topic identifier to the topic searching server;
the question searching instruction sending module comprises:
the question searching instruction sending unit is used for sending a question searching instruction carrying a question mark to the question searching server so as to instruct the question searching server to search questions based on all the preprocessed question images associated with the question mark.
Referring to fig. 5, an embodiment of a scanning and question searching device applied to a question searching server in an embodiment of the present application includes:
the image preprocessing module 501 is configured to preprocess a topic image every time a topic image sent by an electronic device is received;
the question searching module 502 is configured to, if a question searching instruction sent by the electronic device is received, perform question searching based on all the preprocessed question images, and return a question searching result to the electronic device; and sending the question searching instruction to the question searching server after the electronic equipment determines that the scanning process of a question is finished.
In an implementation manner of the embodiment of the present application, the scanning and searching device further includes:
the topic image sending module is used for sending the preprocessed topic image to the OCR server so as to instruct the OCR server to carry out OCR recognition on the topic image and return an OCR recognition result of the topic image;
the question searching module comprises:
the text splicing unit is used for splicing the OCR recognition results of all the preprocessed question images into a target text;
and the text question searching unit is used for searching questions according to the target text.
In another implementation manner of the embodiment of the present application, the question searching module includes:
the image stitching unit is used for stitching all the preprocessed question images into a target image;
and the image searching unit is used for searching questions according to the target image.
Embodiments of the present application also provide a computer readable storage medium storing a computer program that when executed by a processor implements a method of scanning a question as described in any of the above embodiments.
Embodiments of the present application also provide a computer program product which, when run on an electronic device/server, causes the electronic device/server to perform the method of scanning for questions as described in any of the embodiments above.
Fig. 6 is a schematic diagram of an electronic device/server according to an embodiment of the present application. As shown in fig. 6, the electronic device/server 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps described above in embodiments of the respective scanning method. Alternatively, the processor 60, when executing the computer program 62, performs the functions of the modules/units of the apparatus embodiments described above.
The computer program 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments describe the execution of the computer program 62 in the electronic device/server 6.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the electronic device/server 6, such as a hard disk or a memory of the electronic device/server 6. The memory 61 may also be an external storage device of the electronic device/server 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device/server 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the electronic device/server 6. The memory 61 is used for storing the computer program and other programs and data required by the electronic device/server. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a 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 process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the system embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium may include content that is subject to appropriate increases and decreases as required by jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is not included as electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for scanning and searching questions, which is applied to electronic equipment, and is characterized in that the method comprises the following steps:
in the process of scanning a question page by the electronic equipment, sending a question image to a question searching server every time a question image is obtained by scanning, so as to instruct the question searching server to preprocess the question image;
if the scanning process of the questions is determined to be completed, a question searching instruction is sent to the question searching server to instruct the question searching server to search questions based on all the preprocessed question images, and a question searching result is returned to the electronic equipment.
2. The method of claim 1, wherein determining whether a process of scanning a topic has been completed is performed by:
detecting the duration of the target part of the electronic equipment leaving the question page;
and if the duration exceeds the set threshold, determining that the scanning process of the title is completed.
3. The method of claim 1 or 2, wherein the transmitting the topic image to a topic search server comprises:
generating a unique topic identification;
associating the topic image with the topic identifier, and transmitting the associated topic image and the associated topic identifier to the topic searching server;
the step of sending a question searching instruction to the question searching server to instruct the question searching server to search questions based on all the preprocessed question images comprises the following steps:
and sending a question searching instruction carrying the question mark to the question searching server so as to instruct the question searching server to search questions based on all the preprocessed question images associated with the question mark.
4. A method for scanning and searching questions, which is applied to a question searching server, and is characterized in that the method comprises the following steps:
each time a question image sent by electronic equipment is received, preprocessing the question image;
if a question searching instruction sent by the electronic equipment is received, searching questions based on all the preprocessed question images, and returning a question searching result to the electronic equipment; and the electronic equipment sends the question searching command to the question searching server after determining that the scanning process of the question is finished when the electronic equipment scans a question page.
5. The method of claim 4, further comprising, after preprocessing the topic image:
the preprocessed topic image is sent to an OCR server so as to instruct the OCR server to carry out OCR recognition on the topic image, and an OCR recognition result of the topic image is returned;
the searching of the questions based on all the preprocessed question images comprises the following steps:
splicing the OCR recognition results of all the preprocessed topic images into a target text;
and searching questions according to the target text.
6. The method of claim 4, wherein searching for questions based on all of the pre-processed question images comprises:
splicing all the preprocessed question images into a target image;
and searching questions according to the target image.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of scanning for questions as claimed in any one of claims 1 to 3 when the computer program is executed by the processor.
8. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of scanning for questions as claimed in any one of claims 4 to 6 when the computer program is executed by the processor.
9. A scanning and question searching system comprising an electronic device as claimed in claim 7 and a server as claimed in claim 8.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of scanning questions as claimed in any one of claims 1 to 3 or implements the method of scanning questions as claimed in any one of claims 4 to 6.
CN202311863166.1A 2023-12-29 2023-12-29 Method, system, electronic equipment, server and storage medium for scanning and searching questions Pending CN117828141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311863166.1A CN117828141A (en) 2023-12-29 2023-12-29 Method, system, electronic equipment, server and storage medium for scanning and searching questions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311863166.1A CN117828141A (en) 2023-12-29 2023-12-29 Method, system, electronic equipment, server and storage medium for scanning and searching questions

Publications (1)

Publication Number Publication Date
CN117828141A true CN117828141A (en) 2024-04-05

Family

ID=90523792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311863166.1A Pending CN117828141A (en) 2023-12-29 2023-12-29 Method, system, electronic equipment, server and storage medium for scanning and searching questions

Country Status (1)

Country Link
CN (1) CN117828141A (en)

Similar Documents

Publication Publication Date Title
CN110705405B (en) Target labeling method and device
CN101882227B (en) Recognition method and system based on image matching and network searching
CN109388319B (en) Screenshot method, screenshot device, storage medium and terminal equipment
CN111950557A (en) Error problem processing method, image forming apparatus and electronic device
CN108304815B (en) Data acquisition method, device, server and storage medium
CN101561876A (en) Method and system for collecting and identifying ID card information
CN103701987A (en) Method for fast sending express delivery notice by intelligent mobile phone
CN110727495B (en) Automatic segmentation screenshot method and system for interface elements
CN117828141A (en) Method, system, electronic equipment, server and storage medium for scanning and searching questions
CN101668071A (en) Mobile communication terminal with scanning function and implement method thereof
CN114531340B (en) Log acquisition method and device, electronic equipment, chip and storage medium
CN110221874A (en) The method, device and equipment of quick start application
CN116562318A (en) Encoding format detection method and device based on PDA terminal and electronic equipment
CN115565193A (en) Questionnaire information input method and device, electronic equipment and storage medium
CN113849415A (en) Control testing method and device, storage medium and electronic equipment
CN112131374B (en) Text recognition method, device and server
CN111242256B (en) Information verification method, device and terminal
CN109040774B (en) Program information extraction method, terminal equipment, server and storage medium
CN109905373B (en) Information acquisition and processing method, device and equipment
CN108924905B (en) Method, device and computer readable medium for generating wireless access point information
CN110673727A (en) AR remote assistance method and system
CN105608418A (en) Picture processing method and device
CN111078082A (en) Point reading method based on image recognition and electronic equipment
CN111091035A (en) Subject identification method and electronic equipment
CN113704652A (en) Data processing method and device, transfer station and data processing system

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination