CN116861852A - Certificate machine-readable method, device, equipment and storage medium - Google Patents
Certificate machine-readable method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116861852A CN116861852A CN202310956703.0A CN202310956703A CN116861852A CN 116861852 A CN116861852 A CN 116861852A CN 202310956703 A CN202310956703 A CN 202310956703A CN 116861852 A CN116861852 A CN 116861852A
- Authority
- CN
- China
- Prior art keywords
- certificate
- encoding
- machine
- readable
- original data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012545 processing Methods 0.000 claims abstract description 22
- 230000008569 process Effects 0.000 claims abstract description 17
- 230000001419 dependent effect Effects 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a certificate machine-readable method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving original data obtained after an equipment manufacturer reads a certificate to be read, wherein the equipment manufacturer does not encode the original data; and carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application for the upper layer application to process the encoded data. The application enables the credentials to be supported by rarely used words, the types of the machine-readable credentials to be increased, and the like, and can be processed (encoded, etc.) in the corresponding system of the user without being strongly dependent on the drive upgrade of equipment manufacturers, thereby meeting the requirements of practical application.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for machine-reading certificates.
Background
At present, the reading of credentials such as identity cards basically needs to adopt equipment manufacturers (equipment manufacturers, develop drive libraries, readers and the like) approved by related departments, specifically, the equipment manufacturers read information (basically GBK codes, non-support for rare words and the like) in the credentials from chips of the credentials, such as names, sexes, nationalities, head portrait data and the like, and send the information to users, and after the users acquire the credentials information, the users perform business processing such as display, information verification and the like in corresponding systems. Because the certificate information obtained by the user is provided by the equipment manufacturer, if the certificate reading needs to be modified and upgraded (such as rarely used words are supported, the type of the machine-readable certificate is increased, and the like), the certificate reading depends on the upgrade and the reformation driven by the equipment manufacturer, and the upgrade and the reformation depending on the equipment manufacturer are difficult to meet the requirements of practical application.
Disclosure of Invention
The application mainly aims to provide a method, a device, equipment and a storage medium for machine-reading certificates, which aim to solve the technical problem that the prior certificate reading is completely driven by equipment manufacturers and is difficult to meet the requirements of practical application.
To achieve the above object, an embodiment of the present application provides a method for reading a document, including:
receiving original data obtained after an equipment manufacturer reads a certificate to be read, wherein the equipment manufacturer does not encode the original data;
and carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application for the upper layer application to process the encoded data.
Optionally, the step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application includes:
determining a target output coding format, wherein the target output coding format is set according to output requirements;
and carrying out encoding processing of the target output encoding format on the original data locally, and transmitting the encoded data obtained after encoding to an upper layer application.
Optionally, the target output coding format includes a Unicode coding format, a UTF8 coding format, and a GBK coding format, where only the GBK coding format is supported in the current equipment factory.
Optionally, the step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application includes:
analyzing target bytes used for representing the certificate type in the original data;
determining a target type corresponding to the certificate to be read according to the target byte;
determining a target structure of the target type certificate stored locally, and analyzing information in the certificate to be read according to the target structure;
and carrying out coding processing on the analyzed information, and sending coded data obtained after coding to an upper layer application.
Optionally, the structure of the respective certificate stored locally changes synchronously as the structure of the respective certificate changes.
Optionally, the document to be read may be a newly added machine-readable document type;
the step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application comprises the following steps:
and storing the structural information of the newly added machine-readable certificate type locally.
Optionally, the target output encoding format supports encoding and decoding of rarely used words.
The application also provides a certificate machine-readable device, which comprises:
the receiving module is used for receiving the original data obtained after the equipment manufacturer reads the certificate to be read, wherein the equipment manufacturer does not encode the original data;
and the sending module is used for carrying out coding processing on the original data locally and sending the coded data obtained after coding to an upper layer application so as to enable the upper layer application to process the coded data.
The application also provides a storage medium having stored thereon a document machine-readable program which when executed by a processor performs the steps of the document machine-readable method as described above.
Compared with the prior art that the certificate reading is completely dependent on the driving of an equipment manufacturer and is difficult to meet the requirement of practical application, the method and the device have the advantages that the original data obtained after the receiving equipment manufacturer reads the certificate to be read are obtained, wherein the equipment manufacturer does not encode the original data; and carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application for the upper layer application to process the encoded data. It can be understood that in the present application, the device manufacturer only needs to obtain the original data of the certificate to be read, and does not need to encode the corresponding data, and the conditions that the certificate needs to support the rarely used word, add the machine-readable certificate type, etc. are actually associated with the subsequent encoding, etc. (while in the present application, the original data is encoded locally), so that the certificate needs to support the rarely used word, add the machine-readable certificate type, etc. and can be processed (encoded, etc. in the corresponding system of the user, without depending on the driving upgrade of the device manufacturer, so as to further realize the requirements of practical application.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a method for reading a document according to the present application;
FIG. 2 is a detailed flowchart illustrating a step of determining whether the target encoding format is a preset first encoding format or a preset second encoding format according to a second embodiment of the machine-readable method of the present application;
FIG. 3 is a schematic diagram of a device architecture of a hardware operating environment involved in a method according to an embodiment of the present application;
fig. 4 is a schematic view of a scenario involved in a method according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The application provides a certificate machine-readable method, in an embodiment of the certificate machine-readable method, referring to fig. 1, the certificate machine-readable method comprises:
step S10, receiving original data obtained after an equipment manufacturer reads a certificate to be read, wherein the equipment manufacturer does not encode the original data;
and step S20, carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application so as to enable the upper layer application to process the encoded data.
In this embodiment, the document machine-readable method is applied to a document machine-readable device, the document machine-readable device belongs to a document machine-readable apparatus, and the document machine-readable apparatus belongs to a document machine-readable system.
In this embodiment, the certificate machine-readable system further includes an equipment manufacturer.
In this embodiment, the device manufacturer may include a reader (hardware device), a drive library, and the like, as shown in fig. 4.
As an example, the equipment manufacturer is an equipment manufacturer approved by the relevant department (allowing the relevant certificate to be read, etc.).
In this embodiment, the driver library of the equipment manufacturer interacts with the hardware equipment to read the information in the related certificate.
As an example, information in the identification card, such as name, gender, ethnicity, head portrait data, etc., is read from a chip in the identification card by the equipment manufacturer, and placed in an equipment manufacturer driver library, through which the user obtains the identification card information.
In the related art, the equipment manufacturer only supports GBK coding, but GBK coding does not support rarely used words (further, the user receives data of messy codes) under the strong standard of GB2022 required by people recently.
In the related art, an equipment manufacturer only supports machine-readable certificates in a fixed format, and when the types of the machine-readable certificates need to be increased, the equipment manufacturer needs to be driven and upgraded.
That is, in the present application, the technical background aimed at is:
the current reading of credentials (information in a chip) such as an identity card basically adopts equipment manufacturers approved by related departments, and the related information such as name, gender, ethnicity, head portrait data and the like is read from the chip through the interaction of a device manufacturer development driving library and hardware equipment, and after a user obtains the identity card information through the driving of the equipment manufacturers, service processing is carried out in a user system, such as the verification of the credentials information and the like in the display and transaction processes. Because the certificate information is provided by the equipment manufacturer, the conditions of rarely used word support, machine-readable certificate type addition and the like depend on upgrading and reconstruction driven by the equipment manufacturer (meanwhile, the conditions depend on codes used for text information in the reading process of the manufacturer, and most of the codes are GBK codes), and the requirements of the latest GB2022 strong standard of people on rarely used word support cannot be met.
In this embodiment, the device manufacturer only needs to obtain the original data (the original data is only a byte) of the certificate to be read, and does not need to encode the corresponding data, and the conditions that the certificate needs to support the rarely used word and add the type of the machine-readable certificate are actually associated with subsequent encoding and other processing (but the original data is locally encoded in the application), so that the certificate needs to support the rarely used word and add the type of the machine-readable certificate, and the like, and the certificate can be processed (encoded and the like) in the corresponding system of the user without depending on the driving upgrade of the device manufacturer, thereby realizing the requirement of practical application.
The method comprises the following specific steps:
step S10, receiving original data obtained after an equipment manufacturer reads a certificate to be read, wherein the equipment manufacturer does not encode the original data;
the certificate machine-readable method is applied to a certificate machine-readable device, and the certificate machine-readable device can be a PC (personal computer) or a mobile terminal.
In this embodiment, the device manufacturer reads the document to be read by its reader and then obtains the original data, which is a byte data stream.
In this embodiment, the device manufacturer does not encode the original data, but directly transmits the original data to the user.
In this embodiment, it is clear that the support of the rarely used word, the certificate structure, etc. is because the support of the encoding and decoding of the rarely used word is performed.
It should be clear that the device manufacturer etc. first reads the original data (byte data stream) in the certificate chip and then encodes and decodes the original data stream for use by the user.
In the related art, the reading of the original data, and the encoding and decoding, etc., are performed in the equipment factory.
In the related art, since the original data is read, encoded, decoded, etc. in the equipment factory, if the equipment factory recognizes the original data, if the equipment factory only supports GBK encoding, but GBK encoding cannot encode the uncommon word, the data decoded to the user is scrambled.
In the related art, since the original data is read, encoded, decoded, etc. in the equipment manufacturer, if the type of the machine-readable certificate needs to be added, or the rarely used word needs to be read, the equipment manufacturer needs to be upgraded.
In the application, because the original data is read only in the equipment manufacturer, other coding components supporting the encoding of the rarely used words can be used for encoding the read original data, and the upgrading depending on the equipment manufacturer is not needed.
And step S20, carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application so as to enable the upper layer application to process the encoded data.
In this embodiment, the original data is locally encoded at the user side.
In this embodiment, the user locally uses the Unicode encoding format, the UTF8 encoding format, the GBK encoding format, and the like to encode the original data, and sends the encoded data obtained after encoding to the upper layer application, where the current equipment factory only supports the GBK encoding format. As shown in fig. 4.
In this embodiment, the Unicode (international text coding standard, text representing rule in computer) coding format may be used for coding, in addition, the target coding format may also be variable length coding format UTF-8 (8-bit Unicode Transformation Format), where the second number of bits of each coding unit of UTF-8 is less than the first number of bits of each first coding unit of Unicode format, in this embodiment, since the second number of bits of each second coding unit of UTF-8 coding format is less than the first number of bits of each first coding unit of Unicode format, and since a text will not have too many bit lengths, coding of data (data after UTF-8 coding is also transmitted) using UTF-8 can reduce resource waste.
That is, in the present embodiment, UTF-8 is preferentially used for encoding data.
In this embodiment, when the certificate is read, the dependence on the equipment manufacturer is greatly reduced, and data and drive decoupling is realized. Under the conditions of newly-added machine-readable credentials, data structure change and the like, the system in the user can be automatically modified without factory driving modification.
Referring to fig. 2, the step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application includes:
step S21, determining a target output coding format, wherein the target output coding format is set according to output requirements;
in this embodiment, on the basis of fully supporting the reading of the rare words of the certificate, the data with different codes can be individually output, that is, the target output coding format is set according to the output requirement.
For example, if a need to encode using a Unicode encoding format is detected, the target output encoding format is determined to be the Unicode encoding format.
If a need to encode using the UTF8 encoding format is detected, the target output encoding format is determined to be the UTF8 encoding format.
In this embodiment, the target output encoding format may be determined by the user, or may be determined by another user.
And S22, carrying out encoding processing of the target output encoding format on the original data locally, and sending the encoded data obtained after encoding to an upper layer application.
In this embodiment, the encoding process of the target output encoding format is performed on the original data locally, so as to meet the personalized encoding requirement, and the encoded data obtained after encoding is sent to an upper layer application.
In this embodiment, the upper layer application may be a business application.
In this embodiment, the specific business application may be a loan application or an credit loan business, etc., which is not particularly limited.
In this embodiment, the read certificate information may be directly output for display.
The step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application comprises the following steps:
a1, analyzing target bytes used for representing the types of credentials in the original data;
in this embodiment, specifically describing the machine-readable process of the certificate, a byte data stream is obtained first, and a user first parses a target byte in the byte data stream, where the target byte is used to represent the type of the certificate.
A2, determining a target type corresponding to the certificate to be read according to the target byte;
the user side determines the target type corresponding to the certificate to be read according to the target bytes, specifically, the type of the bytes (target bytes) at the determined positions in the byte data stream, and determines the target type corresponding to the certificate to be read.
Step A3, determining a target structure of the target type certificate stored locally, and analyzing information in the certificate to be read according to the target structure;
in this embodiment, a target structure (such as a blank portion, a name portion, an address portion, etc.) of the target type document stored locally is determined, and information in the document to be read is parsed according to the target structure.
And step A4, carrying out coding processing on the analyzed information, and sending coded data obtained after coding to an upper layer application.
After obtaining the information in the certificate to be read, carrying out coding processing on the analyzed information, and sending coded data obtained after coding to an upper layer application.
Specifically, the following is a specific description taking an identity card as an example:
the identity card equipment manufacturer provides a driver and then reads the byte stream of original text information (256 bytes), head portrait information (1024 bytes) and the like in the certificate chip.
After the user system reads the returned data through the standard API, the returned data is analyzed through various certificate data storage structures provided by related departments to obtain the type of the certificate, so that the complete text information of the type of the certificate is analyzed according to the information structures of different types of the certificate, and the analyzed complete text information can be output to an upper layer application for use through various codes (including Unicode, UTF8, GBK and the like) according to different scene requirements.
Compared with the prior art that the certificate reading is completely dependent on the driving of an equipment manufacturer and is difficult to meet the requirement of practical application, the method and the device have the advantages that the original data obtained after the receiving equipment manufacturer reads the certificate to be read are obtained, wherein the equipment manufacturer does not encode the original data; and carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application for the upper layer application to process the encoded data. It can be understood that in the present application, the device manufacturer only needs to obtain the original data of the certificate to be read, and does not need to encode the corresponding data, and the conditions that the certificate needs to support the rarely used word, add the machine-readable certificate type, etc. are actually associated with the subsequent encoding, etc. (while in the present application, the original data is encoded locally), so that the certificate needs to support the rarely used word, add the machine-readable certificate type, etc. and can be processed (encoded, etc. in the corresponding system of the user, without depending on the driving upgrade of the device manufacturer, so as to further realize the requirements of practical application.
Further, based on the above embodiment, the present application provides another embodiment of the machine-readable method of credentials, in which, when the structure of the corresponding credentials changes, the structure of the corresponding credentials stored locally also changes synchronously.
In this embodiment, when the structure of the corresponding certificate changes, the structure of the corresponding certificate stored locally changes synchronously, so that the complete text information of the certificate can be accurately analyzed according to the information structure of different certificate types, and the analyzed complete text information can be output to the upper layer application for use through various codes (including Unicode, UTF8, GBK, etc.) according to different scene requirements.
The credentials to be read can be a newly added machine-readable credential type;
the step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application comprises the following steps:
and step B1, locally storing the structural information of the newly-added machine-readable certificate type.
In this embodiment, the structure information of the newly added machine-readable certificate type is also stored locally, so that a foundation is provided for the structure of the corresponding certificate stored locally to be changed synchronously when the structure of the corresponding certificate is changed.
Further, based on the above embodiment, the present application provides another embodiment of the machine-readable method for credentials, in which the target output encoding format supports encoding and decoding of rarely used words. In this embodiment, since the target output encoding format supports encoding and decoding of rarely used words, the condition of messy codes can be avoided.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present application.
The certificate machine-readable device of the embodiment of the application can be a PC, or can be terminal equipment such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 3, the credential machine-readable device can include: a processor 1001, such as a CPU, memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connected communication between the processor 1001 and a memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the credential machine-readable device can also include a target user interface, a network interface, a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like. The target user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the selectable target user interface may also include a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
It will be appreciated by those skilled in the art that the credential machine-readable device structure shown in FIG. 3 is not limiting of the credential machine-readable device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in FIG. 3, an operating system, network communication modules, and credential machine-readable programs may be included in memory 1005, which is a type of computer storage medium. An operating system is a program that manages and controls the hardware and software resources of a credential machine-readable device, supporting the execution of credential machine-readable programs and other software and/or programs. The network communication module is used to enable communication between components within the memory 1005 and other hardware and software in the credential machine-readable device.
In the credential machine-readable device shown in fig. 3, a processor 1001 is configured to execute a credential machine-readable program stored in a memory 1005 to implement the steps of the credential machine-readable method described in any one of the above.
The specific implementation of the certificate machine-readable device is basically the same as that of each embodiment of the certificate machine-readable method, and is not repeated here.
In addition, the embodiment of the application also provides a certificate machine-readable device, which comprises:
the receiving module is used for receiving the original data obtained after the equipment manufacturer reads the certificate to be read, wherein the equipment manufacturer does not encode the original data;
and the sending module is used for carrying out coding processing on the original data locally and sending the coded data obtained after coding to an upper layer application so as to enable the upper layer application to process the coded data.
Optionally, the certificate machine-readable device is configured to implement:
determining a target output coding format, wherein the target output coding format is set according to output requirements;
and carrying out encoding processing of the target output encoding format on the original data locally, and transmitting the encoded data obtained after encoding to an upper layer application.
Optionally, the target output coding format includes a Unicode coding format, a UTF8 coding format, and a GBK coding format, where only the GBK coding format is supported in the current equipment factory.
Optionally, the certificate machine-readable device is configured to implement:
analyzing target bytes used for representing the certificate type in the original data;
determining a target type corresponding to the certificate to be read according to the target byte;
determining a target structure of the target type certificate stored locally, and analyzing information in the certificate to be read according to the target structure;
and carrying out coding processing on the analyzed information, and sending coded data obtained after coding to an upper layer application.
Optionally, the structure of the respective certificate stored locally changes synchronously as the structure of the respective certificate changes.
Optionally, the document to be read may be a newly added machine-readable document type;
the certificate machine-readable device is used for realizing:
and storing the structural information of the newly added machine-readable certificate type locally.
Optionally, the target output encoding format supports encoding and decoding of rarely used words.
The specific implementation manner of the certificate machine-readable device is basically the same as that of each embodiment of the certificate machine-readable method, and is not repeated here.
The present application further provides a computer medium storing one or more programs, where the one or more programs are further executable by one or more processors to implement the steps of the above-described embodiments of the credential machine-readable method.
The expansion content of the specific implementation manners of the device and the storage medium (i.e., the computer medium) of the present application is basically the same as that of the embodiments of the machine-readable method of the certificate, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (10)
1. A method for machine-reading a document, the method comprising:
receiving original data obtained after an equipment manufacturer reads a certificate to be read, wherein the equipment manufacturer does not encode the original data;
and carrying out encoding processing on the original data locally, and sending the encoded data obtained after encoding to an upper layer application for the upper layer application to process the encoded data.
2. The method of claim 1, wherein the step of locally encoding the original data and transmitting the encoded data to an upper layer application comprises:
determining a target output coding format, wherein the target output coding format is set according to output requirements;
and carrying out encoding processing of the target output encoding format on the original data locally, and transmitting the encoded data obtained after encoding to an upper layer application.
3. The credential machine-readable method of claim 2, wherein the target output encoding format comprises a Unicode encoding format, a UTF8 encoding format, and a GBK encoding format, wherein only GBK encoding formats are supported at a current equipment factory.
4. The method of claim 1, wherein the step of locally encoding the original data and transmitting the encoded data to an upper layer application comprises:
analyzing target bytes used for representing the certificate type in the original data;
determining a target type corresponding to the certificate to be read according to the target byte;
determining a target structure of the target type certificate stored locally, and analyzing information in the certificate to be read according to the target structure;
and carrying out coding processing on the analyzed information, and sending coded data obtained after coding to an upper layer application.
5. The method of claim 1, wherein the structure of the respective certificate stored locally changes synchronously as the structure of the respective certificate changes.
6. The method of claim 1, wherein the document to be read is a newly added type of machine-readable document;
the step of locally encoding the original data and transmitting the encoded data obtained after encoding to an upper layer application comprises the following steps:
and storing the structural information of the newly added machine-readable certificate type locally.
7. The credential machine-readable method of claim 2, wherein the target output encoding format supports encoding and decoding of rarely used words.
8. A credential machine-readable device, the credential machine-readable device comprising:
the receiving module is used for receiving the original data obtained after the equipment manufacturer reads the certificate to be read, wherein the equipment manufacturer does not encode the original data;
and the sending module is used for carrying out coding processing on the original data locally and sending the coded data obtained after coding to an upper layer application so as to enable the upper layer application to process the coded data.
9. A credential machine-readable device, the device comprising: a memory, a processor, and a credential machine-readable program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the credential machine-readable method of any one of claims 1 to 7.
10. A storage medium having stored thereon a document machine-readable program which when executed by a processor performs the steps of the document machine-readable method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310956703.0A CN116861852A (en) | 2023-07-31 | 2023-07-31 | Certificate machine-readable method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310956703.0A CN116861852A (en) | 2023-07-31 | 2023-07-31 | Certificate machine-readable method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116861852A true CN116861852A (en) | 2023-10-10 |
Family
ID=88232216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310956703.0A Pending CN116861852A (en) | 2023-07-31 | 2023-07-31 | Certificate machine-readable method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116861852A (en) |
-
2023
- 2023-07-31 CN CN202310956703.0A patent/CN116861852A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10552508B2 (en) | Method and apparatus for processing a webpage | |
US8036598B1 (en) | Peer-to-peer transfer of files with back-office completion | |
US20120228374A1 (en) | Terminal, method and computer program product for interacting with a signaling tag | |
EP2242015A1 (en) | Retrieving additional content based on data within a mobile code | |
US20070138302A1 (en) | RFID tag record for service discovery of UPNP devices and services | |
JP3070555B2 (en) | Markup language document storage method and communication method | |
US10310776B2 (en) | Output method and output device for cloud printing | |
CN101889457A (en) | Multiple and multi-part message methods and systems for handling electronic message content for electronic communications devices | |
CN101116074B (en) | Generic parser for electronic devices | |
CN105141567A (en) | Interactive data processing method and system of terminal application and service end and interaction method | |
KR20130128924A (en) | Apparatus and method for charging a product in a near field communication device | |
CN106033551A (en) | Data parsing method, apparatus and system thereof | |
CN116861852A (en) | Certificate machine-readable method, device, equipment and storage medium | |
KR20130070947A (en) | Server and method for controlling voice recognition of device, and the device | |
CN114330240A (en) | PDF document analysis method and device, computer equipment and storage medium | |
CN102377793A (en) | Flash interaction method and device based on mobile communication equipment terminal | |
CN101212787A (en) | Personalized information publishing method and system | |
CN114879988B (en) | Online upgrading method and device, computer equipment and storage medium | |
CN114173154B (en) | Video processing method and system | |
US20080176587A1 (en) | System and a method for sending digital content to a mobile device | |
KR101066621B1 (en) | Method for providing or using a font data, font provide apparatus and communication terminal using a font data | |
CN108848178B (en) | Data downloading method and device | |
KR20060133436A (en) | System and method for operating personalized information, mobile devices, operating machine and recording medium | |
CN113157277B (en) | Host file processing method and device | |
CN111200551B (en) | RCS public message processing method, mobile terminal and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |