Method and device for testing two-dimensional code generating algorithm
A technology for generating algorithms and testing methods, applied in the field of testing, can solve problems such as the inability to batch verify the validity and low efficiency of two-dimensional code generation algorithms, and achieve efficient coverage testing and comprehensive verification of algorithm correctness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] see figure 1 , shows the testing method of the two-dimensional code generation algorithm provided by the embodiment of the present invention. Specifically include the following steps:
[0028] In step S101, the tested two-dimensional code generation algorithm is used to generate a two-dimensional code image; wherein, the two-dimensional code image includes a text string;
[0029] In step S102, using a two-dimensional code recognition algorithm to recognize the two-dimensional code image, and obtain a recognition result;
[0030] In step S103, the recognition result is compared with the text string;
[0031] In step S104, if the recognition result is consistent with the text string, it is determined that the tested two-dimensional code generation algorithm is accurate.
Embodiment 2
[0033] see figure 2 , shows the testing method of the two-dimensional code generation algorithm provided by the embodiment of the present invention.
[0034] The testing method of described two-dimensional code generation algorithm specifically comprises the steps:
[0035] In step S201, input the text string required to generate the two-dimensional code image to the two-dimensional code generation interface;
[0036] In the embodiment of the present invention, the text string input into the algorithm to be tested can completely cover all test conditions by exhaustive method.
[0037] In step S202, the tested two-dimensional code generation algorithm is used to generate a two-dimensional code image from the text string.
[0038] In the embodiment of the present invention, the tested two-dimensional code generation algorithm is used to generate a two-dimensional code image from the text string, and display the two-dimensional code image on the screen.
[0039] In step S203,...
Embodiment 3
[0051] see image 3 , is a block diagram of a test device for a two-dimensional code generation algorithm provided in Embodiment 3 of the present invention; for convenience of description, only the parts related to the embodiment of the present invention are shown. The test device for the two-dimensional code generation algorithm includes: a two-dimensional code generation module 101 , a two-dimensional code recognition module 102 , a comparison module 103 , and a determination module 104 . The testing device for the two-dimensional code generation algorithm may be a software unit, a hardware unit, or a combination of software and hardware.
[0052]A two-dimensional code generation module 101, configured to generate a two-dimensional code image using a tested two-dimensional code generation algorithm; wherein the two-dimensional code image includes a text string;
[0053] A two-dimensional code recognition module 102, configured to recognize the two-dimensional code image usi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com