Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Inactive Publication Date: 2016-09-21
GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The above test method has several disadvantages: 1. Low efficiency. Since the whole process is manually operated, the whole process requires manual execution of many links to complete the test, and the efficiency is very low.
2. The effectiveness of its QR code generation algorithm cannot be verified in batches. Since the whole process is manually recorded, it is impossible to cover a comprehensive comparison test result within a limited time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for testing two-dimensional code generating algorithm
  • Method and device for testing two-dimensional code generating algorithm
  • Method and device for testing two-dimensional code generating algorithm

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a device for testing a two-dimensional code generating algorithm. The method comprises: using a tested two-dimensional code generating algorithm to generate a two-dimensional code image, wherein the two-dimensional code image including a text character string; using a two-dimensional code recognition algorithm to identify the two-dimensional code image, to obtain a recognition result; comparing the recognition result with the text character string; if the recognition result is consistent with the text character string, determining the tested two-dimensional code generating algorithm is accurate. The method realizes automatic verification of correctness and uniqueness of the two-dimensional code generating algorithm, and since an all-in-software automatic method is used, testing labor is not needed, 100% coverage test of all input conditions can be efficiently realized. The method is more complete in algorithm correctness verification than verification by manpower.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a testing method and device for a two-dimensional code generation algorithm. Background technique [0002] In the existing technology, mobile phones and smart watch industries often need QR codes to register and bind users. For products, the uniqueness of QR codes is very important. Can the generation algorithm of QR codes guarantee the generated The code can be recognized by the industry's mature recognition algorithm, and it is very important to ensure uniqueness. [0003] At present, when testing the QR code generation algorithm, the QR code icon is generated by a small computer, and the content required to generate the QR code icon is recorded on paper by manual recording, and then the recognition result is scanned through the mobile phone APP, and then Compare with the QR code recorded on the paper to judge whether the QR code is generated correctly. [0004] The above-men...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06K7/14
CPCG06F11/3688G06F11/3692G06K7/1417
Inventor 王江涛
Owner GUANGDONG XIAOTIANCAI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products