CN111178238A - Certificate testing method, device, equipment and computer readable storage medium - Google Patents

Certificate testing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111178238A
CN111178238A CN201911373722.0A CN201911373722A CN111178238A CN 111178238 A CN111178238 A CN 111178238A CN 201911373722 A CN201911373722 A CN 201911373722A CN 111178238 A CN111178238 A CN 111178238A
Authority
CN
China
Prior art keywords
certificate
test
type
picture
credential
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
Application number
CN201911373722.0A
Other languages
Chinese (zh)
Inventor
郑永隆
徐斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Weikun Shanghai Technology Service Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN201911373722.0A priority Critical patent/CN111178238A/en
Publication of CN111178238A publication Critical patent/CN111178238A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/418Document matching, e.g. of document images

Abstract

The invention relates to the technical field of image processing, and discloses a certificate testing method, a certificate testing device, certificate testing equipment and a computer readable storage medium, wherein the method comprises the following steps: when detecting that a terminal carries out certificate testing, determining a testing certificate type corresponding to the certificate testing, and detecting whether the terminal receives a first testing certificate matched with the testing certificate type; if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type; and scanning the second test certificate to acquire target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test. The technical problem of low testing efficiency when certificate testing is carried out in the prior art is solved.

Description

Certificate testing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for testing certificates.
Background
With the widespread use of the OCR (Optical Character Recognition) technology, there are a large number of scenes in the APP to perform automatic certificate Recognition (id card, bank card, passport, port and australian pass, typhoon certificate, etc.), which brings a certain difficulty to the testing work, because OCR scanning is basically implemented in a manner of embedding a third party SDK (short for software development Kit, chinese), it is difficult to perform mock (test) on an interface or other layer, which requires a tester to prepare a large number of test certificates, and it is inevitable to reveal personal privacy when performing the test, thereby resulting in low testing efficiency when the tester performs the certificate test.
Disclosure of Invention
The invention mainly aims to provide a certificate testing method, a certificate testing device, certificate testing equipment and a computer storage medium, and aims to solve the technical problem of low testing efficiency in certificate testing in the prior art.
In order to achieve the above object, the present invention provides a credential testing method, comprising:
when detecting that a terminal carries out certificate testing, determining a testing certificate type corresponding to the certificate testing, and detecting whether the terminal receives a first testing certificate matched with the testing certificate type;
if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type;
and scanning the second test certificate to acquire target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test.
Optionally, the step of generating a second test certificate based on the test certificate type includes:
detecting whether the terminal receives certificate related information matched with the test certificate type;
if receiving certificate related information matched with the test certificate type, matching the certificate related information with preset certificate related information;
and if not, adjusting the information of the certificate related information according to the preset certificate related information until the adjusted certificate related information is matched with the preset certificate related information, and generating a second test certificate based on the adjusted certificate related information, wherein the information adjustment comprises the information compensation of the certificate related information.
Optionally, the step of generating a second test certificate based on the adjusted certificate related information includes:
and acquiring a certificate template corresponding to the test certificate type, and placing the adjusted certificate related information into the certificate template to acquire a second test certificate.
Optionally, the step of obtaining a certificate template corresponding to the test certificate type includes:
acquiring a plurality of historical certificate pictures in a database of the terminal, and removing content of certificate information of the historical certificate pictures to acquire blank templates;
determining the certificate type corresponding to each blank template, and matching the test certificate type with each certificate type;
and if a target certificate type matched with the test certificate type exists in each certificate type, taking a blank template corresponding to the target certificate type as a certificate template corresponding to the test certificate type.
Optionally, after the step of detecting whether the terminal receives the certificate related information matching the test certificate type, the method includes:
and if the certificate related information matched with the test certificate type is not received, the terminal generates random certificate information matched with the test certificate type, and places the random certificate information in a certificate template corresponding to the test certificate type to acquire a second test certificate.
Optionally, the random credential information includes a customized credential picture,
the step of generating the random certificate information matched with the test certificate type by the terminal comprises the following steps:
acquiring a plurality of certificate pictures in the terminal, and sequentially detecting whether each certificate picture is matched with a preset certificate picture;
and if the certificate picture matched with the preset certificate picture exists in each certificate picture, taking the certificate picture matched with the preset certificate picture as the customized certificate picture.
Optionally, after the step of sequentially detecting whether each certificate picture is matched with a preset certificate picture, the method includes:
if no certificate picture matched with a preset certificate picture exists in each certificate picture, acquiring an original picture in the terminal, customizing the original picture, and taking the original picture subjected to the customizing as the customized certificate picture.
In addition, to achieve the above object, the present invention also provides a credential testing device including:
the detection module is used for determining the type of the test certificate corresponding to the certificate test when detecting that the terminal carries out the certificate test, and detecting whether the terminal receives a first test certificate matched with the type of the test certificate;
the generation module is used for generating a second test certificate based on the type of the first test certificate if the terminal does not receive the first test certificate matched with the type of the test certificate;
and the scanning module is used for scanning the second test certificate to acquire target certificate information in the second test certificate and inputting the target certificate information into the terminal to complete the certificate test.
In addition, in order to realize the aim, the invention also provides certificate testing equipment;
the credential testing device comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the credential testing method as described above.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium;
the computer readable storage medium has stored thereon a computer program which, when executed by a processor, carries out the steps of the credential testing method as described above.
The method comprises the steps that when a terminal is detected to carry out certificate testing, the type of a test certificate corresponding to the certificate testing is determined, and whether the terminal receives a first test certificate matched with the type of the test certificate is detected; if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type; and scanning the second test certificate to acquire target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test. Through when carrying out certificate test at the terminal, and when the terminal did not receive the first test certificate that matches with test certificate type, can generate the second test certificate according to test certificate type to carry out certificate test in typing the target certificate information of second test certificate into the terminal, thereby when guaranteeing that certificate test goes on effectively, avoided revealing of personal privacy, and also avoided not having the phenomenon emergence of carrying out certificate test owing to test certificate, improved the efficiency of software testing of certificate test.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a credential testing method of the present invention;
FIG. 3 is a functional block diagram of the credential testing device of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention is certificate testing equipment.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the terminal device is moved to the ear. Of course, the terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a credential test program therein.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be configured to invoke the credential test program stored in memory 1005 and perform the following operations:
when detecting that a terminal carries out certificate testing, determining a testing certificate type corresponding to the certificate testing, and detecting whether the terminal receives a first testing certificate matched with the testing certificate type;
if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type;
and scanning the second test certificate to acquire target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test.
Referring to fig. 2, the present invention provides a credential testing method, which in an embodiment of the credential testing method includes the steps of:
step S10, when detecting that the terminal carries out certificate testing, determining the testing certificate type corresponding to the certificate testing, and detecting whether the terminal receives a first testing certificate matched with the testing certificate type;
when detecting that the user needs to perform the certificate test through the terminal, the user can determine what certificate test the user needs to perform, that is, the type of the test certificate of the certificate test, such as an identity card certificate test, a passport test, a bank card test, and the like. After the test certificate type is determined, whether a certificate matched with the test certificate type is received in the terminal is detected, namely whether a first test certificate is received is detected. When the first test certificate is received in the terminal found through judgment, the first test certificate can be directly subjected to certificate test, but when the first test certificate is not received in the terminal found through judgment, the corresponding certificate can be directly generated according to the type of the test certificate, so that a user can carry out corresponding certificate test, and the requirements of the user are met. The certificate testing needs to simulate the scene of a real user when performing, for example, OCR scanning of a certificate, such as performing OCR scanning of a certificate in a dark scene, or performing OCR scanning of a certificate under light irradiation, and the like.
Step S20, if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type;
when the first test certificate matched with the test certificate type is not received in the terminal through judgment, a second test certificate can be generated according to the test certificate type, namely a blank template of the certificate to be acquired is determined according to the certificate type, and then certificate related information is input in the blank template, so that the second test certificate is generated. For example, when the type of the certificate is an identity card, a blank template picture of the identity card may be obtained in the terminal, and then the related information of each certificate may be input in the blank template, so as to generate the identity card and certificate picture required by the user. When the second test certificate is acquired, the second test certificate needs to be scanned so as to acquire certificate information of the second test certificate, and thus the certificate test is completed.
When the terminal generates a second test certificate through the test certificate type, a blank certificate template picture associated with the test certificate type needs to be acquired first, and whether each certificate related information matched with the test certificate type and input by a user is received or not is detected. When the certificate related information matched with the test certificate type is found through judgment, the integrity of the acquired certificate related information needs to be determined, namely the condition for generating a second test certificate is just met when the certificate related information is filled in a blank certificate template. When the received related information of the certificate is found to be incomplete through judgment, the information is supplemented according to the acquired related information of the certificate, for example, when the identity card needs to be manufactured, only the identity card number is acquired at the moment, and other information (such as information of birth year, month, address and the like) matched with the identity card number is deduced according to the identity card number when other information is not acquired, and the other information and the identity card number are filled into a blank identity card template to complete the generation of the second test certificate. Of course, if the certificate related information is complete, all the certificate related information can be directly filled in the blank certificate template, so that the second test certificate meeting the requirements of the user can be generated. However, when the terminal finds that the related information of each certificate matched with the test certificate type is not received through judgment, the terminal can automatically generate the random certificate information matched with the test type and can automatically place the random certificate information in the certificate template corresponding to the test certificate type to generate a second test certificate. It should be noted that, when acquiring the random certificate information, the random certificate information includes a customized certificate picture associated with the certificate template, and the acquisition of the customized certificate picture may be to acquire each stored certificate picture in the terminal, and compare the certificate pictures with a preset certificate picture (the preset certificate picture may be a picture matched with the certificate template set in advance by the user) in sequence, and when the certificate picture matched with the preset certificate picture is found to exist, the certificate picture may be directly called to the certificate template so as to generate the second test certificate. However, when the certificate picture which is not matched with the preset certificate picture is found to exist through judgment, an original picture is obtained from the terminal (the original picture can be any picture obtained randomly from the terminal firstly, then whether the picture is matched with the certificate template is determined, if the picture is matched with the certificate template, the picture is directly used as the original picture, if the picture is not matched with the certificate template, a new picture in the terminal is obtained until the picture is matched with the certificate template, then customization processing (such as trimming picture size, brightness and the like) is carried out on the original picture according to the requirements of the certificate template, so that the customized certificate picture is obtained, and the customized certificate picture is placed in the certificate template so as to generate a second test certificate. The certificate template acquisition mode can be blank template pictures of various certificates placed in the terminal in advance by a user, when the certificate template needs to be applied, the blank template pictures are directly acquired in each blank template, or historical certificate template information of each finished certificate test is acquired in a historical record of the terminal, and the historical certificate template information is selected according to the certificate template required by the current certificate test. The blank template may be obtained by first obtaining each real certificate photo, performing content removal processing (such as PS) on each real certificate photo, and erasing information content in the real certificate photo to generate a blank template, for example, obtaining a real id card photo, and erasing information such as name and address thereon to obtain a template, which is a blank template.
It should be further noted that after receiving the certificate related information matched with the test certificate type, the certificate related information needs to be matched with preset certificate related information in the terminal, if the certificate related information does not match with the preset certificate related information, it can be proved that the certificate related information acquired by the terminal is incomplete, the certificate related information can be automatically supplemented according to the certificate rules corresponding to the preset certificate related information and the certificate related information, and after the certificate related information is supplemented, it can be considered that the certificate related information after the information is supplemented is matched with the preset certificate related information, and a second test certificate can be generated according to the certificate related information after the information is supplemented.
And step S30, scanning the second test certificate to obtain target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test.
When the second test certificate is successfully scanned through judgment, the target certificate information (certificate information required by certificate testing) in the second test certificate can be directly extracted according to the scanning result, and the acquired target certificate information is recorded into the terminal so as to complete certificate testing. However, if the scanning is not successful after judgment and the scanning is not successful within the preset times, a new test certificate can be generated again according to the type of the test certificate and scanning can be performed again until the scanning is successful.
In this embodiment, when detecting that a terminal performs a certificate test, determining a test certificate type corresponding to the certificate test, and detecting whether the terminal receives a first test certificate matching the test certificate type; if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type; and scanning the second test certificate to acquire target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test. Through when carrying out certificate test at the terminal, and when the terminal did not receive the first test certificate that matches with test certificate type, can generate the second test certificate according to test certificate type to carry out certificate test in typing the target certificate information of second test certificate into the terminal, thereby when guaranteeing that certificate test goes on effectively, avoided revealing of personal privacy, and also avoided not having the phenomenon emergence of carrying out certificate test owing to test certificate, improved the efficiency of software testing of certificate test.
Further, a second embodiment of the method for testing a document of the present invention is provided on the basis of the first embodiment of the present invention, which is the step S20 of the first embodiment of the present invention, and a refinement of the step of generating a second test document based on the type of the test document includes:
step a, detecting whether the terminal receives certificate related information matched with the test certificate type;
when the terminal does not receive the first test certificate matching the test certificate type, it needs to first detect whether the terminal receives the certificate related information matching the test certificate type (for example, when the test certificate type is an identity card, the certificate related information may be a name, an address, a date of birth, etc.). When the terminal receives the certificate related information matched with the test certificate type through judgment, the integrity of the acquired certificate related information needs to be determined, namely the condition for generating a second test certificate is just met when the certificate related information is filled in the blank certificate template. When the received related information of the certificate is found to be incomplete through judgment, the information is supplemented according to the acquired related information of the certificate, for example, when the identity card needs to be manufactured, only the identity card number is acquired at the moment, and other information (such as information of birth year, month, address and the like) matched with the identity card number is deduced according to the identity card number when other information is not acquired, and the other information and the identity card number are filled into a blank identity card template to complete the generation of the second test certificate. Of course, if the certificate related information is complete, all the certificate related information can be directly filled in the blank certificate template, so that the second test certificate meeting the requirements of the user can be generated.
C, if receiving certificate related information matched with the test certificate type, matching the certificate related information with preset certificate related information;
when the terminal is judged to receive the certificate related information matched with the test certificate type, the certificate related information needs to be matched with the preset certificate related information in the terminal system, if the certificate related information is matched with the preset certificate related information in the terminal system, the acquired certificate related information can be considered to be complete, and the certificate related information can be supplemented into the certificate template corresponding to the test certificate to acquire a second test certificate. However, if the certificate information is not matched, the certificate related information needs to be adjusted, and the second test certificate is acquired according to the adjusted certificate related information.
And d, if not, adjusting the information of the certificate related information according to the preset certificate related information until the adjusted certificate related information is matched with the preset certificate related information, and generating a second test certificate based on the adjusted certificate related information, wherein the information adjustment comprises the information compensation of the certificate related information.
When the certificate related information is found to be not matched with the preset certificate related information through judgment, the certificate related information acquired by the terminal can be proved to be incomplete, the automatic information complementing (namely information adjustment) can be performed on the certificate related information according to the certificate rule corresponding to the preset certificate related information and the preset certificate related information, the certificate related information after information complementing can also be considered to be matched with the preset certificate related information after the certificate related information is complemented, and a second test certificate can be generated according to the certificate related information after the information complementing, wherein the information adjustment comprises the complementing of the certificate related information.
In this embodiment, the certificate related information is matched with the preset certificate related information, and when the certificate related information is not matched with the preset certificate related information, the certificate related information is adjusted according to the preset certificate related information, so that a second test certificate is generated according to the adjusted certificate related information, and the accuracy of the obtained second test certificate is ensured.
Specifically, the step of generating a second test certificate based on the adjusted certificate related information includes:
and e, acquiring a certificate template corresponding to the test certificate type, and placing the adjusted certificate related information into the certificate template to acquire a second test certificate.
After the adjusted certificate related information is acquired, a certificate template corresponding to the type of the test certificate is acquired in the terminal, and the adjusted certificate related information is placed in the certificate template to generate a second test certificate. The certificate template acquisition mode can be blank template pictures of various certificates placed in the terminal system in advance by a user, and when the certificate template needs to be applied, the certificate template acquisition mode can directly acquire the blank templates, and can also be a mode of acquiring historical certificate template information of various certificates which are tested in the historical records of the terminal system, and performing swiping selection on the historical certificate template information according to the certificate template which is required by the current certificate test. The blank template may be obtained by first obtaining each real certificate photo, performing content removal processing (such as PS) on each real certificate photo, and erasing information content in the real certificate photo to generate a blank template, for example, obtaining a real id card photo, and erasing information such as name and address thereon to obtain a template, which is a blank template.
In this embodiment, the second test certificate is acquired by acquiring the certificate template and placing the adjusted certificate related information in the certificate template, so that the accuracy of the acquired second test certificate is ensured.
Specifically, the step of obtaining the certificate template corresponding to the test certificate type includes:
step w, acquiring a plurality of historical certificate pictures in a database of the terminal, and removing content of certificate information of each historical certificate picture to acquire each blank template;
when acquiring a certificate template corresponding to a test certificate type, it is necessary to acquire a plurality of history certificate pictures in a database of a terminal, perform content removal processing on certificate information of the history certificate pictures, such as ps technology, and use the history certificate pictures subjected to the content removal processing as a blank template. The content removing processing mode is to delete the non-fixed item content in the history certificate picture based on the certificate rule corresponding to the history certificate picture and keep the fixed item content. For example, assume that the certificate information in a certain historical certificate picture is name: xiaoming and Job number: 123. and (4) department: and the X department only keeps the name, the job number and the department character after removing the content of the certificate information of the historical certificate picture, namely deletes the Xiaoming, 123 and the X department.
Y, determining the certificate type corresponding to each blank template, and matching the test certificate type with each certificate type;
after each blank template is obtained, the certificate types corresponding to the blank templates are required to be detected and determined, and whether the certificate types corresponding to the blank templates are identity cards, pass cards and the like is determined. Then the test certificate types and the certificate types of the blank templates are matched in sequence.
And p, if a target certificate type matched with the test certificate type exists in each certificate type, taking a blank template corresponding to the target certificate type as a certificate template corresponding to the test certificate type.
When the target certificate type matched with the test certificate type exists in all the certificate types through judgment, the blank template corresponding to the target certificate type can be directly used as the certificate template corresponding to the test certificate type. However, when there is no target certificate type matching the test certificate type in each certificate type, each real certificate photo can be directly acquired, and content removal processing (such as PS) is performed on each real certificate photo to erase information content in the real certificate photo so as to generate a blank template.
In this embodiment, each blank template is obtained according to each historical certificate picture, and the certificate template corresponding to the test certificate type is obtained from the blank templates, so that the accuracy of the obtained certificate template is ensured.
Further, after the step of detecting whether the terminal receives the certificate related information matched with the test certificate type, the method includes:
and f, if the certificate related information matched with the test certificate type is not received, the terminal generates random certificate information matched with the test certificate type, and places the random certificate information in a certificate template corresponding to the test certificate type to acquire a second test certificate.
When the terminal does not receive the certificate related information matched with the test certificate type through judgment, the terminal can automatically generate each piece of random certificate information matched with the test type and automatically place each piece of random certificate information in a certificate template corresponding to the test certificate type to generate a second test certificate. The random certificate information can be certificate information automatically generated by the terminal according to a certificate rule corresponding to the test certificate type.
In this embodiment, when the terminal does not receive the certificate related information, the random certificate information is automatically generated and placed in the certificate template to obtain the second test certificate, thereby ensuring that the terminal performs the certificate test normally.
Specifically, the step of generating the random certificate information matched with the test certificate type by the terminal includes:
step h, acquiring a plurality of certificate pictures in the terminal, and sequentially detecting whether each certificate picture is matched with a preset certificate picture;
it should be noted that, in this embodiment, the random certificate information includes a customized certificate picture.
When the terminal acquires the random certificate information matched with the test certificate type, a customized certificate picture in the random certificate information needs to be acquired, and the acquisition of the customized certificate picture can be realized by acquiring a plurality of stored certificate pictures in the terminal, and sequentially matching each certificate picture with a preset certificate picture so as to detect whether the customized certificate picture matched with the preset certificate picture exists in each certificate picture or not, and executing different operations based on different detection results. The preset certificate picture can be a picture matched with a preset certificate target and set in advance by a user. The certificate picture can be stored in the terminal in advance, for example, a picture which has been subjected to test application before the current certificate test.
And k, if the certificate picture matched with the preset certificate picture exists in each certificate picture, taking the certificate picture matched with the preset certificate picture as a customized certificate picture.
And when the customized certificate picture matched with the preset certificate picture is found in each certificate picture through judgment, the customized certificate picture can be obtained from each certificate picture so that the terminal can generate a second test certificate according to the customized certificate picture.
In this embodiment, when it is determined that the certificate picture in the terminal matches the preset certificate picture, the certificate picture matching the preset certificate picture is used as the customized certificate picture, so that the effectiveness of obtaining the customized certificate picture is ensured.
Further, after the step of detecting in proper order whether each certificate picture matches with preset certificate picture, include:
and step x, if no certificate picture matched with a preset certificate picture exists in each certificate picture, acquiring an original picture in the terminal, customizing the original picture, and taking the original picture subjected to the customizing as the customized certificate picture.
And when the customized certificate picture matched with the preset certificate picture does not exist in each certificate picture through judgment, obtaining an original picture in the terminal, customizing the original picture according to the requirement of the certificate template (such as trimming the size, brightness and the like of the picture), taking the customized original picture as the customized certificate picture, and placing the customized certificate picture in the certificate template to generate a second test certificate. The original picture can be any picture randomly acquired in the terminal in advance, whether the picture is matched with the certificate template or not is determined, and if the picture is matched with the certificate template, the picture is directly used as the original picture. And if not, acquiring a new picture in the terminal again until the picture is matched with the certificate template, and taking the picture matched with the certificate template as an original picture.
In this embodiment, when it is determined that the certificate picture in the terminal is not matched with the preset certificate picture, the original picture in the terminal is acquired, and the original picture is subjected to customization processing to acquire the customized certificate picture, so that timeliness of acquiring the customized certificate picture is ensured.
In addition, referring to fig. 3, an embodiment of the present invention further provides a credential testing device, including:
the detection module is used for determining the type of the test certificate corresponding to the certificate test when detecting that the terminal carries out the certificate test, and detecting whether the terminal receives a first test certificate matched with the type of the test certificate;
the generation module is used for generating a second test certificate based on the type of the first test certificate if the terminal does not receive the first test certificate matched with the type of the test certificate;
and the scanning module is used for scanning the second test certificate to acquire target certificate information in the second test certificate and inputting the target certificate information into the terminal to complete the certificate test.
Further, the generation module is further configured to:
detecting whether the terminal receives certificate related information matched with the test certificate type;
if receiving certificate related information matched with the test certificate type, matching the certificate related information with preset certificate related information;
and if not, adjusting the information of the certificate related information according to the preset certificate related information until the adjusted certificate related information is matched with the preset certificate related information, and generating a second test certificate based on the adjusted certificate related information, wherein the information adjustment comprises the information compensation of the certificate related information.
Further, the generation module is further configured to:
and acquiring a certificate template corresponding to the test certificate type, and placing the adjusted certificate related information into the certificate template to acquire a second test certificate.
Further, the generation module is further configured to:
acquiring a plurality of historical certificate pictures in a database of the terminal, and removing content of certificate information of the historical certificate pictures to acquire blank templates;
determining the certificate type corresponding to each blank template, and matching the test certificate type with each certificate type;
and if a target certificate type matched with the test certificate type exists in each certificate type, taking a blank template corresponding to the target certificate type as a certificate template corresponding to the test certificate type.
Further, the generation module is further configured to:
and if the certificate related information matched with the test certificate type is not received, the terminal generates random certificate information matched with the test certificate type, and places the random certificate information in a certificate template corresponding to the test certificate type to acquire a second test certificate.
Further, the random credential information includes a customized credential picture, and the generation module is further configured to:
acquiring a plurality of certificate pictures in the terminal, and sequentially detecting whether each certificate picture is matched with a preset certificate picture;
and if the certificate picture matched with the preset certificate picture exists in each certificate picture, taking the certificate picture matched with the preset certificate picture as the customized certificate picture.
Further, the generation module is further configured to:
if the certificate pictures matched with the preset certificate pictures do not exist in the certificate pictures, acquiring the original pictures in the terminal, customizing the original pictures, and taking the original pictures subjected to the customizing as the customized certificate pictures.
The steps implemented by each functional module of the credential testing device can refer to each embodiment of the credential testing method of the present invention, and are not described herein again.
The invention also provides a credential testing device comprising: the certificate testing system comprises a memory, a processor and a certificate testing program stored on the memory; the processor is used for executing the certificate testing program to realize the steps of the embodiments of the certificate testing method.
The present invention also provides a computer readable storage medium having one or more programs stored thereon that are also executable by one or more processors for performing the steps of the various embodiments of credential testing methods described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the credential testing method described above, and is not described herein again.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A credential testing method, comprising the steps of:
when detecting that a terminal carries out certificate testing, determining a testing certificate type corresponding to the certificate testing, and detecting whether the terminal receives a first testing certificate matched with the testing certificate type;
if the terminal does not receive the first test certificate matched with the test certificate type, generating a second test certificate based on the test certificate type;
and scanning the second test certificate to acquire target certificate information in the second test certificate, and inputting the target certificate information into the terminal to complete the certificate test.
2. The credential testing method of claim 1, wherein the step of generating a second test credential based on the test credential type comprises:
detecting whether the terminal receives certificate related information matched with the test certificate type;
if receiving certificate related information matched with the test certificate type, matching the certificate related information with preset certificate related information;
and if not, adjusting the information of the certificate related information according to the preset certificate related information until the adjusted certificate related information is matched with the preset certificate related information, and generating a second test certificate based on the adjusted certificate related information, wherein the information adjustment comprises the information compensation of the certificate related information.
3. The credential testing method of claim 2, wherein the step of generating a second test credential based on the adjusted credential-related information comprises:
and acquiring a certificate template corresponding to the test certificate type, and placing the adjusted certificate related information into the certificate template to acquire a second test certificate.
4. The credential testing method of claim 3, wherein the step of obtaining a credential template corresponding to the test credential type comprises:
acquiring a plurality of historical certificate pictures in a database of the terminal, and removing content of certificate information of the historical certificate pictures to acquire blank templates;
determining the certificate type corresponding to each blank template, and matching the test certificate type with each certificate type;
and if a target certificate type matched with the test certificate type exists in each certificate type, taking a blank template corresponding to the target certificate type as a certificate template corresponding to the test certificate type.
5. The credential testing method of claim 2, wherein the step of detecting whether the terminal receives credential-related information that matches the test credential type is followed by:
and if the certificate related information matched with the test certificate type is not received, the terminal generates random certificate information matched with the test certificate type, and places the random certificate information in a certificate template corresponding to the test certificate type to acquire a second test certificate.
6. The method of claim 5, wherein the random credential information includes a customized credential picture,
the step of generating the random certificate information matched with the test certificate type by the terminal comprises the following steps:
acquiring a plurality of certificate pictures in the terminal, and sequentially detecting whether each certificate picture is matched with a preset certificate picture;
and if the certificate picture matched with the preset certificate picture exists in each certificate picture, taking the certificate picture matched with the preset certificate picture as the customized certificate picture.
7. The method of claim 6, wherein the step of sequentially detecting whether each of the credential images matches a predetermined credential image comprises:
if no certificate picture matched with a preset certificate picture exists in each certificate picture, acquiring an original picture in the terminal, customizing the original picture, and taking the original picture subjected to the customizing as the customized certificate picture.
8. A credential testing device, the credential testing device comprising:
the detection module is used for determining the type of the test certificate corresponding to the certificate test when detecting that the terminal carries out the certificate test, and detecting whether the terminal receives a first test certificate matched with the type of the test certificate;
the generation module is used for generating a second test certificate based on the type of the first test certificate if the terminal does not receive the first test certificate matched with the type of the test certificate;
and the scanning module is used for scanning the second test certificate to acquire target certificate information in the second test certificate and inputting the target certificate information into the terminal to complete the certificate test.
9. A credential testing device, the credential testing device comprising: a memory, a processor, and a credential test program stored on the memory and executable on the processor, the credential test program when executed by the processor implementing the steps of the credential test method as recited in any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a credential testing program that, when executed by a processor, performs the steps of the credential testing method as recited in any one of claims 1 to 7.
CN201911373722.0A 2019-12-25 2019-12-25 Certificate testing method, device, equipment and computer readable storage medium Pending CN111178238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911373722.0A CN111178238A (en) 2019-12-25 2019-12-25 Certificate testing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911373722.0A CN111178238A (en) 2019-12-25 2019-12-25 Certificate testing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111178238A true CN111178238A (en) 2020-05-19

Family

ID=70646485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911373722.0A Pending CN111178238A (en) 2019-12-25 2019-12-25 Certificate testing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111178238A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050076295A1 (en) * 2003-10-03 2005-04-07 Simske Steven J. System and method of specifying image document layout definition
US20100017848A1 (en) * 2008-07-16 2010-01-21 International Business Machines Corporation Verifying certificate use
US20120281077A1 (en) * 2009-11-10 2012-11-08 Icar Vision Systems S L Method and system for reading and validating identity documents
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN108960223A (en) * 2018-05-18 2018-12-07 北京大账房网络科技股份有限公司 The method for automatically generating voucher based on bill intelligent recognition
CN109359647A (en) * 2018-10-16 2019-02-19 翟红鹰 Identify the method, equipment and computer readable storage medium of a variety of certificates
CN109460226A (en) * 2018-11-26 2019-03-12 深圳乐信软件技术有限公司 Test certificate image generation method, device, equipment and storage medium
CN109544089A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 The method, apparatus and computer equipment of electronic certificate are established based on image recognition
CN110134930A (en) * 2019-04-17 2019-08-16 深圳壹账通智能科技有限公司 Electronic contract management method, device, computer equipment and storage medium
CN110287971A (en) * 2019-05-22 2019-09-27 平安银行股份有限公司 Data verification method, device, computer equipment and storage medium
CN110598826A (en) * 2019-09-03 2019-12-20 数字广东网络建设有限公司 Electronic certificate classified display method, device and system and computer equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050076295A1 (en) * 2003-10-03 2005-04-07 Simske Steven J. System and method of specifying image document layout definition
US20100017848A1 (en) * 2008-07-16 2010-01-21 International Business Machines Corporation Verifying certificate use
US20120281077A1 (en) * 2009-11-10 2012-11-08 Icar Vision Systems S L Method and system for reading and validating identity documents
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN108960223A (en) * 2018-05-18 2018-12-07 北京大账房网络科技股份有限公司 The method for automatically generating voucher based on bill intelligent recognition
CN109544089A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 The method, apparatus and computer equipment of electronic certificate are established based on image recognition
CN109359647A (en) * 2018-10-16 2019-02-19 翟红鹰 Identify the method, equipment and computer readable storage medium of a variety of certificates
CN109460226A (en) * 2018-11-26 2019-03-12 深圳乐信软件技术有限公司 Test certificate image generation method, device, equipment and storage medium
CN110134930A (en) * 2019-04-17 2019-08-16 深圳壹账通智能科技有限公司 Electronic contract management method, device, computer equipment and storage medium
CN110287971A (en) * 2019-05-22 2019-09-27 平安银行股份有限公司 Data verification method, device, computer equipment and storage medium
CN110598826A (en) * 2019-09-03 2019-12-20 数字广东网络建设有限公司 Electronic certificate classified display method, device and system and computer equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S. KUNDRA等: "The study of recent technologies used in E-passport system", 2014 IEEE GLOBAL HUMANITARIAN TECHNOLOGY CONFERENCE - SOUTH ASIA SATELLITE (GHTC-SAS), pages 141 - 146 *
刘春平等: "复杂背景下多证件快速识别系统的研究与实现", 现代计算机(专业版), vol. 2019, no. 11, pages 104 - 108 *

Similar Documents

Publication Publication Date Title
US10693871B2 (en) Account information obtaining method, terminal, server and system
CN108664364B (en) Terminal testing method and device
US20160112422A1 (en) Information processing system and device control method
US20150227946A1 (en) Generating barcode and authenticating based on barcode
US11004163B2 (en) Terminal-implemented method, server-implemented method and terminal for acquiring certification document
US10602021B2 (en) Authentication setting system and image forming apparatus
US20220222953A1 (en) Managing camera actions
WO2021159736A1 (en) Application compatibility test method and apparatus, and computer device
CN109726110B (en) Document testing method, device, apparatus and computer readable storage medium
CN108388672B (en) Video searching method and device and computer readable storage medium
CN111209947A (en) Image recognition method, device, storage medium and apparatus
CN110942497A (en) Correction trace adding method, device and equipment and computer readable storage medium
TW201909014A (en) Verifying method of specified condition, verifying software of specified condition, device and server for executing verification of specified condition
CN112615873B (en) Internet of things equipment safety detection method, equipment, storage medium and device
CN112950443A (en) Adaptive privacy protection method, system, device and medium based on image sticker
CN111178238A (en) Certificate testing method, device, equipment and computer readable storage medium
CN110752933A (en) Verification code input method and device, electronic equipment and storage medium
AU2022100065A4 (en) Data integrity management in a computer network
US20190340410A1 (en) Electronic apparatus
CN110929725B (en) Certificate classification method, device and computer readable storage medium
US20150120715A1 (en) Non-transitory computer readable medium, document recommending apparatus, and document recommending method
CN111859464A (en) Data verification method, device and equipment and computer readable storage medium
CN111127398A (en) Method and device for detecting certificate photo duplication, terminal equipment and storage medium
CN111061519A (en) Application control method based on image acquisition, terminal and computer storage medium
CN110706221A (en) Verification method, verification device, storage medium and device for customizing pictures

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