A method, device, electronic device and storage medium for obtaining test questions

By obtaining the method of scanning the image and configured the answer window, the problem of low quality of paper test questions is solved, and the high -accuracy electronic test questions obtain and answer function are realized, and the user's operating needs are met.

CN115063815BActive Publication Date: 2025-01-28BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110252093.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-08
Publication Date
2025-01-28
Estimated Expiration
2041-03-08

AI Technical Summary

Technical Problem

The prior art is difficult to ensure the quality of paper test questions entry, especially when the questions involve formulas and graphics, text entry requires high time cost and low accuracy, which cannot meet the work needs.

Method used

Through the scanning image of the test questions, obtain the image area image in the image, configure the answering window in the answer area, directly intercept the image of the area where each test question is located, and truly restore the content of paper test questions to form electronic test questions.

Benefits of technology

The process of obtaining the test questions is simplified, the cost is reduced, the accuracy of the content of the test question is significantly improved, and the answering window is configured for each test question, which transforms each paper test question into an electronic test question with the answer function to meet the user's operating needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115063815B_ABST
    Figure CN115063815B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses a method, device, electronic device and storage medium for obtaining test questions, the method comprising: obtaining a test question scan image, and obtaining at least one test question area image in the test question scan image; wherein the test question corresponds to the test question area image one by one; obtaining the answer area in the test question area image, and configuring the answer window of the answer area; obtaining at least one configured test question area image. The technical solution of the disclosed embodiment, the configured test question area image is an image of the area where each test question is located, which is directly captured on the basis of the test question scan image, and truly restores the test question content of the paper test question. Compared with text entry, the method of obtaining electronic test questions is simple, the acquisition cost is low, and the accuracy of the test question content is greatly improved. At the same time, a corresponding answer window is configured for each test question, and each paper test question is converted into an electronic test question with an answer function, which meets the user's homework needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to image recognition technology, and more particularly to a method, device, electronic device and storage medium for obtaining test questions. Background Art

[0002] In recent years, with the rapid development of educational informatization, online learning has become an important way of learning, and online answering and online grading have also become common ways of test assignments between teachers and students.

[0003] Existing learning materials, such as teaching supplements and test papers, are still mainly traditional paper versions. School teaching also relies on various paper learning materials. Electronic test questions not only have fewer questions, but also have a low degree of matching with daily teaching. Therefore, paper materials are usually scanned and the scanned images are transcribed into electronic texts through text transcription.

[0004] However, this method of text entry makes it difficult to ensure the quality of test questions, especially when the questions involve formulas and graphics. Text entry requires a high time cost and the accuracy of text entry is low, which cannot meet the homework requirements. Summary of the invention

[0005] The present disclosure provides a method, device, equipment and storage medium for obtaining test questions, so as to convert paper test questions into electronic test questions.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for obtaining test questions, comprising:

[0007] Acquire a test question scan image, and acquire at least one test question region image in the test question scan image; wherein the test question region image corresponds to the test question one by one;

[0008] Acquire the answer area in the test area image, and configure the answer window in the answer area;

[0009] Acquire the at least one test question area image that has been configured.

[0010] In a second aspect, an embodiment of the present disclosure provides a device for obtaining test questions, including:

[0011] A test question area image acquisition module, used to acquire a test question scan image, and acquire at least one test question area image from the test question scan image; wherein the test question area image corresponds to the test question one by one;

[0012] An answer window configuration module is used to obtain an answer area in the test area image and configure an answer window in the answer area;

[0013] The test question acquisition module is used to acquire the at least one test question area image that has been configured.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory, a processing device, and a computer program stored in the memory and executable on the processing device, wherein the processing device implements a method for obtaining test questions of any embodiment of the present disclosure when executing the program.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a method for obtaining test questions of any embodiment of the present disclosure.

[0016] The technical solution of the disclosed embodiment is to configure the test question area image, which is an image of the area where each test question is located, directly captured on the basis of the test question scanned image, and truly restores the test question content of the paper test question. Compared with text entry, the method of obtaining electronic test questions is simple, the acquisition cost is low, and the accuracy of the test question content is greatly improved. At the same time, a corresponding answer window is configured for each test question, and each paper test question is converted into an electronic test question with an answer function, meeting the user's homework needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0018] Figure 1A It is a flow chart of an embodiment of a method for obtaining test questions disclosed in the present invention;

