Answering prompt method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202210857826.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2042-07-20
AI Technical Summary
[0002]随着网络教育的普及,学生通常利用电子设备进行习题练习,但是在电子设备上对习题进行作答往往无法获得在纸张上书写的质感
[0047]本申请实施例根据识别到的待答题目的问题类型和待答题目包括的问题数量,确定出待答题目在实体纸张上对应的实体答题区域,并且输出实体答题区域在实体纸张上的位置,使得用户可以根据电子设备输出的实体答题区域在实体纸张上的位置,在实体纸张对应的实体答题区域中进行规范作答,提高了答题的规范性,从而降低对书写内容识别的难度。
Smart Images

Figure CN115186082B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic devices, specifically to a method, apparatus, electronic device, and storage medium for providing answer prompts. Background Technology
[0002] With the popularization of online education, students often use electronic devices to practice exercises. However, answering questions on electronic devices often cannot replicate the tactile experience of writing on paper. To simultaneously satisfy the experience of writing on paper and the advantages of recording and displaying on electronic devices, existing technologies can recognize the written content on paper and map it onto the electronic device. However, this is prone to recognition errors because many users' writing on paper is often messy, increasing the difficulty of recognizing the written content. Summary of the Invention
[0003] This application discloses a method, apparatus, electronic device, and storage medium for providing answer prompts, which can improve the standardization of answers and reduce the difficulty of recognizing written content.
[0004] This application discloses a method for providing answer prompts, characterized in that it is applied to an electronic device, and the method includes:
[0005] Identify the question types and number of questions to be answered;
[0006] The physical answer area on the physical paper corresponding to the question to be answered is determined based on the number of questions and the question type.
[0007] Output the position of the entity's answer area on the physical paper.
[0008] As an optional implementation, before determining the physical answer area on the physical paper corresponding to the questions to be answered based on the number of questions and the question type, the method further includes:
[0009] Obtain the first image of the physical paper;
[0010] The usable area of the physical paper is identified based on the first image; the usable area does not contain handwritten characters.
[0011] The step of determining the physical answer area on the physical paper corresponding to the question to be answered based on the number of questions and the question type includes:
[0012] Within the usable area, allocate the entity answer area corresponding to the question to be answered according to the number of questions and the question type.
[0013] As an optional implementation, allocating the entity answer area corresponding to the question to be answered within the usable area according to the number of questions and the question type includes:
[0014] The number of entity answer areas corresponding to the questions to be answered is determined based on the number of questions.
[0015] The size or area of the answer area for each entity is determined according to the question type;
[0016] The location of each entity answering area within the usable area is assigned based on the number of entity answering areas and the size or area of each entity answering area.
[0017] As an optional implementation, after outputting the position of the physical answer area on the physical paper, the method further includes:
[0018] Obtain a second image of the physical paper;
[0019] Based on the position of the entity answer area on the physical paper, determine the corresponding region position of the entity answer area in the second image;
[0020] The location of the area is identified to obtain the written answer written in the entity's answer area.
[0021] As an optional implementation, the step of outputting the position of the physical answer area on the physical paper includes:
[0022] Display the virtual paper corresponding to the physical paper;
[0023] A virtual answer area is overlaid on the virtual paper to indicate the position of the physical answer area on the physical paper.
[0024] As an optional implementation, before identifying the question type and number of questions to be answered, the method further includes:
[0025] The system displays the questions to be answered, as well as the original answer area for those questions; the original answer area is different from the virtual answer area.
[0026] And, after displaying a virtual answer area overlaid on the virtual paper to indicate the position of the physical answer area on the physical paper, the method further includes:
[0027] Recognize the written answers entered in the entity's answer area;
[0028] The written answer is displayed in the virtual answer area corresponding to the physical answer area; and / or,
[0029] The written answer is displayed in the original answer area.
[0030] As an optional implementation, before outputting the position of the physical answer area on the physical paper, the method further includes:
[0031] Identify the paper type of the physical paper;
[0032] The step of outputting the position of the physical answer area on the physical paper includes:
[0033] The position of the answer area on the physical paper is output using an output method corresponding to the paper type of the physical paper.
[0034] As an optional implementation, the paper type includes: blank paper; the step of outputting the position of the physical answer area on the physical paper using an output method corresponding to the paper type of the physical paper includes:
[0035] When the physical paper is of blank paper type, the virtual paper corresponding to the physical paper is displayed;
[0036] A virtual answer area corresponding to the physical answer area is superimposed on the virtual paper to indicate the position of the physical answer area on the physical paper.
[0037] As an optional implementation, the paper type includes: non-blank paper, the non-blank paper including reference lines for marking positions; the step of outputting the position of the physical answer area on the physical paper through an output method corresponding to the paper type of the physical paper includes:
[0038] When the paper type of the physical paper is non-blank paper, a reference line corresponding to the answer area of the physical paper is determined;
[0039] Information about the reference lines corresponding to the answer area of the entity is displayed via voice or text.
[0040] This application discloses a question prompting device, the device comprising:
[0041] The identification module is used to identify the question type and number of questions to be answered;
[0042] The determination module is used to determine the physical answer area on the physical paper corresponding to the question to be answered based on the number of questions and the question type.
[0043] The output module is used to output the position of the physical answer area on the physical paper.
[0044] This application discloses an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor implements any of the question-answering prompting methods disclosed in this application.
[0045] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute any of the question-answering prompting methods disclosed in this application.
[0046] Compared with related technologies, the embodiments of this application have the following beneficial effects:
[0047] This application embodiment determines the corresponding physical answer area on the physical paper based on the identified question type and the number of questions included in the question to be answered, and outputs the position of the physical answer area on the physical paper. This allows the user to answer in a standardized manner in the corresponding physical answer area on the physical paper according to the position of the physical answer area output by the electronic device, thereby improving the standardization of the answer and reducing the difficulty of recognizing the written content. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is an example diagram illustrating an application scenario of a question-answering suggestion method disclosed in an embodiment of this application;
[0050] Figure 2 This is a flowchart illustrating a question-answering prompting method disclosed in an embodiment of this application;
[0051] Figure 3 This is a flowchart illustrating another question-answering prompting method disclosed in an embodiment of this application;
[0052] Figure 4 This is an example diagram illustrating an application scenario of another question-answering suggestion method disclosed in the embodiments of this application;
[0053] Figure 5 This is a flowchart illustrating another question-answering prompting method disclosed in an embodiment of this application;
[0054] Figure 6This is an example diagram illustrating an application scenario of another question-answering suggestion method disclosed in the embodiments of this application;
[0055] Figure 7 This is a flowchart illustrating another question-answering prompting method disclosed in an embodiment of this application;
[0056] Figure 8 This is a schematic diagram of the structure of a question prompting device disclosed in an embodiment of this application;
[0057] Figure 9 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation
[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0059] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0060] This application discloses a method, apparatus, electronic device, and storage medium for providing answer prompts, which improves the portability of answering exercises on electronic devices. This answer prompt method is applicable to electronic devices such as smartphones, laptops, tablets, and tutoring machines; however, this application does not limit its application to these devices. Detailed descriptions follow.
[0061] Please see Figure 1 , Figure 1 This is an example diagram illustrating an application scenario of a question-answering suggestion method disclosed in an embodiment of this application. For example... Figure 1 As shown, the electronic device displays questions to be answered, each question potentially including one or more sub-questions. The device also displays the original answer areas for each sub-question. Optionally, the electronic device includes a camera that can photograph the physical paper. The user can then answer the questions displayed on the physical paper.
[0062] Please see Figure 2 , Figure 2This is a flowchart illustrating a question-answering suggestion method disclosed in an embodiment of this application. This method can be applied to electronic devices such as smartphones, laptops, tablets, and tutoring machines, and is not specifically limited thereto. Figure 2 As shown, this method of providing answer hints may include the following steps:
[0063] 201. Identify the question type and number of questions to be answered.
[0064] Electronic devices can retrieve individual questions from a question database specified by the user in the quiz software. The question database can be stored on the electronic device or a server.
[0065] A question to be answered may include one or more questions; the electronic device identifies the question type of each question in the question to be answered and the number of questions in the question to be answered.
[0066] The question types can be multiple choice, fill-in-the-blank, or application questions, with no specific restrictions.
[0067] The number of questions in a question to be answered can be any positive integer, with no specific limit.
[0068] 202. Determine the corresponding physical answer area on the physical paper for each question based on the number and type of questions.
[0069] In some embodiments, the electronic device determines the number of physical answer areas corresponding to the questions to be answered based on the number of questions; the electronic device determines the size or area of each physical answer area based on the question type; and the electronic device assigns the position of each physical answer area on the physical paper based on the number of physical answer areas and the size or area of each physical answer area.
[0070] The questions to be answered include one or more questions, and one question can correspond to one entity's answer area.
[0071] In some embodiments, the electronic device may determine the number of physical answer areas corresponding to the questions on the physical paper based on the number of questions, for example, the number of physical answer areas on the physical paper may be equal to the number of questions included in the questions to be answered; and / or, the electronic device may determine the size or area of the physical answer area corresponding to each question included in the questions to be answered based on the question type; and / or, the electronic device may determine the spacing between each physical answer area and the position of each physical answer area on the physical paper based on the number of questions and the question type.
[0072] In some optional implementations, the question types include multiple-choice questions; the electronic device determines the physical answer area on the physical paper corresponding to the questions to be answered based on the number of questions and the question types, including: when the question type is multiple-choice, the electronic device determines the size of the physical answer area on the physical paper corresponding to the questions to be answered as a first size; the question types include application questions; the electronic device determines the physical answer area on the physical paper corresponding to the questions to be answered based on the number of questions and the question types, including: when the question type is application question, the electronic device determines the size of the physical answer area on the physical paper corresponding to each question in the question to be answered as a second size; the first size is smaller than the second size.
[0073] In some alternative implementations, the question type can be the answer type corresponding to each question. For example, the electronic device can acquire the standard answer corresponding to each question and identify the answer type corresponding to each standard answer. The answer type can be a single word, two words, three words, etc., without specific limitations. The electronic device can determine the size of the physical answer area corresponding to each question based on the answer types corresponding to each question in the question to be answered.
[0074] 203. Output the location of the physical answer area on the physical paper.
[0075] Electronic devices can output the location of the physical answer area on the physical paper through output methods such as virtual images, voice broadcasts, or text displays.
[0076] This application embodiment determines the corresponding physical answer area on the physical paper based on the identified question type and the number of questions included in the question to be answered, and outputs the position of the physical answer area on the physical paper. This allows the user to write their answer in the corresponding physical answer area on the physical paper according to the position of the physical answer area output by the electronic device, improving the standardization of the answer and reducing the difficulty of recognizing the written content.
[0077] Please see Figure 3 , Figure 3 This is a flowchart illustrating another question-answering suggestion method disclosed in an embodiment of this application. This method can be applied to any of the aforementioned electronic devices. Figure 3 As shown, the method includes the following steps:
[0078] 301. Identify the question type and number of questions to be answered.
[0079] 302. Obtain the first image of the physical paper.
[0080] In some embodiments, the electronic device can capture an image of the physical paper using its camera to obtain a first image. Specifically, the electronic device can capture an original image containing the physical paper, which may include other elements besides the physical paper. The electronic device captures the original image containing the physical paper to obtain an original image, and then performs object detection on the original image to obtain a first image of the physical paper from the original image. The first image is an image containing only the physical paper. That is, the electronic device can use an object detection algorithm to detect the position and size of the physical paper within the original image to obtain the first image of the physical paper.
[0081] Optionally, the electronic device may also receive a first image of the physical paper sent by other electronic devices; or, the electronic device may generate a first image of the physical paper when a first user operation is detected, wherein the first user operation may be an operation for inputting parameters of the physical paper, and the parameters of the physical paper may include the length, width, etc. of the physical paper.
[0082] 303. Identify the usable area of the physical paper based on the first image.
[0083] The usable area does not contain handwritten characters; the usable area can be used to indicate blank areas on physical paper.
[0084] Electronic devices can perform optical character recognition (OCR) on the first image to identify the usable areas of the physical paper. Character recognition methods can include binarization, noise filtering, correlation domain analysis, AdaBoost, CNN algorithms, softmax algorithms, etc.
[0085] This application's embodiments utilize the robustness of deep learning algorithms such as object detection and character recognition, without limiting the color or model of the stylus, or imposing special requirements on the specifications and materials of the physical paper. It is simple to use, applicable to a wide range of scenarios, and highly portable.
[0086] 304. Within the usable area, allocate the corresponding entity answer area for the questions to be answered based on the number and type of questions.
[0087] 305. Output the location of the physical answer area on the physical paper.
[0088] 306. Obtain the second image of the physical paper.
[0089] The physical answer area is the area on the physical paper where the user writes their answers. After the user writes their answers in the physical answer area, the electronic device can acquire a second image of the physical paper. The second image includes the physical paper and the user's written answers. Optionally, the electronic device can acquire the second image of the physical paper when it detects a user's voice command, such as "I have finished answering"; or, the electronic device can acquire the second image of the physical paper when it detects a third user operation, such as triggering a virtual button to start recording; or, after outputting the position of the physical answer area on the physical paper, the electronic device can start a countdown function, and acquire the second image of the physical paper after the corresponding answer time has elapsed.
[0090] 307. Based on the position of the physical answer area on the physical paper, determine the corresponding area position of the physical answer area in the second image.
[0091] In some embodiments, the location of the entity answer area in the second image can refer to the position of the entity answer area in the second image, or it can refer to the position of the coverage area that can cover the entity answer area in the second image. The coverage area can be larger than the entity answer area. For example, the coverage area can be 1.25 times, 1.5 times, etc., of the entity answer area, and there is no specific limitation. Having a coverage area larger than the entity answer area avoids the problem that when a user writes their answer in the entity answer area, part of the written answer may extend beyond the entity answer area, causing the written content outside the entity answer area to be unrecognizable by the electronic device, thus improving the accuracy of recognizing the user's written answer.
[0092] 308. Identify the location of the area and obtain the written answer written in the entity answer area.
[0093] The electronic device only identifies the location of a specific area, eliminating the need to recognize the entire second image. This reduces the computational load for character recognition, speeds up the recognition process, and improves the user's learning efficiency. Optionally, the electronic device can perform character recognition on the specific area to obtain the written answer to be placed in the physical answer area.
[0094] This application embodiment determines the physical answer area corresponding to the questions to be answered on the usable area of the physical paper according to the number and type of questions. This is beneficial for reasonably determining the physical answer area corresponding to the questions on the physical paper based on the actual use of the physical paper, thereby improving the paper utilization rate. At the same time, it provides users with reasonable answer prompts and improves the standardization of users' answers on the physical paper.
[0095] Please see Figure 4 , Figure 4This is an example diagram illustrating an application scenario of another question-answering suggestion method disclosed in the embodiments of this application. For example... Figure 4 As shown, the number of questions to be answered is 1, and the question type is fill-in-the-blank. The Arabic numeral 19 on the physical paper is a handwritten character that already exists on the physical paper. Users can determine the physical answer area on the usable area of the physical paper based on the position of the physical answer area output by the electronic device through virtual images, voice broadcasts, or text displays, and write their answers in the physical answer area.
[0096] Please see Figure 5 , Figure 5 This is a flowchart illustrating another question-answering suggestion method disclosed in an embodiment of this application. This method can be applied to any of the aforementioned electronic devices. Figure 5 As shown, the method includes the following steps:
[0097] 501. Display the questions to be answered, as well as the original answer area for those questions.
[0098] The original answer area is different from the virtual answer area. The original answer area can be the actual electronic answer area assigned to each question in the answer software or application of the electronic device. Users can enter their written answers in the original answer area through the electronic device's handwriting keyboard, virtual buttons, or an electronic handwriting tablet connected to the electronic device.
[0099] 502. Identify the question type and number of questions to be answered.
[0100] 503. Determine the corresponding physical answer area on the physical paper for each question based on the number and type of questions.
[0101] 504. Display the virtual paper corresponding to the physical paper.
[0102] The virtual paper can be a digital image output through the display screen of an electronic device. Optionally, the electronic device detects the position and size of the physical paper within the original image using a target detection algorithm, obtains a first image of the physical paper, and then scales the first image proportionally to obtain the virtual paper; alternatively, the electronic device can generate the virtual paper corresponding to the physical paper upon detecting a second user operation, which can be an operation to input parameters for the virtual paper, including the length, width, and display position of the physical paper on the display screen of the electronic device.
[0103] The electronic device can automatically map the virtual paper to a target position on the screen of the electronic device based on the model of the electronic device and the interface settings of the answer software of the electronic device; the target position can be a position on the screen of the electronic device that does not obstruct the questions to be answered or the original answer area.
[0104] 505. Overlay a virtual answer area on the virtual paper to indicate the position of the physical answer area on the physical paper by the position of the virtual answer area on the virtual paper.
[0105] One physical answer area corresponds to one virtual answer area. The position of the virtual answer area on the virtual paper can intuitively and clearly indicate the position of the physical answer area on the physical paper, which helps users to write their answers accurately and in a standardized manner in the physical answer area on the physical paper.
[0106] 506. Recognize handwritten answers written in the entity answer area.
[0107] The electronic device can recognize characters of the written answers written on the entire physical paper, or it can recognize characters of the written answers written only in the physical answer area; there is no specific limitation.
[0108] 507. Display the written answers in the virtual answer area corresponding to the physical answer area.
[0109] Electronic devices can map the recognized written answers to a virtual answer area corresponding to the physical answer area. This allows users to determine whether they have answered correctly in the physical answer area on the physical paper based on the position of their written answers in the virtual answer area, thus improving the standardization of their answers.
[0110] 508. Display the written answer in the original answer area.
[0111] Electronic devices can map recognized handwritten answers to the original answer area, eliminating the need for users to input answers directly into the original answer area using the device's handwriting keyboard, virtual buttons, or a connected electronic writing tablet. This simultaneously provides the experience of paper writing and the advantages of electronic recording and display. The electronic device can also compare the handwritten answers displayed in the original answer area with the standard answers to the questions.
[0112] This application embodiment achieves its purpose through software integration, requiring only operation on electronic devices such as laptops, smartphones, and tablets, without the need for additional hardware devices (such as electronic writing tablets), thus greatly reducing costs.
[0113] This application embodiment determines the physical answer area on the physical paper corresponding to the identified question type and the number of questions included in the question to be answered, and overlays a virtual answer area on the corresponding virtual paper. This allows the user to answer in a standardized manner in the physical answer area corresponding to the physical paper based on the position of the virtual answer area output by the electronic device on the virtual paper, thereby improving the standardization of the answer and reducing the difficulty of recognizing the written content.
[0114] Please see Figure 6 , Figure 6 This is an example diagram illustrating an application scenario of another question-answering suggestion method disclosed in the embodiments of this application. For example... Figure 6 As shown, the Arabic numeral 140 represents the written answer. The electronic device can recognize the written answer written in the physical answer area of the physical paper and display the written answer in the virtual answer area corresponding to the physical answer area, as well as in the original answer area.
[0115] Please see Figure 7 , Figure 7 This is a flowchart illustrating another question-answering suggestion method disclosed in an embodiment of this application. This method can be applied to any of the aforementioned electronic devices. Figure 7 As shown, the method includes the following steps:
[0116] 701. Identify the question type of the questions to be answered, as well as the number of questions included in the questions to be answered.
[0117] 702. Determine the corresponding physical answer area on the physical paper for each question based on the number and type of questions.
[0118] 703. Identify the paper type of a physical paper.
[0119] Electronic devices can identify the type of paper in physical paper using deep learning algorithms, such as convolution algorithms, without being specifically limited to any particular type.
[0120] 704. Output the position of the physical answer area on the physical paper using the output method corresponding to the paper type of the physical paper.
[0121] In some embodiments, the paper type includes: blank paper; when the paper type of the physical paper is blank paper, a virtual paper corresponding to the physical paper is displayed; a virtual answer area corresponding to the physical answer area is superimposed on the virtual paper, so as to indicate the position of the physical answer area on the physical paper by the position of the virtual answer area on the virtual paper.
[0122] It should be noted that blank paper can be paper that does not include reference lines for marking positions, but it can include blank paper that already contains handwritten characters.
[0123] In some embodiments, the paper type includes: non-blank paper, which includes reference lines for marking positions; when the paper type of the physical paper is non-blank paper, a reference line corresponding to the physical answer area is determined; and information about the reference line corresponding to the physical answer area is displayed via voice or text.
[0124] Non-blank paper may include single-line paper and grid paper, but is not limited to these.
[0125] Optionally, when the physical paper is a single-line sheet, the electronic device determines the reference line used for marking the position as the line line of each row in the single-line sheet, and determines the target line line corresponding to the physical answer area. The electronic device can announce or display the target line line information corresponding to the physical answer area through voice or text. The target line line information includes the number of rows corresponding to the target line line and the number of physical answer areas corresponding to the target line line. For example, the electronic device can prompt the user through voice or text to write the answer on which line of the single-line sheet, and can also prompt the user to write how many answers on which line of the single-line sheet. Thus, the user can arrange the layout of the written answers reasonably on the single-line sheet according to the answer prompts, improving the standardization of the answers.
[0126] Optionally, when the physical paper is grid paper, the electronic device determines that the reference line used to mark the position is each cell in the grid paper, and determines the target cell corresponding to the physical answer area. The electronic device can provide voice prompts or text displays the target cell information corresponding to the physical answer area. The target cell information includes the row and column numbers corresponding to the target cell. For example, the electronic device can provide voice prompts or text displays to prompt the user in which cell of the grid paper to write the answer, improving the standardization of the answer.
[0127] In some embodiments, when the physical paper is non-blank paper, the electronic device can also display a virtual paper corresponding to the physical paper; a virtual answer area corresponding to the physical answer area is superimposed on the virtual paper, so as to indicate the position of the physical answer area on the physical paper by the position of the virtual answer area on the virtual paper.
[0128] In this embodiment, when the physical paper is blank, the electronic device can preferentially display virtual paper and virtual answer area to provide answer prompts to the user, which helps to improve the standardization of the user's answers on blank paper. When the physical paper is non-blank, since non-blank paper includes reference lines for marking positions, the electronic device can provide answer prompts to the user through convenient methods such as voice broadcast or text display, which improves the efficiency and flexibility of answer prompts.
[0129] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a question-answering prompting device disclosed in an embodiment of this application. This device can be applied to electronic devices such as smartphones, laptops, tablets, and educational computers, and is not specifically limited thereto. Figure 8 As shown, the answer prompting device 800 may include: an identification module 810, a determination module 820, and an output module 830.
[0130] The recognition module 810 is used to identify the question type and number of questions to be answered;
[0131] Module 820 is used to determine the physical answer area on the physical paper corresponding to the questions to be answered based on the number and type of questions.
[0132] Output module 830 is used to output the position of the physical answer area on the physical paper.
[0133] In one embodiment, the answer prompting device 800 further includes: a first acquisition unit;
[0134] The first acquisition unit can be used to acquire a first image of a physical paper; identify a usable area of the physical paper based on the first image; and ensure that no handwritten characters are present in the usable area.
[0135] The determination module 820 is also used to allocate entity answer areas for questions to be answered within the usable area based on the number and type of questions.
[0136] In one embodiment, the determining module 820 is further configured to determine the number of entity answer areas corresponding to the questions to be answered based on the number of questions; determine the size or area of each entity answer area based on the question type; and assign the position of each entity answer area on the physical paper based on the number of entity answer areas and the size or area of each entity answer area.
[0137] In one embodiment, the answer prompting device 800 further includes: a second acquisition unit;
[0138] The second acquisition unit can be used to acquire a second image of the physical paper; determine the corresponding region position of the physical answer area in the second image based on the position of the physical answer area on the physical paper; identify the region position to obtain the written answer written in the physical answer area.
[0139] In one embodiment, the output module 830 is further configured to display a virtual paper corresponding to the physical paper; and to overlay a virtual answer area on the virtual paper so as to indicate the position of the physical answer area on the physical paper by the position of the virtual answer area on the virtual paper.
[0140] In one embodiment, the answer prompting device 800 further includes: a first display unit and a second display unit;
[0141] The first display unit can be used to display the questions to be answered, as well as the original answer area for the questions to be answered; the original answer area is different from the virtual answer area;
[0142] The second display unit can be used to identify written answers written in the physical answer area; display written answers in the virtual answer area corresponding to the physical answer area; and / or display written answers in the original answer area.
[0143] In one embodiment, the answer prompting device 800 further includes: a recognition unit;
[0144] The identification unit can be used to identify the paper type of a physical paper;
[0145] The output module 830 is also used to output the position of the physical answer area on the physical paper in an output method corresponding to the paper type of the physical paper.
[0146] In one embodiment, the paper type includes: blank paper; the output module 830 is further configured to display a virtual paper corresponding to the physical paper when the paper type of the physical paper is blank paper; and to overlay a virtual answer area corresponding to the physical answer area on the virtual paper, so as to indicate the position of the physical answer area on the physical paper by the position of the virtual answer area on the virtual paper.
[0147] In one embodiment, the paper type includes: non-blank paper, which includes reference lines for marking positions; the output module 830 is further configured to determine the reference lines corresponding to the physical answer area when the paper type of the physical paper is non-blank paper; and to display information about the reference lines corresponding to the physical answer area via voice broadcast or text display.
[0148] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. For example... Figure 9 As shown, the electronic device 900 may include:
[0149] Memory 910 storing executable program code;
[0150] Processor 920 coupled to memory 910;
[0151] The processor 920 calls the executable program code stored in the memory 910 to execute any of the answer prompting methods disclosed in the embodiments of this application.
[0152] This application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by the processor, the processor implements any of the answer prompting methods disclosed in this application.
[0153] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0154] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0155] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0156] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0157] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.
[0158] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0159] The foregoing has provided a detailed description of a question-answering prompting method, apparatus, electronic device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for providing answer prompts, characterized in that, Applied to electronic devices, the method includes: Display the questions to be answered, as well as the original answer area for those questions; Identify the question type and number of questions in the pending questions; The physical answer area on the physical paper corresponding to the question to be answered is determined based on the number of questions and the question type. Output the position of the entity's answer area on the physical paper; The step of outputting the position of the physical answer area on the physical paper includes: Display the virtual paper corresponding to the physical paper; A virtual answer area is overlaid on the virtual paper to indicate the position of the physical answer area on the physical paper. After displaying a virtual answer area overlaid on the virtual paper, the method further includes: Recognize the written answers entered in the entity's answer area; The written answer is displayed in the virtual answer area corresponding to the physical answer area; and / or, The written answer is displayed in the original answer area.
2. The method according to claim 1, characterized in that, Before determining the physical answer area on the physical paper corresponding to the question to be answered based on the number of questions and the question type, the method further includes: Obtain the first image of the physical paper; The usable area of the physical paper is identified based on the first image; the usable area does not contain handwritten characters. The step of determining the physical answer area on the physical paper corresponding to the question to be answered based on the number of questions and the question type includes: Within the usable area, allocate the entity answer area corresponding to the question to be answered according to the number of questions and the question type.
3. The method according to claim 2, characterized in that, The process of allocating entity answer areas corresponding to the questions to be answered within the usable area according to the number of questions and the question type includes: The number of entity answer areas corresponding to the questions to be answered is determined based on the number of questions. The size or area of the answer area for each entity is determined according to the question type; The location of each entity answering area within the usable area is assigned based on the number of entity answering areas and the size or area of each entity answering area.
4. The method according to any one of claims 1-3, characterized in that, After outputting the position of the physical answer area on the physical paper, the method further includes: Obtain a second image of the physical paper; Based on the position of the entity answer area on the physical paper, determine the corresponding region position of the entity answer area in the second image; The location of the area is identified to obtain the written answer written in the entity's answer area.
5. The method according to claim 1, characterized in that, Before outputting the position of the physical answer area on the physical paper, the method further includes: Identify the paper type of the physical paper; The step of outputting the position of the physical answer area on the physical paper includes: The position of the answer area on the physical paper is output using an output method corresponding to the paper type of the physical paper.
6. The method according to claim 5, characterized in that, The paper type includes: blank paper; the step of outputting the position of the physical answer area on the physical paper using an output method corresponding to the paper type includes: When the physical paper is of blank paper type, the virtual paper corresponding to the physical paper is displayed; A virtual answer area corresponding to the physical answer area is superimposed on the virtual paper to indicate the position of the physical answer area on the physical paper.
7. The method according to claim 5, characterized in that, The paper type includes: non-blank paper, which includes reference lines for marking positions; the step of outputting the position of the physical answer area on the physical paper using an output method corresponding to the paper type includes: When the paper type of the physical paper is non-blank paper, a reference line corresponding to the answer area of the physical paper is determined; Information about the reference lines corresponding to the answer area of the entity is displayed via voice or text.
8. A question-answering prompting device, characterized in that, include: The first display unit is used to display the questions to be answered, and the original answer area of the questions to be answered; The identification module is used to identify the question type and number of questions to be answered; The determination module is used to determine the physical answer area on the physical paper corresponding to the question to be answered based on the number of questions and the question type. The output module is used to output the position of the physical answer area on the physical paper; The output module is also used to display a virtual paper corresponding to the physical paper; and to overlay a virtual answer area on the virtual paper, so as to indicate the position of the physical answer area on the physical paper by the position of the virtual answer area on the virtual paper. The second display unit is used to identify the written answers written in the entity's answer area; The written answer is displayed in the virtual answer area corresponding to the physical answer area; And / or, display the written answer in the original answer area.
9. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Online examination method supporting hand input
CN109509378A
Response method, response device and storage medium
CN110209280A