A data interface management method and system based on stroke order, OCR and artificial intelligence
Through the data interface management method based on stroke order, OCR and artificial intelligence, a data interface database is built and the data interface is configured according to user permissions, the problem of secure access to the big data platform database is solved, and the reasonable allocation of data interfaces and secure access to the database is realized.
Patent Information
- Application Number
- CN202011566412.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2040-12-25
AI Technical Summary
How to ensure secure access to the database of the big data platform through the management of data interfaces, especially in multi-user and high-permission environments.
Using the data interface management method based on stroke order, OCR and artificial intelligence, a data interface library is built, a data interface is prefabricated, and the corresponding data interface is configured according to the permissions of the first user, and the user permissions are verified through handwriting information to ensure the reasonable allocation and use of the data interface.
It realizes security guarantee for database data access, and through reasonable data interface configuration and permission management, data streaming network attacks are avoided, ensuring secure access and efficient management of the database.
Smart Images

Figure CN112597468B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of database management, and in particular to a data interface management method and system based on stroke order, OCR and artificial intelligence. Background Art
[0002] At present, big data is the product of the new generation of information technology after cloud computing, the Internet of Things and mobile Internet. It is becoming a new hot spot and new direction of information technology, and will have a huge impact on human production and life. The database provides access to the first user by providing a data interface. How to ensure the secure access to the database of the big data platform through the management of the data interface is an urgent problem to be solved. Summary of the invention
[0003] One of the purposes of the present invention is to provide a data interface management method based on stroke order, OCR and artificial intelligence, to construct a data interface library, to prefabricate data interfaces, and then to configure data interfaces with corresponding permissions based on the permissions of the first user, thereby ensuring the security of database data access through data interface management based on stroke order, OCR and artificial intelligence.
[0004] An embodiment of the present invention provides a data interface management method based on stroke order, OCR and artificial intelligence, comprising:
[0005] Constructing a first data interface library, prefabricating at least one first data interface, and configuring interface parameters of the first data interface, the interface parameters including: one or more combinations of interface authority of the data interface, number of the data interface, data source accessible to the data interface, and transmission speed of the data interface;
[0006] A second data interface is configured for the first user; the second data interface is only connected to the authority database;
[0007] Receiving handwriting information input by a first user through a second data interface;
[0008] Determining first user authority information of the first user based on the handwriting information;
[0009] A first data interface corresponding to the first user authority information is configured for the first user from the first data interface library, and a second data interface used by the first user is cancelled and stored in the second data interface library.
[0010] Preferably, the data interface management method based on stroke order, OCR and artificial intelligence also includes:
[0011] every preset first time period, configuring a second data interface for a first user who has configured the first data interface;
[0012] receiving handwriting information input by the first user through the second interface;
[0013] Verifying the identity of the first user;
[0014] When the verification fails or exceeds the preset verification time, the first data interface is mapped to the list to be reassigned; when other first users obtain the right to use the first data interface from the reassigned list, other first data interfaces are reconfigured for the first users;
[0015] When the verification is passed within the preset verification time, the first user is allowed to use the first data interface.
[0016] Preferably, when configuring the second data interface for the second user every preset first time period to receive the note information input by the second user, the method further includes:
[0017] receiving a secondary allocation request for the first data interface input by a second user;
[0018] Obtaining a first permission value corresponding to a first data interface currently used by a second user;
[0019] Compare the first permission value with the second permission value of the first data interface in the secondary allocation list, and obtain at least one selectable first data interface as a target interface;
[0020] Acquire first user authority information and / or first activity of a first user who uses the target interface;
[0021] Acquire second user authority information and / or second activity of the second user;
[0022] Performing secondary allocation of the first data interface for the second user from the secondary allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity;
[0023] The second data interface is re-allocated to the second user from the re-allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity, including:
[0024] When the second authority value in the second user authority information is greater than the first authority value in the first user authority information, configuring the first data interface used by the first user in the secondary allocation list to be used by the second user;
[0025] and / or,
[0026] When the second activity of the second user is greater than the first activity of the first user, the first data interface used by the first user in the secondary allocation list is configured for use by the second user.
[0027] Preferably, the steps for determining the second activity level are as follows:
[0028] Obtain the historical login information of the second user;
[0029] Analyze historical login information to obtain the number of days the user has logged in within a preset time period from the current time, the daily login time, and a list of the data in the database called when logging in every day;
[0030] Based on the data in the list, the preset call data and time comparison table, the daily login time is corrected to determine the effective time; specifically as follows: the total call time of the data in the call list is counted, and when the total call time is greater than or equal to the daily login time, the daily login time is the effective time; when the total call time is less than or equal to the daily login time, the total call time is the effective time;
[0031] The user's activity is determined based on the current user's effective time, the sum of all users' effective time, the current user's login days, and the number of days corresponding to the preset time period. The calculation formula is as follows:
[0032]
[0033] Among them, H k is the activity of the kth user in the big data platform, D k is the number of days the kth user logged in; D0 is the number of days corresponding to the preset time period; B k is the effective time of the kth user; M is the number of users on the big data platform; ε1 and ε2 are preset weights.
[0034] Preferably, determining the first user authority information of the first user based on the handwriting information includes:
[0035] Parse note information to obtain stroke order information and identification information;
[0036] Determining the identity of the first user based on the identification information;
[0037] Based on the identity of the first user, calling a preset verification model;
[0038] Verifying the identity of the first user based on the verification model, and obtaining the permission information of the first user when the verification passes;
[0039] The verification of the identity of the first user based on the verification model includes:
[0040] Extracting characteristic values of stroke order information and / or identification information, substituting the characteristic values into a pre-established neural network model, obtaining a verification factor, querying a preset verification table, and when the verification factor exists in the verification table, the verification is passed;
[0041] or,
[0042] Constructing a verification vector based on the stroke order information and / or the identification information, matching the verification vector with a standard vector in a pre-established verification library, and passing the verification when the matching degree between the verification vector and the standard vector is greater than a preset matching value;
[0043] The matching degree calculation formula between the verification vector and the standard vector is as follows:
[0044]
[0045] Among them, P q is the matching degree between the verification vector and the qth standard vector in the verification library; n is the dimension of the verification vector and the standard vector; a i,q is the data value of the ith dimension of the qth standard vector; b i is the data value of the i-th dimension of the validation vector;
[0046] The stroke order information includes: a stroke type, an order between stroke types, and parameter information of each stroke, or one or more combinations thereof;
[0047] The parameter information of each stroke includes: the position relationship parameters between the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke, and / or the handwriting force parameters of the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke;
[0048] The identification information includes: one or a combination of text, graphics, and symbols.
[0049] The present invention also provides a data interface management system based on stroke order, OCR and artificial intelligence, comprising:
[0050] A construction module is used to construct a first data interface library, prefabricate at least one first data interface, and configure interface parameters of the first data interface, where the interface parameters include: one or more combinations of interface permissions of the data interface, the number of the data interface, the data source accessible to the data interface, and the transmission speed of the data interface;
[0051] A first configuration module is used to configure a second data interface for the first user; the second data interface is only connected to the authority database;
[0052] A first input module, used for receiving handwriting information input by a first user through a second data interface;
[0053] A permission acquisition module, used to determine first user permission information of the first user based on the handwriting information;
[0054] The second configuration module is used to configure the first data interface corresponding to the first user's authority information for the first user from the first data interface library, and simultaneously cancel the second data interface used by the first user and store the second data interface in the second data interface library.
[0055] Preferably, the data interface management system based on stroke order, OCR and artificial intelligence further includes: a verification module, which performs the following operations:
[0056] every preset first time period, configuring a second data interface for a first user who has configured the first data interface;
[0057] receiving handwriting information input by the first user through the second interface;
[0058] Verifying the identity of the first user;
[0059] When the verification fails or exceeds the preset verification time, the first data interface is mapped to the list to be reassigned; when other first users obtain the right to use the first data interface from the reassigned list, other first data interfaces are reconfigured for the first users;
[0060] When the verification is passed within the preset verification time, the first user is allowed to use the first data interface.
[0061] Preferably, the data interface management system based on stroke order, OCR and artificial intelligence further includes: a secondary allocation module, which is used to perform the following operations when configuring a second data interface for a second user every preset first time period and receiving the note information input by the second user:
[0062] receiving a secondary allocation request for the first data interface input by a second user;
[0063] Obtaining a first permission value corresponding to a first data interface currently used by a second user;
[0064] Compare the first permission value with the second permission value of the first data interface in the secondary allocation list, and obtain at least one selectable first data interface as a target interface;
[0065] Acquire first user authority information and / or first activity of a first user who uses the target interface;
[0066] Acquire second user authority information and / or second activity of the second user;
[0067] Performing secondary allocation of the first data interface for the second user from the secondary allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity;
[0068] The second data interface is re-allocated to the second user from the re-allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity, including:
[0069] When the second authority value in the second user authority information is greater than the first authority value in the first user authority information, configuring the first data interface used by the first user in the secondary allocation list to be used by the second user;
[0070] and / or,
[0071] When the second activity of the second user is greater than the first activity of the first user, the first data interface used by the first user in the secondary allocation list is configured for use by the second user.
[0072] Preferably, the steps for determining the second activity level are as follows:
[0073] Obtain the historical login information of the second user;
[0074] Analyze historical login information to obtain the number of days the user has logged in within a preset time period from the current time, the daily login time, and a list of the data in the database called when logging in every day;
[0075] Based on the data in the list, the preset call data and time comparison table, the daily login time is corrected to determine the effective time; specifically as follows: the total call time of the data in the call list is counted, and when the total call time is greater than or equal to the daily login time, the daily login time is the effective time; when the total call time is less than or equal to the daily login time, the total call time is the effective time;
[0076] The user's activity is determined based on the current user's effective time, the sum of all users' effective time, the current user's login days, and the number of days corresponding to the preset time period. The calculation formula is as follows:
[0077]
[0078] Among them, H k is the activity of the kth user in the big data platform, D k is the number of days the kth user logged in; D0 is the number of days corresponding to the preset time period; B k is the effective time of the kth user; M is the number of users on the big data platform; ε1 and ε2 are preset weights.
[0079] Preferably, the permission acquisition module performs the following operations:
[0080] Parse note information to obtain stroke order information and identification information;
[0081] Determining the identity of the first user based on the identification information;
[0082] Based on the identity of the first user, calling a preset verification model;
[0083] Verifying the identity of the first user based on the verification model, and obtaining the permission information of the first user when the verification passes;
[0084] The verification of the identity of the first user based on the verification model includes:
[0085] Extracting characteristic values of stroke order information and / or identification information, substituting the characteristic values into a pre-established neural network model, obtaining a verification factor, querying a preset verification table, and when the verification factor exists in the verification table, the verification is passed;
[0086] or,
[0087] Constructing a verification vector based on the stroke order information and / or the identification information, matching the verification vector with a standard vector in a pre-established verification library, and passing the verification when the matching degree between the verification vector and the standard vector is greater than a preset matching value;
[0088] The matching degree calculation formula between the verification vector and the standard vector is as follows:
[0089]
[0090] Among them, P q is the matching degree between the verification vector and the qth standard vector in the verification library; n is the dimension of the verification vector and the standard vector; a i,q is the data value of the ith dimension of the qth standard vector; b i is the data value of the i-th dimension of the validation vector;
[0091] The stroke order information includes: a stroke type, an order between stroke types, and parameter information of each stroke, or one or more combinations thereof;
[0092] The parameter information of each stroke includes: the position relationship parameters between the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke, and / or the handwriting force parameters of the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke;
[0093] The identification information includes: one or a combination of text, graphics, and symbols.
[0094] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0095] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0097] Figure 1 A schematic diagram of a rights management method according to an embodiment of the present invention;
[0098] Figure 2 A schematic diagram of another permission management method according to an embodiment of the present invention;
[0099] Figure 3 Schematic diagram of a rights management system in an embodiment of the present invention. DETAILED DESCRIPTION
[0100] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0101] The embodiment of the present invention provides a data interface management method based on stroke order, OCR and artificial intelligence, such as Figure 1 As shown, including:
[0102] Step S1: construct a first data interface library, prefabricate at least one first data interface, and configure interface parameters of the first data interface, the interface parameters including: one or more combinations of interface authority of the data interface, number of the data interface, data source accessible to the data interface, and transmission speed of the data interface;
[0103] Step S2: configuring a second data interface for the first user; the second data interface is only connected to the authority database;
[0104] Step S3: receiving handwriting information input by the first user through the second data interface;
[0105] Step S4: determining first user authority information of the first user based on the handwriting information;
[0106] Step S5: configuring a first data interface corresponding to the first user's authority information for the first user from the first data interface library, and simultaneously canceling the second data interface used by the first user and storing the second data interface in the second data interface library.
[0107] The working principle and beneficial effects of the above technical solution are:
[0108] A data interface library is constructed for the database, a first data interface is prefabricated in the data interface library, and the interface parameters of the first data interface are configured. When configuring, the first data interface is numbered and can be numbered according to the interface authority of the first data interface, that is, the interface with the highest authority is numbered 1, and then numbered according to the authority in turn; of course, when configuring, the more data sources can be accessed by the interface with higher authority, and the data with higher data security level is stored in the corresponding data source. The access interface of the data source is relatively small, which is convenient for monitoring the data interface of the data source; when configuring, the transmission speed can also be configured according to the level of authority, that is, the higher the authority, the faster the transmission speed of the interface; the number of prefabricated interfaces can be configured according to the allowable access speed of the database, that is, the sum of the maximum limit speeds of all data interfaces is lower than the maximum speed that the database can access, which can effectively avoid data streaming network attacks, that is, when all data interfaces are running at maximum speed, the database will not exceed its load. The first user uses the database to access the authority database in the database through the second data interface, and determines the first user's authority information through handwriting information verification. When the first user's authority information is determined, the data interface corresponding to the authority is configured for the first user from the data interface library. Through the prefabrication of the data interface and the authority configuration, the reasonable control of the data interface is realized, thereby ensuring that the flow of accessing the data in the database through the data interface will not exceed the range allowed by the database, thereby ensuring the security of database data access. The second data interface is also configured according to the permission of the authority database, that is, to ensure that the number of second data interfaces that exist at the same time will not exceed the load of the authority database; after the first data interface is configured, the use of the second data interface of the first user who configured the first data interface is canceled. Through this application, the smart education platform provides unified subjects, versions, chapters, knowledge points and other public data WCF interfaces for the entire platform, and provides fast configuration and personalized customization of data interfaces; in addition, the interface and service provide the system with an API based on the REST architecture, and the docked client system can access the service program through the general interface of the HTTP application protocol. The application scenarios such as meeting minutes merging and smart education all rely on this data interface to achieve, effectively supporting cross-module data interconnection and interoperability, and convenient unified maintenance and management.
[0109] The data interface management method based on stroke order, OCR and artificial intelligence of the present invention builds a data interface library, prefabricates data interfaces, and then configures data interfaces with corresponding permissions based on the permissions of the first user, thereby ensuring the security of database data access through data interface management based on stroke order, OCR and artificial intelligence.
[0110] In one embodiment, a data interface management method based on stroke order, OCR and artificial intelligence is provided. Figure 2 As shown, it also includes:
[0111] Step S11: configuring a second data interface for a first user who has configured a first data interface every preset first time period;
[0112] Step S12: receiving handwriting information input by the first user through the second interface;
[0113] Step S13: verifying the identity of the first user;
[0114] Step S14: when the verification fails or exceeds the preset verification time, the first data interface is mapped to the list to be secondary allocated; when other first users obtain the right to use the first data interface from the secondary allocated list, other first data interfaces are reconfigured for the first users;
[0115] When the verification is passed within the preset verification time, the first user is allowed to use the first data interface.
[0116] The working principle and beneficial effects of the above technical solution are:
[0117] When the smart education data platform application is running, in order to achieve a reasonable configuration of the first data interface, the first user configured with the first data interface is authenticated after each preset first time period to confirm the identity of the user of the first data interface, and the first data interface that fails the verification is redistributed to ensure the utilization rate of the high-authority first data interface and optimize the management of the data interface.
[0118] In one embodiment, when configuring the second data interface for the second user every preset first time period to receive the note information input by the second user, the method further includes:
[0119] receiving a secondary allocation request for the first data interface input by a second user;
[0120] Obtaining a first permission value corresponding to a first data interface currently used by a second user;
[0121] Compare the first permission value with the second permission value of the first data interface in the secondary allocation list, and obtain at least one selectable first data interface as a target interface;
[0122] Acquire first user authority information and / or first activity of a first user who uses the target interface;
[0123] Acquire second user authority information and / or second activity of the second user;
[0124] Performing secondary allocation of the first data interface for the second user from the secondary allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity;
[0125] The second data interface is re-allocated to the second user from the re-allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity, including:
[0126] When the second authority value in the second user authority information is greater than the first authority value in the first user authority information, configuring the first data interface used by the first user in the secondary allocation list to be used by the second user;
[0127] and / or,
[0128] When the activity of the second user is greater than that of the first user, the first data interface used by the first user in the secondary allocation list is configured for use by the second user.
[0129] The working principle and beneficial effects of the above technical solution are:
[0130] When the smart education data platform application is running, a secondary allocation mechanism is implemented for the first data interface to ensure the reasonable use of the first data interface with high permissions. That is, when the previously logged-in user uses the first data interface with the highest level of permissions, he has not logged out, so the highest level of permissions is always in use. When the account that logs in later wants to use the highest level of permissions, it can obtain it through the secondary allocation mechanism. The activity and / or user permission value are used as the parameters for competition to determine the secondary allocation results, making the secondary allocation mechanism more reasonable. After the secondary allocation is successful, when the original user has an operation, the first data interface is reconfigured.
[0131] In one embodiment, the steps of determining the second activity level are as follows:
[0132] Obtain the historical login information of the second user;
[0133] Analyze historical login information to obtain the number of days the user has logged in within a preset time period from the current time, the daily login time, and a list of the data in the database called when logging in every day;
[0134] Based on the data in the list, the preset call data and time comparison table, the daily login time is corrected to determine the effective time; specifically as follows: the total call time of the data in the call list is counted, and when the total call time is greater than or equal to the daily login time, the daily login time is the effective time; when the total call time is less than or equal to the daily login time, the total call time is the effective time;
[0135] The user's activity is determined based on the current user's effective time, the sum of all users' effective time, the current user's login days, and the number of days corresponding to the preset time period. The calculation formula is as follows:
[0136]
[0137] Among them, H k is the activity of the kth user in the big data platform, D k is the number of days the kth user logged in; D0 is the number of days corresponding to the preset time period; B k is the effective time of the kth user; M is the number of users on the big data platform; ε1 and ε2 are preset weights.
[0138] The working principle and beneficial effects of the above technical solution are:
[0139] The user's activity is calculated based on the number of login days and the effective login time of each day to ensure the accuracy of the activity. In addition, the effective time is introduced to correct the login time through the data called each time the user logs in, eliminating the influence of the user's inactivity time, making the activity more accurate and objective. Similarly, the first activity determination step is the same as the second activity determination step.
[0140] In one embodiment, the data interface management method based on stroke order, OCR and artificial intelligence further includes:
[0141] Acquire first device information and first user authority information of a terminal used by a first user;
[0142] Acquire second device information and interface authority information allowed to access the first data interface;
[0143] constructing a login vector based on the first device information and the first permission information;
[0144] constructing an interface vector based on the second device information and the interface permission information;
[0145] The similarity between the login vector and the interface vector is calculated, and the first data interface with the greatest similarity is configured for the first user to use.
[0146] The working principle and beneficial effects of the above technical solution are:
[0147] The device information is introduced to participate in the configuration of the first data interface, the compatibility of the first data interface and the terminal is considered, and the rationality of the configuration of the first data interface is achieved.
[0148] The first device information or the second device information includes: one or a combination of: the voltage of the device, the current of the device, the models of each component in the device, the upload speed of the device and the download speed of the device.
[0149] In one embodiment, determining first user authority information of a first user based on handwriting information includes:
[0150] Parse note information to obtain stroke order information and identification information;
[0151] Determining the identity of the first user based on the identification information;
[0152] Based on the identity of the first user, calling a preset verification model;
[0153] Verifying the identity of the first user based on the verification model, and obtaining the permission information of the first user when the verification passes;
[0154] The verification of the identity of the first user based on the verification model includes:
[0155] Extracting characteristic values of stroke order information and / or identification information, substituting the characteristic values into a pre-established neural network model, obtaining a verification factor, querying a preset verification table, and when the verification factor exists in the verification table, the verification is passed;
[0156] or,
[0157] Constructing a verification vector based on the stroke order information and / or the identification information, matching the verification vector with a standard vector in a pre-established verification library, and passing the verification when the matching degree between the verification vector and the standard vector is greater than a preset matching value;
[0158] The matching degree calculation formula between the verification vector and the standard vector is as follows:
[0159]
[0160] Among them, P q is the matching degree between the verification vector and the qth standard vector in the verification library; n is the dimension of the verification vector and the standard vector; a i,q is the data value of the ith dimension of the qth standard vector; b i is the data value of the i-th dimension of the validation vector;
[0161] The stroke order information includes: a stroke type, an order between stroke types, and parameter information of each stroke, or one or more combinations thereof;
[0162] The parameter information of each stroke includes: the position relationship parameters between the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke, and / or the handwriting force parameters of the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke;
[0163] The identification information includes: one or a combination of text, graphics, and symbols.
[0164] The working principle and beneficial effects of the above technical solution are:
[0165] First, the identity of the first user is determined by the identification information identified by the OCR (Optical Character Recognition) recognition technology of the note information, and then the verification model stored corresponding to the identity of the first user is retrieved for identity authentication. When the verification is passed, the permission information of the first user is obtained. This embodiment provides two schemes for verification. Scheme 1: Use a pre-trained neural network model to extract the characteristic values of the stroke order information and / or the identification information and input them therein to obtain the verification factor, and determine the final verification result based on the verification factor. Scheme 2: Use a pre-established verification library to construct a verification vector based on the stroke order information and / or the identification information, match the verification vector with the standard vector in the verification library, and verify through the matching result. Furthermore, the stroke order information and the identification information are integrated to improve the verification accuracy, that is, when writing text, it is also possible not to follow the standard, and realize the customization according to the first user, using the stroke order as the verification point, improving the granularity of the verification, and realizing the operability of the first user customization. In addition, considering the handwriting strength parameters between the strokes, the recognition of the same stroke of the same word written by different people is realized, and the recognition of personnel based on the stroke order information and the identification information scheme is improved.
[0166] The present invention also provides a data interface management system based on stroke order, OCR and artificial intelligence, as shown in FIG3, comprising:
[0167] Construction module 1, used to construct a first data interface library, prefabricate at least one first data interface, and configure interface parameters of the first data interface, the interface parameters including: interface authority of the data interface, number of the data interface, data source accessible to the data interface, transmission speed of the data interface, one or more combinations thereof;
[0168] The first configuration module 2 is used to configure a second data interface for the first user; the second data interface is only connected to the authority database;
[0169] A first input module 3, used for receiving handwriting information input by a first user through a second data interface;
[0170] The authority acquisition module 4 is used to determine the first user authority information of the first user based on the handwriting information;
[0171] The second configuration module 5 is used to configure the first data interface corresponding to the first user's authority information for the first user from the first data interface library, and simultaneously cancel the second data interface used by the first user and store the second data interface in the second data interface library.
[0172] The working principle and beneficial effects of the above technical solution are:
[0173] A data interface library is constructed for the database, a first data interface is prefabricated in the data interface library, and the interface parameters of the first data interface are configured. When configuring, the first data interface is numbered and can be numbered according to the interface authority of the first data interface, that is, the interface with the highest authority is numbered 1, and then numbered according to the authority in turn; of course, when configuring, the more data sources can be accessed by the interface with higher authority, and the data with higher data security level is stored in the corresponding data source. The access interface of the data source is relatively small, which is convenient for monitoring the data interface of the data source; when configuring, the transmission speed can also be configured according to the level of authority, that is, the higher the authority, the faster the transmission speed of the interface; the number of prefabricated interfaces can be configured according to the allowable access speed of the database, that is, the sum of the maximum limit speeds of all data interfaces is lower than the maximum speed that the database can access, which can effectively avoid data streaming network attacks, that is, when all data interfaces are running at maximum speed, the database will not exceed its load. The first user uses the database to access the authority database in the database through the second data interface, and determines the first user's authority information through handwriting information verification. When the first user's authority information is determined, the data interface corresponding to the authority is configured for the first user from the data interface library. Through the prefabrication of the data interface and the authority configuration, the reasonable control of the data interface is realized, thereby ensuring that the flow of accessing the data in the database through the data interface will not exceed the range allowed by the database, thereby ensuring the security of database data access. The second data interface is also configured according to the permission of the authority database, that is, to ensure that the number of second data interfaces that exist at the same time will not exceed the load of the authority database; after the first data interface is configured, the use of the second data interface of the first user who configured the first data interface is canceled. Through this application, the smart education platform provides unified subjects, versions, chapters, knowledge points and other public data WCF interfaces for the entire platform, and provides fast configuration and personalized customization of data interfaces; in addition, the interface and service provide the system with an API based on the REST architecture, and the docked client system can access the service program through the general interface of the HTTP application protocol. The application scenarios such as meeting minutes merging and smart education all rely on this data interface to achieve, effectively supporting cross-module data interconnection and interoperability, and convenient unified maintenance and management.
[0174] The data interface management method based on stroke order, OCR and artificial intelligence of the present invention builds a data interface library, prefabricates data interfaces, and then configures data interfaces with corresponding permissions based on the permissions of the first user, thereby ensuring the security of database data access through data interface management based on stroke order, OCR and artificial intelligence.
[0175] In one embodiment, the data interface management system based on stroke order, OCR and artificial intelligence further includes: a verification module, which performs the following operations:
[0176] every preset first time period, configuring a second data interface for a first user who has configured the first data interface;
[0177] receiving handwriting information input by the first user through the second interface;
[0178] Verifying the identity of the first user;
[0179] When the verification fails or exceeds the preset verification time, the first data interface is mapped to the list to be reassigned; when other first users obtain the right to use the first data interface from the reassigned list, other first data interfaces are reconfigured for the first users;
[0180] When the verification is passed within the preset verification time, the first user is allowed to use the first data interface.
[0181] The working principle and beneficial effects of the above technical solution are:
[0182] When the smart education data platform application is running, in order to achieve a reasonable configuration of the first data interface, the first user configured with the first data interface is authenticated after each preset first time period to confirm the identity of the user of the first data interface, and the first data interface that fails the verification is redistributed to ensure the utilization rate of the high-authority first data interface and optimize the management of the data interface.
[0183] In one embodiment, the data interface management system based on stroke order, OCR and artificial intelligence further includes: a secondary allocation module, which is used to perform the following operations when configuring a second data interface for a second user every preset first time period and receiving the input note information of the second user:
[0184] receiving a secondary allocation request for the first data interface input by a second user;
[0185] Obtaining a first permission value corresponding to a first data interface currently used by a second user;
[0186] Compare the first permission value with the second permission value of the first data interface in the secondary allocation list, and obtain at least one selectable first data interface as a target interface;
[0187] Acquire first user authority information and / or first activity of a first user who uses the target interface;
[0188] Acquire second user authority information and / or second activity of the second user;
[0189] Performing secondary allocation of the first data interface for the second user from the secondary allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity;
[0190] The second data interface is re-allocated to the second user from the re-allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity, including:
[0191] When the second authority value in the second user authority information is greater than the first authority value in the first user authority information, configuring the first data interface used by the first user in the secondary allocation list to be used by the second user;
[0192] and / or,
[0193] When the second activity of the second user is greater than the first activity of the first user, the first data interface used by the first user in the secondary allocation list is configured for use by the second user.
[0194] The working principle and beneficial effects of the above technical solution are:
[0195] When the smart education data platform application is running, a secondary allocation mechanism is implemented for the first data interface to ensure the reasonable use of the first data interface with high permissions. That is, when the previously logged-in user uses the first data interface with the highest level of permissions, he has not logged out, so the highest level of permissions is always in use. When the account that logs in later wants to use the highest level of permissions, it can obtain it through the secondary allocation mechanism. The activity and / or user permission value are used as the parameters for competition to determine the secondary allocation results, making the secondary allocation mechanism more reasonable. After the secondary allocation is successful, when the original user has an operation, the first data interface is reconfigured.
[0196] In one embodiment, the steps of determining the second activity level are as follows:
[0197] Obtain the historical login information of the second user;
[0198] Analyze historical login information to obtain the number of days the user has logged in within a preset time period from the current time, the daily login time, and a list of the data in the database called when logging in every day;
[0199] Based on the data in the list, the preset call data and time comparison table, the daily login time is corrected to determine the effective time; specifically as follows: the total call time of the data in the call list is counted, and when the total call time is greater than or equal to the daily login time, the daily login time is the effective time; when the total call time is less than or equal to the daily login time, the total call time is the effective time;
[0200] The user's activity is determined based on the current user's effective time, the sum of all users' effective time, the current user's login days, and the number of days corresponding to the preset time period. The calculation formula is as follows:
[0201]
[0202] Among them, H k is the activity of the kth user in the big data platform, D k is the number of days the kth user logged in; D0 is the number of days corresponding to the preset time period; B k is the effective time of the kth user; M is the number of users on the big data platform; ε1 and ε2 are preset weights.
[0203] The working principle and beneficial effects of the above technical solution are:
[0204] The user's activity is calculated based on the number of login days and the effective login time of each day to ensure the accuracy of the activity. In addition, the effective time is introduced to correct the login time through the data called each time the user logs in, eliminating the influence of the user's inactivity time, making the activity more accurate and objective. Similarly, the first activity determination step is the same as the second activity determination step.
[0205] In one embodiment, the permission acquisition module performs the following operations:
[0206] Parse note information to obtain stroke order information and identification information;
[0207] Determining the identity of the first user based on the identification information;
[0208] Based on the identity of the first user, calling a preset verification model;
[0209] Verifying the identity of the first user based on the verification model, and obtaining the permission information of the first user when the verification passes;
[0210] The verification of the identity of the first user based on the verification model includes:
[0211] Extracting characteristic values of stroke order information and / or identification information, substituting the characteristic values into a pre-established neural network model, obtaining a verification factor, querying a preset verification table, and when the verification factor exists in the verification table, the verification is passed;
[0212] or,
[0213] Constructing a verification vector based on the stroke order information and / or the identification information, matching the verification vector with a standard vector in a pre-established verification library, and passing the verification when the matching degree between the verification vector and the standard vector is greater than a preset matching value;
[0214] The matching degree calculation formula between the verification vector and the standard vector is as follows:
[0215]
[0216] Among them, P q is the matching degree between the verification vector and the qth standard vector in the verification library; n is the dimension of the verification vector and the standard vector; a i,q is the data value of the ith dimension of the qth standard vector; b i is the data value of the i-th dimension of the validation vector;
[0217] The stroke order information includes: a stroke type, an order between stroke types, and parameter information of each stroke, or one or more combinations thereof;
[0218] The parameter information of each stroke includes: the position relationship parameters between the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke, and / or the handwriting force parameters of the starting point, the end point, and a preset number of sampling points between the starting point and the end point of each stroke;
[0219] The identification information includes: one or a combination of text, graphics, and symbols.
[0220] The working principle and beneficial effects of the above technical solution are:
[0221] First, the identity of the first user is determined by the identification information identified by the OCR (Optical Character Recognition) recognition technology of the note information, and then the verification model stored corresponding to the identity of the first user is retrieved for identity authentication. When the verification is passed, the permission information of the first user is obtained. This embodiment provides two schemes for verification. Scheme 1: Use a pre-trained neural network model to extract the characteristic values of the stroke order information and / or the identification information and input them therein to obtain the verification factor, and determine the final verification result based on the verification factor. Scheme 2: Use a pre-established verification library to construct a verification vector based on the stroke order information and / or the identification information, match the verification vector with the standard vector in the verification library, and verify through the matching result. Furthermore, the stroke order information and the identification information are integrated to improve the verification accuracy, that is, when writing text, it is also possible not to follow the standard, and realize the customization according to the first user, using the stroke order as the verification point, improving the granularity of the verification, and realizing the operability of the first user customization. In addition, considering the handwriting strength parameters between the strokes, the recognition of the same stroke of the same word written by different people is realized, and the recognition of personnel based on the stroke order information and the identification information scheme is improved.
[0222] The embodiment of the present invention also provides a data interface management system based on stroke order, OCR and artificial intelligence, including:
[0223] A first acquisition module, used to acquire first device information and first user authority information of a terminal used by a first user;
[0224] A second acquisition module, used to acquire second device information and interface authority information allowed to access the first data interface;
[0225] The third configuration module is used to construct a login vector based on the first device information and the first permission information; construct an interface vector based on the second device information and the interface permission information; calculate the similarity between the login vector and the interface vector, and configure the first data interface with the greatest similarity to the first user for use.
[0226] The working principle and beneficial effects of the above technical solution are:
[0227] The device information is introduced to participate in the configuration of the first data interface, the compatibility of the first data interface and the terminal is considered, and the rationality of the configuration of the first data interface is achieved.
[0228] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data interface management method based on stroke order, OCR and artificial intelligence, characterized in that: include: Constructing a first data interface library, prefabricating at least one first data interface, and configuring interface parameters of the first data interface, wherein the interface parameters include: one or more combinations of interface authority of the data interface, number of the data interface, data source accessible to the data interface, and transmission speed of the data interface; A second data interface is configured for the first user; the second data interface is connected only to the authority database; receiving handwriting information input by a first user through the second data interface; Based on the handwriting information, determining first user authority information of the first user; configuring a first data interface corresponding to the first user's authority information for the first user from the first data interface library, and simultaneously canceling the second data interface used by the first user and storing the second data interface in a second data interface library; Also includes: every first preset time period, configuring the second data interface for a first user who has configured the first data interface; receiving the handwriting information input by the first user through the second data interface; Verifying the identity of the first user; When the verification fails or exceeds the preset verification time, the first data interface is mapped to the list to be re-allocated; when other first users obtain the right to use the first data interface from the re-allocation list, other first data interfaces are re-configured for the first users; When the verification is passed within the preset verification time, the first user is allowed to use the first data interface.
2. The data interface management method based on stroke order, OCR and artificial intelligence as claimed in claim 1, characterized in that: When the second data interface is configured for the second user every first preset time period to receive the handwriting information input by the second user, the method further includes: receiving a secondary allocation request for the first data interface input by a second user; Obtaining a first permission value corresponding to the first data interface currently used by the second user; Compare the first authority value with the second authority value of the first data interface in the secondary allocation list, and obtain at least one selectable first data interface as a target interface; Acquire first user authority information and / or first activity of a first user who uses the target interface; Acquire second user authority information and / or second activity of the second user; Performing secondary allocation of the first data interface for the second user from the secondary allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity; The second data interface is re-allocated to the second user from the re-allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity, including: When the second authority value of the second user authority information is greater than the first authority value in the first user authority information, configuring the first data interface used by the first user in the secondary allocation list to be used by the second user; and / or, When the second activity of the second user is greater than the first activity of the first user, the first data interface used by the first user in the secondary allocation list is configured for use by the second user.
3. The data interface management method based on stroke order, OCR and artificial intelligence as claimed in claim 2, characterized in that: The steps of determining the second activity level are as follows: Obtaining historical login information of the second user; Analyze historical login information to obtain the number of days the user has logged in within a preset time period from the current time, the daily login time, and a list of the data in the database called when logging in every day; Based on the data in the list, the preset call data and time comparison table, the daily login time is corrected to determine the effective time; specifically as follows: the total call time of the data in the call list is counted, and when the total call time is greater than or equal to the daily login time, the daily login time is the effective time; when the total call time is less than or equal to the daily login time, the total call time is the effective time; The user's activity is determined based on the current user's effective time, the sum of all users' effective time, the current user's login days, and the number of days corresponding to the preset time period. The calculation formula is as follows: Among them, H k is the activity of the kth user in the big data platform, D k is the number of days the kth user logged in; D0 is the number of days corresponding to the preset time period; B k is the effective time of the kth user; M is the number of users on the big data platform; ε1 and ε2 are preset weights.
4. The data interface management method based on stroke order, OCR and artificial intelligence as claimed in claim 1, characterized in that: The step of determining first user authority information of the first user based on the handwriting information comprises: Parsing the handwriting information to obtain stroke order information and identification information; Determining the identity of the first user based on the identification information; Based on the identity of the first user, calling a preset verification model; Verifying the identity of the first user based on the verification model, and obtaining permission information of the first user when the verification passes; Wherein verifying the identity of the first user based on the verification model includes: Extracting feature values of the stroke order information and / or the identification information, substituting the feature values into a pre-established neural network model, obtaining a verification factor, querying a preset verification table, and when the verification factor exists in the verification table, the verification is passed; or, Constructing a verification vector based on the stroke order information and / or the identification information, matching the verification vector with a standard vector in a pre-established verification library, and passing the verification when the matching degree between the verification vector and the standard vector is greater than a preset matching value; The matching degree calculation formula between the verification vector and the standard vector is as follows: Among them, P q is the matching degree between the verification vector and the qth standard vector in the verification library; n is the dimension of the verification vector and the standard vector; a i,q is the data value of the ith dimension of the qth standard vector; b i is the data value of the i-th dimension of the verification vector; The stroke order information includes: a stroke type, an order between stroke types, and parameter information of each stroke, or one or more combinations thereof; The parameter information of each stroke includes: a position relationship parameter between a starting point, an end point, and a preset number of sampling points between the starting point and the end point of each stroke, and / or a handwriting force parameter of a starting point, an end point, and a preset number of sampling points between the starting point and the end point of each stroke; The identification information includes: one or a combination of text, graphics, and symbols.
5. The data interface management method based on stroke order, OCR and artificial intelligence as claimed in claim 1, characterized in that: Also includes: Acquire first device information and first user authority information of a terminal used by a first user; Acquire second device information and interface authority information allowed to access the first data interface; constructing a login vector based on the first device information and the first user authority information; constructing an interface vector based on the second device information and the interface permission information; The similarity between the login vector and the interface vector is calculated, and the first data interface with the greatest similarity is configured for use by the first user.
6. The data interface management method based on stroke order, OCR and artificial intelligence as claimed in claim 5, characterized in that: The first device information or the second device information includes: one or a combination of: device voltage, device current, models of various components in the device, device upload speed and device download speed.
7. A data interface management system based on stroke order, OCR and artificial intelligence, characterized in that: include: A construction module, used to construct a first data interface library, prefabricate at least one first data interface, and configure interface parameters of the first data interface, wherein the interface parameters include: one or more combinations of interface permissions of the data interface, number of the data interface, data source accessible to the data interface, and transmission speed of the data interface; A first configuration module is used to configure a second data interface for the first user; the second data interface is only connected to the authority database; A first input module, used for receiving handwriting information input by a first user through the second data interface; a permission acquisition module, used to determine first user permission information of the first user based on the handwriting information; A second configuration module, configured to configure a first data interface corresponding to the first user's authority information for the first user from the first data interface library, and simultaneously cancel the second data interface used by the first user and store the second data interface in a second data interface library; The invention also includes: a verification module, wherein the verification module performs the following operations: every first preset time period, configuring the second data interface for a first user who has configured the first data interface; receiving the handwriting information input by the first user through the second data interface; Verifying the identity of the first user; When the verification fails or exceeds the preset verification time, the first data interface is mapped to the list to be re-allocated; when other first users obtain the right to use the first data interface from the re-allocation list, other first data interfaces are re-configured for the first users; When the verification is passed within the preset verification time, the first user is allowed to use the first data interface.
8. The data interface management system based on stroke order, OCR and artificial intelligence as claimed in claim 7, characterized in that: Also includes: The secondary allocation module is used to perform the following operations when configuring the second data interface for the second user every first preset time period to receive the handwriting information input by the second user: receiving a secondary allocation request for the first data interface input by a second user; Obtaining a first permission value corresponding to the first data interface currently used by the second user; Compare the first authority value with the second authority value of the first data interface in the secondary allocation list, and obtain at least one selectable first data interface as a target interface; Acquire first user authority information and / or first activity of a first user who uses the target interface; Acquire second user authority information and / or second activity of the second user; Performing secondary allocation of the first data interface for the second user from the secondary allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity; The second data interface is re-allocated to the second user from the re-allocation list based on the first user authority information and / or the first activity, the second user authority information and / or the second activity, including: When the second authority value of the second user authority information is greater than the first authority value in the first user authority information, configuring the first data interface used by the first user in the secondary allocation list to be used by the second user; and / or, When the second activity of the second user is greater than the first activity of the first user, the first data interface used by the first user in the secondary allocation list is configured for use by the second user.
Citation Information
Patent Citations
Authority management method, authority distribution method and equipment
CN105760746A
Automatic access method and device based on data interface and electronic equipment
CN111324906A
Touch screen terminal, authentication method and system thereof
WO2010083747A1