[0019] Figure 1B is a schematic diagram of a test question scan image of an embodiment of a test question acquisition method disclosed in the present invention;

[0020] Figure 1C is a schematic diagram of a test question scan image of an embodiment of a test question acquisition method disclosed in the present invention;

[0021] Figure 1D is a schematic diagram of an image of a test question area in one embodiment of a method for obtaining test questions disclosed herein;

[0022] Figure 1E is a schematic diagram of an image of a test question area in one embodiment of a method for obtaining test questions disclosed herein;

[0023] Figure 1F is a schematic diagram of an image of a test question area in one embodiment of a method for obtaining test questions disclosed herein;

[0024] Figure 2 It is a structural block diagram of a device for obtaining test questions in the second embodiment of the present disclosure;

[0025] Figure 3 It is a structural block diagram of an electronic device in Embodiment 3 of the present disclosure. DETAILED DESCRIPTION

[0026] 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 construed as being limited to the embodiments described herein, which are instead 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.

[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] Embodiment 1

[0033] FIG. A is a flow chart of a method for obtaining test questions provided in the first embodiment of the present disclosure. The present embodiment is applicable to the case where a paper test question is converted into an electronic test question and an answer window is configured for the electronic test question. The method can be executed by a test question obtaining device in the embodiment of the present disclosure. The device can be implemented by software and / or hardware and integrated in an electronic device or a server. The method specifically includes the following steps:

[0034] S110, obtaining a test question scan image, and obtaining at least one test question area image in the test question scan image; wherein the test question area image corresponds to the test question one by one.

[0035] The test question scanned image is the image information stored in the computer after the paper test question is scanned by an electron beam or radio waves; the paper test question may be a test question in a book or a test paper, and the test question in the test question scanned image maintains the same text format as the paper test question. For example, if the paper test question is in handwritten format, the test question in the test question scanned image is in the same handwritten format; in the test question scanned image, the test questions may be continuously arranged, that is, there is no excessive information between the test questions (for example, intermediate interval paragraphs), or the test question information may be non-continuously arranged, such as Figure 1B As shown in the figure, there is "

Answer

Answer

[0036] Optionally, in the disclosed embodiment of the present invention, obtaining at least one test question area image in the test question scanned image includes: obtaining at least one test question area image in the test question scanned image through a first target detection model. The target detection model is an image recognition model built based on a neural network (for example, a neural network based on a Transformer architecture, a convolutional neural network, and a recurrent neural network), which is trained with pre-labeled training samples and is used to detect the positions of one or more targets in an image and mark the target positions in the image; wherein the target positions can be marked in the form of a rectangular annotation box through a boundary matrix; such as Figure 1D As shown, the first target detection model is used to detect one or more test question area images in the test question scan image, and annotate each test question area image in the form of a rectangular annotation frame.

[0037] S120, obtaining an answer area in the question area image, and configuring an answer window in the answer area.

[0038] After obtaining the test question area image, the entire area of ​​the test question area image can be used as the answer area, that is, a click instruction is configured for the test question area image. When the click instruction is obtained in the test question area image, the answer window is displayed to improve the convenience of the user answering questions; wherein, the answer window can be configured as a fixed-size display pop-up window.

[0039] Optionally, in the disclosed embodiment, the step of obtaining the answer area in the test area image includes: if the test area image includes at least one area to be filled, the at least one area to be filled is used as the answer area; if the test area image does not include an area to be filled, the test area image is used as the answer area. When the user clicks on the answer area, a corresponding answer window will pop up, and when the user clicks on other areas in the test area image except the answer area, the answer window will not pop up; Figure 1EAs shown, through text recognition of the test question area image, if identification symbols such as brackets or underlines are obtained in the test question area image, and the above identification symbols do not include text content (for example, fill-in-the-blank questions, multiple-choice questions, and true-or-false questions all include corresponding answer positions such as brackets or underlines), the location of the above identification symbols is determined as the area to be filled, and click instructions are configured for each area to be filled. When the click instruction is obtained through the area to be filled, the corresponding answer window is displayed to obtain the user's answer information to ensure the standardization of the user's answers, that is, to guide the user to answer questions in the area to be filled; if the above identification symbols are not obtained in the test question area image (for example, the question-and-answer questions do not include answer positions such as brackets or underlines), the entire area of ​​the test question area image is used as the answer area, and a click instruction is configured for the answer area. That is, when the click instruction is obtained through any area of ​​the test question area image, the answer window is displayed to obtain the user's answer information, thereby improving the convenience of the user's answering.

