[go: up one dir, main page]

CN112115731B - A system and method for evaluating the performance of a barcode scanning device - Google Patents

A system and method for evaluating the performance of a barcode scanning device Download PDF

Info

Publication number
CN112115731B
CN112115731B CN202010977757.1A CN202010977757A CN112115731B CN 112115731 B CN112115731 B CN 112115731B CN 202010977757 A CN202010977757 A CN 202010977757A CN 112115731 B CN112115731 B CN 112115731B
Authority
CN
China
Prior art keywords
predetermined
barcode
test
image
scanning
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.)
Active
Application number
CN202010977757.1A
Other languages
Chinese (zh)
Other versions
CN112115731A (en
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.)
Shanghai Sunmi Technology Group Co Ltd
Citaq Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Citaq 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 Shanghai Sunmi Technology Group Co Ltd, Citaq Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202010977757.1A priority Critical patent/CN112115731B/en
Publication of CN112115731A publication Critical patent/CN112115731A/en
Application granted granted Critical
Publication of CN112115731B publication Critical patent/CN112115731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • G06K7/10732Light sources

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimiles In General (AREA)

Abstract

本发明涉及一种用于评测扫码设备性能的系统以及方法。所述方法先根据预定条码种类及内容、通过条码生成程序生成标准条码图像;然后基于生成的标准条码图像及测试项,通过图像处理程序模拟实际使用场景下的条码形态而得到模拟条码图像;接着根据选取的条码种类、条码形态及测试项参数生成测试用例,并调用图像处理程序对应生成用例模拟条码图像;之后显示每个用例模拟条码图像并使之正对扫描头而启动扫码,判断在预定时间内的识读结果是否与对应预定条码内容相一致,若是则判定扫码成功,否则判定扫码失败,并记录用例相关属性及扫码结果;最后在完成全部扫码后,根据相关记录进行统计分类处理并输出报告。本发明能提高评测效率及可靠性。

The present invention relates to a system and method for evaluating the performance of a code scanning device. The method first generates a standard barcode image through a barcode generation program according to a predetermined barcode type and content; then, based on the generated standard barcode image and test items, an image processing program is used to simulate the barcode form in an actual use scenario to obtain a simulated barcode image; then, a test case is generated according to the selected barcode type, barcode form and test item parameters, and the image processing program is called to generate a corresponding simulated barcode image for the case; then, each case simulated barcode image is displayed and made to face the scanning head to start scanning, and it is determined whether the reading result within a predetermined time is consistent with the corresponding predetermined barcode content. If so, the scanning is determined to be successful, otherwise, the scanning is determined to be failed, and the relevant attributes of the case and the scanning result are recorded; finally, after all the scanning is completed, statistical classification processing is performed according to the relevant records and a report is output. The present invention can improve the evaluation efficiency and reliability.

Description

