Method, apparatus, device, medium and program product for processing a topic
By identifying and position matching question images to generate answers, it solves the problems of complex OCR recognition and inaccurate answer areas in the existing technology, and achieves efficient question review and correction.
Patent Information
- Application Number
- CN202110221027.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-02-26
AI Technical Summary
The existing technology relies on OCR recognition when processing questions, resulting in complex rules and the inability to accurately determine the answer area, which consumes a lot of labor costs and makes it difficult to improve the efficiency of review and correction.
By identifying the question image, determining the text content and location, combining the question stem and answer position matching, the answer is generated and displayed at the answer position to improve the accuracy and efficiency of the answer.
It achieves rapid and accurate identification and correction of questions, reduces the time and cost of manual review and correction, and improves the utilization efficiency of educational resources.
Smart Images

Figure CN113239717B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence, and more particularly, to a method, an apparatus, a device, a computer-readable storage medium, and a computer program product for processing a topic. Background Art
[0002] With the substantial improvement of material culture and comprehensive national strength, people are investing more and more in their children's education. On the one hand, parents are directly involved in the review, correction, and explanation of their children's homework. Parents need to manually review the questions to determine the answers. On the other hand, teachers are under increasing pressure to correct the questions. For scenarios with simple questions and a large number of questions, teachers and parents spend a lot of manpower costs. Therefore, a solution is needed to quickly and effectively handle questions. Summary of the invention
[0003] According to an exemplary embodiment of the present disclosure, a method, an apparatus, a device, a computer-readable storage medium, and a computer program product for processing a topic are provided.
[0004] In a first aspect of the present disclosure, a method for processing a question is provided. The method comprises: recognizing an image including at least one question to determine the text content and text position of text in the image; determining the question type of at least one question based on the text content; determining the question stem position and the question answer position of at least one question based on the image; if it is determined that the text position matches the question stem position, determining the question stem text at the question stem position from the text content; and displaying the answer to at least one question at the question answer position, the answer being generated based on the question stem text and the question type.
[0005] In a second aspect of the present disclosure, a device for processing questions is provided. The device includes: an image recognition module configured to recognize an image including at least one question to determine the text content and text position of the text in the image; a type determination module configured to determine the question type of at least one question based on the text content; a first question determination module configured to determine the question stem position and answer position of at least one question based on the image; a first question stem text determination module configured to determine the question stem text at the question stem position from the text content if it is determined that the text position matches the question stem position; and a first answer presentation module configured to display the answer to at least one question at the answer position, the answer being generated based on the question stem text and the question type.
[0006] In a third aspect of the present disclosure, an electronic device is provided, comprising one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect of the present disclosure.
[0007] In a fourth aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.
[0008] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions are used by a processor to implement the method according to the first aspect of the present disclosure.
[0009] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure, wherein:
[0011] Figure 1 A schematic diagram illustrating an example environment in which various embodiments of the present disclosure can be implemented;
[0012] Figure 2 A flowchart showing an example of a process for processing a topic according to some embodiments of the present disclosure;
[0013] Figure 3 A flowchart showing an example of a process for determining a question stem position and an answer position according to some embodiments of the present disclosure;
[0014] Figure 4 A schematic diagram showing processing of an image including a title according to some embodiments of the present disclosure is shown;
[0015] Figure 5 Another schematic diagram showing processing of an image including a title according to some embodiments of the present disclosure;
[0016] Figure 6 A schematic block diagram showing an apparatus for processing a question according to an embodiment of the present disclosure; and
[0017] Figure 7A block diagram of a computing device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms, and should not be interpreted as being limited to the embodiments set forth herein, but rather these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0020] In the description of the embodiments of the present disclosure, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the given input is processed based on the parameter set obtained by the training to generate the corresponding output. "Model" may also sometimes be referred to as "neural network", "learning model", "learning network" or "network". These terms are used interchangeably in this article.
[0021] As mentioned above, solutions for processing questions have been developed in the field of education. In traditional solutions, OCR recognition information of an image including the question is obtained. Then, the overall area of the question and the type of question are determined based on the OCR recognition information. Then, rule matching is used to extract the text results and fill-in-the-blank area of each question. Finally, the answer is obtained through network retrieval, and the answer is fitted based on the fill-in-the-blank area. The defects of the prior art are: (1) OCR recognition alone involves a large number of rules, which is complicated to implement. (2) OCR recognition alone cannot accurately determine the answer area.
[0022] The example embodiment of the present disclosure proposes a scheme for processing questions. In the scheme, an image including a question is first identified to determine the text content in the image and the text position where the text content is located. Then, the type of question is determined based on the text content. After that, the question stem position and the answer position of the question are determined based on the above image. Then, based on the corresponding position relationship between the text position and the question stem position, the question stem text at the question stem position is determined from the text content. Finally, the answer is determined based on the question stem text and the question type, and the answer is presented at the answer position. According to the scheme of the present disclosure, the text position where the determined text content is located and the question stem position are merged, so that the answer to the question can be accurately determined. Finally, based on the answer position, the answer can be accurately presented. This improves the efficiency of users in reviewing and correcting questions.
[0023] Figure 1 1 is a schematic diagram of an example environment 100 in which various embodiments of the present disclosure can be implemented. It should be understood that Figure 1 The environment 100 shown is merely exemplary and should not be construed as limiting the functionality and scope of the implementations described in the present disclosure. Figure 1 As shown, environment 100 includes image 110, topics 120-1 and 120-2 (hereinafter collectively referred to as at least one topic 120), computing device 130 and database 140. Although only one image and two topics are shown, the number is only exemplary. Multiple images and multiple topics may also exist at the same time, and the present disclosure is not limited here.
[0024] The image 110 may be an image captured by a camera in an electronic device, or an image obtained by taking a screenshot of the content displayed on the display screen of the electronic device, or the image 110 may be an image transmitted from another device. The image may be in various suitable formats such as bmp, jpg, jpeg, pdf, etc. The present disclosure does not limit this.
[0025] The image 110 may include at least one topic 120. In some embodiments, at least one topic 120 is a blank topic, that is, there is no answer. In some embodiments, at least one topic 120 is a topic to be corrected with an answer. The types of topics include, but are not limited to, synonyms, antonyms, idioms, etc. Now, in the following, antonyms will be used as an example for description, which is not intended to limit the scope of the present disclosure.
[0026] The computing device 130 may perform various processing on the image 110 to determine the text content and answer area of at least one question 120. For example, the computing device 130 may use OCR technology, various algorithms, and pre-trained models to recognize and process the text in the image, which will be described in further detail below.
[0027] The computing device 130 may also retrieve the answer to at least one question 120 from the database 140 for presentation to the user or matching with the existing answer for correction based on the text content of at least one question 120 determined above. Although the computing device 120 is shown as an entity outside the database 140, the computing device 120 may also include the database 140. The computing device 120 may be any device with computing capabilities. As a non-limiting example, the computing device 130 may be any type of fixed computing device, mobile computing device, or portable computing device, including but not limited to a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a multimedia computer, a mobile phone, etc.; all or part of the components of the computing device 130 may be distributed in the cloud. The computing device 130 includes at least a processor, a memory, and other components that are typically present in a general-purpose computer to implement computing, storage, communication, control, and other functions.
[0028] In order to more clearly understand the solution provided by the embodiments of the present disclosure, reference will be made to Figures 2 to 5 To further describe the embodiments of the present disclosure. Figure 2 FIG. 2 is a flowchart of a process 200 for processing a question according to an embodiment of the present disclosure. The process 200 may be performed by Figure 1 For ease of discussion, the following will be combined with Figure 1 The process 200 is described below.
[0029] exist Figure 2 In 210, the computing device 130 recognizes the image 110 including at least one title 120 to determine the text content and text position of the text in the image 110. For example, the computing device 130 can use a suitable text recognition technology to recognize the image 110. OCR has a high recognition speed and accuracy. The computing device 130 can perform binarization, noise removal, tilt correction, character cutting and other processing on the image 110. Then, the text content and the position of the text content in the image 110 are obtained through a specific OCR algorithm.
[0030] To explain the above process clearly, refer to Figure 4 describe. Figure 4 A schematic diagram 400 of processing an image 110 including a topic according to some embodiments of the present disclosure is shown. Figure 4 , computing device 130 determines text content 401 - 412 and its text position in image 110 .
[0031] Back to Figure 2 Describe, in Figure 2In 220, the computing device 130 determines the topic type of at least one topic 120 based on the text content. For example, the computing device 130 may traverse the text content determined above and match topic type keywords to determine the topic type.
[0032] In some embodiments, Figure 4 For example, after traversing text content 401-412, computing device 130 may determine that the keywords therein are 402-404, namely "antonyms". Then, the topic type may be determined to be an antonym type. Computing device 130 may also simultaneously determine the positions of text content 402-404, thereby determining the text content within a threshold range thereof as topics of the same type.
[0033] Alternatively, in some other embodiments, the computing device 130 may also extract features of the entire text content and match it in the database 140 to determine the same topic, thereby determining the topic type.
[0034] exist Figure 2 In 230, the computing device 130 determines the position of the stem and the position of the answer of at least one question 120 based on the image 110. Figure 3 Step 230 is further described. Figure 3 A flowchart 300 is shown of an example of a process of determining question stem locations and answer locations according to some embodiments of the present disclosure.
[0035] exist Figure 3 In 310, the computing device 130 corrects the direction of the image based on the text direction of the text in the image 110. For example, the image 110 acquired by the computing device 130 may be an inverted or misoriented image, which is not conducive to subsequent image recognition. The computing device 130 may first rotate the image.
[0036] In some embodiments, the computing device 130 may use a question direction detection model to adjust the direction of the image. The question direction detection model may fuse the results of different feature scales, make full use of multi-level perceptual field of view information, determine the text direction of the image 110, and then correct the direction of the image 110. The question direction detection model may be a model pre-trained using a low-latency, high-throughput MobileNet lightweight model. By first correcting the direction of the image 110, the subsequent question stem and answer position detection may be facilitated, thereby improving the accuracy of position detection.
[0037] exist Figure 3 In 320, the computing device 130 determines at least one question stem position and at least one answer question position based on the corrected image.
[0038] In some embodiments, the computing device 130 may obtain a question stem and answer position detection model associated with the sample image, and the question stem and answer position detection model describes the relationship between the sample question stem position and the sample answer position associated with the sample image. The computing device 130 may then determine at least one question stem position and at least one answer position based on the question stem and answer position detection model and the corrected image. The question stem and answer position detection model may be trained using a YoloV3-based target detection model using a large number of labeled fill-in-the-blank questions of various forms.
[0039] Will refer to Figure 5 The image processing result of the above step 320 is described. Figure 5 Another schematic diagram 500 of processing an image including a question according to some embodiments of the present disclosure is shown. The computing device 130 can use the question stem and answer position detection model to determine at least one question stem position 501, 503 and at least one answer position 502 and 504 in the image 110.
[0040] Back to Figure 3 Describe, in Figure 3 In 330, the computing device 130 matches at least one stem position and at least one answer position to determine the stem position and answer position of at least one question 120. For example, the computing device 130 may match the at least one stem position 501, 503 and at least one answer position 502, 504 detected above to determine the stem position and answer position associated with a question 120.
[0041] In one embodiment, the above-mentioned stem and answer position detection model can simultaneously output the corresponding feature values of at least one stem position 501, 503 and at least one answer position 502 and 504 detected. For example, the feature value of stem position 501 is A, the feature value of stem position 503 is B, the feature value of answer position 502 is C, and the feature value of answer position 504 is D. The computing device 130 can determine the degree of matching between them by determining the feature value, thereby determining the stem position 501 and the answer position 502 of question 120-1, and determining the stem position 503 and the answer position 504 of question 120-2. Other suitable algorithms or models can also be used to determine the degree of matching between the stem position and the answer position, which is not limited in this disclosure. By using the above-mentioned question direction detection model and the stem and answer position detection model, the question area can be accurately and robustly determined. Lay the foundation for subsequent answer determination and answer filling.
[0042] Back to Figure 2 Describe, in Figure 2In 240, if the computing device 130 determines that the text position matches the question stem position, the computing device 130 determines the question stem text at the question stem position from the text content. For example, the computing device 130 may fuse the processing results of the image 110 acquired in step 210 and step 230 to determine the question stem text at the question stem position.
[0043] In one example, if the computing device 130 determines that the text position matches the question stem position, the computing device 130 determines the text content corresponding to the text position as the question stem text at the question stem position.
[0044] In some embodiments, the computing device 130 can determine that the question stem position 501 includes text content 405 and 406 by the coordinates of the question stem position 501 in the image (e.g., finding the coordinates of the text content within its threshold coordinate range), thereby determining that the question stem text of question 120-1 is "childish". By using the above-mentioned accurate question stem position combined with the text recognition processing result (e.g., OCR recognition), the text of the question stem can be accurately determined.
[0045] At 250, computing device 130 displays an answer to at least one question at the answer position, where the answer is generated based on the question stem text and the question type. For example, after determining the question stem text, computing device 130 may further determine the answer and display it to the user.
[0046] In some embodiments, the computing device 130 may determine a target text that matches the question stem text from a predetermined database 140 based on the question type. The target text is then presented at the answer position as the answer to at least one question. For question 120-1, the computing device 130 may search the database 140 for antonyms of "childish", such as "sophisticated, mature, old". The computing device 130 may then use the most appropriate target text as the answer to question 120-1.
[0047] Alternatively, in some embodiments, the computing device 130 detects the pending answer present at the answer position, and if the computing device 130 determines that the pending answer matches the answer, it presents a mark indicating that the pending answer is correct. By accurately identifying the answer position, the pending answer present therein can be accurately determined, thereby completing the correction of the question intelligently and efficiently.
[0048] According to the method for processing questions proposed in the present disclosure, the question stem and the answer position can be accurately identified, thereby allowing the answer to be efficiently fitted to the answer position so as to facilitate parents to quickly review the answer and students to self-study. Furthermore, by intelligently matching the answer to be processed with the determined answer, it can facilitate teachers to efficiently correct questions.
[0049] Figure 6 FIG. 6 is a schematic block diagram of an apparatus 600 for processing a question according to an embodiment of the present disclosure. Figure 6 As shown, the device 600 includes: an image recognition module 610, configured to recognize an image including at least one question to determine the text content and text position of the text in the image; a type determination module 620, configured to determine the question type of at least one question based on the text content; a first question determination module 630, configured to determine the question stem position and answer position of at least one question based on the image; a first question stem text determination module 640, configured to determine the question stem text at the question stem position from the text content if it is determined that the text position matches the question stem position; and a first answer presentation module 650, configured to display the answer to at least one question at the answer position, the answer being generated based on the question stem text and the question type.
[0050] In some embodiments, the first question determination module 630 may include: a direction correction module, configured to correct the direction of the image based on the text direction of the text in the image; a second question determination module, configured to determine at least one question stem position and at least one answer position based on the corrected image; and a third question determination module, configured to match at least one question stem position and at least one answer position to determine the question stem position and answer position of at least one question.
[0051] In some embodiments, the second question determination module includes: a detection model acquisition module, configured to acquire a question stem and answer position detection model associated with a sample image, the question stem and answer position detection model describing the relationship between a sample question stem position and a sample answer position related to the sample image; and a fourth question determination module, configured to determine at least one question stem position and at least one answer position based on the question stem and answer position detection model and the corrected image.
[0052] In some embodiments, the first stem text determination module 640 may include: a second stem text determination module configured to determine the text content corresponding to the text position as the stem text at the stem position.
[0053] In some embodiments, the first answer presentation module 650 may include: a target text determination module, configured to determine a target text that matches the question stem text from a predetermined database based on the question type; and a second answer presentation module, configured to present the target text as an answer to at least one question at the answer position.
[0054] In some embodiments, the device 600 may also include: an answer detection module, configured to detect the pending answer existing at the answer position; and an answer matching module, configured to present an indication that the pending answer is correct if it is determined that the pending answer matches the answer.
[0055] Figure 7 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0056] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 707 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0057] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 708, such as various types of displays, speakers, etc.; a storage unit 707, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0058] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as processes 200 and 300. For example, in some embodiments, processes 200 and 300 may be implemented as computer software programs that are tangibly included in machine-readable media, such as storage unit 707. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of processes 200 and 300 described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the processes 200 and 300 in any other appropriate manner (eg, by means of firmware).
[0059] Various implementations of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0060] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0061] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0062] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0063] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0064] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0065] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0066] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for processing a topic, the method comprising: Recognizing an image including at least one title to determine text content and text location of text in the image; Determining a topic type of the at least one topic based on the text content; Independently of identifying the image, detecting the image by a question stem and answer position detection model associated with the sample image to determine the question stem position and answer position of the at least one question, wherein the question stem and answer position detection model describes a relationship between a sample question stem position and a sample answer position associated with the sample image; If it is determined that the text position matches the question stem position, determining the question stem text at the question stem position from the text content; and An answer to the at least one question is displayed at the question answering position, wherein the answer is generated based on the question stem text and the question type.
2. The method according to claim 1, wherein determining the stem position and the answer position of the at least one question based on the image comprises: Correcting the orientation of the image based on the text orientation of the text in the image; Based on the corrected image, determining at least one question stem position and at least one answer question position; as well as The at least one question stem position and the at least one answer position are matched to determine the question stem position and the answer position of the at least one question.
3. The method according to claim 2, wherein determining at least one question stem position and at least one answer question position based on the corrected image comprises: Obtaining the question stem and answer position detection model; as well as Based on the question stem and answer position detection model and the corrected image, the at least one question stem position and the at least one answer position are determined.
4. The method according to claim 1, wherein if it is determined that the text position matches the question stem position, determining the question stem text at the question stem position from the text content comprises: The text content corresponding to the text position is determined as the question stem text at the question stem position.
5. The method according to claim 1, wherein displaying the answer to the at least one question at the question answering position comprises: Based on the question type, determining a target text matching the question stem text from a predetermined database; as well as The target text is displayed at the question answering position as an answer to the at least one question.
6. The method according to claim 1, further comprising: Detecting the pending answer existing at the question answering position; as well as If it is determined that the pending answer matches the answer, an indication is presented indicating that the pending answer is correct.
7. A device for processing a question, the device comprising: An image recognition module configured to recognize an image including at least one title to determine text content and text position of text in the image; A type determination module, configured to determine a topic type of the at least one topic based on the text content; A first question determination module is configured to detect the image independently of recognizing the image, by using a question stem and answer position detection model associated with the sample image, so as to determine the question stem position and the answer position of the at least one question, wherein the question stem and answer position detection model describes the relationship between the sample question stem position and the sample answer position associated with the sample image; A first question stem text determination module is configured to determine the question stem text at the question stem position from the text content if it is determined that the text position matches the question stem position; and The first answer presentation module is configured to display the answer to the at least one question at the question answering position, wherein the answer is generated based on the question stem text and the question type.
8. The apparatus according to claim 7, wherein the first topic determination module comprises: a direction correction module configured to correct the direction of the image based on the text direction of the text in the image; A second question determination module is configured to determine at least one question stem position and at least one answer position based on the corrected image; as well as The third question determination module is configured to match the at least one question stem position and the at least one answer position to determine the question stem position and the answer position of the at least one question.
9. The apparatus according to claim 8, wherein the second topic determination module comprises: A detection model acquisition module is configured to obtain the question stem and answer position detection model; as well as The fourth question determination module is configured to determine the at least one question stem position and the at least one answer position based on the question stem and answer position detection model and the corrected image.
10. The device according to claim 7, wherein the first question text determination module comprises: The second question stem text determination module is configured to determine the text content corresponding to the text position as the question stem text at the question stem position.
11. The apparatus according to claim 7, wherein the first answer presentation module comprises: A target text determination module is configured to determine a target text matching the question stem text from a predetermined database based on the question type; as well as The second answer presentation module is configured to present the target text as an answer to the at least one question at the question answering position.
12. The apparatus according to claim 7, further comprising: An answer detection module is configured to detect an answer to be processed existing at the question answering position; as well as The answer matching module is configured to present an identification indicating that the answer to be processed is correct if it is determined that the answer to be processed matches the answer.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