[0040] Optionally, in the disclosed embodiment, after obtaining the answer area in the question area image, it further includes: obtaining the question type of the question area image; the configuration of the answer window of the answer area includes: configuring the answer window of the answer area according to the question type of the question area image. According to whether the question area image in the above technical solution includes an area to be filled, it can be determined whether the question type is one of fill-in-the-blank, multiple-choice, and true-or-false questions, or a question-and-answer question; different question types in the question area image have different corresponding answer window sizes. Taking the above technical solution as an example, if the question type is a fill-in-the-blank, multiple-choice, or true-or-false question, only a small amount of text input content from the user needs to be obtained, such as the serial number of the option and the words filled in. Therefore, a smaller answer window can be configured to accommodate the text input content and ensure a better text display effect; if the question type is a question-and-answer question, more input content from the user needs to be obtained. Therefore, a larger answer window can be configured to facilitate the user to browse the complete text input information when answering questions.

[0041] Optionally, in the disclosed embodiment, the step of obtaining the type of the test question in the test question area image includes: if the test question area image includes at least one area to be filled in and multiple option areas, determining that the type of the test question in the test question area image is a multiple-choice question; if the test question area image includes at least one area to be filled in and does not include an option area, determining that the type of the test question in the test question area image is a fill-in-the-blank question or a true-or-false question; if the test question area image does not include an area to be filled in, determining that the type of the test question in the test question area image is a question-and-answer question. For the type of test question in the test question area image, the type of test question can also be further determined by whether it includes an area to be filled in and an option area; Figure 1FFor example, the option information in the option area uses the form of "English letter + dot + space" as the starting information, and the question area image of each multiple-choice question includes at least two option information. Therefore, if at least one area to be filled in is obtained in a question area image, and two or more option areas are also included, then the question in the question area image is determined to be a multiple-choice question; if only an area to be filled in is obtained in a question area image, and no option area is obtained, then the question in the question area image is determined to be a fill-in-the-blank question or a true-or-false question; if a question area image does not include an area to be filled in, then the type of question in the question area image is determined to be a question-and-answer question, and the type of question in the question area image is further determined based on this.

[0042] Optionally, in the disclosed embodiment, configuring the answer window of the answer area according to the question type of the question area image includes: if it is determined that the question type of the question area image is a multiple-choice question, configuring the answer window of the answer area according to the option information in the multiple option areas. In different question types, in addition to the different sizes of the answer window, the display information in the answer window is also different; for multiple-choice questions, the answer window can include option information of each option area, provide users with various options that can be clicked and selected, and obtain the user's answer by obtaining the user's option click instruction, thereby improving the convenience of the user's answering.

[0043] Optionally, in the disclosed embodiment, after determining that the type of the test question in the test question area image is a fill-in-the-blank question or a true-or-false question, it further includes: obtaining the semantics of the text in the test question area image, and determining whether the type of the test question in the test question area image is a true-or-false question based on the semantics of the text; configuring the answer window in the answer area based on the type of the test question in the test question area image includes: if it is determined that the type of the test question in the test question area image is a true-or-false question, configuring the right or wrong option information in the answer window in the answer area. By obtaining the semantics of the text in the test question area image, it can be determined whether the test question in the test question area image is a fill-in-the-blank question or a true-or-false question. If it is determined to be a true-or-false question, the answer window includes a "right" option and a "wrong" option to provide the user with clickable information, and obtain the user's answer by obtaining the user's option click instruction, thereby improving the convenience of the user's answering; if it is determined to be a fill-in-the-blank question, the answer window only needs to include a text input box, and obtain the user's input text in the text input box.