System and method for evaluating performance of code scanning equipment
Technical Field
The embodiment of the invention relates to the technical field of code scanning, in particular to a system and a method for evaluating the performance of code scanning equipment.
Background
Nowadays, bar code scanners are widely used in a number of fields such as mobile payment, courier, warehouse, logistics, books, clothing, medicine, etc. The code scanning equipment on the market is also in full view, the reading performance of different manufacturers is uneven, even the difference is huge, some scanning equipment can only identify the payment bar code on the mobile phone screen, and some scanning equipment can be widely applied to various application environments such as mobile phone payment, business process, inventory and logistics. Although some manufacturers can give some reference performance indexes such as reading distance, accuracy and angle, etc., the test results are very subjective and unreliable for common users to test only by feel.
In the mobile phone payment industry, the Unionpay platform has an authentication project of 'Unionpay authentication-acceptance terminal barcode reading capability test', the project randomly generates a barcode to be read by using a mobile phone screen, and the mobile phone is rotated by a mechanical arm, so that the reading result of a barcode scanning device is compared with the generated barcode content, the reading capability of barcode formats or types, speed, precision, angle, depth of field and the like can be detected, and the test means provided by the project can reflect the barcode reading capability of the detected barcode scanning device in a payment scene to a certain extent, so that a reference on device selection can be provided for a user.
Although the method similar to the method of the Unionpay code scanning and reading capability test system can evaluate the recognition performance of different code scanning devices to a certain extent, the tested mobile phone screen bar codes are more ideal, and cannot effectively and comprehensively measure daily use scenes, such as damage, wrinkles, low contrast, uneven illumination and the like of some bar codes, which are frequently encountered in daily practical use scenes, the prior art does not provide an effective evaluation technology for the situation.
In view of the above problems, the present invention needs to provide a system and a method for evaluating performance of a code scanning device, so as to reduce the evaluating cost and improve the evaluating efficiency, the evaluating accuracy and the reliability.
Disclosure of Invention
In order to solve the problems of the prior art, at least one embodiment of the present invention provides a system and a method for evaluating performance of a code scanning device.
In a first aspect, an embodiment of the present invention proposes a system for evaluating performance of a code scanning device, including:
A bar code generating device for generating a standard bar code image by a bar code generating program according to a predetermined bar code type and predetermined bar code content, wherein the bar code generating device comprises a display module;
the image processing module simulates a corresponding bar code form under an actual use scene through an image processing program based on the standard bar code image and the test item generated by the bar code generating device, so as to obtain a corresponding simulated bar code image;
The test case generation module generates one or more test cases according to the selected bar code types, bar code forms and related parameters of test items, and invokes the image processing program according to the one or more test cases to correspondingly generate one or more case simulation bar code images, wherein each test case corresponds to one or more test items;
The identifying and reading test module is used for enabling the code scanning equipment to be in communication connection with the bar code generating equipment, enabling a scanning head of the code scanning equipment to be opposite to a display module of the bar code generating equipment in a mode of being away from a preset identifying and reading distance, starting the scanning head to scan each case simulation bar code image displayed on the display module, judging whether an identifying and reading result of the code scanning equipment in preset time is consistent with corresponding preset bar code content or not, judging that the code scanning is successful if the identifying and reading result is consistent with the preset bar code content, judging that the code scanning is failed if the identifying and reading result is inconsistent, and recording relevant attributes of the cases and results of the successful code scanning or the failed code scanning aiming at each test case; and
And the evaluation output module is used for carrying out statistical classification processing and outputting a report according to the related record aiming at each test case after completing code scanning of the bar code image simulated by all the test cases.
In some embodiments, the code scanning device and the code generating device can be in communication connection through a USB, serial port, WIFI or bluetooth mode.
In some embodiments, the predetermined reading distance is 10 centimeters.
In some embodiments, the predetermined time is 10 seconds.
In some embodiments, the barcode generating device is a smart phone, tablet computer, or personal computer.
In some embodiments, the barcode generating device further comprises a graphical user interface GUI for displaying on the display module a use case simulation barcode image, the GUI further displaying the following properties of the respective barcode: content length, error correction level, and unit module size.
In some embodiments, the barcode species includes at least one of the following barcodes: code128, code39, code93, UPC-A, UPC-E, EAN, EAN13, industrial 25 Code, databar, PDF417, QR, dataMatrix, AZTEC.
In some embodiments, the test item includes performing the following scan test on the standard barcode image: rotation test, contrast test, perspective distortion test, noise or interference increase test, reading accuracy test and translation process test.
In some embodiments, the image processing program includes a plurality of image processing subroutines corresponding to the test items, each for rotating a standard barcode image at a predetermined angle, adjusting at a predetermined contrast level, perspective distortion at a predetermined distortion coefficient, increasing noise or interference at a predetermined noise level, adjusting at a predetermined radius dot matrix cell module, adjusting at a predetermined size cell module corresponding to reading accuracy, translating at a predetermined speed, and various combinations thereof, to obtain a corresponding simulated barcode image.
In some embodiments, the predetermined angle includes a predetermined pitch angle of 0-60 degrees, a predetermined yaw angle of 0-60 degrees, and a predetermined roll angle of 0-360 degrees, and the test case generation module selects various predetermined pitch angles, predetermined yaw angles, and predetermined roll angles for the standard barcode image to adjust, and correspondingly generates a series of test cases; the preset contrast level is 0-10, and the test case generation module selects various preset contrast levels for adjustment aiming at the standard bar code image, and correspondingly generates a series of test cases; the adjustment range of the preset distortion coefficient is 0-X, and the test case generation module selects various preset distortion coefficients for perspective distortion according to preset step length aiming at a standard bar code image, and correspondingly generates a series of test cases; the predetermined noise level is 0-10, and the test case generation module selects various predetermined noise levels for the standard bar code image to carry out noise adding, and correspondingly generates a series of test cases; the predetermined radius of the dot matrix unit module is in the range of 1-10 pixels, and the test case generation module selects various dot matrix unit modules with predetermined radii for adjustment aiming at the standard bar code image, and correspondingly generates a series of test cases; the preset size of the unit module is in the range of 1-10 mm, and the test case generation module selects various unit modules with preset sizes for adjustment aiming at the standard bar code image, so as to correspondingly generate a series of test cases; the preset speed is within the range of 1-50cm/s, and the test case generation module selects various preset speeds for translation aiming at the standard bar code image, so as to correspondingly generate corresponding test cases; the test case generation module selects any combination of a plurality of the preset angles, preset contrast ratio, preset distortion coefficient, preset noise level, preset radius of the unit modules in the dot matrix, preset size of the unit modules and preset speed for adjustment according to the standard bar code image, and correspondingly generates a series of test cases.
In a second aspect, an embodiment of the present invention further provides a method for evaluating performance of a code scanning device, including the following steps:
(a) Generating a standard bar code image through a bar code generating program according to the type of the preset bar code and the content of the preset bar code;
(b) Simulating a corresponding bar code form under an actual use scene by an image processing program based on the generated standard bar code image and the test item, thereby obtaining a corresponding simulated bar code image;
(c) Generating one or more test cases according to the selected bar code types, bar code forms and related parameters of test items, and calling the image processing program according to the one or more test cases to correspondingly generate one or more case simulation bar code images, wherein each test case corresponds to one or more test items;
(d) Displaying an application simulation bar code image corresponding to each test case and enabling the application simulation bar code image to be opposite to a scanning head of the code scanning device in a mode of being separated by a preset recognition distance, starting the scanning head to scan codes of the application simulation bar code image, judging whether a recognition result of the code scanning device in preset time is consistent with corresponding preset bar code content, judging that the code scanning is successful if the recognition result is consistent with the preset bar code content, judging that the code scanning is failed if the recognition result is inconsistent with the preset bar code content, and recording a relevant attribute of the application and a result of the successful code scanning or the code scanning failure for each test case; and
(E) After the code scanning of the bar code image is completed for all the test cases, carrying out statistical classification processing according to the relevant records aiming at each test case and outputting a report.
In some embodiments, in step (d), the predetermined reading distance is 10 cm, the predetermined time is 10 seconds, and in step (d), the use case simulation bar code image is displayed through a GUI of a graphical user interface, and the GUI further displays the content length, the error correction level, and the unit module size of the corresponding bar code.
In some embodiments, the barcode species includes at least one of the following barcodes: code128, code39, code93, UPC-A, UPC-E, EAN, EAN13, industrial 25 Code, databar, PDF417, QR, dataMatrix, AZTEC.
In some embodiments, the test item in step (b) comprises performing the following scan test on the standard barcode image: rotation test, contrast test, perspective distortion test, noise or interference increase test, reading accuracy test and translation process test.
In some embodiments, the image processing program in step (b) includes a plurality of image processing subroutines corresponding to the test item, each for rotating a standard barcode image at a predetermined angle, adjusting at a predetermined contrast level, perspective distortion at a predetermined distortion coefficient, increasing noise or interference at a predetermined noise level, adjusting at a predetermined radius dot matrix unit module, adjusting at a predetermined size unit module corresponding to reading accuracy, translating at a predetermined speed, and combinations thereof to obtain a corresponding simulated barcode image.
In some embodiments, the predetermined angle includes a predetermined yaw angle of 0-60 degrees, a predetermined pitch angle of 0-60 degrees, and a predetermined roll angle of 0-360 degrees, and in step (c), various predetermined pitch angles, predetermined yaw angles, and predetermined roll angles are selected for the standard barcode image to be adjusted, so as to correspondingly generate a series of test cases; the preset contrast level is 0-10, and in the step (c), various preset contrast levels are selected for adjustment aiming at the standard bar code image, and a series of test cases are correspondingly generated; the adjustment range of the preset distortion coefficient is 0-X, and in the step (c), the preset distortion coefficient is selected for perspective distortion according to a preset step length aiming at a standard bar code image, and a series of test cases are correspondingly generated; the predetermined noise level is 0-10, and in the step (c), various predetermined noise levels are selected for the standard bar code image to be noisy, and a series of test cases are correspondingly generated; the preset radius of the dot matrix unit module is in the range of 1-10 pixels, and in the step (c), the dot matrix unit modules with various preset radii are respectively selected for standard bar code images to be adjusted, so that a series of test cases are correspondingly generated; the preset size of the unit module is in the range of 1-10 mm, and in the step (c), various unit modules with preset sizes are selected for adjustment aiming at the standard bar code image, so that a series of test cases are correspondingly generated; the preset speed is within the range of 1-50cm/s, and in the step (c), various preset speeds are respectively selected for translation aiming at the standard bar code image, so that corresponding test cases are correspondingly generated; in the step (c), any combination of a plurality of the preset angles, preset contrast ratio, preset distortion coefficient, preset noise level, preset radius of dots in the dot matrix, preset size of the unit module and preset speed is selected for adjustment aiming at the standard bar code image, and a series of test cases are correspondingly generated.
Compared with the ideal standard bar code image tested in the prior art, the method can not effectively and comprehensively measure various bar code forms with changes in actual use scenes, and the embodiment of the invention firstly generates the standard bar code image according to the preset bar code types and preset bar code contents by a bar code generation program; then based on the generated standard bar code image and test item, simulating the corresponding bar code form under the actual use scene by an image processing program, thereby obtaining the corresponding simulated bar code image; generating one or more test cases according to the selected bar code types, bar code forms and related parameters of test items, and calling the image processing program according to the one or more test cases to correspondingly generate one or more case simulation bar code images; displaying an application simulation bar code image corresponding to each test case, enabling the application simulation bar code image to be opposite to a scanning head of the code scanning device in a mode of being separated by a preset recognition distance, starting the scanning head to scan codes of the application simulation bar code image, judging whether a recognition result of the code scanning device in preset time is consistent with corresponding preset bar code content, judging that the code scanning is successful if the recognition result is consistent with the preset bar code content, judging that the code scanning is failed if the recognition result is inconsistent with the preset bar code content, and recording a related attribute of the application and a result of the code scanning success or the code scanning failure for each test case; and finally, after the code scanning of the bar code image is completed for all the use cases, carrying out statistical classification processing according to the relevant records aiming at each test case and outputting a report.
The embodiment of the invention can reduce the evaluation cost and improve the evaluation efficiency, the evaluation accuracy and the reliability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system for evaluating performance of a code scanning device according to an embodiment of the present invention;
Fig. 2 is a schematic diagram of the barcode generator 1 scanned by the barcode scanning device 2 in fig. 1;
FIG. 3 is a schematic diagram of one embodiment of a case simulation barcode image generated by the test case generation module 14 of FIG. 1;
FIG. 4 is a schematic diagram of another embodiment of a case-simulated barcode image generated by the test case generation module 14 of FIG. 1;
Fig. 5 is a flowchart of a method for evaluating performance of a code scanning device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Fig. 1 is a schematic diagram of a composition structure of a system 1 for evaluating performance of a code scanning device according to an embodiment of the present invention. Referring to fig. 1, the system 1 includes a barcode generating device 10, an image processing module 12, a test case generating module 14, a reading test module 16, and an evaluation output module 18. The system 1 is used for evaluating performance of a code scanning device 2, the code scanning device 2 comprises a scanning head 20 and a decoding module 22, and the scanning head 20 comprises a light source 20A and a photoelectric conversion module 20B. The components of the system 1 are described in detail below.
The barcode generating device 10 includes a graphical user interface GUI 10A and a barcode generating program 10b, the GUI 10A including a display module 10C. The barcode generating device 10 generates a standard barcode image by its barcode generating program 10B according to a predetermined barcode kind and predetermined barcode content. The bar code type or system comprises at least one bar code of the following: code128, code39, code 93, UPC-A, UPC-E, EAN, EAN13, industrial 25 Code (Industrial 25), databar Code, PDF417 Code, QR Code, dataMatrix Code, AZTEC Code, and other industry conventional barcodes. The bar code type can be appropriately increased or decreased according to the requirement. The predetermined barcode content includes a combination of one or more of numbers, letters, and symbols. The barcode generating device 10 may be an intelligent electronic device such as a smart phone, a tablet computer or a personal computer, and the display module 10C is a corresponding display screen. In this embodiment, the barcode generating device 10 is a smart phone.
The GUI 10A may be used to display a case-based barcode image, a standard barcode image, a simulated barcode image, or the like on the display module 10C; the GUI 10A may further display attributes such as content length, error correction level, and unit module size of various corresponding barcodes, and the GUI 10A may further accept control information such as a selected barcode type input by a user.
The image processing module 12 includes an image processing program 120. The image processing module 12 simulates the corresponding barcode form in the actual use situation by the image processing program 120 based on the standard barcode image and the test item generated by the barcode generating device 10, so as to obtain the corresponding simulated barcode image. The test item comprises the following code scanning test on the standard bar code image: rotation testing, contrast testing, perspective distortion testing, noise or interference adding testing, reading accuracy testing, translation process testing, and other common testing for the reading performance of the code scanning device.
The image processing program 120 includes a plurality of image processing subroutines 12A, …, 12N corresponding to a plurality of test items, and the plurality of image processing subroutines 12A, …, 12N are respectively configured to rotate a standard barcode image at a predetermined angle, adjust at a predetermined contrast level, perspective distortion at a predetermined distortion coefficient, increase noise or interference at a predetermined noise level, adjust at a predetermined radius dot matrix unit module, adjust at a predetermined size unit module corresponding to recognition accuracy, translate at a predetermined speed, and a combination thereof to obtain a corresponding simulated barcode image.
It should be noted that, in the embodiment of the present invention, the analog barcode image includes a still image and a moving image, and one of the plurality of image processing subroutines 12A, …, 12N translates the standard barcode image at a predetermined speed to obtain the analog barcode image as a moving image, such as an animation or a video, which records the whole process of translating the standard barcode image into and out of the display module 10C at the predetermined speed; and the other image processing subprograms which do not relate to the translation of the standard bar code image are used for processing the standard bar code image, so that the obtained analog bar code image is a static image or a picture.
The predetermined angles include a predetermined PITCH angle (PITCH, i.e., an angle of rotation about the X-axis) of 0-60 degrees, a predetermined YAW angle (YAW, i.e., an angle of rotation about the Y-axis) of 0-60 degrees, and a predetermined ROLL angle (ROLL, i.e., an angle of rotation about the Z-axis) of 0-360 degrees. The predetermined contrast level is 0-10, the predetermined distortion coefficient is adjusted to 0-X, the predetermined noise level is 0-10, the predetermined radius of the dot matrix unit module is 1-10 pixels, the predetermined size of the unit module is 1-10 millimeters, the predetermined speed is 1-50cm/s, more specifically, 20cm/s, 30cm/s, and the like.
The test case generation module 14 generates one or more test cases according to the selected bar code types, bar code forms and related parameters of test items, and invokes the image processing program 120 according to the one or more test cases to correspondingly generate one or more case simulation bar code images, wherein each test case corresponds to one or more test items. In this embodiment, the selected bar Code type may be Code128, code39 or QR Code.
The test case generation module 14 selects various predetermined pitch angles of 0-60 degrees, predetermined yaw angles of 0-60 degrees and predetermined roll angles of 0-360 degrees for adjustment according to the standard bar code image, and correspondingly generates a series of test cases. The test case generation module 14 may also increase the predetermined pitch angle of 0-60, the predetermined yaw angle of 0-60 degrees, and the predetermined roll angle of 0-360 degrees by 5 degrees for each time of the standard barcode image, and correspondingly generate a series of test cases.
The test case generation module 14 may also select various predetermined contrast levels from the 0-10 level contrasts for the standard barcode image to adjust, and correspondingly generate a series of test cases. The test case generation module 14 may also select various predetermined distortion coefficients from 0-X with a predetermined step s for the standard barcode image to perform perspective distortion, and correspondingly generate a series of test cases. The test case generation module 14 may also select various predetermined noise levels from 0-10 levels for the standard barcode image to perform noise superposition, and correspondingly generate a series of test cases.
The test case generation module 14 may also select a predetermined radius of each dot matrix unit module for adjustment within a range of 1-10 pixels for the standard barcode image, so as to correspondingly generate a series of test cases. The test case generation module 14 may also select various predetermined speeds for translation within a range of 1-50cm/s for the standard barcode image, and correspondingly generate a corresponding test case. The test case generation module 14 may also select any combination of the predetermined angle, the predetermined contrast, the predetermined distortion coefficient, the predetermined noise level, the predetermined radius of the unit module in the dot matrix, the predetermined size of the unit module, and the predetermined speed for the standard barcode image, so as to correspondingly generate a series of test cases.
When the selected bar code type is a QR code, the test item further includes a two-dimensional code error correction capability test, the predetermined error correction level of the standard bar code image may be, for example, 15%, the setting of the bar code image to the corresponding bar code level is achieved by performing the offset in the corresponding error correction range on the bar code data area (the bar code module except for the locator and the functional graphic), and an effective method of the offset is to directly invert the corresponding module color, i.e., the black module is changed into the white module, and the white module is changed into the black module. The image processing program 120 includes an image processing subroutine (e.g. 12E) corresponding to the two-dimensional code error correction capability test, where the image processing subroutine 12E is configured to perform error correction processing on the standard barcode image at a predetermined error correction level (e.g. a corresponding error correction range of dirty), and the test case generating module 14 selects various predetermined error correction levels for the standard barcode image to perform corresponding dirty, so as to obtain a series of test cases, where the predetermined error correction levels may further include 7% and 25%, for example.
With continued reference to fig. 1 and with reference to fig. 2, the reading test module 16 connects the code scanning device 2 with the barcode generating device 1 in a communication manner, and makes the scanning head 20 of the code scanning device 2 face the display module 10C of the barcode generating device 10 in a manner of a predetermined reading distance, and displays an application analog barcode image corresponding to each test application on the display module 10C in a GUI 10A manner. In this embodiment, the predetermined reading distance may be 10 cm, and other common code scanning distances.
Fig. 2 shows a test state in which the barcode scanning device 2 is facing the barcode generating device 10. As shown in fig. 2, the code scanning device 2 and the bar code generating device 10 may be disposed together on a test platform 30, the bar code generating device 10 is disposed on a stand 32 with adjustable height and capable of fixing the same, the code scanning device 2 may also be selectively disposed on a similar stand, and the code scanning device 2 may scan static images as well as dynamic images such as videos or animations. The distance between the code scanning device 2 and the bar code generating device 10 can be 10 cm and other common code scanning distances. The code scanning of the scanning head 20 is started, which may specifically include that the light source 20A of the scanning head 20 irradiates the use case analog barcode image, then the photoelectric conversion module 20B, which may be a CCD, receives the light reflected from the image and converts the light signal into an electrical signal, and the decoding module 22 of the code scanning device 2 processes the electrical signal to obtain a reading result. The code scanning and reading principle and process of the code scanning device 2 are generally known to those skilled in the art, and will not be further described herein.
The recognition test module 16 determines whether the recognition result of the code scanning device 2 is consistent with the corresponding predetermined barcode content, if so, determines that the code scanning is successful, if not, determines that the code scanning is failed, and records the relevant attribute of the use case or the attribute of the use case simulation barcode image and the result of the code scanning success or the code scanning failure for each test case, wherein the attribute of the use case simulation barcode image is for example the module size and/or the rotation angle, etc. The predetermined time T is 5 seconds, 10 seconds, 20 seconds or other code scanning time commonly used in the industry.
According to the data transmission protocol supported by the code scanning device 2, the code scanning device and the bar code generating device 10 can be in communication connection through a USB, serial port, WIFI, bluetooth and other communication modes commonly used in the industry.
After the scanning of the bar code image is completed by the evaluation output module 18, statistical classification processing is performed and a report is output according to the relevant record result of each test case by the recognition test module 16. The evaluation output module 18 includes an evaluation unit 18A and an output unit 18B, where the evaluation unit 18A is configured to evaluate, analyze and process the relevant record result to form an evaluation report, the output unit 18B is configured to output the evaluation report, and the output unit 18B may output the evaluation report to the display module 10C or a printer, for example. The evaluation unit 18A may, for example, perform statistics on various test item parameters that are scanned successfully to form an evaluation report; the special evaluation report can be formed according to the identification capability of bar code type, identification precision, identification angle, identification distortion, identification noise, identification speed and the like; for example, in the evaluation report for the reading speed, it can record at which preset speeds the translation bar code can be scanned successfully, and at which preset speeds the translation bar code can be scanned successfully, so that the scanning speed or the reading speed which can be scanned successfully can be screened out.
In order to further illustrate the principle and efficacy of the present invention, the following description will take the selected barcode type as Code128 and the test item as contrast test as an example, the test case generation module 14 generates a plurality of test cases with the contrast levels of 0, 1,2,3, … and 10 according to the selected barcode type, barcode shape and the related parameters of the test item, and invokes the image processing program according to the plurality of test cases to correspondingly generate a plurality of case simulation barcode images, wherein the plurality of case simulation barcode images with the contrast levels of 0, 1,2,3, … and 10 are shown in fig. 3. The case simulation bar code images shown in fig. 3 are sequentially displayed on a display module 10C shown in fig. 1 in a GUI 10A form, the scanning head 20 of the code scanning device 2 is opposite to the GUI 10A, and scans the case simulation bar code images on the scanning head, the scanning device 2 reads the simulation bar code images with the level 0, the level 1 and the level 2 contrast as non-ABC 123, the simulation bar code images with the level 3 to the level 10 contrast as ABC123, and the recognition test module 16 can judge that the scanning of the scanning with the level 0, the level 1 and the level 2 contrast fails and the scanning with the level 3 to the level 10 contrast succeeds. After scanning the bar code image simulated by all the cases shown in fig. 3, the evaluation output module 18 performs statistical classification according to the relevant record result of each test case by the recognition test module 16, and outputs a report of successful code reading for the contrast between 0 level and 2 level and failure code reading for the contrast between 3 level and 10 level.
Fig. 4 shows an application simulation barcode image corresponding to an integrated test case embodiment, which is a combination of contrast test and rotation test, specifically, a 4-level contrast is selected for a standard barcode image of "ABC123" under Code128, and then rotated by the following predetermined angle: a predetermined pitch angle of 0 degrees, a yaw angle of 0 degrees and a predetermined roll angle of 30 degrees, the application simulation bar code image corresponding to the comprehensive test case is shown in fig. 4. The result of the code scanning device 2 for the case simulation barcode image of fig. 4 is ABC123, and the recognition test module 16 can determine that the code scanning for the case simulation barcode image of fig. 4 is successful.
Referring to fig. 5, referring to fig. 1 and fig. 2 in combination, fig. 5 shows a flowchart of a method for evaluating performance of a code scanning device according to an embodiment of the present invention.
As shown in fig. 5, the test method 50 first proceeds to step S500, and generates a standard barcode image according to a predetermined barcode type and a predetermined barcode content by a barcode generation program. The bar code species include at least one bar code of the following: code128, code39, code93, UPC-A, UPC-E, EAN8, EAN13, industry 25, databar, PDF417, QR, dataMatrix, AZTEC, and the like. The bar code type can be appropriately increased or decreased according to the requirement. The predetermined barcode content includes a combination of one or more of numbers, letters, and symbols.
The test method 50 proceeds to step S510, and based on the generated standard barcode image and test item, the corresponding barcode form in the actual use scenario is simulated by the image processing program, so as to obtain the corresponding simulated barcode image; wherein the test item comprises performing the following scan test on the standard barcode image: rotation test, contrast test, perspective distortion test, noise or interference increase test, reading accuracy test, translation process test and other common tests for reading performance of code scanning equipment.
The image processing program in step S510 includes a plurality of image processing subroutines corresponding to the test item, each of the plurality of image processing subroutines being configured to rotate a standard barcode image by a predetermined angle, adjust by a predetermined contrast level, perspective distortion by a predetermined distortion coefficient, increase noise or interference by a predetermined noise level, adjust by a dot matrix unit module of a predetermined radius, adjust by a unit module of a predetermined size corresponding to a recognition accuracy, translate at a predetermined speed, and combinations thereof to obtain a corresponding simulated barcode image; wherein the predetermined angle includes a predetermined pitch angle of 0-60 degrees, a predetermined yaw angle of 0-60 degrees, and a predetermined roll angle of 0-360 degrees, the predetermined contrast level is 0-10 levels, the adjustment range of the predetermined distortion coefficient is 0-X, the predetermined noise level is 0-10 levels, the predetermined radius of the dot matrix unit module is in the range of 1-10 pixels, the predetermined size of the unit module is in the range of 1-10 millimeters, and the predetermined speed is in the range of 1-50 cm/s.
The testing method 50 proceeds to step S520, and generates one or more test cases according to the selected barcode type, barcode shape and related parameters of the test items, where each test case corresponds to one or more test items. In this embodiment, the selected bar Code type may be Code128, code39 or QR Code.
The test method 50 proceeds to step S530, where the image processing program is invoked according to the one or more test cases to correspondingly generate a plurality of case simulation barcode images. Step S530 may call the image processing subroutine according to the test items corresponding to the one or more test cases to generate one or more case simulation barcode images.
Step S520 can select various predetermined pitch angles of 0-60 degrees, predetermined yaw angles of 0-60 degrees and predetermined rolling angles of 0-360 degrees for adjustment according to the standard bar code image, a series of test cases are correspondingly generated, and step S530 correspondingly generates a series of case simulation bar code images; step S520 may be performed to increase the predetermined pitch angle of 0-60, the predetermined yaw angle of 0-60, and the predetermined roll angle of 0-360 by 5 degrees for each time of the standard barcode image, so as to correspondingly generate a series of test cases, and step S530 correspondingly generates a series of case simulation barcode images.
In step S520, various preset contrast levels in 0-10 levels can be selected for adjustment according to the standard barcode image, a series of test cases can be correspondingly generated, and step S530 can correspondingly generate a series of case simulation barcode images; in step S520, a predetermined distortion coefficient within the range of 0-X may be selected for perspective distortion with respect to the standard barcode image in a predetermined step, and a series of test cases may be correspondingly generated, and step S530 may correspondingly generate a series of case simulation barcode images.
In step S520, various predetermined noise levels within 0-10 levels can be selected for adjustment for the standard barcode image, a series of test cases can be correspondingly generated, and step S530 can correspondingly generate a series of case simulation barcode images; in step S520, dot matrix unit modules with various predetermined radii within the range of 1-10 pixels can be selected for adjustment respectively for standard barcode images, so as to correspondingly generate a series of test cases, and step S530 can correspondingly generate a series of case simulation barcode images.
In step S520, unit modules with various predetermined sizes within the range of 1-10 mm can be selected for adjustment according to the standard barcode image, a series of test cases can be correspondingly generated, and step S530 can correspondingly generate a series of case simulation barcode images; in step S520, various predetermined speeds within the range of 1-50cm/S can be selected for translation for the standard barcode image, corresponding test cases can be generated correspondingly, and step S530 can generate corresponding case simulation barcode images correspondingly.
In step S520, any combination of a plurality of the predetermined angle, the predetermined contrast, the predetermined distortion coefficient, the predetermined noise level, the predetermined radius of the dots in the dot matrix, the predetermined size of the unit module, and the predetermined speed may be selected for the standard barcode image to be adjusted, so as to correspondingly generate a series of test cases, and step S530 may correspondingly generate a series of case simulation barcode images.
The test method 50 continues to step S540, in which the application simulation barcode image corresponding to each test case is displayed and is made to face the scanning head of the barcode scanning device in a manner of being separated by a predetermined reading distance. In step S540 of this embodiment, the predetermined reading distance may be 10cm, and other common code scanning distances, step S540 may display a use case analog barcode image through the GUI 10A, the GUI 10A may be presented on the display module 10C of the barcode generating apparatus 10 shown in fig. 1, the GUI 10A may further display attributes such as the content length, the error correction level, and the unit module size of the corresponding barcode, and the GUI 10A may further accept control information such as the selected barcode type input by the user.
The test method 50 continues to step S550, and starts the scanning head to scan the barcode image of the use case, and the barcode scanning device obtains the reading result. The principle and steps of the code scanning device for scanning the code and obtaining the reading result are common knowledge generally known to those skilled in the art, and are not described herein.
The test method 50 proceeds to step S560, where it is determined whether the reading result of the code scanning device in the predetermined time is consistent with the corresponding predetermined barcode content, if yes (i.e. consistent), it is determined that the code scanning is successful, and if not (i.e. inconsistent), it is determined that the code scanning is failed, and if not, it is determined that the code scanning is successful, and if not, it is determined that the code scanning is failed, and if not, it is determined that the code scanning is successful (step S580); the predetermined time may be 5 seconds, 10 seconds, 20 seconds, or other code scanning time commonly used in the industry.
The test method 50 continues with step S590, and after the scanning of the barcode image is completed for all the cases, statistical classification processing is performed according to the relevant records for each test case, and a report is output. In step S590, for example, statistics may be performed on various test item parameters that are successful in scanning the code, and a test item parameter statistics report that is successful in scanning the code is output; the special report can be formed according to the identification capability of bar code type, identification accuracy, identification angle, identification distortion, identification noise, identification speed and the like.
According to the embodiment of the invention, firstly, a standard bar code image is generated through a bar code generation program according to the type of the preset bar code and the content of the preset bar code; then based on the generated standard bar code image and test item, simulating the corresponding bar code form under the actual use scene by an image processing program, thereby obtaining the corresponding simulated bar code image; generating a plurality of test cases according to the selected bar code types, bar code forms and related parameters of test items, and calling the image processing program according to the plurality of test cases to correspondingly generate a plurality of case simulation bar code images; displaying an application simulation bar code image corresponding to each test case, enabling the application simulation bar code image to be opposite to a scanning head of the code scanning device in a mode of being separated by a preset recognition distance, starting the scanning head to scan codes of the application simulation bar code image, judging whether a recognition result of the code scanning device in preset time is consistent with corresponding preset bar code content, judging that the code scanning is successful if the recognition result is consistent with the preset bar code content, judging that the code scanning is failed if the recognition result is inconsistent with the preset bar code content, and recording a related attribute of the application and a result of the code scanning success or the code scanning failure for each test case; and finally, after the code scanning of the bar code image is completed for all the use cases, carrying out statistical classification processing according to the relevant records aiming at each test case and outputting a report.
The embodiment of the invention can reduce the evaluation cost and improve the evaluation efficiency, the evaluation accuracy and the reliability.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital signal processing devices (DSPDEVICE, DSPD), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the order of execution may be arbitrarily adjusted, unless there is an explicit order of precedence between the steps of the method embodiments. The disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art or a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (6)

