CN115063815A - Test question acquisition method and device, electronic equipment and storage medium - Google Patents

Test question acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115063815A
CN115063815A CN202110252093.7A CN202110252093A CN115063815A CN 115063815 A CN115063815 A CN 115063815A CN 202110252093 A CN202110252093 A CN 202110252093A CN 115063815 A CN115063815 A CN 115063815A
Authority
CN
China
Prior art keywords
test question
area
answer
image
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110252093.7A
Other languages
Chinese (zh)
Inventor
苗广艺
刘兵
王丹丹
高明飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202110252093.7A priority Critical patent/CN115063815A/en
Publication of CN115063815A publication Critical patent/CN115063815A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for acquiring test questions, electronic equipment and a storage medium, wherein the method comprises the following steps: obtaining a test question scanning image, and obtaining at least one test question area image in the test question scanning image; wherein, the test questions correspond to the test question area images one by one; acquiring an answer area in the test question area image, and configuring an answer window of the answer area; and acquiring at least one configured test question area image. According to the technical scheme, the configured test question area image is the image of the area where each test question is directly intercepted on the basis of the test question scanning image, the test question content of the paper test question is really restored, compared with text entry, the electronic test question is simple in obtaining mode and low in obtaining cost, the accuracy of the test question content is greatly improved, meanwhile, a corresponding answer window is configured for each test question, each paper test question is converted into the electronic test question with the answer function, and the operation requirements of users are met.

Description

Test question acquisition method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to an image recognition technology, and in particular, to a method and an apparatus for acquiring test questions, an electronic device, and a storage medium.
Background
In recent years, with the rapid development of educational informatization, online learning becomes an important learning mode, and online answering and online reading and writing become common test-question operation modes among teachers and students.
The conventional learning materials, such as teaching books, test papers and the like, are still mainly based on the traditional paper version, the teaching of schools is also developed by depending on various paper learning materials, and the electronic version test questions not only have less question quantity, but also have lower matching degree with the daily teaching, so that the scanned images are generally transcribed into electronic texts by text transcription after the paper materials are scanned.
However, such a text entry method is difficult to ensure the entry quality of test questions, and particularly when the questions relate to formulas, graphics and the like, the text entry needs high time cost, and the text entry accuracy is low, so that the operation requirements cannot be met.
Disclosure of Invention
The disclosure provides a method, a device, equipment and a storage medium for acquiring test questions, so as to convert paper test questions into electronic test questions.
In a first aspect, an embodiment of the present disclosure provides a method for acquiring test questions, including:
obtaining a test question scanning image, and obtaining at least one test question area image in the test question scanning image; wherein, the test question area image corresponds to the test questions one by one;
acquiring an answer area in the test question area image, and configuring an answer window of the answer area;
and acquiring the at least one configured test question area image.
In a second aspect, an embodiment of the present disclosure provides an apparatus for acquiring test questions, including:
the system comprises a test question area image acquisition module, a test question scanning module and a test question analysis module, wherein the test question area image acquisition module is used for acquiring a test question scanning image and acquiring at least one test question area image from the test question scanning image; wherein, the test question area image corresponds to the test questions one by one;
the answer window configuration module is used for acquiring an answer area in the test question area image and configuring an answer window of the answer area;
and the test question acquisition module is used for acquiring the at least one configured test question area image.
In a third aspect, an embodiment of the present disclosure provides an electronic device, which includes a memory, a processing apparatus, and a computer program stored in the memory and executable on the processing apparatus, where the processing apparatus implements a method for acquiring test questions according to any embodiment of the present disclosure when executing the program.
In a fourth aspect, embodiments of the present disclosure provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for obtaining test questions of any of the embodiments of the present disclosure.
According to the technical scheme, the configured test question area image is the image of the area where each test question is directly intercepted on the basis of the test question scanning image, the test question content of the paper test question is really restored, compared with text entry, the electronic test question is simple in obtaining mode and low in obtaining cost, the accuracy of the test question content is greatly improved, meanwhile, a corresponding answer window is configured for each test question, each paper test question is converted into the electronic test question with the answer function, and the operation requirements of users are met.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1A is a flow chart of one embodiment of a method of obtaining test questions of the present disclosure;
fig. 1B is a schematic diagram of a test question scanned image according to an embodiment of the method for acquiring a test question of the present disclosure;
fig. 1C is a schematic view of a test question scan image according to an embodiment of the test question acquisition method of the present disclosure;
fig. 1D is a schematic diagram of a test question area image according to an embodiment of a method for acquiring test questions according to the present disclosure;
fig. 1E is a schematic diagram of a test question area image according to an embodiment of the method for acquiring a test question of the present disclosure;
fig. 1F is a schematic diagram of a test question area image according to an embodiment of a method for acquiring test questions according to the present disclosure;
fig. 2 is a block diagram of a device for acquiring test questions in a second embodiment of the present disclosure;
fig. 3 is a block diagram of an electronic device in a third embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Example one
Fig. a is a flowchart of a method for acquiring test questions provided in an embodiment of the present disclosure, where this embodiment is applicable to a case where a paper test question is converted into an electronic test question and an answer window is configured for the electronic test question, and the method may be executed by an apparatus for acquiring test questions in an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware and integrated in an electronic device or a server, and the method specifically includes the following steps:
s110, obtaining a test question scanning image, and obtaining at least one test question area image in the test question scanning image; wherein, the test question area image corresponds to the test question one by one.
The test question scanning image is image information stored in a computer after the paper test question is scanned by an electron beam or radio waves; the paper test questions can be test questions in a book or a test paper, and the test questions in the test question scanning image and the paper test questions keep the same text format, for example, the paper test questions are in a handwritten form format, and the test questions in the test question scanning image are in the same handwritten form format; in the test question scanned image, each test question may be a continuously arranged test question, that is, there is no excess information (for example, a middle interval paragraph) between the test questions, or may be discontinuously arranged test question information, as shown in fig. 1B, there is "[ solution ] information (that is, a middle interval paragraph) between the test questions, and the" [ solution ] information is obviously not content information of the test question itself, so it is necessary to obtain a test question area image corresponding to each test question in the test question scanned image, that is, each test question area image only includes one test question, and each test question only exists in one test question area image, and both of them correspond to each other one by one. As shown in fig. 1C, after each item number information (i.e., information represented in the form of "arabic number + dot + space" and located at the start position of the paragraph) is acquired, each item number information is used as a start mark, a line in which each item number information is located is determined as a start line of a test item, a "solution" information located after each item number information and closest to the item number information is used as an end mark, a line above the line in which the "solution" information is located is determined as an end line of the test item, and areas in which the start line, the end line, and an intermediate line between the start line and the end line are located are all used as the test item area image. Particularly, if the content of one test question is too much and is positioned in two or more continuous test question scanning images, the test question area images of the test question in each test question scanning image are spliced and combined to obtain a test question area image which is uniquely corresponding to the test question and is complete.
Optionally, in an embodiment of the disclosure, the acquiring at least one test question area image in the test question scanned image includes: and acquiring at least one test question area image in the test question scanning image through a first target detection model. The target detection model is an image recognition model constructed based on a neural network (such as a neural network based on a Transformer architecture, a convolutional neural network and a cyclic neural network), is trained by a pre-labeled training sample, and is used for detecting the positions of one or more targets in an image and labeling the target positions in the image; the target position can be marked in a rectangular marking frame form through a boundary matrix; as shown in fig. 1D, the first target detection model is used to detect one or more test question region images in the test question scanned image, and label each test question region image in the form of a rectangular label frame.
And S120, acquiring the answer area in the test question area image, and configuring an answer window of the answer area.
After the test question area image is obtained, all areas of the test question area image can be used as answer areas, namely click instructions are configured for the test question area image, and when the click instructions are obtained in the test question area image, an answer window is displayed, so that the convenience of answering questions of a user is improved; wherein, the answer window can be configured as a display popup window with a fixed size.
Optionally, in an embodiment of the present disclosure, the obtaining of the answer area in the test question area image includes: if the test question area image comprises at least one area to be filled, taking the at least one area to be filled as an answer area; and if the test question area image does not comprise the area to be filled, taking the test question area image as an answer area. After clicking the answer area, a user pops up a corresponding answer window, and when clicking other areas except the answer area in the image of the answer area, the user cannot pop up the answer window; as shown in fig. 1E, through text recognition of the test question area image, if an identification symbol such as a bracket or a lower horizontal line is obtained in the test question area image and the identification symbol does not include text content (for example, blank filling, selection, judgment and other types of test questions include corresponding answer positions such as a bracket or a lower horizontal line), determining the position of the identification symbol as an area to be filled, and configuring a click instruction for each area to be filled, and when a click instruction is obtained through the area to be filled, displaying a corresponding answer window to obtain answer information of a user, so as to ensure the normalization of the answer of the user, that is, guiding the user to answer the questions in the area to be filled; if the identification symbol is not obtained in the test question area image (for example, the question and answer positions such as brackets or lower horizontal lines are not included in the question and answer), all areas of the test question area image are used as answer areas, and a click instruction is configured for the answer areas, namely, when the click instruction is obtained through any area of the test question area image, an answer window is displayed to obtain answer information of the user, and convenience in answering of the user is improved.
Optionally, in this embodiment of the present disclosure, after obtaining the answer area in the test question area image, the method further includes: obtaining the test question type of the test question area image; the answer window for configuring the answer area comprises: and configuring an answer window of the answer area according to the type of the test question area image. According to the technical scheme, whether the test question area image comprises the area to be filled or not can be judged, whether the type of the test question is one of blank filling questions, selection questions and judgment questions or is a question and answer question; by taking the technical scheme as an example, if the test question type is a blank filling question, a selection question or a judgment question, only less text input contents of a user need to be acquired, such as the sequence number of a selection item and a filled word, so that a smaller answer window can be configured to adapt to the text input contents and ensure a better text display effect; if the test question type is a question and answer, more input contents of the user need to be acquired, so that a larger answer window can be configured, and the user can conveniently browse complete text input information when answering the question.
Optionally, in this embodiment of the present disclosure, the obtaining of the test question type of the test question region image includes: if the test question area image comprises at least one area to be filled and a plurality of option areas, determining the test question type of the test question area image as a selection question; if the test question area image comprises at least one area to be filled and does not comprise an option area, determining the type of the test question area image to be a blank filling question or a judgment question; and if the test question area image does not comprise the area to be filled, determining the type of the test question area image as a question and answer. For the test question types in the test question area image, the test question types can be further determined by whether the test question type comprises the area to be filled and the option area; taking fig. 1F as an example, the option information in the option area takes the form of "english letters + dots + spaces" as the start information, and the test question area image of each test question includes at least two pieces of option information, so if at least one to-be-filled area is obtained in one test question area image and two or more option areas are included at the same time, the test questions in the test question area image are determined as the test questions; if only the area to be filled is obtained and the option area is not obtained in one test question area image, determining the test questions in the test question area image as blank filling questions or judgment questions; if the area to be filled is not included in one test question area image, the type of the test question in the test question area image is determined to be a question and answer question, and the type of the test question in the test question area image is further determined according to the question and answer question type.
Optionally, in this embodiment of the present disclosure, configuring an answer window of the answer area according to the type of the test question in the test question area image includes: and if the type of the test question area image is determined to be a selected question, configuring an answer window of the answer area according to the option information in the multiple option areas. In different test question types, except the size of the answer window, the display information in the answer window is different; for the selected questions, the answer window can include option information of each option area, each option which can be selected by clicking is provided for the user, the user answers are obtained by obtaining option clicking instructions of the user, and convenience in answering of the user is improved.
Optionally, in this embodiment of the present disclosure, after determining that the test question type of the test question area image is a blank filling question or a judgment question, the method further includes: acquiring text semantics in the test question area image, and judging whether the test question type of the test question area image is a judgment question or not according to the text semantics; the configuring of the answer window of the answer area according to the test question type of the test question area image includes: and if the type of the test question area image is determined as a judgment question, configuring wrong option information in an answer window of the answer area. The method comprises the steps that semantics of texts in a test question area image are obtained, whether the test questions in the test question area image are blank filling questions or judgment questions can be determined, if the test questions are determined to be the judgment questions, a right option and a wrong option are included in an answer window, click-selectable information is provided for a user, the user answers are obtained by obtaining option click instructions of the user, and convenience in answering the questions of the user is improved; if the answer is determined to be a blank question, only a text input box needs to be included in the answer window, and the input text of the user in the text input box is obtained.
Optionally, in an embodiment of the present disclosure, the obtaining of the answer area in the test question area image includes: and acquiring an answer area in the test question area image through a second target detection model. As shown in fig. 1F, the second target detection model is configured to detect a region to be filled and an option region in the test question region image, and label each region to be filled and each option region in a rectangular labeling frame; if at least one region to be filled is detected, taking the obtained region to be filled as an answer region; and if the area to be filled is not detected, taking the whole test question area as an answer area.
Optionally, in this embodiment of the present disclosure, before acquiring at least one test question region image from the test question scanned image, the method further includes: and carrying out image binarization processing on the test question scanning image. The Image Binarization (Image Binarization) is to set the gray value of a pixel point on an Image to be 0 or 255, that is, if the original gray value of the pixel point is greater than or equal to a preset pixel threshold, the gray value of the pixel point is set to be 255; and if the original gray value of the pixel point is smaller than the preset pixel threshold, setting the gray value of the pixel point to be 0, so that the image presents an obvious black-white effect, the data volume in the image is reduced, and the text content in the image is highlighted.
S130, acquiring the at least one configured test question area image.
The configured test question area image is an image of an area where each test question is located, which is directly captured on the basis of a test question scanning image and can be used as an electronic test question to be displayed to a user, so that the test question content of a paper test question is really restored.
Optionally, in this embodiment of the present disclosure, after the obtaining of the configured at least one test question area image, the method further includes: and displaying the configured test question area images according to the test question types of the test question area images. When electronic test question display is performed, the electronic test question display method can classify the test question according to different test question types in each test question area image, collectively display the test questions under each type, and sequentially display the test question according to the test question types, for example, classify the test question area images corresponding to a plurality of obtained test questions according to blank filling questions, judgment questions, selection questions and question answering questions, and sequentially display the test question area images under each type, so as to ensure that a user intensively answers a certain question type.
According to the technical scheme, the configured test question area image is the image of the area where each test question is directly intercepted on the basis of the test question scanning image, the test question content of the paper test question is really restored, compared with text entry, the electronic test question is simple in obtaining mode and low in obtaining cost, the accuracy of the test question content is greatly improved, meanwhile, a corresponding answer window is configured for each test question, each paper test question is converted into the electronic test question with the answer function, and the operation requirements of users are met.
Example two
Fig. 2 is a block diagram of a structure of an apparatus for acquiring test questions provided in the second embodiment of the present disclosure, which specifically includes: a test question area image obtaining module 210, an answer window configuring module 220 and a test question obtaining module 230.
A test question area image obtaining module 210, configured to obtain a test question scanning image, and obtain at least one test question area image in the test question scanning image; wherein, the test question area image corresponds to the test questions one by one;
an answer window configuration module 220, configured to obtain an answer area in the test question area image, and configure an answer window of the answer area;
a test question acquiring module 230, configured to acquire the at least one configured test question region image.
According to the technical scheme, the configured test question area image is the image of the area where each test question is directly intercepted on the basis of the test question scanning image, the test question content of the paper test question is really restored, compared with text entry, the electronic test question is simple in obtaining mode and low in obtaining cost, the accuracy of the test question content is greatly improved, meanwhile, a corresponding answer window is configured for each test question, each paper test question is converted into the electronic test question with the answer function, and the operation requirements of users are met.
Optionally, on the basis of the above technical solution, the answer window configuration module 220 is specifically configured to, if the test question area image includes at least one area to be filled, use the at least one area to be filled as an answer area; and if the test question area image does not comprise the area to be filled, taking the test question area image as an answer area.
Optionally, on the basis of the above technical solution, the apparatus for acquiring test questions further includes:
and the test question type acquisition module is used for acquiring the test question types of the test question area images.
Optionally, on the basis of the above technical solution, the answer window configuration module 220 is specifically configured to configure the answer window of the answer area according to the test question type of the test question area image.
Optionally, on the basis of the technical scheme, the test question type obtaining module is specifically configured to determine the test question type of the test question area image as a selection question if the test question area image includes at least one area to be filled and a plurality of option areas; if the test question area image comprises at least one area to be filled and does not comprise an option area, determining the type of the test question area image to be a blank filling question or a judgment question; and if the test question area image does not comprise the area to be filled, determining the type of the test question area image as a question and answer.
Optionally, on the basis of the above technical solution, the answer window configuration module 220 is further specifically configured to configure the answer window of the answer area according to option information in the multiple option areas if it is determined that the type of the test question in the test question area image is a selected question.
Optionally, on the basis of the above technical solution, the apparatus for acquiring test questions further includes:
and the text semantic obtaining module is used for obtaining text semantics in the test question area image and judging whether the test question type of the test question area image is a judgment question or not according to the text semantics.
Optionally, on the basis of the above technical solution, the answer window configuration module 220 is further specifically configured to configure the right and wrong option information in the answer window of the answer area if it is determined that the type of the test question area image is a judgment question.
Optionally, on the basis of the above technical solution, the test question area image obtaining module 210 is specifically configured to obtain at least one test question area image in the test question scanned image through the first target detection model.
Optionally, on the basis of the above technical solution, the answer window configuration module 220 is further specifically configured to obtain an answer area in the test question area image through a second target detection model.
Optionally, on the basis of the above technical solution, the apparatus for acquiring test questions further includes:
and the binarization executing module is used for carrying out image binarization processing on the test question scanning image before at least one test question area image is obtained from the test question scanning image.
Optionally, on the basis of the above technical solution, the apparatus for acquiring test questions further includes:
and the test question display module is used for displaying the configured test question area images according to the test question types of the test question area images.
The device can execute the method for acquiring the test questions provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Technical details that are not elaborated in this embodiment may be referred to a method provided by any embodiment of the present disclosure.
EXAMPLE III
FIG. 3 illustrates a schematic diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with 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 necessary for the operation of the electronic apparatus 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 bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate with other devices, wireless or wired, to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: obtaining a test question scanning image, and obtaining at least one test question area image in the test question scanning image; wherein, the test question area image corresponds to the test questions one by one; acquiring an answer area in the test question area image, and configuring an answer window of the answer area; and acquiring the at least one configured test question area image.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module does not constitute a limitation on the module itself in some cases, for example, the answer window configuration module may be described as "a module for acquiring an answer area in the test question area image and configuring an answer window of the answer area". The functions described herein above may be performed, at least in part, 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 Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example 1 ] there is provided a test question acquisition method including:
obtaining a test question scanning image, and obtaining at least one test question area image in the test question scanning image; wherein, the test question area images correspond to the test questions one by one;
acquiring an answer area in the test question area image, and configuring an answer window of the answer area;
and acquiring the at least one configured test question area image.
In accordance with one or more embodiments of the present disclosure, [ example 2 ] there is provided the method of example 1, further comprising:
if the test question area image comprises at least one area to be filled, taking the at least one area to be filled as an answer area;
and if the test question area image does not comprise the area to be filled, taking the test question area image as an answer area.
According to one or more embodiments of the present disclosure, [ example 3 ] there is provided the method of example 1 or 2, further comprising:
obtaining the test question type of the test question area image;
and configuring an answer window of the answer area according to the type of the test question area image.
According to one or more embodiments of the present disclosure, [ example 4 ] there is provided the method of example 3, further comprising:
if the test question area image comprises at least one area to be filled and a plurality of option areas, determining the test question type of the test question area image as a selection question;
if the test question area image comprises at least one area to be filled and does not comprise an option area, determining the type of the test question area image to be a blank filling question or a judgment question;
and if the test question area image does not comprise the area to be filled, determining the type of the test question area image as a question and answer.
According to one or more embodiments of the present disclosure, [ example 5 ] there is provided the method of example 4, comprising:
and if the type of the test question area image is determined to be a selected question, configuring an answer window of the answer area according to the option information in the multiple option areas.
In accordance with one or more embodiments of the present disclosure, [ example 6 ] there is provided the method of example 4, further comprising:
acquiring text semantics in the test question area image, and judging whether the test question type of the test question area image is a judgment question or not according to the text semantics;
and if the type of the test question area image is determined as a judgment question, configuring wrong option information in an answer window of the answer area.
In accordance with one or more embodiments of the present disclosure, [ example 7 ] there is provided the method of example 1, further comprising:
obtaining at least one test question area image in the test question scanning image through a first target detection model;
and/or the step of obtaining the answer area in the test question area image comprises the following steps:
and acquiring an answer area in the test question area image through a second target detection model.
According to one or more embodiments of the present disclosure, [ example 8 ] there is provided the method of example 7, further comprising:
and carrying out image binarization processing on the test question scanning image.
According to one or more embodiments of the present disclosure, [ example 9 ] there is provided the method of example 3, further comprising:
and displaying the configured test question area images according to the test question types of the test question area images.
According to one or more embodiments of the present disclosure, [ example 10 ] there is provided an apparatus for acquiring a test question, including:
the system comprises a test question area image acquisition module, a test question scanning module and a test question analysis module, wherein the test question area image acquisition module is used for acquiring a test question scanning image and acquiring at least one test question area image from the test question scanning image; wherein, the test question area image corresponds to the test questions one by one;
the answer window configuration module is used for acquiring an answer area in the test question area image and configuring an answer window of the answer area;
and the test question acquisition module is used for acquiring the at least one configured test question area image.
According to one or more embodiments of the present disclosure, [ example 11 ] there is provided the apparatus of example 10, the answer window configuring module, specifically configured to, if the test question region image includes at least one region to be filled, take the at least one region to be filled as an answer region; and if the test question area image does not comprise the area to be filled, taking the test question area image as an answer area.
According to one or more embodiments of the present disclosure, [ example 12 ] there is provided the apparatus of example 10 or 11, the apparatus for acquiring a test question, further comprising:
and the test question type acquisition module is used for acquiring the test question types of the test question area images.
And the answer window configuration module is specifically used for configuring the answer window of the answer area according to the test question type of the test question area image.
According to one or more embodiments of the present disclosure, an apparatus of example 12, a test question type obtaining module, configured to determine a type of a test question of the test question area image as a choice question if the test question area image includes at least one area to be filled and a plurality of option areas; if the test question area image comprises at least one area to be filled and does not comprise an option area, determining the type of the test question area image to be a blank filling question or a judgment question; and if the test question area image does not comprise the area to be filled, determining the type of the test question area image as a question and answer.
According to one or more embodiments of the present disclosure, [ example 14 ] there is provided the apparatus of example 13, the answer window configuration module, and specifically, if it is determined that the type of the test question region image is a selected question, configure the answer window of the answer region according to option information in the multiple option regions.
According to one or more embodiments of the present disclosure, [ example 15 ] there is provided the apparatus of example 13, further comprising:
the text semantic obtaining module is used for obtaining text semantics in the test question area image and judging whether the test question type of the test question area image is a judgment question or not according to the text semantics;
and the answer window configuration module is specifically used for configuring the wrong option information into the answer window of the answer area if the type of the test question area image is determined as a judgment question.
According to one or more embodiments of the present disclosure, [ example 16 ] there is provided the apparatus of example 10, the test question area image acquisition module, in particular to acquire at least one test question area image in the test question scan image through the first target detection model.
And/or the answer window configuration module is specifically used for acquiring an answer area in the test question area image through a second target detection model.
According to one or more embodiments of the present disclosure, [ example 17 ] there is provided the apparatus of example 16, further comprising:
and the binarization executing module is used for carrying out image binarization processing on the test question scanning image before at least one test question area image is obtained from the test question scanning image.
According to one or more embodiments of the present disclosure, [ example 18 ] there is provided the apparatus of example 12, further comprising:
and the test question display module is used for displaying the configured test question area images according to the test question types of the test question area images.
According to one or more embodiments of the present disclosure, [ example 19 ] there is provided an electronic device comprising a memory, a processing apparatus, and a computer program stored on the memory and executable on the processing apparatus, the processing apparatus implementing the method of obtaining the test questions as in any of examples 1-9 when executing the program.
According to one or more embodiments of the present disclosure, [ example 20 ] there is provided a storage medium containing computer-executable instructions for performing the method of obtaining a test question as in any one of examples 1-9 when executed by a computer processor.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. A method for acquiring test questions is characterized by comprising the following steps:
obtaining a test question scanning image, and obtaining at least one test question area image in the test question scanning image; wherein, the test question area image corresponds to the test questions one by one;
acquiring an answer area in the test question area image, and configuring an answer window of the answer area;
and acquiring the at least one configured test question area image.
2. The method of claim 1, wherein the obtaining of the answer area in the test question area image comprises:
if the test question area image comprises at least one area to be filled, taking the at least one area to be filled as an answer area;
and if the test question area image does not comprise the area to be filled, taking the test question area image as an answer area.
3. The method according to claim 1 or 2, after obtaining the answer area in the test question area image, further comprising:
obtaining the test question type of the test question area image;
the answer window for configuring the answer area comprises:
and configuring an answer window of the answer area according to the type of the test question area image.
4. The method according to claim 3, wherein the obtaining of the test question type of the test question area image comprises:
if the test question area image comprises at least one area to be filled and a plurality of option areas, determining the test question type of the test question area image as a selection question;
if the test question area image comprises at least one area to be filled and does not comprise an option area, determining the type of the test question area image to be a blank filling question or a judgment question;
and if the test question area image does not comprise the area to be filled, determining the type of the test question area image as a question and answer.
5. The method of claim 4, wherein configuring the answer window of the answer area according to the type of the test question in the test question area image comprises:
and if the type of the test question area image is determined to be a selected question, configuring an answer window of the answer area according to the option information in the multiple option areas.
6. The method according to claim 4, wherein after determining that the test question type of the test question area image is a blank question or a judgment question, further comprising:
acquiring text semantics in the test question area image, and judging whether the test question type of the test question area image is a judgment question or not according to the text semantics;
the configuring of the answer window of the answer area according to the test question type of the test question area image includes:
and if the type of the test question area image is determined as a judgment question, configuring wrong option information in an answer window of the answer area.
7. The method of claim 1, wherein said obtaining at least one test question area image in said test question scan image comprises:
obtaining at least one test question area image in the test question scanning image through a first target detection model;
and/or the step of obtaining the answer area in the test question area image comprises the following steps:
and acquiring an answer area in the test question area image through a second target detection model.
8. The method of claim 7, further comprising, before acquiring at least one test question area image in the test question scan image:
and carrying out image binarization processing on the test question scanning image.
9. The method according to claim 3, further comprising, after acquiring the configured at least one test question area image:
and displaying the configured test question area images according to the test question types of the test question area images.
10. An apparatus for acquiring test questions, comprising:
the system comprises a test question area image acquisition module, a test question scanning module and a test question analysis module, wherein the test question area image acquisition module is used for acquiring a test question scanning image and acquiring at least one test question area image from the test question scanning image; wherein, the test question area image corresponds to the test questions one by one;
the answer window configuration module is used for acquiring an answer area in the test question area image and configuring an answer window of the answer area;
and the test question acquisition module is used for acquiring the at least one configured test question area image.
11. An electronic device comprising a memory, a processing means and a computer program stored on the memory and executable on the processing means, characterized in that the processing means, when executing the program, implements the method of obtaining test questions according to any one of claims 1 to 9.
12. A storage medium containing computer-executable instructions for performing the method of acquiring a test question according to any one of claims 1 to 9 when executed by a computer processor.
CN202110252093.7A 2021-03-08 2021-03-08 Test question acquisition method and device, electronic equipment and storage medium Pending CN115063815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110252093.7A CN115063815A (en) 2021-03-08 2021-03-08 Test question acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110252093.7A CN115063815A (en) 2021-03-08 2021-03-08 Test question acquisition method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115063815A true CN115063815A (en) 2022-09-16