[0044] Optionally, in the embodiment of the present disclosure, obtaining the answer area in the test area image includes: obtaining the answer area in the test area image through a second object detection model. Figure 1FAs shown, the second target detection model is used to detect the to-be-filled areas and option areas in the test question area image, and mark each to-be-filled area and option area in the form of a rectangular annotation box; if at least one to-be-filled area is detected, the obtained to-be-filled area is used as the answer area; if no to-be-filled area is detected, the entire test question area is used as the answer area.

[0045] Optionally, in the disclosed embodiment, before obtaining at least one test question area image in the test question scan image, it also includes: performing image binarization on the test question scan image. Image binarization is to set the grayscale value of the pixel on the image to 0 or 255, that is, if the original grayscale value of the pixel is greater than or equal to the preset pixel threshold, the grayscale value of the pixel is set to 255; if the original grayscale value of the pixel is less than the preset pixel threshold, the grayscale value of the pixel is set to 0, so that the image presents an obvious black and white effect, so as to reduce the amount of data in the image and highlight the text content in the image.

[0046] S130: Obtain the at least one configured test question area image.

[0047] The configured test question area image is an image of the area where each test question is located, which is directly captured based on the scanned image of the test question and can be displayed to the user as an electronic test question, truly restoring the test content of the paper test question. Compared with the electronic test questions obtained by text entry, the accuracy of the test question content is greatly improved. At the same time, through the above technical solution, a corresponding answer window is configured for each test question, converting each paper test question into an electronic test question with an answer function.

[0048] Optionally, in the disclosed embodiment, after acquiring the at least one configured test question area image, it further includes: displaying each configured test question area image according to the test question type of each test question area image. When displaying electronic test questions, the test questions in each test question area image can be classified according to the different test question types, and the test questions of each type can be displayed together and displayed in sequence according to the test question type. For example, the test question area images corresponding to the acquired multiple test questions can be classified according to fill-in-the-blank questions, true-or-false questions, multiple-choice questions, and essay questions, and the test question area images of each type can be displayed in sequence to ensure that users focus on answering questions of a certain question type.

[0049] The technical solution of the disclosed embodiment is to configure the test question area image, which is an image of the area where each test question is located, directly captured on the basis of the test question scanned image, and truly restores the test question content of the paper test question. Compared with text entry, the method of obtaining electronic test questions is simple, the acquisition cost is low, and the accuracy of the test question content is greatly improved. At the same time, a corresponding answer window is configured for each test question, and each paper test question is converted into an electronic test question with an answer function, meeting the user's homework needs.

[0050] Embodiment 2

[0051] Figure 2 It is a structural block diagram of a test question acquisition device provided in the second embodiment of the present disclosure, which specifically includes: a test question area image acquisition module 210, a question answering window configuration module 220 and a test question acquisition module 230.

[0052] The test question area image acquisition module 210 is used to acquire a test question scan image and acquire at least one test question area image from the test question scan image; wherein the test question area image corresponds to the test question one by one;

[0053] The answer window configuration module 220 is used to obtain the answer area in the test area image and configure the answer window in the answer area;

[0054] The test question acquisition module 230 is used to acquire the at least one test question area image that has been configured.

[0055] The technical solution of the disclosed embodiment is to configure the test question area image, which is an image of the area where each test question is located, directly captured on the basis of the test question scanned image, and truly restores the test question content of the paper test question. Compared with text entry, the method of obtaining electronic test questions is simple, the acquisition cost is low, and the accuracy of the test question content is greatly improved. At the same time, a corresponding answer window is configured for each test question, and each paper test question is converted into an electronic test question with an answer function, meeting the user's homework needs.

[0056] Optionally, based on the above technical solution, the answer window configuration module 220 is specifically used to use the at least one area to be filled as the answer area if the test area image includes at least one area to be filled; if the test area image does not include an area to be filled, use the test area image as the answer area.

[0057] Optionally, based on the above technical solution, the device for obtaining test questions further includes:

[0058] The test question type acquisition module is used to acquire the test question type of the test question area image.

[0059] Optionally, based on the above technical solution, the answer window configuration module 220 is specifically used to configure the answer window of the answer area according to the question type of the question area image.