1.一种用于评测扫码设备性能的系统,其包括:1. A system for evaluating the performance of a code scanning device, comprising: 条码生成设备,其用于根据预定条码种类以及预定条码内容、通过条码生成程序生成标准条码图像,所述条码生成设备包括显示模块;A barcode generating device, which is used to generate a standard barcode image through a barcode generating program according to a predetermined barcode type and predetermined barcode content, and the barcode generating device includes a display module; 图像处理模块,其用于基于所述条码生成设备所生成的标准条码图像以及测试项,通过图像处理程序模拟实际使用场景下相应的条码形态,从而得到相应的模拟条码图像;An image processing module, which is used to simulate the corresponding barcode form in the actual use scenario through an image processing program based on the standard barcode image generated by the barcode generation device and the test items, so as to obtain the corresponding simulated barcode image; 测试用例生成模块,其用于根据选取的条码种类、条码形态及测试项相关参数生成一个或多个测试用例,并根据所述一个或多个测试用例调用所述图像处理程序对应生成一个或多个用例模拟条码图像,其中每个测试用例均对应一个或多个测试项;A test case generation module, which is used to generate one or more test cases according to the selected barcode type, barcode form and test item related parameters, and call the image processing program according to the one or more test cases to generate one or more test case simulation barcode images, wherein each test case corresponds to one or more test items; 识读测试模块,其用于使所述扫码设备与所述条码生成设备通信连接,使所述扫码设备的扫描头以相距预定识读距离的方式正对所述条码生成设备的显示模块,启动所述扫描头对显示在所述显示模块上的每个用例模拟条码图像进行扫码,所述识读测试模块判断所述扫码设备在预定时间内的识读结果是否与对应的预定条码内容相一致,若相一致则判定本次扫码成功,若不一致则判定本次扫码失败,并针对每个测试用例记录用例相关属性及扫码成功或扫码失败的结果;以及a reading test module, which is used to make the code scanning device communicate with the barcode generating device, so that the scanning head of the code scanning device is facing the display module of the barcode generating device at a predetermined reading distance, and the scanning head is started to scan each use case simulated barcode image displayed on the display module. The reading test module determines whether the reading result of the code scanning device within a predetermined time is consistent with the corresponding predetermined barcode content. If they are consistent, it is determined that the current scanning is successful; if they are inconsistent, it is determined that the current scanning fails, and records the use case related attributes and the results of scanning success or scanning failure for each test case; and 评估输出模块,其在完成对所有用例模拟条码图像的扫码后,根据针对每个测试用例的相关记录,进行统计分类处理并输出报告;The evaluation output module, after completing the scanning of the simulated barcode images of all test cases, performs statistical classification processing and outputs a report based on the relevant records of each test case; 所述测试项包括对所述标准条码图像进行以下项扫码测试:旋转测试、对比度测试、透视畸变测试、增加噪点或干扰测试、识读精度测试以及平移过程测试;所述图像处理程序包括与所述测试项相对应的多个图像处理子程序,所述多个图像处理子程序分别用于将标准条码图像以预定角度进行旋转、以预定对比度等级进行调节、以预定畸变系数进行透视畸变、以预定噪声等级增加噪点或干扰、以预定半径的圆点点阵单元模块进行调节、以与识读精度相对应的预定大小的单元模块进行调节、以预定速度平移以及以上各项各种组合而得到相应的模拟条码图像;The test items include performing the following scanning tests on the standard barcode image: rotation test, contrast test, perspective distortion test, noise or interference addition test, reading accuracy test and translation process test; the image processing program includes a plurality of image processing subroutines corresponding to the test items, and the plurality of image processing subroutines are respectively used to rotate the standard barcode image at a predetermined angle, adjust it at a predetermined contrast level, perform perspective distortion at a predetermined distortion coefficient, add noise or interference at a predetermined noise level, adjust it at a dot matrix unit module of a predetermined radius, adjust it at a unit module of a predetermined size corresponding to the reading accuracy, translate it at a predetermined speed, and various combinations of the above items to obtain a corresponding simulated barcode image; 所述预定角度包括0-60度的预定偏航角、0-60度的预定俯仰角以及0-360度的预定翻滚角,所述测试用例生成模块针对所述标准条码图像选取各种预定俯仰角、预定偏航角以及预定翻滚角进行调节,对应生成一系列测试用例;所述预定对比度等级为0-10级,所述测试用例生成模块针对所述标准条码图像选取各种预定对比度等级进行调节,对应生成一系列测试用例;所述预定畸变系数的调节范围为0-X,所述测试用例生成模块针对标准条码图像以预定步长选取各种预定畸变系数进行透视畸变,对应生成一系列测试用例;所述预定噪声等级为0-10级,所述测试用例生成模块针对所述标准条码图像选取各种预定噪声等级进行加噪,对应生成一系列测试用例;所述圆点点阵单元模块的预定半径在1-10像素的范围内,所述测试用例生成模块针对所述标准条码图像选取各种预定半径的圆点点阵单元模块进行调节,对应生成一系列测试用例;所述单元模块的预定大小在1-10毫米的范围内,所述测试用例生成模块针对所述标准条码图像选取各种预定大小的单元模块进行调节,对应生成一系列测试用例;所述预定速度在1-50cm/s范围内,所述测试用例生成模块针对所述标准条码图像选取各种预定速度进行平移,对应生成相应的测试用例;所述测试用例生成模块针对所述标准条码图像选取所述预定角度、预定对比度、预定畸变系数、预定噪声等级、所述圆点点阵中单元模块的预定半径、单元模块的预定大小、预定速度中任意多个的组合进行调节,对应生成相应的测试用例。The predetermined angles include a predetermined yaw angle of 0-60 degrees, a predetermined pitch angle of 0-60 degrees, and a predetermined roll angle of 0-360 degrees. The test case generation module selects various predetermined pitch angles, predetermined yaw angles, and predetermined roll angles for the standard barcode image for adjustment, and generates a series of test cases accordingly; the predetermined contrast level is 0-10 levels, and the test case generation module selects various predetermined contrast levels for the standard barcode image for adjustment, and generates a series of test cases accordingly; the adjustment range of the predetermined distortion coefficient is 0-X, and the test case generation module selects various predetermined distortion coefficients for perspective distortion with a predetermined step length for the standard barcode image, and generates a series of test cases accordingly; the predetermined noise level is 0-10 levels, and the test case generation module selects various predetermined noise levels for noise addition for the standard barcode image, and generates a series of test cases accordingly; the dot matrix unit module The predetermined radius is in the range of 1-10 pixels, and the test case generation module selects various predetermined radius dot matrix unit modules for adjustment for the standard bar code image, and generates a series of test cases accordingly; the predetermined size of the unit module is in the range of 1-10 mm, and the test case generation module selects various predetermined sizes of unit modules for adjustment for the standard bar code image, and generates a series of test cases accordingly; the predetermined speed is in the range of 1-50 cm/s, and the test case generation module selects various predetermined speeds for translation for the standard bar code image, and generates corresponding test cases accordingly; the test case generation module selects any combination of the predetermined angle, predetermined contrast, predetermined distortion coefficient, predetermined noise level, predetermined radius of the unit module in the dot matrix, predetermined size of the unit module, and predetermined speed for adjustment for the standard bar code image, and generates corresponding test cases accordingly. 2.根据权利要求1所述的系统,其特征在于,所述扫码设备与所述条码生成设备能通过USB、串口、WIFI或蓝牙方式进行通信连接;所述预定识读距离为10厘米;所述预定时间为10秒;所述条码生成设备为智能手机、平板电脑或个人电脑;所述条码生成设备还包括用于在所述显示模块上显示用例模拟条码图像的图形用户界面GUI,所述GUI还显示相应条码的以下属性:内容长度、纠错等级以及单元模块大小。2. The system according to claim 1 is characterized in that the code scanning device and the barcode generating device can be communicatively connected via USB, serial port, WIFI or Bluetooth; the predetermined reading distance is 10 cm; the predetermined time is 10 seconds; the barcode generating device is a smart phone, a tablet computer or a personal computer; the barcode generating device also includes a graphical user interface GUI for displaying a use case simulation barcode image on the display module, and the GUI also displays the following properties of the corresponding barcode: content length, error correction level and unit module size. 3.根据权利要求1所述的系统,其特征在于,所述条码种类包括以下至少一种条码:Code128、Code39、Code93、UPC-A、UPC-E、EAN8、EAN13、工业25码、Databar、PDF417、QR、DataMatrix以及AZTEC。3. The system according to claim 1 is characterized in that the barcode types include at least one of the following barcodes: Code 128, Code 39, Code 93, UPC-A, UPC-E, EAN8, EAN13, Industrial 25 Code, Databar, PDF417, QR, DataMatrix and AZTEC. 4.一种用于评测扫码设备性能的方法,其包括以下步骤:4. A method for evaluating the performance of a code scanning device, comprising the following steps: (a)、根据预定条码种类以及预定条码内容、通过条码生成程序生成标准条码图像;(a) generating a standard barcode image through a barcode generation program according to a predetermined barcode type and predetermined barcode content; (b)、基于所生成的标准条码图像以及测试项,通过图像处理程序模拟实际使用场景下相应的条码形态,从而得到相应的模拟条码图像;(b) Based on the generated standard barcode image and the test items, the corresponding barcode form in the actual usage scenario is simulated by an image processing program to obtain a corresponding simulated barcode image; (c)、根据选取的条码种类、条码形态及测试项相关参数生成一个或多个测试用例,并根据所述一个或多个测试用例调用所述图像处理程序对应生成多个用例模拟条码图像,其中每个测试用例均对应一个或多个测试项;(c) generating one or more test cases according to the selected barcode type, barcode form and test item related parameters, and calling the image processing program according to the one or more test cases to generate a plurality of test case simulation barcode images, wherein each test case corresponds to one or more test items; (d)、显示每个测试用例对应的用例模拟条码图像并使之以相距预定识读距离的方式正对所述扫码设备的扫描头,启动所述扫描头对所述用例模拟条码图像进行扫码,判断所述扫码设备在预定时间内的识读结果是否与对应的预定条码内容相一致,若相一致则判定本次扫码成功,若不一致则判定本次扫码失败,并针对每个测试用例记录用例相关属性及扫码成功或扫码失败的结果;以及(d) displaying the simulated barcode image corresponding to each test case and directing it toward the scanning head of the barcode scanning device at a predetermined reading distance, starting the scanning head to scan the simulated barcode image, and determining whether the reading result of the barcode scanning device within a predetermined time is consistent with the corresponding predetermined barcode content; if they are consistent, determining that the scanning is successful; if they are inconsistent, determining that the scanning is unsuccessful; and recording the relevant attributes of the test case and the result of successful or failed scanning for each test case; and (e)、在完成对所有用例模拟条码图像的扫码后,根据针对每个测试用例的相关记录,进行统计分类处理并输出报告;(e) After completing the scanning of the simulated barcode images of all test cases, statistical classification processing is performed and a report is output based on the relevant records for each test case; 步骤(b)中的所述测试项包括对所述标准条码图像进行以下项扫码测试:旋转测试、对比度测试、透视畸变测试、增加噪点或干扰测试、识读精度测试以及平移过程测试;步骤(b)中的所述图像处理程序包括与所述测试项相对应的多个图像处理子程序,所述多个图像处理子程序分别用于将标准条码图像以预定角度进行旋转、以预定对比度等级进行调节、以预定畸变系数进行透视畸变、以预定噪声等级增加噪点或干扰、以预定半径的圆点点阵单元模块进行调节、以与识读精度相对应的预定大小的单元模块进行调节、以预定速度平移以及以上各项各种组合而得到相应的模拟条码图像;The test items in step (b) include performing the following scanning tests on the standard barcode image: rotation test, contrast test, perspective distortion test, noise or interference addition test, reading accuracy test and translation process test; the image processing program in step (b) includes a plurality of image processing subroutines corresponding to the test items, and the plurality of image processing subroutines are respectively used to rotate the standard barcode image at a predetermined angle, adjust it at a predetermined contrast level, perform perspective distortion at a predetermined distortion coefficient, add noise or interference at a predetermined noise level, adjust it at a dot matrix unit module of a predetermined radius, adjust it at a unit module of a predetermined size corresponding to the reading accuracy, translate it at a predetermined speed, and various combinations of the above items to obtain a corresponding simulated barcode image; 所述预定角度包括0-60度的预定偏航角、0-60度的预定俯仰角以及0-360度的预定翻滚角,步骤(c)中针对所述标准条码图像选取各种预定俯仰角、预定偏航角以及预定翻滚角进行调节,对应生成一系列测试用例;所述预定对比度等级为0-10级,步骤(c)中针对所述标准条码图像选取各种预定对比度等级进行调节,对应生成一系列测试用例;所述预定畸变系数的调节范围为0-X,步骤(c)中针对标准条码图像以预定步长选取预定畸变系数进行透视畸变,对应生成一系列测试用例;所述预定噪声等级为0-10级,步骤(c)中针对所述标准条码图像选取各种预定噪声等级进行加噪,对应生成一系列测试用例;所述圆点点阵单元模块的预定半径在1-10像素的范围内,步骤(c)中针对标准条码图像分别选取各种预定半径的圆点点阵单元模块进行调节,对应生成一系列测试用例;所述单元模块的预定大小在1-10毫米的范围内,步骤(c)中针对所述标准条码图像选取各种预定大小的单元模块进行调节,对应生成一系列测试用例;所述预定速度在1-50cm/s范围内,步骤(c)中针对标准条码图像分别选取各种预定速度进行平移,对应生成相应的测试用例;步骤(c)中针对所述标准条码图像选用所述预定角度、预定对比度、预定畸变系数、预定噪声等级、所述圆点点阵中圆点的预定半径、单元模块的预定大小、预定速度中任意多个的组合进行调节,对应生成相应的测试用例。The predetermined angles include a predetermined yaw angle of 0-60 degrees, a predetermined pitch angle of 0-60 degrees, and a predetermined roll angle of 0-360 degrees. In step (c), various predetermined pitch angles, predetermined yaw angles, and predetermined roll angles are selected for the standard barcode image for adjustment, and a series of test cases are generated accordingly; the predetermined contrast level is 0-10 levels. In step (c), various predetermined contrast levels are selected for the standard barcode image for adjustment, and a series of test cases are generated accordingly; the adjustment range of the predetermined distortion coefficient is 0-X. In step (c), a predetermined distortion coefficient is selected with a predetermined step length for perspective distortion of the standard barcode image, and a series of test cases are generated accordingly; the predetermined noise level is 0-10 levels. In step (c), various predetermined noise levels are selected for noise addition for the standard barcode image, and a series of test cases are generated accordingly; the dot matrix unit module The predetermined radius is in the range of 1-10 pixels, and in step (c), various predetermined radius dot matrix unit modules are selected for adjustment for the standard bar code image, and a series of test cases are generated accordingly; the predetermined size of the unit module is in the range of 1-10 mm, and in step (c), various predetermined sizes of unit modules are selected for adjustment for the standard bar code image, and a series of test cases are generated accordingly; the predetermined speed is in the range of 1-50 cm/s, and in step (c), various predetermined speeds are selected for translation for the standard bar code image, and corresponding test cases are generated accordingly; in step (c), any combination of the predetermined angle, predetermined contrast, predetermined distortion coefficient, predetermined noise level, predetermined radius of the dots in the dot matrix, predetermined size of the unit module, and predetermined speed are selected for adjustment for the standard bar code image, and corresponding test cases are generated accordingly. 5.根据权利要求4所述的方法,其特征在于,在步骤(d)中,所述预定识读距离为10厘米,所述预定时间为10秒,步骤(d)中通过图形用户界面GUI显示用例模拟条码图像,所述GUI还显示相应条码的内容长度、纠错等级以及单元模块大小。5. The method according to claim 4 is characterized in that, in step (d), the predetermined reading distance is 10 cm, the predetermined time is 10 seconds, and in step (d), the use case simulation barcode image is displayed through a graphical user interface GUI, and the GUI also displays the content length, error correction level and unit module size of the corresponding barcode. 6.根据权利要求4所述的方法,其特征在于,所述条码种类包括以下至少一种条码:Code128、Code39、Code93、UPC-A、UPC-E、EAN8、EAN13、工业25码、Databar、PDF417、QR、DataMatrix以及AZTEC。6. The method according to claim 4, characterized in that the barcode type includes at least one of the following barcodes: Code 128, Code 39, Code 93, UPC-A, UPC-E, EAN8, EAN13, Industrial 25 Code, Databar, PDF417, QR, DataMatrix and AZTEC.
CN202010977757.1A 2020-09-17 2020-09-17 A system and method for evaluating the performance of a barcode scanning device Active CN112115731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010977757.1A CN112115731B (en) 2020-09-17 2020-09-17 A system and method for evaluating the performance of a barcode scanning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010977757.1A CN112115731B (en) 2020-09-17 2020-09-17 A system and method for evaluating the performance of a barcode scanning device

