Identity card identification method and device, electronic equipment and storage medium
By establishing a scene database and algorithm model library, and selecting appropriate algorithm models for identification according to the application scenarios of the ID card, the problem of ID card recognition that the existing technology is not compatible with multiple scenarios is solved, and the recognition accuracy and adaptability are improved.
Patent Information
- Application Number
- CN202410754554.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology is not compatible with the ID card recognition needs of various application scenarios, and a single security toolbox cannot meet the strict quality inspection and PS detection requirements of different scenarios, resulting in recognition errors or difficulty for business personnel to identify.
Establish a scene database and algorithm model library, and obtain the corresponding scene codes and attributes by judging the application scenarios of the ID card to be recognized, so as to select the appropriate algorithm model for identification, covering the ID card recognition requirements of various scenarios.
It improves the ability to identify ID cards, provides different quality inspection models for different scenarios, meets various ID card identification requirements, and reduces identification errors and difficulty in identification by business personnel.
Smart Images

Figure CN118609137A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of identity recognition technology, and in particular to an identity card recognition method, device, electronic equipment and storage medium. Background Art
[0002] In the field of financial technology, in order to ensure the property safety of users, ID card recognition is required in many scenarios, such as insurance purchase, online account opening, account binding, etc. In order to provide convenience to users, banks currently provide OCR ID card recognition methods to facilitate users to perform online ID card recognition.
[0003] OCR ID card recognition provides the ability to identify ID cards. However, due to the low quality of ID photos uploaded by users (such as missing edges and corners, reflections, photocopied images, and photoshopped images), recognition errors can occur or make it difficult for business personnel to identify. The industry generally provides a set of general capabilities, and image quality testing either passes or fails.
[0004] Specifically, the current approach is generally to use a security toolbox, which provides OCR services for banks. However, different business scenarios have different quality requirements for ID photos. Some scenarios require strict quality inspection requirements, some require enhanced PS testing, and some scenarios only require ID upload and registration. Therefore, a single security toolbox cannot meet the recognition requirements of multiple scenarios.
[0005] Therefore, there is an urgent need for an ID card recognition method that is compatible with various application scenarios. Summary of the Invention
[0006] The purpose of the present invention is to overcome the above-mentioned technical deficiencies and provide an ID card recognition method, device, electronic device and storage medium suitable for financial technology or other related technical fields, so as to solve the technical problem that the existing technology is not compatible with various application scenarios of ID card recognition.
[0007] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0008] A method for identifying an ID card comprises the following steps:
[0009] Establishing a scenario database and an algorithm model library, wherein the scenario database stores a plurality of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a plurality of algorithm models;
[0010] Determine an application scenario of the ID card to be identified, and obtain a scenario code corresponding to the application scenario based on the application scenario;
[0011] Based on the acquired scene code, obtaining scene attributes of the application scene;
[0012] Based on the scene attributes, a corresponding algorithm model is selected from the algorithm model library to identify the identity card to be identified, so as to obtain an identity card identification result.
[0013] In some embodiments, the scene attributes include one or more of copying, missing edges and corners, reflection, area ratio, front and back inspection, moiré, printing and copying, and mobile phone frame.
[0014] In some embodiments, the algorithm model library includes at least four models, and the four models are:
[0015] The first ID card quality inspection model is used to detect the front and back of ID card photos, missing edges and corners, reflections, and duplicate photos;
[0016] The second ID card quality inspection model is used to perform screen copy detection of ID card photos;
[0017] PS model, used to detect whether the ID card photo is a PS photo;
[0018] The enhanced photo-copying model is used for photo-copying of your ID card photo, moiré pattern, mobile phone frame, printing, copying, and icon detection.
[0019] In some embodiments, determining the application scenario of the ID card to be identified and obtaining a scenario code corresponding to the application scenario based on the application scenario includes:
[0020] Determine the application scenario of the ID card to be identified to obtain the scenario name of the ID card to be identified;
[0021] Based on the scene name, the scene database is traversed to find a scene code corresponding to the scene name.
[0022] In some embodiments, the method further comprises:
[0023] When the scene code corresponding to the scene name cannot be found in the scene database, a recognition error prompt is issued.
[0024] In some embodiments, based on the scene attributes, selecting a corresponding algorithm model from the algorithm model library to identify the identity card to be identified to obtain an identity card identification result includes:
[0025] Based on the scene attributes, the algorithm model library is traversed, an algorithm model corresponding to the scene attributes is found from the algorithm model library, and the algorithm model is used to identify the prime number identity card to be identified to obtain an identity card identification result.
[0026] In some embodiments, the method further comprises:
[0027] The scene attributes corresponding to the scene code are configured.
[0028] In a second aspect, the present invention further provides an ID card recognition device, comprising:
[0029] A database establishment module is used to establish a scenario database and an algorithm model library, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models;
[0030] A scenario code acquisition module is used to determine the application scenario of the ID card to be identified and obtain a scenario code corresponding to the application scenario based on the application scenario;
[0031] A scene attribute acquisition module, configured to obtain scene attributes of the application scene based on the acquired scene code;
[0032] The recognition module is used to select a corresponding algorithm model from the algorithm model library based on the scene attributes to identify the identity card to be identified, so as to obtain an identity card recognition result.
[0033] In a third aspect, the present invention further provides an electronic device, comprising: a processor and a memory;
[0034] The memory stores a computer program executable by the processor;
[0035] When the processor executes the computer program, the steps in the above-mentioned ID card recognition method are implemented.
[0036] In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the identity card recognition method as described above.
[0037] Compared with the prior art, the ID card recognition method, device, electronic device and storage medium provided by the present invention are applicable to the fields of financial technology or other related technologies. First, a scenario database and an algorithm model library are established, wherein the scenario database stores a number of scenario codes that uniquely correspond to application scenarios, and the scenario codes are associated with configurable scenario attributes. The algorithm model library stores a number of algorithm models. Then, the application scenario of the ID card to be identified is determined, and the scenario code corresponding to the application scenario is obtained based on the application scenario. Then, based on the obtained scenario code, the scenario attributes of the application scenario are obtained. Finally, based on the scenario attributes, a corresponding algorithm model is selected from the algorithm model library to identify the ID card to be identified, so as to obtain the ID card recognition result. By providing different quality inspection models for different scenarios, the ID card recognition requirements of various scenarios can be covered, avoiding the problem that a single algorithm cannot meet the requirements of multiple ID card recognition, and improving the ability of ID card recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of an ID card recognition method provided by an embodiment of the present invention;
[0039] Figure 2 This is a flowchart of step S200 in the ID card recognition method provided by an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of the functional modules of an ID card recognition device provided by an embodiment of the present invention;
[0041] Figure 4 It is a schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0043] In the field of financial technology, in order to ensure the property safety of users, ID card recognition is required in many scenarios, such as insurance purchase, online account opening, account binding, etc. In order to provide convenience to users, banks currently provide OCR ID card recognition methods to facilitate users to perform online ID card recognition.
[0044] OCR ID card recognition provides the ability to identify ID cards. However, due to the low quality of ID photos uploaded by users (such as missing edges and corners, reflections, photocopied images, and photoshopped images), recognition errors can occur or make it difficult for business personnel to identify. The industry generally provides a set of general capabilities, and image quality testing either passes or fails.
[0045] Specifically, the current approach is generally to use a security toolbox, which provides OCR services for banks. However, different business scenarios have different quality requirements for ID photos. Some scenarios require strict quality inspection requirements, some require enhanced PS testing, and some scenarios only require ID upload and registration. Therefore, a single security toolbox cannot meet the recognition requirements of multiple scenarios.
[0046] Based on this, the present invention provides an ID card recognition method, please refer to Figure 1 , Figure 1 This is a flow chart of an ID card recognition method provided by an embodiment of the present invention. The ID card recognition method involved in the present invention can be used in ID card recognition in the financial field to effectively recognize the face of a person located on the recognition interface. The ID card recognition method involved in the present invention can be executed by an electronic device that can perform operations such as receiving or sending data, and can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, portable computers, desktop servers, etc. Figure 1 As shown, the method specifically includes the following steps S100 to S400.
[0047] S100. Establish a scenario database and an algorithm model library, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models.
[0048] In this embodiment, a scenario database and an algorithm model library are first established, wherein the scenario database is used to store scenario codes, which are unique and correspond to a set of scenario attributes. During specific implementation, the scenario database can be configured in the background in advance, and different scenario codes can be assigned to different scenarios. The scenario attributes corresponding to the scenario codes can be customized in the background. Optionally, the number of scenario codes is 100, which are generally named according to the business scenario, using uppercase English letters and underscores. The scenario code is unique, and the database is used as a unique constraint. The algorithm model library is used to store algorithm models, which are used to detect identity cards, and each algorithm model has different detection focuses, so it can adapt to scenarios with different detection requirements.
[0049] S200: Determine the application scenario of the ID card to be identified, and obtain a scenario code corresponding to the application scenario based on the application scenario.
[0050] In this embodiment, in order to perform different types of detection for different scenarios, the application scenario of the ID card to be identified is first determined, and then the scenario code corresponding to the application scenario is searched through the associated scenario database.
[0051] S300: Obtaining scene attributes of the application scene based on the acquired scene code.
[0052] In this embodiment, after the scene code is obtained, the scene attribute corresponding to the scene code can be found through the scene code, and then the corresponding algorithm model can be selected according to the scene attribute to perform ID card recognition.
[0053] S400: Based on the scene attributes, select a corresponding algorithm model from the algorithm model library to identify the identity card to be identified, so as to obtain an identity card identification result.
[0054] In this embodiment, after obtaining the scene attributes, since each algorithm model has recognition bias, the corresponding algorithm model can be automatically selected for ID card recognition based on the scene attributes. This allows for targeted ID card recognition based on the business scenario to achieve better recognition results. For example, if scene A chooses to enable moiré verification, then when uploading an OCR image in scene A, the model algorithm for moiré-related detection will be automatically enabled.
[0055] In an embodiment of the present invention, a scenario database and an algorithm model library are first established, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models; then, the application scenario of the ID card to be identified is determined, and based on the application scenario, the scenario code corresponding to the application scenario is obtained; then, based on the obtained scenario code, the scenario attributes of the application scenario are obtained; finally, based on the scenario attributes, the corresponding algorithm model is selected from the algorithm model library to identify the ID card to be identified, so as to obtain the ID card identification result. By providing different quality inspection models for different scenarios, the ID card identification requirements of various scenarios can be covered, avoiding the problem that a single algorithm cannot meet the requirements of multiple ID card identification, thereby improving the ability of ID card identification.
[0056] In some embodiments, the scene attributes include one or more of copying, missing edges and corners, reflection, area ratio, front and back inspection, moiré, printing and copying, and mobile phone frame.
[0057] In this embodiment, the "copy" means that the photo is not taken directly at the front or back of the real ID card, but is taken at an electronic device that displays the front or back of the ID card. Usually, when handling business, a photo or copy of the real ID card is required, and some people will provide copy photos for various reasons, so these copy photos need to be identified and eliminated. Missing edges and corners means that the four corners of the ID card are not fully displayed. Reflection refers to the reflection of the ID card photo. Area ratio means that the proportion of the ID card in the entire photo is inappropriate. Front and back inspection refers to the verification of the front and back of the ID card. Moiré is a high-frequency interference stripe that appears on the photosensitive element of a digital camera or scanner and other devices. It is a colorful high-frequency irregular stripe that will appear on the picture. Print and copy means that the ID card photo is a printed and copied photo. Mobile phone frame means that the ID card photo contains the mobile phone frame.
[0058] In some embodiments, the algorithm model library includes at least four models, and the four models are:
[0059] The first ID card quality inspection model is used to detect the front and back of ID card photos, missing edges and corners, reflections, and duplicate photos;
[0060] The second ID card quality inspection model is used to perform screen copy detection of ID card photos;
[0061] PS model, used to detect whether the ID card photo is a PS photo;
[0062] The enhanced photo-copying model is used for photo-copying of your ID card photo, moiré pattern, mobile phone frame, printing, copying, and icon detection.
[0063] In some embodiments, see Figure 2 , the step S200 specifically includes:
[0064] S210, determining the application scenario of the ID card to be identified to obtain the scenario name of the ID card to be identified;
[0065] S220: Based on the scene name, traverse the scene database to find a scene code corresponding to the scene name.
[0066] In this embodiment, the current verification scenario is first determined, and then the scenario name of the current verification scenario is identified. Since the scenario code in the scenario database corresponds to the scenario name, the corresponding scenario code can be directly found through the scene name, thereby facilitating subsequent model selection.
[0067] In some embodiments, the method further comprises:
[0068] When the scene code corresponding to the scene name cannot be found in the scene database, a recognition error prompt is issued.
[0069] In this embodiment, since the general scene code covers most application scenarios, when the scene name cannot find the corresponding scene code, an error prompt message will be issued to prompt the user to re-perform ID card recognition verification.
[0070] In some embodiments, step S400 specifically includes:
[0071] Based on the scene attributes, the algorithm model library is traversed, an algorithm model corresponding to the scene attributes is found from the algorithm model library, and the algorithm model is used to identify the prime number identity card to be identified to obtain an identity card identification result.
[0072] In this embodiment, after the scene attributes are obtained, the algorithm model library is traversed, and then the algorithm model that is most suitable for the scene attributes is specifically found in the algorithm model library. The ID card is identified by calling the algorithm model, and the ID card recognition result can be quickly obtained.
[0073] In some embodiments, the method further comprises:
[0074] The scene attributes corresponding to the scene code are configured.
[0075] In this embodiment, dynamic configuration of scene attributes is supported. That is, the scene attributes corresponding to each scene code are configurable. Users can configure the scene attributes corresponding to the scene code in a targeted manner according to their own needs or business change requirements, avoiding the process of repeatedly establishing scene codes.
[0076] The technical solution provided by the present invention first establishes a scenario database and an algorithm model library, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models; then, the application scenario of the ID card to be identified is determined, and based on the application scenario, the scenario code corresponding to the application scenario is obtained; then, based on the obtained scenario code, the scenario attributes of the application scenario are obtained; finally, based on the scenario attributes, the corresponding algorithm model is selected from the algorithm model library to identify the ID card to be identified, thereby obtaining the ID card recognition result. By providing different quality inspection models for different scenarios, the ID card recognition requirements of various scenarios can be covered, avoiding the problem that a single algorithm cannot meet the requirements of multiple ID card recognition, and improving the ID card recognition capability.
[0077] Another embodiment of the present invention provides an ID card recognition device, see Figure 3 The ID card recognition device includes a database establishment module 11, a scene code acquisition module 12, a scene attribute acquisition module 13 and an identification module 14.
[0078] The database establishment module 11 is used to establish a scenario database and an algorithm model library, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models.
[0079] The scenario code acquisition module 12 is used to determine the application scenario of the ID card to be identified, and acquire the scenario code corresponding to the application scenario based on the application scenario.
[0080] The scene attribute acquisition module 13 is used to obtain the scene attribute of the application scene based on the acquired scene code.
[0081] The recognition module 14 is used to select a corresponding algorithm model from the algorithm model library based on the scene attributes to recognize the identity card to be recognized, so as to obtain an identity card recognition result.
[0082] In this embodiment, a scenario database and an algorithm model library are first established. The scenario database stores a number of scenario codes uniquely corresponding to application scenarios, each of which is associated with a configurable scenario attribute, and the algorithm model library stores a number of algorithm models. The application scenario of the ID card to be identified is then determined, and the scenario code corresponding to the application scenario is obtained based on the application scenario. The scenario attributes of the application scenario are then obtained based on the obtained scenario code. Finally, based on the scene attributes, a corresponding algorithm model is selected from the algorithm model library to identify the ID card to be identified, thereby obtaining an ID card recognition result. By providing different quality inspection models for different scenarios, the ID card recognition requirements of various scenarios can be covered, avoiding the problem of a single algorithm being unable to meet multiple ID card recognition requirements and improving the ID card recognition capability.
[0083] It should be noted that the module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which is more suitable for describing the execution process of ID card recognition than a program. For the specific implementation methods of each module, please refer to the corresponding method embodiments above, which will not be repeated here.
[0084] In some embodiments, the scene attributes include one or more of copying, missing edges and corners, reflection, area ratio, front and back inspection, moiré, printing and copying, and mobile phone frame.
[0085] In some embodiments, the algorithm model library includes at least four models, and the four models are:
[0086] The first ID card quality inspection model is used to detect the front and back of ID card photos, missing edges and corners, reflections, and duplicate photos;
[0087] The second ID card quality inspection model is used to perform screen copy detection of ID card photos;
[0088] PS model, used to detect whether the ID card photo is a PS photo;
[0089] The enhanced photo-copying model is used for photo-copying of your ID card photo, moiré pattern, mobile phone frame, printing, copying, and icon detection.
[0090] In some embodiments, the scene code acquisition module 12 is specifically configured to:
[0091] Determine the application scenario of the ID card to be identified to obtain the scenario name of the ID card to be identified;
[0092] Based on the scene name, the scene database is traversed to find a scene code corresponding to the scene name.
[0093] In some embodiments, the ID card recognition device further includes an identification error module, which is used to issue an identification error prompt when the scene code corresponding to the scene name cannot be found in the scene database.
[0094] In some embodiments, the identification module 14 is specifically configured to:
[0095] Based on the scene attributes, the algorithm model library is traversed, an algorithm model corresponding to the scene attributes is found from the algorithm model library, and the algorithm model is used to identify the prime number identity card to be identified to obtain an identity card identification result.
[0096] In some embodiments, the ID card recognition device further includes a configuration module for configuring the scene attributes corresponding to the scene code.
[0097] Another embodiment of the present invention provides an electronic device, such as Figure 4 As shown, the electronic device 10 includes:
[0098] One or more processors 110 and memory 120, Figure 4 In the description, a processor 110 is used as an example. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 4 The bus connection is taken as an example.
[0099] The processor 110 is used to implement various control logics of the electronic device 10. It can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor, or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration.
[0100] Memory 120, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions corresponding to the face recognition method in the embodiments of the present invention. Processor 110 executes the non-volatile software programs, instructions, and modules stored in memory 120 to execute various functional applications and data processing of electronic device 10, thereby implementing the face recognition method in the above-mentioned method embodiments.
[0101] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating platform and applications required for at least one function; the data storage area may store data created based on the use of the electronic device 10, etc. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely located relative to the processor 110, and these remote memories may be connected to the electronic device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0102] One or more units are stored in the memory 120, and when executed by one or more processors 110, perform the face recognition method in any of the above method embodiments, for example, perform the above described Figure 1 Method steps S100 to S400.
[0103] Another embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, which are executed by one or more processors, for example, to perform the above-described Figure 1 Method steps S100 to S400.
[0104] As an example, a computer-readable storage medium can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable ROM (EEPROM), or a flash memory. Volatile memory can include random access memory (RAM) as an external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synch link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.
[0105] In summary, the ID card recognition method, device, electronic device and storage medium provided by the present invention are applicable to the fields of financial technology or other related technologies. First, a scenario database and an algorithm model library are established, wherein the scenario database stores a number of scenario codes that uniquely correspond to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models; then, the application scenario of the ID card to be identified is determined, and the scenario code corresponding to the application scenario is obtained based on the application scenario; then, based on the obtained scenario code, the scenario attributes of the application scenario are obtained; finally, based on the scenario attributes, the corresponding algorithm model is selected from the algorithm model library to identify the ID card to be identified, so as to obtain the ID card recognition result. By providing different quality inspection models for different scenarios, the ID card recognition requirements of various scenarios can be covered, avoiding the problem that a single algorithm cannot meet the requirements of multiple ID card recognition, and improving the ability of ID card recognition.
[0106] The specific embodiments of the present invention described above do not limit the scope of protection of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A method for identifying an identity card, characterized in that: The steps include: Establishing a scenario database and an algorithm model library, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models; Determine the application scenario of the ID card to be identified, and obtain a scenario code corresponding to the application scenario based on the application scenario; Based on the acquired scene code, obtaining scene attributes of the application scene; Based on the scene attributes, a corresponding algorithm model is selected from the algorithm model library to identify the identity card to be identified, so as to obtain an identity card identification result.
2. The ID card recognition method according to claim 1, characterized in that: The scene attributes include one or more of copying, missing edges and corners, reflection, area ratio, front and back inspection, moiré, printing and copying, and mobile phone frame.
3. The ID card recognition method according to claim 1, characterized in that: The algorithm model library includes at least four models, which are: The first ID card quality inspection model is used to detect the front and back, missing edges and corners, reflections, and re-photographing of ID card photos; The second ID card quality inspection model is used to perform screen copy detection of ID card photos; PS model, used to detect whether the ID card photo is a PS photo; The enhanced photo-reproduction model is used for photo-reproduction of your ID card photo, moiré pattern, mobile phone frame, printing, copying, and icon detection.
4. The ID card recognition method according to claim 1, characterized in that: The determining the application scenario of the ID card to be identified and obtaining the scenario code corresponding to the application scenario based on the application scenario includes: Determine the application scenario of the ID card to be identified to obtain the scenario name of the ID card to be identified; Based on the scene name, the scene database is traversed to find out the scene code corresponding to the scene name.
5. The ID card recognition method according to claim 4, characterized in that: Also includes: When the scene code corresponding to the scene name cannot be found in the scene database, a recognition error prompt is issued.
6. The ID card recognition method according to claim 1, characterized in that: The selecting a corresponding algorithm model from the algorithm model library based on the scene attribute to identify the ID card to be identified, so as to obtain an ID card identification result, includes: Based on the scene attributes, the algorithm model library is traversed, an algorithm model corresponding to the scene attributes is found from the algorithm model library, and the algorithm model is used to identify the prime number identity card to be identified to obtain an identity card identification result.
7. The ID card recognition method according to claim 1, characterized in that: Also includes: The scene attributes corresponding to the scene code are configured.
8. An identity card recognition device, characterized in that: include: A database establishment module, used to establish a scenario database and an algorithm model library, wherein the scenario database stores a number of scenario codes uniquely corresponding to application scenarios, the scenario codes are associated with configurable scenario attributes, and the algorithm model library stores a number of algorithm models; A scene code acquisition module, used to determine the application scene of the ID card to be identified, and acquire the scene code corresponding to the application scene based on the application scene; A scene attribute acquisition module, used to obtain the scene attribute of the application scene based on the acquired scene code; The recognition module is used to select a corresponding algorithm model from the algorithm model library to recognize the identity card to be recognized based on the scene attributes, so as to obtain an identity card recognition result.
9. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer program executable by the processor; When the processor executes the computer program, the steps of the identity card recognition method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: include: Processor and memory; The memory stores a computer program executable by the processor; When the processor executes the computer program, the steps of the identity card recognition method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Certificate compliance identification method and device, electronic equipment and storage medium
CN115546548A
Sensitive data identification method and device, electronic equipment and storage medium
CN115618415A