[0060] Optionally, based on the above technical solution, a test question type acquisition module is specifically used to determine that the test question type of the test question area image is a multiple-choice question if the test question area image includes at least one area to be filled in and multiple option areas; if the test question area image includes at least one area to be filled in and does not include an option area, then the test question type of the test question area image is determined to be a fill-in-the-blank question or a true-or-false question; if the test question area image does not include an area to be filled in, then the test question type of the test question area image is determined to be a essay question.

[0061] Optionally, based on the above technical solution, the answer window configuration module 220 is specifically used to configure the answer window of the answer area according to the option information in the multiple option areas if it is determined that the question type of the question area image is a multiple-choice question.

[0062] Optionally, based on the above technical solution, the device for obtaining test questions further includes:

[0063] The text semantics acquisition module is used to acquire the text semantics in the test question area image and determine whether the test question type in the test question area image is a judgment question based on the text semantics.

[0064] Optionally, based on the above technical solution, the answer window configuration module 220 is further used to configure the right and wrong option information in the answer window of the answer area if it is determined that the question type of the question area image is a judgment question.

[0065] Optionally, based on the above technical solution, the test question area image acquisition module 210 is specifically used to acquire at least one test question area image in the test question scan image through a first target detection model.

[0066] Optionally, based on the above technical solution, the answer window configuration module 220 is further used to obtain the answer area in the test area image through a second target detection model.

[0067] Optionally, based on the above technical solution, the device for obtaining test questions further includes:

[0068] The binarization execution module is used to perform image binarization processing on the test question scan image before obtaining at least one test question area image in the test question scan image.

[0069] Optionally, based on the above technical solution, the device for obtaining test questions further includes:

[0070] The test question display module is used to display the configured test question area images according to the test question type of each test question area image.

[0071] The above device can execute the method for obtaining test questions provided in any embodiment of the present disclosure, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided in any embodiment of the present disclosure.

[0072] Embodiment 3

[0073] Figure 3 The schematic diagram of the structure of an electronic device 300 suitable for implementing the embodiment of the present disclosure is shown. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0074] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0075] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0076] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0077] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0078] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0079] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0080] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is enabled to: obtain a scanned image of a test question, and obtain at least one test question area image in the scanned image of the test question; wherein the test question area image corresponds one-to-one to the test question; obtain an answer area in the test question area image, and configure an answer window in the answer area; and obtain the at least one test question area image that has been configured.

[0081] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0082] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0083] The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The name of the module does not, in some cases, constitute a limitation on the module itself. For example, the answer window configuration module may be described as "a module for obtaining the answer area in the image of the test area and configuring the answer window of the answer area". The functions described above in this article may be at least partially performed by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate array (FPGA), application specific integrated circuit (ASIC), application specific standard product (ASSP), system on chip (SOC), complex programmable logic device (CPLD), and the like.

[0084] 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.

[0085] According to one or more embodiments of the present disclosure, [Example 1] provides a method for obtaining a test question, including:

[0086] Acquire a test question scan image, and acquire at least one test question region image in the test question scan image; wherein the test question region image corresponds to the test question one by one;

[0087] Acquire the answer area in the test area image, and configure the answer window in the answer area;

[0088] Acquire the at least one test question area image that has been configured.

[0089] According to one or more embodiments of the present disclosure, [Example 2] provides the method of Example 1, further comprising:

[0090] If the test question area image includes at least one area to be filled, the at least one area to be filled is used as the answer area;

[0091] If the test question area image does not include an area to be filled, the test question area image is used as an answer area.

[0092] According to one or more embodiments of the present disclosure, [Example 3] provides the method of Example 1 or 2, further comprising:

[0093] Obtaining the test question type of the test question area image;

[0094] According to the question type of the question area image, the answer window of the answer area is configured.

[0095] According to one or more embodiments of the present disclosure, [Example 4] provides the method of Example 3, further comprising:

[0096] If the test question area image includes at least one area to be filled and multiple option areas, determining that the test question type of the test question area image is a multiple-choice question;

[0097] If the test question area image includes at least one area to be filled in and does not include an option area, determining that the test question type of the test question area image is a fill-in-the-blank question or a true-or-false question;

[0098] If the test question area image does not include an area to be filled, it is determined that the test question type of the test question area image is a composition question.