Publications (2)

Publication Number Publication Date
CN112115731A CN112115731A (en) 2020-12-22
CN112115731B true CN112115731B (en) 2024-11-15

Family

ID=73803400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010977757.1A Active CN112115731B (en) 2020-09-17 2020-09-17 A system and method for evaluating the performance of a barcode scanning device

Country Status (1)

Country Link
CN (1) CN112115731B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112927183A (en) * 2021-01-13 2021-06-08 上海商米科技集团股份有限公司 Lens module detection method and system of specific image recognition equipment
CN112836530B (en) * 2021-01-27 2023-06-27 迅镭智能(广州)科技有限公司 Detection method, device, equipment and medium of scanning gun
CN113673263B (en) * 2021-07-02 2023-10-03 浪潮金融信息技术有限公司 Method, system and medium for testing bar code reader
CN114330385A (en) * 2021-12-28 2022-04-12 福建新大陆支付技术有限公司 Test method of missing one-dimensional bar code and computer readable medium
CN115420531B (en) * 2022-08-09 2025-03-25 福建新大陆自动识别技术有限公司 A three-axis automated testing method and system
CN118364831B (en) * 2024-06-18 2024-09-27 苏州安可信通信技术有限公司 Test method and system of bar code recognition equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034071A (en) * 2009-09-25 2011-04-27 神基科技股份有限公司 Automatic test system and automatic test method for testing bar code identification device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833643B (en) * 2010-06-01 2012-05-23 福建新大陆电脑股份有限公司 Decoding chip for compound-code barcode
CN106682552A (en) * 2017-01-23 2017-05-17 福建新大陆电脑股份有限公司 Bar code identifying and reading test system and method thereof for mechanical arm
CN107633187A (en) * 2017-08-31 2018-01-26 福建联迪商用设备有限公司 A kind of method and terminal for testing barcode scanning performance
CN107506671B (en) * 2017-09-12 2020-05-19 福建联迪商用设备有限公司 Depth of field testing method, system and device of code scanning device
CN107798793B (en) * 2017-10-10 2021-03-23 深圳市新国都支付技术有限公司 Method, system and equipment for automatic code scanning test of POS machine
CN108616755B (en) * 2018-04-12 2019-10-08 Oppo广东移动通信有限公司 Image processing apparatus testing method, apparatus, device, and storage medium
CN109032115A (en) * 2018-08-13 2018-12-18 武汉楚冠捷汽车科技有限公司 A kind of ECU controller performance detection device
CN109753834A (en) * 2019-02-17 2019-05-14 北京意锐新创科技有限公司 Performance test methods and device based on two dimension code reading device
CN110691011A (en) * 2019-10-14 2020-01-14 重庆紫光华山智安科技有限公司 Monitoring platform test method and device, storage medium and server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034071A (en) * 2009-09-25 2011-04-27 神基科技股份有限公司 Automatic test system and automatic test method for testing bar code identification device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"基于二维码的证件认证技术研究与实现";潘璐;《中国优秀硕士学位论文全文数据库信息科技辑》;20150815(第8期);第52-59页 *
张国利."QR码美化算法及安全机制研究".2018,(第5期),第26-35页. *
潘璐."基于二维码的证件认证技术研究与实现".2015,(第8期),第52-59页. *