Family

ID=83196971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110252093.7A Pending CN115063815A (en) 2021-03-08 2021-03-08 Test question acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115063815A (en)

Similar Documents

Publication Publication Date Title
CN109766879B (en) Character detection model generation method, character detection device, character detection equipment and medium
CN109753968B (en) Method, device, equipment and medium for generating character recognition model
CN111368562B (en) Method and device for translating characters in picture, electronic equipment and storage medium
CN110969012A (en) Text error correction method and device, storage medium and electronic equipment
CN110750624A (en) Information output method and device
CN113313064A (en) Character recognition method and device, readable medium and electronic equipment
CN112396032B (en) Writing detection method and device, storage medium and electronic equipment
CN111178056A (en) Deep learning based file generation method and device and electronic equipment
CN115270717A (en) Method, device, equipment and medium for detecting vertical position
CN112307246A (en) Learning group acquisition method, device, server and storage medium
CN110852042A (en) Character type conversion method and device
CN115063815A (en) Test question acquisition method and device, electronic equipment and storage medium
CN111459443A (en) Character point-reading method, device, equipment and readable medium
CN111462548A (en) Paragraph point reading method, device, equipment and readable medium
CN111898595A (en) Information display method and device, electronic equipment and storage medium
CN111160285B (en) Method, device, medium and electronic equipment for acquiring blackboard writing information
CN114612909A (en) Character recognition method and device, readable medium and electronic equipment
CN114328999A (en) Interaction method, device, medium and electronic equipment for presentation
CN112307858A (en) Image recognition and processing method, device, equipment and storage medium
CN113936271A (en) Text recognition method and device, readable medium and electronic equipment
CN112307245B (en) Method and apparatus for processing image
CN113900602B (en) Intelligent printing method and system for automatically eliminating target object filling information
CN112307158A (en) Information retrieval method, device, equipment and medium
CN112309385A (en) Voice recognition method, device, electronic equipment and medium
US11748969B2 (en) Image processing method and apparatus

Legal Events

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