[0099] According to one or more embodiments of the present disclosure, [Example 5] provides the method of Example 4, including:

[0100] If it is determined that the question type of the question area image is a multiple-choice question, the answer window of the answer area is configured according to the option information in the multiple option areas.

[0101] According to one or more embodiments of the present disclosure, [Example 6] provides the method of Example 4, further comprising:

[0102] Acquire the text semantics in the test question area image, and determine whether the test question type in the test question area image is a true or false question based on the text semantics;

[0103] If it is determined that the question type of the question area image is a judgment question, the right and wrong option information is configured in the answer window of the answer area.

[0104] According to one or more embodiments of the present disclosure, [Example 7] provides the method of Example 1, further comprising:

[0105] Acquire at least one test question area image in the test question scan image by using a first target detection model;

[0106] And / or the obtaining of the answer area in the test question area image comprises:

[0107] The answer area in the test question area image is obtained through the second target detection model.

[0108] According to one or more embodiments of the present disclosure, [Example 8] provides the method described in Example 7, further comprising:

[0109] The test question scanned image is subjected to image binarization processing.

[0110] According to one or more embodiments of the present disclosure, [Example 9] provides the method described in Example 3, further comprising:

[0111] According to the test question type of each test question area image, the configured test question area images are displayed.

[0112] According to one or more embodiments of the present disclosure, [Example 10] provides a device for obtaining test questions, including:

[0113] A test question area image acquisition module, used to acquire a test question scan image, and acquire at least one test question area image from the test question scan image; wherein the test question area image corresponds to the test question one by one;

[0114] An answer window configuration module is used to obtain an answer area in the test area image and configure an answer window in the answer area;

[0115] The test question acquisition module is used to acquire the at least one test question area image that has been configured.

[0116] According to one or more embodiments of the present disclosure, [Example 11] provides the device of Example 10, and an answer window configuration module, which is specifically used to use the at least one area to be filled as the answer area if the test area image includes at least one area to be filled; if the test area image does not include an area to be filled, use the test area image as the answer area.

[0117] According to one or more embodiments of the present disclosure, [Example 12] provides the apparatus of Example 10 or 11, the apparatus for obtaining test questions, further comprising:

[0118] The test question type acquisition module is used to acquire the test question type of the test question area image.

[0119] The answer window configuration module is specifically used to configure the answer window of the answer area according to the question type of the question area image.

[0120] According to one or more embodiments of the present disclosure, [Example 13] provides the device of Example 12, and a test question type acquisition module, which is specifically used to determine that the test question type of the test question area image is a multiple-choice question if the test question area image includes at least one area to be filled in and multiple option areas; if the test question area image includes at least one area to be filled in and does not include an option area, then determine that the test question type of the test question area image is a fill-in-the-blank question or a true-or-false question; if the test question area image does not include an area to be filled in, then determine that the test question type of the test question area image is a question-and-answer question.

[0121] According to one or more embodiments of the present disclosure, [Example 14] provides the device of Example 13, and the answer window configuration module, which is specifically used to configure the answer window of the answer area according to the option information in the multiple option areas if it is determined that the question type of the question area image is a multiple-choice question.

[0122] According to one or more embodiments of the present disclosure, [Example 15] provides the apparatus of Example 13, further comprising:

[0123] A text semantics acquisition module, used to acquire the text semantics in the test question area image, and determine whether the test question type in the test question area image is a judgment question based on the text semantics;

[0124] The answer window configuration module is specifically used to configure the right and wrong option information in the answer window of the answer area if it is determined that the question type of the question area image is a judgment question.

[0125] According to one or more embodiments of the present disclosure, [Example 16] provides the device of Example 10, a test question area image acquisition module, which is specifically used to acquire at least one test question area image in the test question scan image through a first target detection model.

[0126] And / or answer window configuration module, specifically used to obtain the answer area in the test area image through a second target detection model.

[0127] According to one or more embodiments of the present disclosure, [Example 17] provides the apparatus of Example 16, further comprising:

[0128] The binarization execution module is used to perform image binarization processing on the test question scan image before obtaining at least one test question area image in the test question scan image.

[0129] According to one or more embodiments of the present disclosure, [Example 18] provides the apparatus of Example 12, further comprising:

