Method for inputting answer information of subjective questions for online examination
By generating QR code pictures and processing answer photos, we solved the problem of troublesome and limited questions in online exams, and achieved convenient and fast subjective question entry and diversified question types in online exams, and comprehensive inspections are carried out. Quality of learning and teaching.
Patent Information
- Application Number
- CN202111170460.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-10-08
AI Technical Summary
The existing online examination system is troublesome in answering subjective questions, and it takes a long time to complete the examination of candidates' learning and teaching quality, especially when it is powerless to draw tables or enter formulas.
By generating QR code pictures, detecting and displaying upload pages, obtaining and processing answer photos, the entry of answer information, including cropping and rotation processing, and automatically inserting them into the editor, solving the problems of cumbersome operations and limited questions.
It realizes convenient and fast entry of subjective answers in online exams, expands the examination question types, and can comprehensively test the candidates' learning status and teaching quality.
Smart Images

Figure CN113902834B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a method for inputting answer information of subjective questions for online examinations. Background Art
[0002] Online exams are the main way to organize exams and tests in online education, and are also an increasingly used form of assessment organization in traditional teaching. They have the advantages of networking, digitization, and informatization, can save resources, reduce paper waste, and have a simple process for organizing exams, saving time and effort. In online exams, answering objective questions such as single-choice questions and multiple-choice questions is simple, while answering subjective questions requires candidates to enter the answers online, which wastes time and is cumbersome to operate. In addition, if the test questions require candidates to draw graphs, draw tables, or enter formulas, the online exam system will be powerless. Therefore, the current online exam system can only restrict the types of exam questions and exam content, and cannot comprehensively detect the learning situation and teaching quality of candidates. Summary of the invention
[0003] The embodiment of the present invention provides a method for inputting answer information of subjective questions for online examinations, so as to solve the problems that the operation of answering subjective questions in existing online examinations is cumbersome, the examination questions are limited, and the operation time is long.
[0004] In a first aspect, an embodiment of the present invention provides a method for entering answer information of a subjective question for an online examination, the method comprising the following steps:
[0005] Generate a QR code image;
[0006] Detecting a request to open the QR code image, and displaying a corresponding upload page;
[0007] Get the answer photo and upload it;
[0008] Detect and process the answer photo, obtain a new picture file and return it to the front end;
[0009] Receive and update the path information of the new image file.
[0010] Furthermore, the generating of the QR code image includes:
[0011] Create a tool button on the editor;
[0012] Click the tool button to generate a timestamp string with a unique identifier;
[0013] A two-dimensional code image is generated with the timestamp character string as a parameter, and the timestamp character string and the creation time of the two-dimensional code image are stored in a database.
[0014] Furthermore, after generating the QR code image, the process further includes:
[0015] After the two-dimensional code image is generated and displayed, it is periodically detected whether there is an image file with a timestamp string as the file name at the location specified by the server;
[0016] If the image file is detected, it will be automatically inserted into the editor cursor position of the current answer question;
[0017] If it is detected that the image file does not exist, the QR code image is replaced with a specific image, the specific image is used to indicate that the QR code is expired, and the timing detection operation is terminated.
[0018] Further, the detecting of the opening request of the QR code image and displaying the corresponding upload page includes:
[0019] When the upload page is opened, a timestamp parameter is extracted, and if the timestamp parameter is extracted, an abnormal prompt message is displayed;
[0020] When the upload page is opened, the database is searched with the extracted timestamp parameter, and if no relevant record is found, an abnormal prompt message is displayed;
[0021] If the stored related records are retrieved, the creation time in the related records is compared with the current time. If the current time is not within the specific time limit corresponding to the creation time, an abnormal prompt message is displayed;
[0022] If it is within a specific time limit, it indicates that the current visitor is a legally authorized user and the upload page will be displayed normally.
[0023] Furthermore, obtaining the answer photo and uploading it includes:
[0024] Get the answer photo uploaded by the mobile terminal;
[0025] Performing a first process on the answer photo;
[0026] Execute the upload command of the upload component to upload the answer photo.
[0027] Furthermore, the detecting and processing of the answer photo, obtaining a new file path and returning it to the front end includes:
[0028] The server receives the answer photo and performs a legality check on the answer photo;
[0029] After the legality check is passed, check whether the size of the answer photo exceeds the preset value. If it exceeds the preset value, perform the second processing.
[0030] The final processed answer photo is named with the corresponding timestamp parameter and stored in the designated location of the server.
[0031] Clear the data records generated in the database by this upload;
[0032] If it is detected that there is a picture file with a specified name at the specified location of the server, the answer photo is automatically inserted into the editor cursor position and the picture is further processed.
[0033] Furthermore, the picture may be further processed, including:
[0034] The uploaded answer photo is cropped to remove invalid areas of the answer photo and retain valid areas.
[0035] Furthermore, the cropping of the uploaded answer photo includes:
[0036] Locate the valid area of the answer photo by a rectangular frame;
[0037] Obtain the coordinates of the upper left corner of the valid area, the retained length and width, and obtain the length and width of the answer photo;
[0038] The acquired valid area and the parameters of the answer photo are transmitted to the server, requesting to execute the cropping process, and waiting for the feedback signal;
[0039] The server receives the parameters and calculates the display ratio of the front-end image to the answer photo;
[0040] Crop the effective area according to the display ratio, copy the effective area of the answer photo to a new picture file, and return the new file path to the front end;
[0041] The front end receives the path information returned by the server and refreshes the image in the editor to the cropped new image file.
[0042] Furthermore, the picture may be further processed, including:
[0043] The uploaded answer photo is rotated.
[0044] Furthermore, the uploaded answer photo is rotated, including:
[0045] use The tag displays the answer photo when detected in When the mouse is clicked, the server is requested to perform image rotation processing and wait for the feedback signal;
[0046] When the server receives the rotation request, it rotates the image 90 degrees clockwise, generates a new image file, and returns the new file path to the front end;
[0047] After the front end receives the path information returned by the server, it refreshes the image in the editor to the rotated new image file.
[0048] The embodiment of the present invention generates a QR code image; detects an opening request for the QR code image and displays a corresponding upload page; obtains an answer photo and uploads it; detects and processes the answer photo to obtain a new image file and returns it to the front end; receives and updates the path information of the new image file; and realizes convenient and fast entry of subjective question answer information in an online test, with a variety of test question types, so that the learning situation and teaching quality of the examinees can be comprehensively tested. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a method for entering answer information of subjective questions for online examinations provided by an embodiment of the present invention;
[0050] Figure 2 It is a structural diagram of a device for inputting answer information of subjective questions for online examinations provided by an embodiment of the present invention;
[0051] Figure 3 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the present invention clearer, the specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for the convenience of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all the contents. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0053] The method for entering answer information of subjective questions in an online examination provided by the present invention generates a two-dimensional code image; detects an opening request of the two-dimensional code image, and displays a corresponding upload page; obtains an answer photo and uploads it; detects and processes the answer photo, obtains a new image file and returns it to the front end; receives and updates the path information of the new image file; and realizes convenient and fast entry of answer information of subjective questions in an online examination, with various examination question types, so that the learning situation and teaching quality of examinees can be fully detected.
[0054] At present, online examinations are the main way to organize examinations and tests in online education, and are also an increasingly used form of assessment organization in traditional teaching. They have the advantages of networking, digitization, and informatization, can save resources, reduce paper waste, and have a simple process for organizing examinations, which can save time and effort. Among them, in online examinations, the answering operation of objective questions such as single-choice questions and multiple-choice questions is simple, while the answering of subjective questions requires candidates to input the answer content online, which wastes time and is troublesome to operate; in addition, if the test questions require candidates to draw pictures, draw tables, and enter formulas, the online examination system is powerless. Therefore, the current online examination system can only restrict the examination question type and examination content, and cannot comprehensively detect the learning situation and teaching quality of the candidates. Based on this, a method for entering subjective question answer information for online examinations according to an embodiment of the present invention is provided to avoid the existing problems of troublesome operation of answering subjective questions in online examinations, restricted examination questions, and long operation time.
[0055] The method for inputting subjective question answer information for online examinations provided in the embodiment can be performed by a device for inputting subjective question answer information for online examinations, which can be implemented by software and / or hardware and integrated in a device for inputting subjective question answer information for online examinations. The device for inputting subjective question answer information for online examinations can be a computer or other device.
[0056] Figure 1 A flowchart of a method for entering answer information of subjective questions in an online examination provided by an embodiment of the present invention. Figure 1 , the method comprises the following steps:
[0057] Step 110: Generate a QR code image.
[0058] Specifically, a QR code image is first generated through the editor, and then the QR code image can be scanned to enter the operation interface to input and edit the answer letter for the subjective question.
[0059] Optionally, create a tool button on the editor; click the tool button to generate a timestamp string with a unique identifier; generate a QR code image with the timestamp string as a parameter, and store the creation time of the timestamp string and the QR code image in the database.
[0060] Optionally, the editor is a web rich text editor.
[0061] Specifically, when answering questions, first open and display the web rich text editor, which is used to input, receive and edit answers, and click the location where the picture is to be inserted in the web rich text editor. The examinee then clicks the tool button created by the web rich text editor to generate a timestamp string with a unique identifier, and uses the timestamp string as a parameter to generate a link QR code picture, and at the same time stores the timestamp string and the creation time of the QR code picture in the database.
[0062] In some embodiments, after generating the QR code image, the process further includes:
[0063] After the QR code image is generated and displayed, a periodic check is performed on the server to determine whether there is an image file with a timestamp string as the file name at the location specified by the server; if the image file is detected to exist, it is automatically inserted into the editor cursor position of the current test question; if the image file is detected to not exist, the QR code image is replaced with a specific image, which is used to indicate that the QR code is expired, and the periodic detection operation is terminated.
[0064] Optionally, the specific photo can be a specific picture showing the text "QR code expired", or can be a photo in red or yellow or other colors to indicate that the QR code is expired, thereby terminating the timing detection operation.
[0065] Step 120: Detect a request to open the QR code image and display a corresponding upload page.
[0066] Specifically, when the upload page is opened, the timestamp parameter in the link address is extracted. If the timestamp parameter is extracted, an abnormal prompt message is displayed; when the upload page is opened, the database is searched with the extracted timestamp parameter. If no relevant record is retrieved, an abnormal prompt message is displayed; if the stored relevant record is retrieved, the creation time in the relevant record is compared with the current time. If the current time is not within the corresponding specific time limit of the creation time, an abnormal prompt message is displayed; if it is within the specific time limit, it indicates that the current visitor is a legally authorized user, and the upload page is displayed normally.
[0067] Step 130: Get the answer photo and upload it.
[0068] Specifically, the answer photo uploaded by the mobile terminal is obtained; the answer photo is first processed; and an upload command of the upload component is executed to upload the answer photo.
[0069] Optionally, the first processing is a compression processing.
[0070] Optionally, the examinee clicks the shooting button of the upload component on the upload page to call the camera function of the mobile terminal to take a photo. After the above photo is taken, the upload command of the upload component is executed. Before uploading to the server, the front-end image compression processing is also performed. Because the photos taken by mobile terminals usually have a large resolution, compressing the size before uploading can reduce the pressure on the server. Among them, the mobile terminal can be a mobile phone, tablet and other devices.
[0071] Optionally, the front-end compression process is: obtain the original shooting time of the original image, then use the image compression feature of the upload component to compress the photo according to the preset maximum length and width of the image, and send the obtained original shooting time and the compressed image to the server.
[0072] Step 140: Detect and process the answer photo to obtain a new picture file and return it to the front end.
[0073] Specifically, the server receives the answer photo and performs a legitimacy check on the answer photo; after the legitimacy check is passed, it is checked whether the size of the answer photo exceeds a preset value, and if so, a second process is performed; the finally processed answer photo is named with a corresponding timestamp parameter and stored in the location specified by the server; the data records generated in the database for this upload are cleared; if it is detected that there is a picture file with a specified name at the location specified by the server, that is, there is a picture file with a corresponding timestamp parameter, the answer photo is automatically inserted into the editor cursor position, and the picture is further processed.
[0074] Optionally, the second processing is compression processing. After the legality check is passed, check whether the image size exceeds the preset value. If it exceeds the preset value, compression processing is performed on the server. It can be understood that the preset value can be set according to the specific situation, and the embodiment of the present invention does not limit this.
[0075] Optionally, the legitimacy of the answer photo can be checked. First, it is checked whether the uploader is a legitimate user. Second, it is checked whether the time when the user scans the QR code is related to the current time. If it exceeds the set threshold, an abnormal prompt will be given to prevent excessive operation time. Third, it is checked whether the uploaded picture is a taken picture. If it is not a taken picture, an abnormal prompt will be given. Fourth, it is checked whether the relationship between the time when the photo was taken and the current time. If it exceeds the set threshold, an abnormal prompt will be given to prevent candidates from cheating by using pictures prepared in advance.
[0076] In some of the embodiments, the picture may be further processed, including: cropping the uploaded answer photo, removing invalid areas of the answer photo, and retaining valid areas.
[0077] Optionally, the uploaded answer photo is cropped, including: locating the valid area of the answer photo through a rectangular frame; obtaining the coordinates of the upper left corner of the valid area, the retained length and width, and the length and width of the answer photo; passing the obtained valid area and parameters of the answer photo to the server, requesting to execute the cropping process, and waiting for a feedback signal; the server receives the parameters, calculates the display ratio of the front-end image and the answer photo; crops the valid area according to the display ratio, copies the valid area of the answer photo back to a new image file, and returns the new file path to the front end; the front end receives the path information returned by the server, and refreshes the image in the editor to the cropped new image file.
[0078] In some of the embodiments, the picture may be further processed, including: rotating the uploaded answer photo.
[0079] Optionally, the uploaded answer photo is rotated, including: using The tag displays the answer photo when detected in When the mouse is clicked, the server is requested to execute the image rotation processing and wait for the feedback signal; when the server receives the rotation processing request, the image content is rotated clockwise. Optionally, the rotation angle can be determined according to the number of clicks. For example, each time a rotation request is detected, it is rotated 90 degrees. According to the number of rotation requests detected, it can also be rotated 180 degrees, 270 degrees and 360 degrees, etc.; after the rotation processing is completed, a new image file is generated, and the new file path is returned to the front end; after the front end receives the path information returned by the server, it refreshes the image in the editor to the rotated new image file.
[0080] Step 150: Receive and update the path information of the new image file.
[0081] Specifically, after receiving the path information of the new image file returned by the server, the front end refreshes the image in the web rich text editor to the rotated new image file.
[0082] In the embodiment, when answering subjective questions, the answers are written on the answer sheet using offline answering methods, whether it is text writing, making charts, writing formulas and derivation processes, etc.; candidates only need to use their mobile phones to scan the QR code, and upload the answers on the answer sheet to the rich text editor for answering by taking photos with their mobile phones. With the help of the user's own mobile phone devices, the problem of no camera equipment in the computer room and the high cost of installing camera equipment is solved; the computer generates the test question QR code, the mobile phone device scans the code, takes photos, and uploads it, and the computer automatically receives the picture and inserts it into the editor. The two devices are seamlessly connected without the need for other devices and third-party software.
[0083] Based on the above embodiments, Figure 2 This is a schematic diagram of the structure of a device for inputting answer information of subjective questions in an online examination provided by an embodiment of the present invention. Figure 2 The device for entering answer information of subjective questions for online examinations provided in this embodiment specifically includes: a QR code generation module 101, an upload page display module 102, a photo acquisition module 103, a photo processing module 104 and a file update module 105.
[0084] Among them, the QR code generation module 101 is used to generate a QR code image; the upload page display module 102 is used to detect the opening request of the QR code image and display the corresponding upload page; the photo acquisition module 103 is used to obtain the answer photo and upload it; the photo processing module 104 is used to detect and process the answer photo, obtain a new image file and return it to the front end; the file update module 105 is used to receive the path information of the new image file and update it.
[0085] In the above, by generating a QR code image; detecting an opening request for the QR code image, and displaying a corresponding upload page; obtaining an answer photo and uploading it; detecting and processing the answer photo, obtaining a new image file and returning it to the front end; receiving and updating the path information of the new image file; and realizing convenient and fast entry of subjective question answer information in online examinations, the examination question types are diverse, so that the learning situation and teaching quality of the examinees can be comprehensively tested.
[0086] The device for inputting answer information of subjective questions for online examinations provided in an embodiment of the present invention can be used to execute the method for inputting answer information of subjective questions for online examinations provided in the above embodiment, and has corresponding functions and beneficial effects.
[0087] The embodiment of the present invention further provides a computer device, which can integrate the device for inputting answer information of subjective questions for online examinations provided by the embodiment of the present invention. Figure 3 Schematic diagram of a computer device provided by an embodiment of the present invention. Figure 3 The computer device includes: an input device 43, an output device 44, a memory 42 and one or more processors 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the method for entering subjective question answer information for online examinations as provided in the above embodiment. The input device 43, the output device 44, the memory 42 and the processor 41 can be connected by a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0088] The processor 41 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 41, that is, realizes the above-mentioned method for entering answer information of subjective questions for online examinations.
[0089] The computer device provided above can be used to execute the method for entering answer information of subjective questions for online examinations provided in the above embodiment, and has corresponding functions and beneficial effects.
[0090] An embodiment of the present invention also provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a method for entering answer information of subjective questions for online examinations. The method for entering answer information of subjective questions for online examinations includes: generating a QR code image; detecting an opening request for the QR code image, and displaying a corresponding upload page; obtaining an answer photo and uploading it; detecting and processing the answer photo, obtaining a new image file and returning it to the front end; receiving and updating the path information of the new image file.
[0091] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape devices; computer device memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer device in which the program is executed, or may be located in a different second computer device, which is connected to the first computer device via a network (such as the Internet). The second computer device can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer devices connected via a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0092] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present invention is not limited to the method for entering answer information for subjective questions for online examinations as described above, and can also execute related operations in the method for entering answer information for subjective questions for online examinations provided in any embodiment of the present invention.
[0093] The subjective question answer information entry device, storage medium and computer equipment provided in the above embodiments for online examinations can execute the subjective question answer information entry method for online examinations provided in any embodiment of the present invention. For technical details not described in detail in the above embodiments, please refer to the subjective question answer information entry method for online examinations provided in any embodiment of the present invention.
[0094] The above are only preferred embodiments of the present invention and the technical principles used. The present invention is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the protection scope of the present invention. Therefore, although the present invention is described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the claims.
Claims
1. A method for inputting answer information of subjective questions for online examinations, It is characterized in that The method comprises the following steps: Generate a QR code image; Detecting a request to open the QR code image, and displaying a corresponding upload page; Get the answer photo and upload it; Detect and process the answer photo, obtain a new picture file and return it to the front end; Receive and update the path information of the new image file; The generating of the QR code image comprises: Create a tool button on the editor; Click the tool button to generate a timestamp string with a unique identifier; Generate a QR code image with the timestamp string as a parameter, and store the timestamp string and the creation time of the QR code image in a database; After generating the QR code image, the method further includes: After the two-dimensional code image is generated and displayed, it is periodically detected whether there is an image file with a timestamp string as the file name at the location specified by the server; If the image file is detected, it will be automatically inserted into the editor cursor position of the current answer question; If it is detected that the image file does not exist, the QR code image is replaced with a specific image, the specific image is used to indicate that the QR code is expired, and the timing detection operation is terminated; The detecting of the opening request of the QR code image and displaying the corresponding upload page includes: When the upload page is opened, a timestamp parameter is extracted, and if the timestamp parameter is extracted, an abnormal prompt message is displayed; When the upload page is opened, the database is searched with the extracted timestamp parameter, and if no relevant record is found, an abnormal prompt message is displayed; If the stored related records are retrieved, the creation time in the related records is compared with the current time. If the current time is not within the specific time limit corresponding to the creation time, an abnormal prompt message is displayed; If it is within a specific time limit, it indicates that the current visitor is a legally authorized user and the upload page will be displayed normally; The detecting and processing of the answer photo, obtaining a new file path and returning it to the front end includes: The server receives the answer photo and performs a legality check on the answer photo; After the legality check is passed, check whether the size of the answer photo exceeds the preset value, and if it exceeds the preset value, perform the second processing; The finally processed answer photo is named with the corresponding timestamp parameter and stored in the designated location of the server; Clear the data records generated in the database by this upload; If it is detected that there is a picture file with a specified name at the specified location of the server, the answer photo is automatically inserted into the editor cursor position and the picture is further processed.
2. The method for inputting answer information of subjective questions for online examination according to claim 1, It is characterized in that The obtaining and uploading of the answer photo includes: Get the answer photo uploaded by the mobile terminal; Performing a first process on the answer photo; Execute the upload command of the upload component to upload the answer photo.
3. The method for inputting answer information of subjective questions for online examination according to claim 2, It is characterized in that The further processing of the picture includes: The uploaded answer photo is cropped to remove invalid areas of the answer photo and retain valid areas.
4. The method for inputting answer information of subjective questions for online examination according to claim 3, It is characterized in that The step of cropping the uploaded answer photo includes: Locate the valid area of the answer photo by a rectangular frame; Obtain the coordinates of the upper left corner of the valid area, the retained length and width, and obtain the length and width of the answer photo; The acquired valid area and the parameters of the answer photo are transmitted to the server, requesting to execute the cropping process, and waiting for the feedback signal; The server receives the parameters and calculates the display ratio of the front-end image to the answer photo; Crop the effective area according to the display ratio, copy the effective area of the answer photo to a new picture file, and return the new file path to the front end; The front end receives the path information returned by the server and refreshes the image in the editor to the cropped new image file.
5. The method for inputting answer information of subjective questions for online examination according to claim 4, It is characterized in that The further processing of the picture also includes: The uploaded answer photo is rotated.
6. The method for inputting answer information of subjective questions for online examination according to claim 5, It is characterized in that The step of rotating the uploaded answer photo includes: use The tag displays the answer photo when detected in When the mouse is clicked, the server is requested to perform image rotation processing and wait for the feedback signal; When the server receives the rotation request, it rotates the image 90 degrees clockwise, generates a new image file, and returns the new file path to the front end; After the front end receives the path information returned by the server, it refreshes the image in the editor to the rotated new image file.