Also Published As

Publication number Publication date
CN112115731A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN112115731B (en) A system and method for evaluating the performance of a barcode scanning device
US10410030B2 (en) System and method for recognizing deformed linear barcodes from a stream of varied focus video frames
CA2667378C (en) System and method for optimisation of media objects
CN112183536B (en) Custom functional patterns for optical bar codes
US9443123B2 (en) System and method for indicia verification
RU2740702C2 (en) Automation of image verification
CN104798086A (en) Detecting embossed characters on form factor
US20090078772A1 (en) Techniques for decoding images of barcodes
CN106326802B (en) Quick Response Code bearing calibration, device and terminal device
WO2003001435A1 (en) Image based object identification
US10372954B2 (en) Method for reading indicia off a display of a mobile device
US20060213997A1 (en) Method and apparatus for a cursor control device barcode reader
CN102034071A (en) Automatic test system and automatic test method for testing bar code identification device
CN104714009A (en) Immunoassay detection system and detection method
JP2017521011A (en) Symbol optical detection method
JP2012018494A (en) Bar code symbol reader, bar code symbol reading method, and computer program
Udvaros et al. Recognize and decode QR codes from images
Duchon et al. Reliability of barcode detection
US11657242B2 (en) Information code reading system, information code reader, and information code
EP4425371B1 (en) Barcode image recognition method and device using the same
TWM563621U (en) A system for recognizing bread
CN119991865A (en) A method for making fuzzy barcode
Adelmann An efficient bar code recognition engine for enabling mobile services
CN119180787A (en) Product defect detection method, electronic device and storage medium
KR20230048230A (en) Online letter system and method using the identification code

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
GR01 Patent grant
GR01 Patent grant