[0130] The test question display module is used to display the configured test question area images according to the test question type of each test question area image.

[0131] According to one or more embodiments of the present disclosure, [Example 19] provides an electronic device, including a memory, a processing device, and a computer program stored in the memory and executable on the processing device, wherein when the processing device executes the program, the method for obtaining test questions as described in any one of Examples 1-9 is implemented.

[0132] According to one or more embodiments of the present disclosure, [Example 20] provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a method for obtaining test questions as described in any one of Examples 1-9.

[0133] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0134] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0135] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for obtaining test questions, characterized in that: include: Acquire a test question scan image, and acquire at least one test question region image in the test question scan image; wherein the test question region image corresponds to the test question one by one; Acquire the answer area in the test area image, and configure the answer window in the answer area; Acquire the at least one test question area image after configuration; The step of obtaining the answer area in the test question area image comprises: If the test question area image includes at least one area to be filled, the at least one area to be filled is used as the answer area; wherein the area to be filled is the location of the identification symbol that does not contain text content; If the test question area image does not include an area to be filled, the test question area image is used as an answer area.

2. The method according to claim 1, characterized in that After obtaining the answer area in the test area image, the method further includes: Obtaining the test question type of the test question area image; The configuration of the answer window in the answer area includes: According to the question type of the question area image, the answer window of the answer area is configured.

3. The method according to claim 2, characterized in that The obtaining of the test question type of the test question area image includes: If the test question area image includes at least one area to be filled and multiple option areas, determining that the test question type of the test question area image is a multiple-choice question; If the test question area image includes at least one area to be filled in and does not include an option area, determining that the test question type of the test question area image is a fill-in-the-blank question or a true-or-false question; If the test question area image does not include an area to be filled, it is determined that the test question type of the test question area image is a composition question.

4. The method according to claim 3, characterized in that The configuring the answer window of the answer area according to the type of the test question in the test question area image includes: If it is determined that the question type of the question area image is a multiple-choice question, the answer window of the answer area is configured according to the option information in the multiple option areas.

5. The method according to claim 3, characterized in that: After determining that the type of the test question in the test question area image is a fill-in-the-blank question or a true-or-false question, the method further includes: Acquire the text semantics in the test question area image, and determine whether the test question type in the test question area image is a true or false question based on the text semantics; The configuring the answer window of the answer area according to the type of the test question in the test question area image includes: If it is determined that the question type of the question area image is a judgment question, the right and wrong option information is configured in the answer window of the answer area.

6. The method according to claim 1, characterized in that The step of acquiring at least one test question area image from the test question scan image comprises: Acquire at least one test question area image in the test question scan image by using a first target detection model; And / or the obtaining of the answer area in the test question area image comprises: The answer area in the test question area image is obtained through the second target detection model.

7. The method according to claim 6, characterized in that Before acquiring at least one test question area image from the test question scan image, the method further includes: The test question scanned image is subjected to image binarization processing.

8. The method according to claim 2, characterized in that: After acquiring the at least one test question area image after configuration, the method further includes: According to the test question type of each test question area image, the configured test question area images are displayed.

9. A device for obtaining test questions, characterized in that: include: A test question area image acquisition module, used to acquire a test question scan image, and acquire at least one test question area image from the test question scan image; wherein the test question area image corresponds to the test question one by one; An answer window configuration module is used to obtain an answer area in the test area image and configure an answer window in the answer area; A test question acquisition module, used to acquire the at least one test question area image after configuration; The answer window configuration module is specifically used to use the at least one area to be filled as the answer area if the test area image includes at least one area to be filled; wherein the area to be filled is the location of the identification symbol that does not contain text content; if the test area image does not include the area to be filled, then the test area image is used as the answer area.

10. An electronic device comprising a memory, a processing device, and a computer program stored in the memory and executable on the processing device, characterized in that: When the processing device executes the program, the method for obtaining test questions as described in any one of claims 1-8 is implemented.

11. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the method for obtaining test questions as described in any one of claims 1 to 8 when executed by a computer processor.

Citation Information

Patent Citations

  • Generation method and system for gap filling test question and grading method and system for gap filling test paper

    CN106409041A

  • A method and apparatus for generating online test question

    CN109300065A