Test paper creation method, device, computer equipment and storage medium
By introducing identity verification and test editing interfaces into the test paper creation system, users are allowed to customize the test type and content, which solves the problem of insufficient intelligence and flexibility in the creation of test papers in the existing technology, and improves user experience and system efficiency.
Patent Information
- Application Number
- CN202111187615.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2041-10-12
AI Technical Summary
The existing methods of creating test papers are less intelligent and have poor flexibility, making it difficult to draw questions based on your actual needs.
By receiving the user's test paper creation request, after authentication, the test question editing interface is displayed, allowing the user to select the test question type and enter the editing operation in the test question content editing area to generate the target test questions and test papers.
It improves the intelligence and flexibility of test paper creation, and users can select test types and edit test content according to actual needs, improving users' user experience.
Smart Images

Figure CN113918609B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a test paper creation method, apparatus, computer equipment and storage medium. Background Art
[0002] With the rapid development of Internet technology and the increasing demand of society for online teaching scenarios, traditional examination scenarios have gradually been moved to the cloud, and online examinations have become a mainstream examination method, and online examinations mainly rely on online examination systems. There are many examination software on the market, such as various computer-based examinations (such as driving license examinations, job grade examinations, etc.). The examination process of online examinations includes: the test setter creates and corrects the test paper through the examination software, and the test taker can receive the test paper and complete the examination through the examination software. However, through investigation, it is found that in the process of creating the test paper through the examination software, the test setter usually needs to set it according to the question type (such as multiple-choice questions, fill-in-the-blank questions, etc.) and format set by the examination. Due to the small number of question types, the fixed format of the question type, and the inability to provide the test setter with further question editing operations, it is difficult for the test setter to set questions according to their actual needs. Therefore, the existing method of creating test papers has the problems of low intelligence and poor flexibility. Summary of the invention
[0003] The main purpose of this application is to provide a test paper creation method, device, computer equipment and storage medium, aiming to solve the technical problems of low intelligence and poor flexibility in the existing test paper creation methods.
[0004] This application proposes a test paper creation method, the method comprising the steps of:
[0005] Determine whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries user information of the user;
[0006] If the test paper creation request is received, the user information and the palm print image of the user are obtained, the identity verification of the user is performed based on a preset list of legal users and the legal palm print image, and it is determined whether the verification is passed;
[0007] If the verification is passed, a preset question editing interface is displayed; wherein the question editing interface includes a question type menu, and the question type menu is provided with a plurality of question types;
[0008] Determining whether a selection operation of the user on a target test question type in the test question editing interface is received;
[0009] If the selection operation is received, a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type are displayed on the test question editing interface; wherein the test paper display area includes a test question template corresponding to the target test question type;
[0010] receiving an editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation;
[0011] Based on the target test questions and the preset test paper template, a corresponding target test paper is generated.
[0012] Optionally, the step of obtaining the user information and the palm print image of the user, performing identity verification on the user based on a preset list of legal users and legal palm print images, and determining whether the verification is successful comprises:
[0013] Acquire the user information and the pre-stored legal user list, and determine whether the legal user list stores designated user information that is the same as the user information;
[0014] If the designated user information is stored, obtaining a palm print image of the user, screening out a first target palm print image corresponding to the designated finger information from the palm print image, and dividing the palm print area contained in the first target palm print image into a plurality of first palm print sub-blocks;
[0015] Filtering out a second target palmprint image corresponding to the designated finger information from all the pre-stored legal palmprint images corresponding to the designated user information;
[0016] Based on the sub-block division method of the first target palmprint image, dividing the palmprint area contained in the second target palmprint image into a corresponding plurality of second palmprint sub-blocks;
[0017] Acquire a plurality of preset similarity algorithms, and select a target similarity algorithm that meets preset conditions from all the similarity algorithms;
[0018] Based on the target similarity algorithm, a one-to-one comparison process is performed on all first palmprint sub-blocks contained in the first target palmprint image and all second palmprint sub-blocks contained in the second target palmprint image to obtain a plurality of similarities after the comparison process;
[0019] Obtaining a preset similarity threshold, and determining whether all the obtained similarities are greater than the similarity threshold;
[0020] If both are greater than the similarity threshold, the verification is determined to be successful; otherwise, the verification is determined to be unsuccessful.
[0021] Optionally, the step of selecting a target similarity algorithm that meets preset conditions from all the similarity algorithms includes:
[0022] Obtaining a preset test data set; wherein the test data set includes two palmprint test images to be compared;
[0023] Generating processing time corresponding to each of the similarity algorithms based on the test data set;
[0024] Filter out a first similarity algorithm whose processing time is less than a preset processing time threshold from all the similarity algorithms;
[0025] Based on the release year information of each of the first similarity algorithms, obtaining influence values corresponding to each of the first similarity algorithms;
[0026] Filter out the target influence value with the largest value from all the influence values;
[0027] Acquire a second similarity algorithm corresponding to the target influence value from all the first similarity algorithms;
[0028] The second similarity algorithm is used as the target similarity algorithm.
[0029] Optionally, the step of receiving an editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation includes:
[0030] Determine whether a touch operation on a designated editing block in the test question content editing area triggered by the user is collected; wherein the designated editing block is any one of all editing blocks included in the test question content editing area;
[0031] If so, controlling the designated editing block to enter an editable state;
[0032] receiving first information corresponding to the target test question type input by the user in each editing block included in the test question content editing area;
[0033] Filtering out second information corresponding to the test question template from the first information;
[0034] Performing information editing processing on the test question template based on the second information to obtain a processed test question template;
[0035] The processed test question template is used as the target test question.
[0036] Optionally, after the step of generating a corresponding target test paper based on the target test question and a preset test paper template, the following steps are included:
[0037] Respectively obtain the remaining memory of multiple storage blocks contained in a preset blockchain, and obtain a preset remaining memory threshold;
[0038] Filter out a first storage block whose remaining memory is greater than the remaining memory threshold from all the storage blocks;
[0039] Obtaining the remaining memory, the number of data storage times, the number of data storage failures, and the memory cleaning coefficient of each of the first storage blocks, and calculating the data storage score of each of the first storage blocks based on a preset formula;
[0040] Obtaining the target data storage score with the largest value from all the data storage scores;
[0041] Acquire a second storage block corresponding to the target data storage score from the first storage block;
[0042] The target test paper is stored in the second storage block.
[0043] Optionally, before the step of obtaining the remaining memory, the number of data storage times, the number of data storage failures, and the memory cleaning coefficient of each of the first storage blocks and calculating the data storage score of each of the first storage blocks based on a preset formula, the step includes:
[0044] Obtaining the number of memory cleanups of a specified storage block within a preset time period; wherein the specified storage block is any one of all the first storage blocks;
[0045] Obtaining each clear memory value of the designated storage block within the preset time period, and filtering out a designated clear memory value whose value is greater than a preset clear memory threshold from all the clear memory values;
[0046] Get the number of the specified memory cleanup values;
[0047] Obtaining a first weight corresponding to the number of memory cleanup times, and obtaining a second weight corresponding to the number of the specified memory cleanup values;
[0048] A weighted sum is performed on the memory cleaning times and the number of the designated memory cleaning values based on the first weight and the second weight to obtain a memory cleaning coefficient of the designated storage block.
[0049] Optionally, the test question editing interface further includes a link generation button and a sharing button. After the step of generating a corresponding target test paper based on the target test question and a preset test paper template, the following steps are included:
[0050] After generating the target test paper, determining whether a first operation corresponding to the link generation button triggered by the user is received;
[0051] If the first operation is received, generating a test paper link corresponding to the target test paper;
[0052] Determining whether a second operation corresponding to the share button triggered by the user is received;
[0053] If the second operation is received, displaying a preset sharing method selection list and a sharing object selection list;
[0054] receiving a target sharing method selected by a user from the sharing method selection list, and receiving a target sharing object selected by the user from the sharing object selection list;
[0055] The target test paper is sent to a target terminal corresponding to the target sharing object based on the target sharing method.
[0056] The present application also provides a test paper creation device, comprising:
[0057] A first judgment module is used to judge whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries the user information of the user;
[0058] A second judgment module is used for, if receiving the test paper creation request, obtaining the user information and the palm print image of the user, performing identity verification on the user based on a preset list of legal users and legal palm print images, and judging whether the verification is passed;
[0059] A first display module is used to display a preset test question editing interface if the verification is passed; wherein the test question editing interface includes a test question type menu, and the test question type menu is provided with a plurality of test question types;
[0060] A third judgment module is used to judge whether a selection operation of the user on the target test question type in the test question editing interface is received;
[0061] A second display module is used for displaying a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type on the test question editing interface if the selection operation is received; wherein the test paper display area includes a test question template corresponding to the target test question type;
[0062] A first generating module, configured to receive an editing operation input by the user in the question content editing area, and generate a target question corresponding to the editing operation in the test paper display area based on the editing operation;
[0063] The second generating module is used to generate a corresponding target test paper based on the target test questions and a preset test paper template.
[0064] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0065] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0066] The test paper creation method, device, computer equipment and storage medium provided in this application have the following beneficial effects:
[0067] The test paper creation method, device, computer equipment and storage medium provided in the present application, after receiving the test paper creation request triggered by the user and determining that the user has passed the identity authentication, will first display a preset test question editing interface, and after receiving the user's selection operation for the target test question type in the test question editing interface, display the test paper display area corresponding to the target test question type in the test question editing interface, and display the test question content editing area corresponding to the target test question type, then receive the editing operation input by the user in the test question content editing area, and based on the editing operation, generate the target test question corresponding to the editing operation in the test paper display area, and finally generate the corresponding target test paper based on the target test question and the preset test paper template. Since there is no need to limit the filling format of the test questions and the test question content in the test paper creation process, the user can select the test question type according to his actual needs, and enter the corresponding editing operation in the test question content editing area in the test question editing interface to complete the creation of the test paper, which effectively improves the intelligence and flexibility of the test paper creation and improves the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a flowchart of a test paper creation method according to an embodiment of the present application;
[0069] Figure 2 It is a structural schematic diagram of a test paper creation device according to an embodiment of the present application;
[0070] Figure 3 It is a schematic diagram of the structure of a computer device according to an embodiment of the present application.
[0071] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0072] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0073] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0074] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0075] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0076] Reference Figure 1 , a test paper creation method according to an embodiment of the present application includes:
[0077] S10: Determine whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries the user information of the user;
[0078] S20: if the test paper creation request is received, the user information and the palm print image of the user are obtained, identity verification is performed on the user based on a preset list of legal users and legal palm print images, and it is determined whether the verification is successful;
[0079] S30: If the verification is passed, display a preset test question editing interface; wherein the test question editing interface includes a test question type menu, and the test question type menu is provided with a plurality of test question types;
[0080] S40: determining whether a selection operation of the user on a target test question type in the test question editing interface is received;
[0081] S50: If the selection operation is received, displaying a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type on the test question editing interface; wherein the test paper display area includes a test question template corresponding to the target test question type;
[0082] S60: receiving an editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation;
[0083] S70: Generate a corresponding target test paper based on the target test questions and a preset test paper template.
[0084] As described in the above steps S10 to S70, the execution subject of the embodiment of the method is a test paper creation device. In practical applications, the above test paper creation device can be implemented by a virtual device, such as a software code, or by a physical device written or integrated with relevant execution codes, and can interact with the user through a keyboard, mouse, remote control, touch pad or voice control device. The test paper creation device in this embodiment can effectively improve the intelligence and flexibility of test paper creation and improve the user experience. Specifically, first determine whether a test paper creation request triggered by a user is received. Among them, the test paper creation request carries the user information of the user. In addition, the test paper editing request refers to a request for the user to edit the test questions to generate the corresponding target test paper. The user information may refer to the user's name information or the user's id information.
[0085] If the test paper creation request is received, the user information and the palm print image of the user are obtained, and the user is authenticated based on the preset legal user list and the legal palm print image, and it is determined whether the authentication is passed. Among them, the user's identity authentication processing can be achieved by adopting multiple identity authentication methods such as list comparison and palm print image comparison. The specific implementation process of authenticating the user based on the preset legal user list and legal palm print image will be further described in the subsequent specific embodiments of this application, and will not be repeated here. If the authentication is passed, the preset test question editing interface is displayed. Among them, the test question editing interface includes a test question type menu, and the test question type menu is set with multiple test question types. The test question types may include single-choice questions, multiple-choice questions, judgment questions, subjective questions, fill-in-the-blank questions, picture questions, connection questions, attachment questions, and case analysis questions. The case analysis question consists of a question stem and multiple small questions, and the small questions include other test questions except the case analysis question. Then it is determined whether the user's selection operation for the target test question type in the test question editing interface is received. Among them, the selection operation can be an operation such as clicking or pressing the target test question type.
[0086] If the selection operation is received, the test paper display area corresponding to the target test question type is displayed in the test question editing interface, and the test question content editing area corresponding to the target test question type is displayed. Among them, the test paper display area includes a test question template corresponding to the target test question type. In addition, the test question content editing area includes any one or more of the following editing blocks: question stem editing block, auxiliary information editing block, option editing block, score editing block, test question difficulty editing block, analysis editing block, answer prompt editing block, reference answer editing block, keyword editing block, key sentence editing block, fill-in-the-blank answer editing block, connection option editing block, connection relationship setting editing block, attachment test question editing block; the auxiliary information includes pictures or audio or video. Specifically, the question stem editing block is used to input the test question prompt copy. The auxiliary information editing block supports pictures, audio and video, which are used to supplement the question stem information and provide more test question information. The option editing block allows users to select options, and the order of options can be adjusted by dragging, the correct options can be set, and the number of options can be freely selected. The score editing block is used to input the score of the test question. The test difficulty editing block is used to identify the difficulty level of the test question, which can be used to control the difficulty level of the entire test paper when randomly setting questions. The analysis editing block can be used to display the wrong question book, answer book, and test results, and to display the analysis of the questions. The answer hint editing block is used to: For some tests, you can set additional answer hints. When the mouse hovers over the prompt icon next to the question stem, the hint can be displayed to assist users in answering questions. The reference answer editing block is used to enter the standard answer for subjective questions. The keyword editing block: The keywords that need to be included in the answer are used by the examiner or computer to determine the validity and correctness of the answer, and the score is determined according to the keyword matching degree. The key sentence editing block: Split the answer into multiple key sentences according to punctuation and display them in the form of options. The test administrator can specify specific key sentences as scoring sentences for subjective questions. The fill-in-the-blank answer editing block is used to edit the standard answer for the blank, and it will also limit the number of words in the answer to prevent the blank of the fill-in-the-blank question from occupying too long a position in the test paper. The connection option editing block is used to add a specific number of connection options (for example, 8), with the left side for the left connection options and the right side for the right connection options, for users to answer questions online. The connection relationship setting editing block is used to set the relationship between the left side and the right side options, and one option on the left side can correspond to multiple options on the right side. The attachment question editing block: upload attachments as supplementary information for the test questions, and support uploading files of any format. The user-side answers can be downloaded to the local computer for browsing.
[0087] Then, the editing operation input by the user in the question content editing area is received, and the target question corresponding to the editing operation is generated in the test paper display area based on the editing operation. Among them, the content setting of the question template can be completed based on the information corresponding to the target question type input by the user in the question content editing area, so as to realize the intelligent and rapid generation of the corresponding target question. Finally, the corresponding target test paper is generated based on the target question and the preset test paper template. Among them, a question number can be generated for the target question, and the target question is stored in the preset test paper template based on the question number, so as to obtain the target test paper. Specifically, the question number of the corresponding question can be automatically generated based on the editing order of each question by the user. In addition, the test paper template can be a document template with a test paper name and to be filled with test question information. In addition, the process of storing the target question in the preset test paper template based on the question number may include: placing all the questions in the test paper template in the order of the question number of the question from small to large, so as to ensure the standardization of the generated target test paper.
[0088] After receiving the test paper creation request triggered by the user and determining that the user has passed the identity authentication, this embodiment will first display a preset test question editing interface, and after receiving the user's selection operation for the target test question type in the test question editing interface, the test paper display area corresponding to the target test question type and the test question content editing area corresponding to the target test question type will be displayed in the test question editing interface, and then the editing operation input by the user in the test question content editing area will be received, and based on the editing operation, the target test question corresponding to the editing operation will be generated in the test paper display area, and finally the corresponding target test paper will be generated based on the target test question and the preset test paper template. Since there is no need to limit the filling format of the test questions and the test question content in the test paper creation process, the user can select the test question type according to his actual needs, and enter the corresponding editing operation in the test question content editing area in the test question editing interface to complete the test paper creation, which effectively improves the intelligence and flexibility of the test paper creation and improves the user experience.
[0089] Furthermore, in one embodiment of the present application, the above step S20 includes:
[0090] S200: Acquire the user information and the pre-stored legal user list, and determine whether the legal user list stores designated user information that is the same as the user information;
[0091] S201: if the designated user information is stored, obtaining a palm print image of the user, screening out a first target palm print image corresponding to designated finger information from the palm print image, and dividing a palm print area contained in the first target palm print image into a plurality of first palm print sub-blocks;
[0092] S202: Filtering out a second target palmprint image corresponding to the designated finger information from all the pre-stored legal palmprint images corresponding to the designated user information;
[0093] S203: dividing the palmprint area contained in the second target palmprint image into a plurality of corresponding second palmprint sub-blocks based on the sub-block division method of the first target palmprint image;
[0094] S204: obtaining a plurality of preset similarity algorithms, and selecting a target similarity algorithm that meets preset conditions from all the similarity algorithms;
[0095] S205: Based on the target similarity algorithm, a one-to-one comparison process is performed on all first palmprint sub-blocks included in the first target palmprint image and all second palmprint sub-blocks included in the second target palmprint image to obtain a plurality of similarities after the comparison process;
[0096] S206: Obtain a preset similarity threshold, and determine whether all the obtained similarities are greater than the similarity threshold;
[0097] S207: If both are greater than the similarity threshold, the verification is determined to be successful; otherwise, the verification is determined to be unsuccessful.
[0098] As described in the above steps S200 to S207, the steps of obtaining the user information and the palm print image of the user, authenticating the user based on the preset legal user list and the legal palm print image, and judging whether the authentication is passed may specifically include: first obtaining the user information and the pre-stored legal user list, and judging whether the legal user list stores the designated user information that is the same as the user information. Wherein, the user information may include name information, and the legal user list is a list of name information of users with legal identities collected in advance. If the designated user information is stored, the palm print image of the user is obtained, and the first target palm print image corresponding to the designated finger information is filtered out from the palm print image, and the palm print area contained in the first target palm print image is divided into a plurality of first palm print sub-blocks. Wherein, the designated finger information refers to the direction information of the finger corresponding to the palm print image, and the designated finger information may include the left hand or the right hand. In addition, there is no limitation on the block division method used for the palm print area in the first target palm print image, which can be determined according to actual needs, and it is only necessary to ensure that the division method used for the palm print area in the first target palm print image is the same as the division method of the palm print area in the second target palm print image. Then, the second target palm print image corresponding to the specified finger information is screened out from all the pre-stored legal palm print images corresponding to the specified user information. Among them, a database storing legal palm print images of each legal user is pre-created, and the second target palm print image corresponding to the specified finger information can be found from the database. After obtaining the second target palm print image, based on the sub-block division method of the first target palm print image, the palm print area contained in the second target palm print image is divided into corresponding multiple second palm print sub-blocks. Then, multiple preset similarity algorithms are obtained, and the target similarity algorithm that meets the preset conditions is screened out from all the similarity algorithms. Wherein, the similarity algorithm refers to an image similarity algorithm. The similarity algorithm may adopt an existing algorithm for calculating image similarity. For example, the similarity algorithm may include a Hamming distance algorithm, a Euclidean distance algorithm, a cosine distance algorithm, a mean hash algorithm, and the like. In addition, the preset condition may be a condition that the processing time of the similarity algorithm is less than a preset processing time threshold and the influence value is relatively high. In addition, the specific implementation process of selecting the target similarity algorithm that meets the preset conditions from all the similarity algorithms will be further described in the subsequent specific embodiments of the present application, which will not be repeated here. Subsequently, based on the target similarity algorithm, all the first palm print sub-blocks contained in the first target palm print image and all the second palm print sub-blocks contained in the second target palm print image are respectively compared one by one to obtain multiple similarities after the comparison processing. Wherein, the comparison processing refers to the processing of similarity calculation using the target similarity algorithm, which will not be elaborated on in detail.Finally, the preset similarity threshold is obtained, and it is determined whether all the similarities obtained are greater than the similarity threshold. Among them, the value of the similarity threshold is not specifically limited, and can be set according to actual needs, for example, it can be set to 0.95. If they are all greater than the similarity threshold, the verification is determined to be passed, otherwise the verification is determined to be failed. This embodiment implements the user's identity authentication processing by adopting multiple identity authentication methods such as name list comparison and palm print image comparison, which effectively improves the accuracy and reliability of identity authentication, avoids the occurrence of adverse consequences caused by responding to the test paper creation request triggered by an illegal user, and effectively ensures the processing security of the data operation process of the test paper editing. And only when the user passes the identity authentication, will the subsequent further response to the received test paper creation request be made, which effectively ensures the security of the request processing and improves the processing intelligence of the test paper creation process.
[0099] Furthermore, in an embodiment of the present application, the above step S204 includes:
[0100] S2040: Acquire a preset test data set; wherein the test data set includes two palmprint test images to be compared;
[0101] S2041: generating processing time corresponding to each of the similarity algorithms based on the test data set;
[0102] S2042: Filter out a first similarity algorithm whose processing time is less than a preset processing time threshold from all the similarity algorithms;
[0103] S2043: Based on the release year information of each of the first similarity algorithms, obtain influence values corresponding to each of the first similarity algorithms;
[0104] S2044: Filter out the target influence value with the largest value from all the influence values;
[0105] S2045: Acquire a second similarity algorithm corresponding to the target influence value from all the first similarity algorithms;
[0106] S2046: Use the second similarity algorithm as the target similarity algorithm.
[0107] As described in steps S2040 to S2046 above, the step of selecting a target similarity algorithm that meets the preset conditions from all the similarity algorithms may specifically include: first obtaining a preset test data set. The test data set includes two palm print test images to be compared. Then, based on the test data set, a processing time corresponding to each of the similarity algorithms is generated. The processing time refers to the time taken by the similarity algorithm from the time when the two palm print test images to be compared are received until the similarity algorithm outputs the similarity recognition results corresponding to the two palm print test images. For example, the time when the test data set m is input to the similarity algorithm is T1, and the time when the similarity algorithm outputs the similarity recognition results of the test data set m is T2, then the processing time of the similarity algorithm can be obtained as T=T2-T1. After obtaining the processing time, a first similarity algorithm whose processing time is less than a preset processing time threshold is selected from all the similarity algorithms. The value of the preset processing time threshold is not specifically limited and can be set according to actual needs. Then, based on the release year information of each of the first similarity algorithms, the influence values corresponding to each of the first similarity algorithms are obtained. Among them, the process of obtaining the influence value may include: first obtaining the release year information of each of the first similarity algorithms respectively, and then querying the influence values corresponding to each of the release year information based on the preset mapping table. The above mapping table is created according to actual usage requirements. The mapping table is a data table that stores the mapping relationship between the release year information and the influence value. The larger the release year information, the larger the influence value. The closer the year release time of the similarity algorithm is to the current time, the better the optimization processing of the similarity algorithm and the better the processing effect. After obtaining the influence value, the target influence value with the largest value is selected from all the influence values. Subsequently, the second similarity algorithm corresponding to the target influence value is obtained from all the first similarity algorithms. Finally, the second similarity algorithm is used as the target similarity algorithm. After obtaining a preset number of similarity algorithms, this embodiment will also comprehensively consider the processing time and influence values of all the similarity algorithms. After screening out a first similarity algorithm with a processing time threshold less than the preset processing time threshold, a second similarity algorithm with the largest target influence value will be screened out from the first similarity algorithm and used as the target similarity algorithm.Since the obtained target similarity algorithm has a high processing efficiency and a highest influence value, in the subsequent process of using the target similarity algorithm to perform one-to-one comparison processing on all first palmprint sub-blocks contained in the first target palmprint image and all second palmprint sub-blocks contained in the second target palmprint image to obtain multiple similarities after the comparison processing, it is possible to effectively improve the processing efficiency of generating similarities while ensuring the accuracy of the multiple similarities output by the target similarity algorithm, which is conducive to accurately and quickly processing the identity authentication of the user according to the obtained similarities, so as to accurately execute the response processing of the test paper creation request according to the identity authentication result.
[0108] Furthermore, in an embodiment of the present application, the above step S60 includes:
[0109] S600: Determine whether a touch operation on a designated editing block in the question content editing area triggered by the user is collected; wherein the designated editing block is any one of all editing blocks included in the question content editing area;
[0110] S601: If yes, control the designated editing block to enter an editable state;
[0111] S602: receiving first information corresponding to the target test question type input by the user in each editing block included in the test question content editing area;
[0112] S603: Filtering out second information corresponding to the test question template from the first information;
[0113] S604: performing information editing processing on the test question template based on the second information to obtain a processed test question template;
[0114] S605: Using the processed test question template as the target test question.
[0115] As described in the above steps S600 to S605, the step of receiving the editing operation input by the user in the question content editing area, and generating the target question corresponding to the editing operation in the test paper display area based on the editing operation, may specifically include: firstly judging whether the touch operation of the user on the designated editing block in the question content editing area is collected. Wherein, the designated editing block is any one of all the editing blocks contained in the question content editing area. In addition, the touch operation may refer to a click operation. If so, the designated editing block is controlled to enter an editable state. Wherein, the editable state refers to the state in which the user can input data in the designated editing block and can edit the data, such as adding, deleting, and modifying operations. Then, the first information corresponding to the target question type input by the user in each editing block contained in the question content editing area is received. Then, the second information corresponding to the question template is filtered out from the first information. Wherein, the second information may include: information in the question stem editing block, information in the auxiliary information editing block, and information in the option editing block. Subsequently, the test template is edited based on the second information to obtain the processed test template. Wherein, the process of editing the test template based on the second information to obtain the processed test template may include: filling the information in the question stem editing block into the first filling position corresponding to the question stem information in the test template, filling the information in the auxiliary information editing block into the second filling position corresponding to the auxiliary information in the test template, and filling the information in the option editing block into the third filling position corresponding to the option information in the test template one by one, to obtain the processed test template. Finally, the processed test template is used as the target test question. In this embodiment, the content setting of the test template can be completed based on the first information corresponding to the target test question type entered by the user in the test content editing area, and then the corresponding target test question is generated intelligently and quickly. Since the user can simply edit the test content editing area based on their own needs to generate the required test questions, the user's experience is effectively improved, and the intelligence and efficiency of test question generation are improved.
[0116] Furthermore, in an embodiment of the present application, after the above step S70, the following steps are included:
[0117] S700: respectively obtaining the remaining memory of a plurality of storage blocks included in a preset blockchain, and obtaining a preset remaining memory threshold;
[0118] S701: Filter out a first storage block whose remaining memory is greater than the remaining memory threshold from all the storage blocks;
[0119] S702: Obtain the remaining memory, data storage times, data storage failure times, and memory cleaning coefficient of each of the first storage blocks, and calculate a data storage score of each of the first storage blocks based on a preset formula;
[0120] S703: Obtaining a target data storage score with the largest value from all the data storage scores;
[0121] S704: Acquire a second storage block corresponding to the target data storage score from the first storage block;
[0122] S705: Storing the target test paper in the second storage block.
[0123] As described in the above steps S700 to S705, after executing the step of generating the corresponding target test paper based on the target test question and the preset test paper template, a storage process for the target test paper may also be included. Specifically, first, the remaining memory of the multiple storage blocks contained in the preset blockchain is obtained respectively, and the preset remaining memory threshold is obtained. Among them, the blockchain will be divided into multiple storage blocks in advance for corresponding data storage. In addition, there is no specific limitation on the value of the remaining memory threshold, which can be set according to actual needs. Then, the first storage block whose remaining memory is greater than the remaining memory threshold is filtered out from all the storage blocks. After that, the remaining memory, the number of data storage, the number of data storage failures and the memory cleaning coefficient of each of the first storage blocks are obtained, and the data storage score of each of the first storage blocks is calculated based on the preset formula. Specifically, the preset formula may be: score = (Y*a+C*b+1 / B*c) / Q, where score is the data storage score, Y is the remaining memory, a is the weight of the remaining memory, C is the number of data storage times, b is the weight of the number of data storage times, B is the number of data storage failures, c is the weight of the number of data storage failures, and Q is the memory cleaning coefficient. Among them, the larger the remaining memory of the storage block, the larger the number of data storage times, the smaller the number of data storage failures, and the smaller the memory cleaning coefficient, the storage block is a block frequently used by users for storing data, and the data storage of the storage block rarely fails, and the possibility of the data stored in the storage block being cleaned is smaller, so that the user's satisfaction can be guaranteed and the intelligence and stability of data storage can be improved. After obtaining the data storage score, the target data storage score with the largest value is obtained from all the data storage scores. Subsequently, a second storage block corresponding to the target data storage score is obtained from the first storage block. Finally, the target test paper is stored in the second storage block. In this embodiment, by obtaining the remaining memory, data storage times, data storage failure times and memory cleaning coefficient of each of the first storage blocks, the data storage score of each of the first storage blocks is calculated based on a preset formula, and then the second storage block corresponding to the data storage score with the largest numerical value is used as the final storage block for storing the target test paper, so as to realize reasonable selection of the corresponding storage block to store the generated target test paper according to the storage situation and cleaning situation of the storage block, effectively ensure the accuracy of the obtained second storage block, and also reduce the possibility of the target test paper being cleaned, improve the storage efficiency and storage intelligence of the data, so as to facilitate users to quickly query.
[0124] Furthermore, in an embodiment of the present application, before the above step S702, the following steps are included:
[0125] S7020: Obtain the number of memory cleanup times of a specified storage block within a preset time period; wherein the specified storage block is any one of all the first storage blocks;
[0126] S7021: Obtain each clear memory value of the designated storage block within the preset time period, and filter out a designated clear memory value whose value is greater than a preset clear memory threshold from all the clear memory values;
[0127] S7022: Obtain the number of the specified memory clearing values;
[0128] S7023: Obtain a first weight corresponding to the number of memory cleanup times, and obtain a second weight corresponding to the number of the specified memory cleanup values;
[0129] S7024: Based on the first weight and the second weight, a weighted sum is taken of the number of memory cleanup times and the number of designated memory cleanup values to obtain a memory cleanup coefficient of the designated storage block.
[0130] As described in steps S7020 to S7024, before executing the step of obtaining the remaining memory, the number of data storage, the number of data storage failures, and the memory cleaning coefficient of each first storage block, and calculating the data storage score of each first storage block based on a preset formula, a calculation process for the memory cleaning coefficient of each first storage block may also be included. Specifically, firstly, the number of memory cleanings of a specified storage block within a preset time period is obtained. Wherein, the specified storage block is any one of all the first storage blocks. In addition, the preset time period is not specifically limited, and can be set according to actual needs, for example, it can be one week before the current time. Then, the memory cleaning value of each of the specified storage blocks within the preset time period is obtained, and the specified memory cleaning value with a value greater than the preset memory cleaning threshold is screened out from all the memory cleaning values. Wherein, the value of the memory cleaning threshold is not specifically limited, and can be set according to actual needs. Then, the number of the specified memory cleaning values is obtained. Subsequently, a first weight corresponding to the number of memory cleanings is obtained, and a second weight corresponding to the number of the specified memory cleaning values is obtained. Among them, there is no specific limitation on the values of the first weight and the second weight, which can be set according to actual needs or obtained by simulating a large amount of data. Preferably, the first weight is greater than the second weight, and the sum of the first weight and the second weight is 1. Finally, the memory cleaning times and the number of the specified memory cleaning values are weighted and summed based on the first weight and the second weight to obtain the memory cleaning coefficient of the specified storage block. In this embodiment, the memory cleaning coefficient of each first storage block is quickly and accurately calculated by obtaining the memory cleaning times and the number of specified memory cleaning values of each first storage block within a preset time period, which is conducive to accurately calculating the data storage scores of each first storage block based on the memory cleaning coefficient, and then accurately and quickly completing the determination of the second storage block according to the obtained data storage score, so that the generated target test paper can be stored in the second storage block in the future, thereby improving the storage efficiency and storage intelligence of the target test paper, reducing the possibility of the target test paper being cleaned, and facilitating users to quickly query.
[0131] Furthermore, in an embodiment of the present application, the test question editing interface further includes a link generation button and a sharing button. After the above step S70, the following steps are included:
[0132] S710: After generating the target test paper, determining whether a first operation corresponding to the link generation button triggered by the user is received;
[0133] S711: if the first operation is received, generating a test paper link corresponding to the target test paper;
[0134] S712: Determine whether a second operation corresponding to the share button triggered by the user is received;
[0135] S713: If the second operation is received, displaying a preset sharing method selection list and a sharing object selection list;
[0136] S714: receiving a target sharing method selected by the user from the sharing method selection list, and receiving a target sharing object selected by the user from the sharing object selection list;
[0137] S715: Sending the target test paper to a target terminal corresponding to the target sharing object based on the target sharing method.
[0138] As described in the above steps S710 to S715, after the execution of the test question editing interface, the link generation button and the sharing button are also included. After the step of generating the corresponding target test paper based on the target test question and the preset test paper template, the intelligent distribution process for the target test paper may also be included. Specifically, after the target test paper is generated, it is first determined whether the first operation corresponding to the link generation button triggered by the user is received. Among them, the first operation may include operations such as clicking, pressing or voice. In addition, the link generation button is a button for generating a test paper link corresponding to the target test paper. If the first operation is received, a test paper link corresponding to the target test paper is generated. Among them, the test paper link includes the test paper identification of the target test paper, such as the test paper ID. In addition, the test paper link is used for: the corresponding answering terminal triggers the acquisition of the corresponding target test paper through the test paper link, so that the target answering object can answer the target test paper through the answering terminal. Then it is determined whether the second operation corresponding to the sharing button triggered by the user is received. Among them, the second operation may include operations such as clicking, pressing or voice. In addition, the share button is a button for sharing the test paper link corresponding to the target test paper to the answering terminal of the corresponding answering object. Among them, the target sharing method and the target sharing object can be determined by triggering the share button, and the test paper link is shared to the answering terminal of the corresponding answering object according to the target sharing method and the target sharing, so as to complete the distribution of the target test paper. If the second operation is received, the preset sharing method selection list and the sharing object selection list are displayed. Among them, the sharing method selection list is a pre-set selection list of sharing methods, and the sharing method may include: third-party application sharing, group sharing, email sharing, album sharing, etc. The third-party application may refer to a social application, such as WeChat, Tencent QQ, corporate WeChat, etc. The sharing object selection list is a pre-set list of objects that may have sharing needs. Then, the target sharing method selected by the user from the sharing method selection list is received, and the target sharing object selected by the user from the sharing object selection list is received. Finally, the target test paper is sent to the target terminal corresponding to the target sharing object based on the target sharing method. For example, when a user has a need to publish a target test paper, he can click, press or use voice commands to operate the link generation button in the test question editing interface. After detecting the trigger operation, the device will generate a test paper link corresponding to the target test paper. Then the user can click, press or use voice commands to operate the share button in the test question editing interface. After detecting the trigger operation, the device will generate and display a sharing method selection list and a sharing object selection list.When the user selects "email sharing" from the sharing method selection list and selects "Xiao Li" from the target sharing object, the device will determine "email sharing" as the target sharing method, determine "Xiao Li" as the target sharing object, and send the target test paper to the email address corresponding to Xiao Li in the form of email sharing to complete the distribution of the target test paper. In this embodiment, after the generation of the target test paper is completed, the target test paper can be distributed to the answering terminal of the corresponding answering object intelligently and quickly based on the user's corresponding operation of the link generation button and the sharing button in the test editing interface, which improves the user's experience, and the answering object can perform the corresponding test according to the received target test paper, which is conducive to ensuring the smooth progress of the test paper test.
[0139] The test paper creation method in the embodiment of the present application can also be applied to the blockchain field, such as storing the target test questions and other data on the blockchain. By using the blockchain to store and manage the target test questions, the security and non-tamperability of the target test questions can be effectively guaranteed.
[0140] The above-mentioned blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0141] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.
[0142] Reference Figure 2 In one embodiment of the present application, a test paper creation device is also provided, including:
[0143] The first judgment module 1 is used to judge whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries the user information of the user;
[0144] The second judgment module 2 is used for obtaining the user information and the palm print image of the user upon receiving the test paper creation request, performing identity verification on the user based on a preset list of legal users and legal palm print images, and judging whether the verification is successful;
[0145] The first display module 3 is used to display a preset test question editing interface if the verification is passed; wherein the test question editing interface includes a test question type menu, and the test question type menu is provided with a plurality of test question types;
[0146] The third judgment module 4 is used to judge whether the user's selection operation on the target test question type in the test question editing interface is received;
[0147] The second display module 5 is used for displaying the test paper display area corresponding to the target test question type and the test question content editing area corresponding to the target test question type on the test question editing interface if the selection operation is received; wherein the test paper display area includes a test question template corresponding to the target test question type;
[0148] A first generating module 6, configured to receive an editing operation input by the user in the question content editing area, and generate a target question corresponding to the editing operation in the test paper display area based on the editing operation;
[0149] The second generating module 7 is used to generate a corresponding target test paper based on the target test questions and a preset test paper template.
[0150] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation method, and will not be repeated here.
[0151] Furthermore, in one embodiment of the present application, the second determination module 2 includes:
[0152] an acquisition unit, configured to acquire the user information and the pre-stored legal user list, and determine whether the legal user list stores designated user information identical to the user information;
[0153] a first dividing unit, configured to obtain a palm print image of the user if the designated user information is stored, filter out a first target palm print image corresponding to the designated finger information from the palm print image, and divide the palm print area contained in the first target palm print image into a plurality of first palm print sub-blocks;
[0154] A first screening unit, configured to screen out a second target palmprint image corresponding to the designated finger information from all the pre-stored legal palmprint images corresponding to the designated user information;
[0155] A second division unit, configured to divide the palmprint area contained in the second target palmprint image into a plurality of corresponding second palmprint sub-blocks based on the sub-block division method of the first target palmprint image;
[0156] A second screening unit is used to obtain a plurality of preset similarity algorithms, and screen out a target similarity algorithm that meets preset conditions from all the similarity algorithms;
[0157] a comparison unit, configured to perform one-to-one comparison processing on all first palmprint sub-blocks contained in the first target palmprint image and all second palmprint sub-blocks contained in the second target palmprint image based on the target similarity algorithm, to obtain a plurality of similarities after the comparison processing;
[0158] A first judging unit, configured to obtain a preset similarity threshold, and judge whether all the obtained similarities are greater than the similarity threshold;
[0159] The determination unit is used to determine that the verification is passed if both are greater than the similarity threshold, otherwise the verification is failed.
[0160] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation method, and will not be repeated here.
[0161] Furthermore, in one embodiment of the present application, the second screening unit includes:
[0162] A first acquisition subunit is used to acquire a preset test data set; wherein the test data set includes two palmprint test images to be compared;
[0163] A generating subunit, used for generating processing time corresponding to each of the similarity algorithms based on the test data set;
[0164] A first screening subunit, configured to screen out a first similarity algorithm having a processing time less than a preset processing time threshold from all the similarity algorithms;
[0165] A second acquisition subunit is used to acquire influence values corresponding to each of the first similarity algorithms based on the release year information of each of the first similarity algorithms;
[0166] A second screening subunit is used to screen out a target influence value with the largest value from all the influence values;
[0167] A second acquisition subunit, configured to acquire a second similarity algorithm corresponding to the target influence value from all the first similarity algorithms;
[0168] A determination subunit is configured to use the second similarity algorithm as the target similarity algorithm.
[0169] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation method, and will not be repeated here.
[0170] Furthermore, in one embodiment of the present application, the first generating module 6 includes:
[0171] A second judgment unit is used to judge whether a touch operation on a designated editing block in the test content editing area triggered by the user is collected; wherein the designated editing block is any one of all editing blocks included in the test content editing area;
[0172] A control unit, configured to control the designated editing block to enter an editable state if yes;
[0173] A receiving unit, configured to receive first information corresponding to the target test question type input by the user in each editing block included in the test question content editing area;
[0174] A third screening unit, configured to screen out second information corresponding to the test question template from the first information;
[0175] An editing unit, configured to perform information editing processing on the test question template based on the second information to obtain a processed test question template;
[0176] A determination unit is used to use the processed test question template as the target test question.
[0177] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation mode, and will not be repeated here.
[0178] Furthermore, in one embodiment of the present application, the test paper creation device includes:
[0179] A first acquisition module, used to respectively acquire the remaining memory of multiple storage blocks included in a preset blockchain, and to acquire a preset remaining memory threshold;
[0180] A first screening module, used for screening out a first storage block having a remaining memory greater than the remaining memory threshold from all the storage blocks;
[0181] A first calculation module, used to obtain the remaining memory, data storage times, data storage failure times and memory cleaning coefficient of each of the first storage blocks, and calculate the data storage score of each of the first storage blocks based on a preset formula;
[0182] A second acquisition module is used to acquire a target data storage score with the largest value from all the data storage scores;
[0183] A third acquisition module, configured to acquire, from the first storage block, a second storage block corresponding to the target data storage score;
[0184] A storage module is used to store the target test paper in the second storage block.
[0185] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation mode, and will not be repeated here.
[0186] Furthermore, in one embodiment of the present application, the test paper creation device includes:
[0187] A fourth acquisition module is used to acquire the number of memory cleanups of a specified storage block within a preset time period; wherein the specified storage block is any one of all the first storage blocks;
[0188] A second screening module is used to obtain the cleared memory value of the designated storage block each time within the preset time period, and screen out the designated cleared memory value whose value is greater than a preset cleared memory threshold from all the cleared memory values;
[0189] A fifth acquisition module, used to acquire the number of the specified memory clearing values;
[0190] A sixth acquisition module, used to acquire a first weight corresponding to the number of memory cleaning times, and to acquire a second weight corresponding to the number of the specified memory cleaning values;
[0191] The second calculation module is used to perform weighted summation of the memory cleaning times and the number of the specified memory cleaning values based on the first weight and the second weight to obtain a memory cleaning coefficient of the specified storage block.
[0192] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation mode, and will not be repeated here.
[0193] Furthermore, in one embodiment of the present application, the test paper creation device includes:
[0194] A fourth judgment module, used for judging whether a first operation corresponding to the link generation button triggered by the user is received after the target test paper is generated;
[0195] A third generating module, configured to generate a test paper link corresponding to the target test paper upon receiving the first operation;
[0196] a fifth determination module, configured to determine whether a second operation corresponding to the share button triggered by the user is received;
[0197] A third display module, configured to display a preset sharing method selection list and a sharing object selection list if the second operation is received;
[0198] A receiving module, configured to receive a target sharing method selected by a user from the sharing method selection list, and receive a target sharing object selected by the user from the sharing object selection list;
[0199] A sending module is used to send the target test paper to a target terminal corresponding to the target sharing object based on the target sharing method.
[0200] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the test paper creation method in the aforementioned implementation mode, and will not be repeated here.
[0201] Reference Figure 3 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface, a display screen, an input device and a database connected through a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a storage medium and an internal memory. The storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the storage medium. The database of the computer device is used to store user information, palm print images, a list of legal users, legal palm print images, test question templates, target test questions and target test papers. The network interface of the computer device is used to communicate with an external terminal through a network connection. The display screen of the computer device is an indispensable graphic output device in the computer, which is used to convert digital signals into optical signals so that text and graphics are displayed on the screen of the display screen. The input device of the computer device is the main device for information exchange between the computer and the user or other devices, and is used to transmit data, instructions and certain mark information to the computer. When the computer program is executed by the processor, a test paper creation method is implemented.
[0202] The processor executes the steps of the test paper creation method:
[0203] Determine whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries user information of the user;
[0204] If the test paper creation request is received, the user information and the palm print image of the user are obtained, the identity verification of the user is performed based on a preset list of legal users and the legal palm print image, and it is determined whether the verification is passed;
[0205] If the verification is passed, a preset question editing interface is displayed; wherein the question editing interface includes a question type menu, and the question type menu is provided with a plurality of question types;
[0206] Determining whether a selection operation of the user on a target test question type in the test question editing interface is received;
[0207] If the selection operation is received, a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type are displayed on the test question editing interface; wherein the test paper display area includes a test question template corresponding to the target test question type;
[0208] receiving an editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation;
[0209] Based on the target test questions and the preset test paper template, a corresponding target test paper is generated.
[0210] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application scheme, and does not constitute a limitation on the devices and computer equipment to which the present application scheme is applied.
[0211] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a test paper creation method is implemented, specifically:
[0212] Determine whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries user information of the user;
[0213] If the test paper creation request is received, the user information and the palm print image of the user are obtained, the identity verification of the user is performed based on a preset list of legal users and the legal palm print image, and it is determined whether the verification is passed;
[0214] If the verification is passed, a preset question editing interface is displayed; wherein the question editing interface includes a question type menu, and the question type menu is provided with a plurality of question types;
[0215] Determining whether a selection operation of the user on a target test question type in the test question editing interface is received;
[0216] If the selection operation is received, a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type are displayed on the test question editing interface; wherein the test paper display area includes a test question template corresponding to the target test question type;
[0217] receiving an editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation;
[0218] Based on the target test questions and the preset test paper template, a corresponding target test paper is generated.
[0219] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in the present application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0220] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0221] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A test paper creation method, characterized in that: include: Determine whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries user information of the user; If the test paper creation request is received, the user information and the palm print image of the user are obtained, the identity verification of the user is performed based on a preset list of legal users and the legal palm print image, and it is determined whether the verification is passed; If the verification is passed, a preset question editing interface is displayed; wherein the question editing interface includes a question type menu, and the question type menu is provided with a plurality of question types; Determining whether a selection operation of the user on a target test question type in the test question editing interface is received; If the selection operation is received, a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type are displayed on the test question editing interface; wherein the test paper display area includes a test question template corresponding to the target test question type; receiving an editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation; Based on the target test questions and the preset test paper template, generating a corresponding target test paper; After the step of generating a corresponding target test paper based on the target test question and the preset test paper template, the method further comprises: Respectively obtain the remaining memory of multiple storage blocks contained in a preset blockchain, and obtain a preset remaining memory threshold; Filter out a first storage block whose remaining memory is greater than the remaining memory threshold from all the storage blocks; Obtain the remaining memory, the number of data storage times, the number of data storage failures, and the memory cleaning coefficient of each of the first storage blocks, and calculate the data storage score of each of the first storage blocks based on a preset formula; the preset formula is: score = (Y*a+C*b+1 / B*c) / Q, score is the data storage score, Y is the remaining memory, a is the weight of the remaining memory, C is the number of data storage times, b is the weight of the number of data storage times, B is the number of data storage failures, c is the weight of the number of data storage failures, and Q is the memory cleaning coefficient; Obtaining the target data storage score with the largest value from all the data storage scores; Acquire a second storage block corresponding to the target data storage score from the first storage block; storing the target test paper in the second storage block; The test question editing interface also includes a link generation button and a sharing button. After the step of generating a corresponding target test paper based on the target test question and the preset test paper template, the following steps are included: After generating the target test paper, determining whether a first operation corresponding to the link generation button triggered by the user is received; If the first operation is received, generating a test paper link corresponding to the target test paper; Determining whether a second operation corresponding to the share button triggered by the user is received; If the second operation is received, displaying a preset sharing method selection list and a sharing object selection list; receiving a target sharing method selected by a user from the sharing method selection list, and receiving a target sharing object selected by the user from the sharing object selection list; The target test paper is sent to a target terminal corresponding to the target sharing object based on the target sharing method.
2. The test paper creation method according to claim 1, characterized in that: The steps of obtaining the user information and the palm print image of the user, performing identity authentication on the user based on a preset list of legal users and the legal palm print image, and determining whether the authentication is successful include: Acquire the user information and the pre-stored legal user list, and determine whether the legal user list stores designated user information that is the same as the user information; If the designated user information is stored, obtaining a palm print image of the user, screening out a first target palm print image corresponding to the designated finger information from the palm print image, and dividing the palm print area contained in the first target palm print image into a plurality of first palm print sub-blocks; Filtering out a second target palmprint image corresponding to the designated finger information from all the pre-stored legal palmprint images corresponding to the designated user information; Based on the sub-block division method of the first target palmprint image, dividing the palmprint area contained in the second target palmprint image into a corresponding plurality of second palmprint sub-blocks; Acquire a plurality of preset similarity algorithms, and select a target similarity algorithm that meets preset conditions from all the similarity algorithms; Based on the target similarity algorithm, a one-to-one comparison process is performed on all first palmprint sub-blocks contained in the first target palmprint image and all second palmprint sub-blocks contained in the second target palmprint image to obtain a plurality of similarities after the comparison process; Obtaining a preset similarity threshold, and determining whether all the obtained similarities are greater than the similarity threshold; If both are greater than the similarity threshold, the verification is determined to be successful; otherwise, the verification is determined to be unsuccessful.
3. The test paper creation method according to claim 2, characterized in that: The step of selecting a target similarity algorithm that meets preset conditions from all the similarity algorithms comprises: Obtaining a preset test data set; wherein the test data set includes two palmprint test images to be compared; Generating processing time corresponding to each of the similarity algorithms based on the test data set; Filter out a first similarity algorithm whose processing time is less than a preset processing time threshold from all the similarity algorithms; Based on the release year information of each of the first similarity algorithms, obtaining influence values corresponding to each of the first similarity algorithms; Filter out the target influence value with the largest value from all the influence values; Acquire a second similarity algorithm corresponding to the target influence value from all the first similarity algorithms; The second similarity algorithm is used as the target similarity algorithm.
4. The test paper creation method according to claim 1, characterized in that: The step of receiving the editing operation input by the user in the question content editing area, and generating a target question corresponding to the editing operation in the test paper display area based on the editing operation, comprises: Determine whether a touch operation on a designated editing block in the test question content editing area triggered by the user is collected; wherein the designated editing block is any one of all editing blocks included in the test question content editing area; If so, controlling the designated editing block to enter an editable state; receiving first information corresponding to the target test question type input by the user in each editing block included in the test question content editing area; Filtering out second information corresponding to the test question template from the first information; Performing information editing processing on the test question template based on the second information to obtain a processed test question template; The processed test question template is used as the target test question.
5. The test paper creation method according to claim 1, characterized in that: Before the step of obtaining the remaining memory, the number of data storage times, the number of data storage failures, and the memory cleaning coefficient of each of the first storage blocks, and calculating the data storage score of each of the first storage blocks based on a preset formula, the step includes: Obtaining the number of memory cleanups of a specified storage block within a preset time period; wherein the specified storage block is any one of all the first storage blocks; Obtaining each clear memory value of the designated storage block within the preset time period, and filtering out a designated clear memory value whose value is greater than a preset clear memory threshold from all the clear memory values; Get the number of the specified memory cleanup values; Obtaining a first weight corresponding to the number of memory cleanup times, and obtaining a second weight corresponding to the number of the specified memory cleanup values; A weighted sum is performed on the memory cleaning times and the number of the designated memory cleaning values based on the first weight and the second weight to obtain a memory cleaning coefficient of the designated storage block.
6. A test paper creation device, characterized in that: include: A first judgment module is used to judge whether a test paper creation request triggered by a user is received; wherein the test paper creation request carries the user information of the user; A second judgment module is used for, if receiving the test paper creation request, obtaining the user information and the palm print image of the user, performing identity verification on the user based on a preset list of legal users and legal palm print images, and judging whether the verification is passed; A first display module is used to display a preset test question editing interface if the verification is passed; wherein the test question editing interface includes a test question type menu, and the test question type menu is provided with a plurality of test question types; A third judgment module is used to judge whether a selection operation of the user on the target test question type in the test question editing interface is received; A second display module is used for displaying a test paper display area corresponding to the target test question type and a test question content editing area corresponding to the target test question type on the test question editing interface if the selection operation is received; wherein the test paper display area includes a test question template corresponding to the target test question type; A first generating module, configured to receive an editing operation input by the user in the question content editing area, and generate a target question corresponding to the editing operation in the test paper display area based on the editing operation; A second generating module, configured to generate a corresponding target test paper based on the target test question and a preset test paper template; The test paper creation device comprises: A first acquisition module, used to respectively acquire the remaining memory of multiple storage blocks included in a preset blockchain, and to acquire a preset remaining memory threshold; A first screening module, used for screening out a first storage block having a remaining memory greater than the remaining memory threshold from all the storage blocks; A first calculation module, used to obtain the remaining memory, the number of data storage failures, the number of data storage failures and the memory cleaning coefficient of each of the first storage blocks, and calculate the data storage score of each of the first storage blocks based on a preset formula; the preset formula is: score = (Y*a+C*b+1 / B*c) / Q, score is the data storage score, Y is the remaining memory, a is the weight of the remaining memory, C is the number of data storage times, b is the weight of the number of data storage times, B is the number of data storage failures, c is the weight of the number of data storage failures, and Q is the memory cleaning coefficient; A second acquisition module is used to acquire a target data storage score with the largest value from all the data storage scores; A third acquisition module, configured to acquire, from the first storage block, a second storage block corresponding to the target data storage score; A storage module, used for storing the target test paper in the second storage block; The test question editing interface also includes a link generation button and a sharing button. The test paper creation device includes: A fourth judgment module, used for judging whether a first operation corresponding to the link generation button triggered by the user is received after the target test paper is generated; A third generating module, configured to generate a test paper link corresponding to the target test paper upon receiving the first operation; a fifth determination module, configured to determine whether a second operation corresponding to the share button triggered by the user is received; A third display module, configured to display a preset sharing method selection list and a sharing object selection list if the second operation is received; A receiving module, configured to receive a target sharing method selected by a user from the sharing method selection list, and receive a target sharing object selected by the user from the sharing object selection list; A sending module is used to send the target test paper to a target terminal corresponding to the target sharing object based on the target sharing method.
7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Identity authentication method and device adopting palmprint and human face fusion recognition
CN102332093A
A method for realizing automatic typesetting of test paper
CN109033062A
Conference summary storage system based on blockchain
CN113328867A