Commodity barcode comparison device and comparison method
By designing a comparator with magnification reference lines, mapping reference lines and equal scale reference lines, the problem of low detection efficiency of barcode blank area and module width in the prior art is solved, and fast and efficient barcode quality detection is achieved, reducing costs.
Patent Information
- Application Number
- CN202411950549.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The existing barcode measuring rulers cannot quickly determine whether the barcode blank area and module width meet the standard requirements, resulting in low efficiency and high cost of barcode quality detection.
Design a product barcode comparator, including a transparent alignment board body, and by setting a magnification reference line, a mapping reference line and an isometric reference line, it is possible to quickly compare whether the barcode blank area and module width comply with the regulations.
The efficiency of barcode blank area and module detection is improved, and the cost of daily control of barcode blank area printing quality of enterprises is reduced, and a comprehensive inspection, comparison and measurement of the total width of barcode module and the width of blank area is realized.
Smart Images

Figure CN119374445B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of commodity barcode quality detection, and in particular to a commodity barcode comparison device and comparison method. Background Art
[0002] Barcodes, or barcodes, are composed of a set of regularly arranged bars, spaces and their corresponding codes, which are used to express and identify retail goods, storage and transportation packaging goods, logistics units, and the location of participants. Among them, the retail product code is a unique code that identifies the identity of goods in the retail industry and is globally unique. The retail product code is formulated by the International Article Numbering Association, and its barcode representation adopts the EAN / UPC barcode system defined in ISO / IEC 15420. There are four structures of EAN / UPC barcodes: EAN-13, EAN-8, UPC-A, and UPC-E. EAN / UPC barcodes are graphic identifiers that arrange multiple black bars (referred to as bars) and white bars (referred to as spaces) of equal width and with very different reflectivity into parallel line patterns according to certain coding rules to express a set of information. It can identify a variety of information such as the country of production, manufacturer, product name, specifications and models of goods. Because it has the advantages of fast information collection speed, high reliability, large amount of information, large degree of freedom, convenient production, and flexible use, it has been widely used in the field of commodity circulation.
[0003] EAN / UPC barcodes are generally printed on product packaging for use in supermarkets, shopping malls and other places by scanning and identifying the product. Therefore, the quality of printing plays a crucial role in the speed and accuracy of identification.
[0004] In order to make the barcodes able to be effectively identified, the relevant standards have made clear provisions for the barcode's decodability, optical properties, blank area width, symbol level, Z size (single module width) and other indicators. Among them, the barcode blank area size and module width are mandatory items for barcode quality detection, which directly affect the accuracy of barcode recognition and are also the most common non-conformities that lead to unqualified barcode quality.
[0005] At present, there are many members of the barcode system, and the existing barcode measuring ruler can only be used to detect the magnification factor of the barcode. There is no tool that can quickly determine whether the blank area and module width of the barcode meet the requirements. Enterprises usually need to send barcode samples to local branches of the National Article Coding Center for testing and judgment. The conventional detection and judgment method is also relatively complicated. Generally, it is: first use a length measuring tool to measure the width of the blank area, then use a barcode detector to measure the Z value, and judge whether the Z value is qualified, and then determine whether the blank area meets the standard requirements by calculation and comparison. The detection efficiency is low. Moreover, the width of the barcode blank area is related to the Z size, but the barcode pattern itself is small, and the single module of the start and end characters is very thin. The Z size cannot be accurately measured by conventional length measuring tools. If the enterprise is equipped with a barcode detection instrument, it will need to increase additional expenses, and the lack of this equipment makes it difficult to measure the Z size, so it is impossible to conduct self-inspection and daily control of the printing quality of the barcode blank area. Therefore, there is an urgent need for a tool that can conveniently and quickly measure the size of the barcode blank area and whether the module width meets the regulations. Summary of the invention
[0006] The purpose of the present invention is to provide a commodity barcode comparison device and comparison method, which can conveniently and quickly compare and detect the barcode blank area and module width, improve the efficiency of barcode blank area and module detection, and reduce the cost of daily management and control of barcode blank area printing quality by enterprises. The technical solution adopted by the present invention is as follows.
[0007] In one aspect, the present invention provides a commodity barcode comparison device, comprising a transparent comparison plate body, wherein an X-axis line is arranged on the surface of the comparison plate body, and two sides of the X-axis line are a left empty measurement area and a right empty measurement area respectively;
[0008] The left empty measurement area and the right empty measurement area are respectively provided with a Y axis perpendicular to and intersecting the X axis, and the left empty measurement area and the right empty measurement area are respectively divided into a module measurement part and a blank area measurement part by the corresponding Y axis;
[0009] Taking the intersection of the Y axis and the X axis as the origin, the two module measurement parts are both provided with a magnification reference line passing through the corresponding origin, wherein the slope of the magnification reference line of the left blank measurement area is the ratio of the preset width of the left blank area of the barcode to the total width of the barcode module, and the slope of the magnification reference line of the right blank measurement area is the ratio of the preset width of the right blank area of the barcode to the total width of the barcode module; in each module measurement part, a plurality of mapping reference lines parallel to the X axis are connected between the magnification reference line and the Y axis;
[0010] The two blank area measurement parts are each provided with a plurality of equal-scale reference lines, the two ends of each equal-scale reference line are respectively connected to the X-axis line and the Y-axis line, and the angles between each equal-scale reference line and the X-axis line and the Y-axis line are 45 degrees;
[0011] In both the left empty measurement area and the right empty measurement area, a plurality of mapping reference lines and a plurality of equal-scale reference lines are connected to the corresponding Y axis lines.
[0012] According to the standard provisions for identifiable barcodes, the above technical solution stipulates that the minimum width of the barcode blank area and the total width of the module are both specified multiples of the barcode Z value. Therefore, the comparator is designed based on the relationship between the barcode blank area width, the total module width and the barcode Z value. The actual value of the total width of the barcode module is associated with the theoretical minimum value of the blank area width through the magnification reference line and the equal scale line. When in use, it is only necessary to align the barcode module area with the module measurement part, find the point corresponding to the module width on the magnification reference line, and then map the Y-axis coordinate of the point to the blank area measurement part through the mapping reference line and the equal scale line. It can quickly determine whether the blank area width meets the minimum blank area width requirement corresponding to the total module width, and the comparison detection is convenient and fast.
[0013] It should be noted that, considering that the comparator of the present invention is placed according to the direction of the barcode, the above-mentioned X-axis and Y-axis are not limited to the horizontal X-axis and the vertical Y-axis in the plane coordinate system.
[0014] Optionally, the positions of the module measurement parts and the blank area measurement parts in the left empty measurement area and the right empty measurement area satisfy: when the barcode is projected onto the left empty measurement area and the outer edge of the barcode start symbol coincides with the Y axis line of the left empty measurement area, the blank area on the left side of the barcode is projected onto the blank area measurement part of the left empty measurement area; when the barcode is projected onto the right empty measurement area and the outer edge of the barcode end symbol coincides with the Y axis line of the right empty measurement area, the blank area on the right side of the barcode is projected onto the blank area measurement part of the left empty measurement area. Under this concept, the Y axis line on the comparison board body can be set to one or two, that is:
[0015] As an implementation method, the Y axes of the left and right blank measurement areas are on the same straight line, the blank area measurement portion of the left blank measurement area is adjacent to the module measurement portion of the right blank measurement area, and the module measurement portion of the left blank measurement area is adjacent to the blank area measurement portion of the right blank measurement area. However, in this implementation method, since the length of the module measurement portion must adapt to the total length of the barcode, and the module measurement portions of the left and right blank measurement areas extend away from each other, the entire comparison board body will need to be relatively long, which is inconvenient to carry and place;
[0016] Therefore, as another embodiment, the left empty measurement area and the right empty measurement area are provided with mutually staggered Y axes, the blank area measurement parts of the left empty measurement area and the right empty measurement area are far away from each other, and the module measurement parts of the left empty measurement area and the right empty measurement area are at least partially adjacent. In this embodiment, the entire length of the left empty measurement area and the right empty measurement area are designed to adapt to the full length of the comparison board body, which can reduce the area and length of the comparator, making it convenient to carry, place and use.
[0017] Since the barcode standard specifies the barcode Z value (i.e., single module width) at different magnification factors, as well as the barcode magnification factor range, the following technical solution can not only minimize the size of the comparator, but also detect whether the barcode module width is qualified, considering the possible size range of the actual barcode:
[0018] The X-axis coordinate value of the end point of the magnification reference line away from the origin is at least equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor;
[0019] At least the module measurement portion of the left empty measurement area or the right empty measurement area is provided with a magnification factor reference line parallel to the Y axis, and the magnification factor reference line includes a maximum coefficient reference line and a minimum coefficient reference line, wherein the X-axis coordinate value of the point where the maximum coefficient reference line intersects with the magnification reference line is equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor, and the X-axis coordinate value of the point where the minimum coefficient reference line intersects with the magnification reference line is equal to the lower limit value of the total width of the barcode module corresponding to the set minimum magnification factor.
[0020] During the comparison test, the barcode is projected onto the module measurement part and one side edge is aligned with the Y axis. If the other side edge exceeds the range defined by the two magnification factor reference lines, it means that the total width of the barcode module is unqualified, and there is no need to test the blank area width. Since the total width of the barcode only needs to be tested once, the magnification factor reference line can be set only in the left blank measurement area or the right blank measurement area, and of course, it can also be set in both the left blank measurement area and the right blank measurement area.
[0021] Taking into account that barcodes with unqualified total barcode module width no longer need to be compared for blank areas, therefore, in some possible embodiments: among multiple mapping reference lines, the points where the two edgemost reference lines intersect with the magnification reference line are the points where the minimum coefficient reference line and the maximum coefficient reference line intersect with the magnification reference line, respectively.
[0022] Optionally, the multiple equal-scale reference lines are equidistantly arranged, the multiple mapping reference lines are equidistantly arranged, and each mapping reference line is connected to an equal-scale reference line on the Y axis. In this implementation, it is easier for the user to visually determine the position of the minimum value of the blank area width corresponding to the barcode to be tested on the X axis.
[0023] Optionally, the comparison board body is square and can be made of a glass substrate or a film. On the comparison board body made of a glass substrate, the lines can be other colors other than black, and preferably different colors are used for different types of lines, which is easier to distinguish and detect. Using a film for the comparison board body can greatly reduce the production cost and is conducive to the rapid promotion of the product.
[0024] In a second aspect, the present invention provides a comparison method based on the commodity barcode comparison device described in the first aspect, comprising:
[0025] A) When using the left empty measurement area for barcode comparison:
[0026] Cover the comparison board body on the surface of the barcode to be detected, so that the Y axis of the left blank measurement area coincides with the outer edge line of the first module of the barcode start symbol, and the barcode is projected on the module measurement part of the left blank measurement area, and the left blank area of the barcode is projected on the blank area measurement part of the left blank measurement area;
[0027] Obtain the actual intersection point between the outer edge line of the last module of the barcode terminator and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point between the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the left blank area of the barcode on the X-axis line;
[0028] Determine whether the boundary line of the left blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the left blank area of the barcode is qualified;
[0029] B) When using the right empty measurement area for barcode comparison:
[0030] Cover the comparison plate body on the surface of the barcode to be detected, so that the Y axis of the right blank measurement area coincides with the outer edge line of the last module of the barcode terminator, and the barcode is projected on the module measurement part of the right blank measurement area, and the right blank area of the barcode is projected on the blank area measurement part of the right blank measurement area;
[0031] Obtain the actual intersection point of the outer edge line of the first module of the barcode start character and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point of the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the right blank area of the barcode on the X-axis line;
[0032] It is determined whether the boundary line of the right blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the right blank area of the barcode is qualified.
[0033] It should be noted that the inner and outer sides of the first module of the start character and the last module of the end character are distinguished according to whether they face other modules of the barcode or the blank area. The side close to other modules of the barcode is the inner side, and the side facing the blank area is the outer side.
[0034] In a third aspect, the present invention provides another comparison method based on the commodity barcode comparison device of the first aspect, wherein, on the comparison plate body of the commodity barcode comparison device, at least the module measurement portion of the left empty measurement area or the right empty measurement area is provided with a magnification factor reference line parallel to the Y axis, and the magnification factor reference line includes a maximum coefficient reference line and a minimum coefficient reference line, wherein the X-axis coordinate value of the point where the maximum coefficient reference line intersects with the magnification reference line is equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor, and the X-axis coordinate value of the point where the minimum coefficient reference line intersects with the magnification reference line is equal to the lower limit value of the total width of the barcode module corresponding to the set minimum magnification factor;
[0035] Comparison methods include:
[0036] S1, using the left empty measurement area or the right empty measurement area with a magnification coefficient reference line to perform module width comparison, including: covering the comparison board body on the surface of the barcode to be detected, so that the barcode is projected on the module measurement part, and one side edge line of the barcode module coincides with the Y axis line; judging whether the other side edge line of the barcode module is between the maximum coefficient reference line and the minimum coefficient reference line, if satisfied, the barcode module width is qualified, and turning to step S2, if not satisfied, it is judged that the barcode module width is unqualified, and the comparison detection is stopped; it should be noted here that the "between the maximum coefficient reference line and the minimum coefficient reference line" includes the position where the maximum coefficient reference line and the minimum coefficient reference line are located;
[0037] S2, detect the width of the blank area of the barcode, including:
[0038] A) When using the left empty measurement area for barcode comparison:
[0039] Cover the comparison board body on the surface of the barcode to be detected, so that the Y axis of the left blank measurement area coincides with the outer edge line of the first module of the barcode start symbol, and the barcode is projected on the module measurement part of the left blank measurement area, and the left blank area of the barcode is projected on the blank area measurement part of the left blank measurement area;
[0040] Obtain the actual intersection point between the outer edge line of the last module of the barcode terminator and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point between the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the left blank area of the barcode on the X-axis line;
[0041] Determine whether the boundary line of the left blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the left blank area of the barcode is qualified;
[0042] B) When using the right empty measurement area for barcode comparison:
[0043] Cover the comparison plate body on the surface of the barcode to be detected, so that the Y axis of the right blank measurement area coincides with the outer edge line of the last module of the barcode terminator, and the barcode is projected on the module measurement part of the right blank measurement area, and the right blank area of the barcode is projected on the blank area measurement part of the right blank measurement area;
[0044] Obtain the actual intersection point of the outer edge line of the first module of the barcode start character and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point of the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the right blank area of the barcode on the X-axis line;
[0045] It is determined whether the boundary line of the right blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the right blank area of the barcode is qualified.
[0046] It should be noted that the density of the mapping reference lines and equal scale lines in the present invention should be as dense as possible while being clearly distinguishable, so as to be suitable for comparing and detecting barcodes with different magnification factors. When there is no mapping reference line at the intersection of the outer edge line of the start or end character of the barcode and the magnification reference line, after selecting the closest mapping reference line and then obtaining the connection point of the corresponding equal scale line and the X-axis line, the upper and lower positional relationship between the selected mapping reference line and the actual intersection should be considered, and the reference position point used to define the minimum width boundary of the blank area of the barcode should be moved left and right from the connection point of the selected equal scale line and the X-axis line.
[0047] Beneficial Effects
[0048] The commodity barcode comparison device of the present invention is provided with a left blank measurement area and a right blank measurement area respectively having a module measurement part and a blank area measurement part, and a magnification reference line and a mapping reference line are provided in the module measurement part, and an equal scale reference line is provided in the blank area measurement part, so that the user of the comparison device can compare and detect the actual widths of the left and right blank areas according to the total width of the barcode module. The comparison process does not require the aid of a barcode detector, and the detection efficiency and accuracy are both high.
[0049] At the same time, by setting the magnification factor reference line in the module measurement part, the present invention can enable the user to easily and quickly determine whether the total width of the barcode module is qualified. If it is unqualified, there is no need to perform blank area width detection. That is, the present invention can realize comprehensive detection and comparison of the total width of the barcode module and the blank area width. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 The product schematic diagram of the commodity barcode comparison device of the present invention in Example 2 is shown;
[0051] Figure 2 The product schematic diagram of the commodity barcode comparison device of the present invention in Example 3 is shown;
[0052] Figure 3 The product schematic diagram of the commodity barcode comparison device of the present invention in Example 4 is shown;
[0053] Figure 4 The figure shows the composition structure diagram of the EAN-13 code;
[0054] Figure 5 Shown is a schematic diagram of the EAN-13 code;
[0055] Figure 6 The figure shows a schematic diagram of the left empty measurement area of the comparator for EAN-13 code in the present invention;
[0056] Figure 7 The figure shows a schematic diagram of a comparison method for performing EAN-13 code left space detection using the left space measurement area of the comparator according to the present invention;
[0057] Figure 8 The figure shows a schematic diagram of a comparison method for performing right space detection of an EAN-13 code using the right space measurement area of a comparator according to the present invention;
[0058] Figures 1 to 8 In the figure, 1- comparison board body, 2- magnification reference line, 3- mapping reference line, 4- equal scale reference line, 5- EAN-13 code, 51- start character, 52- left data character, 53- middle separator, 54- right data character, 55- check character, 56- end character, 57- left blank area, 58- right blank area, 59- prefix code. DETAILED DESCRIPTION
[0059] The technical concept of the present invention is, according to the correlation between the width of the barcode blank area and the total width of the barcode module and the barcode Z value, by setting the form of a comparison board, and reasonably setting the magnification reference line, mapping reference line and equal scale reference line on the comparison board, so that the Y-axis coordinate of each point on the magnification reference line can be mapped to the X-axis line of the blank area measurement part, so that the minimum width boundary of the barcode blank area in the blank area measurement part can be determined according to the intersection of the module outer edge line in the module measurement part and the magnification reference line, so as to realize fast and efficient detection of the width of the barcode blank area.
[0060] The invention is further described below with reference to the accompanying drawings and specific embodiments.
[0061] Example 1
[0062] This embodiment introduces a commodity barcode comparison device. Figures 1 to 3 , which comprises a transparent comparison plate body 1, the surface of which is provided with an X-axis line, and the two sides of the X-axis line are a left empty measurement area and a right empty measurement area respectively;
[0063] The left empty measurement area and the right empty measurement area are respectively provided with a Y axis perpendicular to and intersecting the X axis, and the left empty measurement area and the right empty measurement area are respectively divided into a module measurement part and a blank area measurement part by the corresponding Y axis;
[0064] Taking the intersection of the Y axis and the X axis as the origin, the two module measurement parts are provided with a magnification reference line 2 passing through the corresponding origin, wherein the slope of the magnification reference line 2 of the left blank measurement area is the ratio of the preset width of the left blank area of the barcode to the total width of the barcode module, and the slope of the magnification reference line of the right blank measurement area is the ratio of the preset width of the right blank area of the barcode to the total width of the barcode module; in each module measurement part, a plurality of mapping reference lines 3 parallel to the X axis are connected between the magnification reference line and the Y axis;
[0065] Both blank area measurement parts are provided with a plurality of equal-scale reference lines 4, the two ends of each equal-scale reference line 4 are connected to the X-axis and the Y-axis respectively, and the angles between each equal-scale reference line 4 and the X-axis and the Y-axis are 45 degrees;
[0066] In both the left empty measurement area and the right empty measurement area, a plurality of mapping reference lines 3 and a plurality of equal-scale reference lines 4 are connected to the corresponding Y axis lines.
[0067] In this embodiment, the positions of the module measurement parts and the blank area measurement parts in the left empty measurement area and the right empty measurement area satisfy the following conditions: when the barcode is projected onto the left empty measurement area and the outer edge of the barcode start symbol coincides with the Y axis line of the left empty measurement area, the blank area on the left side of the barcode is projected onto the blank area measurement part of the left empty measurement area; when the barcode is projected onto the right empty measurement area and the outer edge of the barcode end symbol coincides with the Y axis line of the right empty measurement area, the blank area on the right side of the barcode is projected onto the blank area measurement part of the left empty measurement area. Under this concept, the Y axis line on the comparison board body can be set to one or two.
[0068] Since the minimum value of the barcode blank area width and the total module width are both specified multiples of the barcode Z value, in this embodiment, the comparator is designed based on the relationship between the barcode blank area width and the total module width and the barcode Z value, and the actual value of the barcode module total width is associated with the theoretical minimum value of the blank area width through the magnification reference line and the equal scale line, and is reflected in the blank area measurement part. When in use, it is only necessary to align the barcode module area with the module measurement part, find the point corresponding to the module width on the magnification reference line, and then map the Y-axis coordinate of the point to the blank area measurement part through the mapping reference line and the equal scale line, so as to quickly determine whether the blank area width meets the minimum blank area width requirement corresponding to the total module width.
[0069] It should be noted here that the density of the mapping reference lines and the equal scale lines is preferably as dense as possible while being clearly distinguishable, so as to be suitable for comparing and detecting barcodes with different magnification factors.
[0070] In a few application scenarios, when there is no mapping reference line at the intersection of the outer edge line of the start or end character of the barcode and the magnification reference line, after selecting the closest mapping reference line to obtain the connection point between the corresponding equal scale line and the X-axis line, the upper and lower positional relationship between the selected mapping reference line and the actual intersection point should be considered, and the reference position point used to define the minimum width boundary of the barcode blank area should be moved to the left or right from the connection point between the selected equal scale line and the X-axis line. For example, when performing a comparison test on the left blank area, if the selected mapping reference line is above the actual intersection point, the absolute value of the X-axis coordinate of the connection point between the equal scale line connected by the mapping reference line and the X-axis is actually larger than the absolute value of the X-axis coordinate of the minimum width boundary of the barcode blank area. Therefore, the reference position point used to define the minimum width boundary of the barcode blank area should be moved to the right from the connection point between the selected equal scale line and the X-axis. The distance moved can be calculated based on the vertical distance between the selected mapping reference line and the actual intersection point, or other linear objects can be used as auxiliary equal scale lines to determine the actual reference position point.
[0071] like Figures 1 to 3 The comparison board body can be square or other shapes, and can be made of glass substrate or film. On the comparison board body made of glass substrate, the lines can be other colors other than black, and preferably different colors are used for different types of lines, which is easier to distinguish and detect. The comparison board body uses film, which can greatly reduce the production cost and is conducive to the rapid promotion of products.
[0072] Example 2
[0073] Based on Example 1, considering that the entire length of the left empty measurement area and the right empty measurement area are adapted to the entire length of the comparison plate body, and as a tool that can conveniently perform barcode comparison and detection, the length of the comparison plate body should not be too large or too long.
[0074] Therefore, in this embodiment, Figure 1 The left empty measurement area and the right empty measurement area are provided with Y axes that are staggered from each other, the blank area measurement parts of the left empty measurement area and the right empty measurement area are far away from each other, and the module measurement parts of the left empty measurement area and the right empty measurement area are at least partially adjacent.
[0075] At the same time, in order to make it easier for users to judge the position of the minimum width of the blank area corresponding to the barcode to be tested on the X-axis line by naked eyes, in this embodiment, multiple equal-scale reference lines 4 are equidistantly arranged, multiple mapping reference lines 3 are equidistantly arranged, and each mapping reference line is connected to an equal-scale reference line on the Y-axis line.
[0076] The following is the design and description of the comparer for the common EAN-13 barcode.
[0077] refer to Figure 4 and Figure 5 ,in Figure 5 The structure of the EAN-13 barcode is shown. It should be noted that since the barcode is only for illustration, the module part is spot-shaped and the space is truncated for the purpose of non-scanning. Figure 7 and Figure 8 In the image, the barcode is dotted to make it unscannable.
[0078] Depend on Figure 4 and Figure 5 From left to right, the EAN-13 barcode includes the left blank area 57, the start character 51, the left data character 52, the middle separator 53, the right data character 54, the check character 55, the end character 56 and the right blank area 58. The Z value of the barcode is the single module width of the barcode. When the magnification factor of the barcode is determined, the single module width is determined. For the EAN-13 barcode, the minimum width of the left blank area 57 is 11 modules wide, that is, 11Z, the width from the start character 51 to the end character 56 is 95 modules wide, that is, 95Z, and the minimum width of the right blank area 58 is 7 modules wide. It can be calculated that the slope of the magnification reference line in the left blank measurement area should be k1=11Z / 95Z=11 / 95, and the slope of the magnification reference line in the right blank measurement area should be k2=7Z / 95Z=7 / 95.
[0079] refer to Figure 6 , in the left empty measurement area, the ratio of the Y-axis coordinate to the X-axis coordinate of any point on the magnification reference line OP is 11:95, and the angle between the magnification reference line OP and the X-axis is α. The mapping reference line AP maps the Y-axis coordinate of the point on the magnification reference line to the X-axis through the equal-scale reference line AB, and the ratio of OA to OP is converted to the ratio of OB to OP, which is also 11:95.
[0080] Recombination Figure 6 and Figure 7When conducting a comparison test, cover the comparison ruler on the barcode, project the barcode module onto the module measurement part, align one side edge of the barcode module with the Y axis, and then obtain the actual intersection of the other side edge of the barcode module and the magnification reference line. The Y-axis coordinate of the actual intersection can be obtained by the mapping reference line and the equal scale reference line and mapped to the reference position point of the X axis of the blank area measurement part. Use it as the minimum value of the allowed blank area width to determine the qualified barcode blank area width range, and judge whether the barcode blank area edge falls within the qualified barcode blank area width range. Then, you can quickly read and judge whether the blank area width of the measured barcode is qualified.
[0081] Example 3
[0082] refer to Figure 2 , which is different from Example 2, in this embodiment, the Y axes of the left empty measurement area and the right empty measurement area are on the same straight line, the blank area measurement part of the left empty measurement area is adjacent to the module measurement part of the right empty measurement area, and the module measurement part of the left empty measurement area is adjacent to the blank area measurement part of the right empty measurement area.
[0083] However, in this implementation, since the length of the module measurement part must adapt to the total length of the barcode, and the module measurement parts of the left and right blank measurement areas extend away from each other, the length of the entire comparison board body must be greater than twice the total length of the barcode. If the comparison board is too long, it is inconvenient to carry, place and use. Therefore, although this embodiment does not affect the detection of the width of the blank area of the barcode, it is not a preferred implementation.
[0084] Example 4
[0085] Since the barcode standard specifies the barcode Z value, i.e., the single module width, and the barcode magnification range under different magnification factors, the barcode format size and length under different magnification factors are also different. Therefore, based on embodiments 1 to 3, this embodiment considers the possible format size range of the actual barcode, and designs the comparator to detect the total width of the barcode module while minimizing the size of the comparator, as follows.
[0086] refer to Figure 3 In the left empty measurement area and the right empty measurement area, the X-axis coordinate value of the end point of the magnification reference line away from the respective origins is at least equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor. Generally speaking, it is preferred that the X-axis coordinate value of the end point of the magnification reference line is much larger than the upper limit value of the total width of the barcode module.
[0087] At the same time, at least the module measurement part of the left empty measurement area or the right empty measurement area is provided with a magnification factor reference line parallel to the Y-axis line, and the magnification factor reference line includes a maximum coefficient reference line and a minimum coefficient reference line, wherein the X-axis coordinate value of the point where the maximum coefficient reference line intersects with the magnification reference line is equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor, and the X-axis coordinate value of the point where the minimum coefficient reference line intersects with the magnification reference line is equal to the lower limit value of the total width of the barcode module corresponding to the set minimum magnification factor.
[0088] During the comparison test, the barcode is projected onto the module measurement part and one side edge is aligned with the Y axis. If the other side edge exceeds the range defined by the two magnification factor reference lines, it means that the total width of the barcode module is unqualified, and there is no need to test the blank area width. Since the total width of the barcode only needs to be tested once, the magnification factor reference line can be set only in the left blank measurement area or the right blank measurement area, and of course, it can also be set in both the left blank measurement area and the right blank measurement area.
[0089] For EAN-13 code, the theoretical value of the single module width is expressed by X dimension, and the actual value is expressed by Z dimension. The X value at 1x magnification factor is 0.330mm, and the standard barcode magnification factor range is 0.80~2.00. Correspondingly, the standard X value range is 0.264mm~0.660mm. Therefore, Figure 3 In the embodiment shown, the module measurement part of the left empty measurement area sets a minimum coefficient reference line corresponding to a magnification factor of 0.8 times at the X-axis coordinate of 0.264mm, a reference coefficient reference line corresponding to a magnification factor of 10 times at the X-axis coordinate of 0.330mm, and a maximum coefficient reference line corresponding to a magnification factor of 2.0 times at the X-axis coordinate of 0.660mm, which are marked as "0.8 times base line", "1.0 times base line" and "2.0 times base line" respectively. These marks on the comparison board, together with "left empty", "right empty", etc., are all to enable users to clearly distinguish different measurement areas and comparison bases, so as to complete barcode comparison detection more efficiently.
[0090] Furthermore, considering that barcodes with unqualified total width of barcode modules no longer need to be compared with blank areas, it is preferred that: among multiple mapping reference lines, the points where the two edgemost reference lines intersect with the magnification reference line are the points where the minimum coefficient reference line and the maximum coefficient reference line intersect with the magnification reference line, respectively.
[0091] Example 5
[0092] This embodiment introduces a comparison method of a commodity barcode comparator that can be implemented using any of the implementation methods in Embodiments 1 to 4, including:
[0093] A) When using the left empty measurement area for barcode comparison, refer to Figure 7 As shown:
[0094] Cover the comparison board body on the surface of the barcode to be detected, so that the Y axis of the left blank measurement area coincides with the outer edge line of the first module of the barcode start symbol, and the barcode is projected on the module measurement part of the left blank measurement area, and the left blank area of the barcode is projected on the blank area measurement part of the left blank measurement area;
[0095] Obtain the actual intersection point between the outer edge line of the last module of the barcode terminator and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point between the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the left blank area of the barcode on the X-axis line;
[0096] Determine whether the boundary line of the left blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the left blank area of the barcode is qualified;
[0097] B) When using the right empty measurement area for barcode comparison, refer to Figure 8 As shown:
[0098] Cover the comparison plate body on the surface of the barcode to be detected, so that the Y axis of the right blank measurement area coincides with the outer edge line of the last module of the barcode terminator, and the barcode is projected on the module measurement part of the right blank measurement area, and the right blank area of the barcode is projected on the blank area measurement part of the right blank measurement area;
[0099] Obtain the actual intersection point of the outer edge line of the first module of the barcode start character and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point of the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the right blank area of the barcode on the X-axis line;
[0100] It is determined whether the boundary line of the right blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the right blank area of the barcode is qualified.
[0101] The detection method of this embodiment may not consider whether the total width value of the barcode module is qualified, or it may be performed after the barcode Z value and the total width value of the module are detected by other means. It should be noted that the detection order of the left blank area and the right blank area is adjustable, and there is no order restriction. Furthermore, after the blank area comparison detection is completed and it is determined that the blank area width is unqualified, the comparison detection of the width of another blank area can be stopped, because at this time it can be determined that the quality of the corresponding barcode is unqualified.
[0102] Example 6
[0103] This embodiment introduces a comparison method of a commodity barcode comparator, and the comparator used is as in Embodiment 1 to Embodiment 4, and the comparator should also meet the following requirements: on the comparison plate body of the commodity barcode comparator, at least the module measurement part of the left empty measurement area or the right empty measurement area is provided with a magnification factor reference line parallel to the Y axis, and the magnification factor reference line includes a maximum coefficient reference line and a minimum coefficient reference line, wherein the X-axis coordinate value of the point where the maximum coefficient reference line intersects with the magnification reference line is equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor, and the X-axis coordinate value of the point where the minimum coefficient reference line intersects with the magnification reference line is equal to the lower limit value of the total width of the barcode module corresponding to the set minimum magnification factor;
[0104] In the method of this embodiment, the order of comparison of steps A and B can be adjusted according to the setting area of the magnification factor reference line on the comparison board. If the magnification factor reference line is set in the left empty measurement area, the left empty measurement area is first used to compare the total width of the module, and after the total width of the module is qualified, the left blank area is compared and tested, and finally the right blank area is compared and tested with the right empty measurement area. If both measurement areas are set with Z value range reference lines, either the left empty measurement area or the right empty measurement area can be selected for comparison and testing first.
[0105] Combination Figure 3 , Figure 7 and Figure 8 , the comparison method of this embodiment includes:
[0106] S1, using the left empty measurement area or the right empty measurement area with a magnification coefficient reference line to perform module width comparison, including: covering the comparison board body on the surface of the barcode to be detected, so that the barcode is projected on the module measurement part, and one side edge line of the barcode module coincides with the Y axis line; judging whether the other side edge line of the barcode module is between the maximum coefficient reference line and the minimum coefficient reference line, if satisfied, the barcode module width is qualified, and turning to step S2, if not satisfied, it is judged that the barcode module width is unqualified, and the comparison detection is stopped; it should be noted here that the "between the maximum coefficient reference line and the minimum coefficient reference line" includes the position where the maximum coefficient reference line and the minimum coefficient reference line are located;
[0107] S2, detect the width of the blank area of the barcode, including:
[0108] A) When using the left empty measurement area for barcode comparison:
[0109] Cover the comparison board body on the surface of the barcode to be detected, so that the Y axis of the left blank measurement area coincides with the outer edge line of the first module of the barcode start symbol, and the barcode is projected on the module measurement part of the left blank measurement area, and the left blank area of the barcode is projected on the blank area measurement part of the left blank measurement area;
[0110] Obtain the actual intersection point between the outer edge line of the last module of the barcode terminator and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point between the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the left blank area of the barcode on the X-axis line;
[0111] Determine whether the boundary line of the left blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the left blank area of the barcode is qualified;
[0112] B) When using the right empty measurement area for barcode comparison:
[0113] Cover the comparison plate body on the surface of the barcode to be detected, so that the Y axis of the right blank measurement area coincides with the outer edge line of the last module of the barcode terminator, and the barcode is projected on the module measurement part of the right blank measurement area, and the right blank area of the barcode is projected on the blank area measurement part of the right blank measurement area;
[0114] Obtain the actual intersection point of the outer edge line of the first module of the barcode start character and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point of the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the right blank area of the barcode on the X-axis line;
[0115] It is determined whether the boundary line of the right blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the right blank area of the barcode is qualified.
[0116] Similarly, in step S2, if the first blank area comparison test is completed and it is determined that the blank area width is unqualified, the comparison test of another blank area width can be stopped because it can be determined that the corresponding barcode quality is unqualified at this time.
[0117] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms according to different coding systems without departing from the scope of protection of the purpose of the present invention and the claims, which are all protected by the present invention.
Claims
1. A commodity barcode comparison device, characterized in that: It comprises a transparent comparison plate body, the surface of which is provided with an X-axis line, and two sides of the X-axis line are respectively a left empty measurement area and a right empty measurement area; The left empty measurement area and the right empty measurement area are respectively provided with a Y axis perpendicular to and intersecting the X axis, and the left empty measurement area and the right empty measurement area are respectively divided into a module measurement part and a blank area measurement part by the corresponding Y axis; Taking the intersection of the Y axis and the X axis as the origin, the two module measurement parts are both provided with a magnification reference line passing through the corresponding origin, wherein the slope of the magnification reference line of the left blank measurement area is the ratio of the preset width of the left blank area of the barcode to the total width of the barcode module, and the slope of the magnification reference line of the right blank measurement area is the ratio of the preset width of the right blank area of the barcode to the total width of the barcode module; in each module measurement part, a plurality of mapping reference lines parallel to the X axis are connected between the magnification reference line and the Y axis; The two blank area measurement parts are each provided with a plurality of equal-scale reference lines, the two ends of each equal-scale reference line are respectively connected to the X-axis line and the Y-axis line, and the angles between each equal-scale reference line and the X-axis line and the Y-axis line are 45 degrees; In both the left empty measurement area and the right empty measurement area, a plurality of mapping reference lines and a plurality of equal-scale reference lines are connected to the corresponding Y axis lines.
2. The commodity barcode comparison device according to claim 1, characterized in that: When the barcode is projected onto the left blank measurement area, and the outer edge of the barcode start symbol coincides with the Y axis of the left blank measurement area, the blank area on the left side of the barcode is projected onto the blank area measurement portion of the left blank measurement area; When the barcode is projected onto the right space measurement area and the outer edge of the barcode terminator coincides with the Y axis of the right space measurement area, the right blank area of the barcode is projected onto the blank area measurement portion of the left space measurement area.
3. The commodity barcode comparison device according to claim 2, characterized in that: The Y axes of the left and right empty measurement areas are on the same straight line, the blank area measurement portion of the left empty measurement area is adjacent to the module measurement portion of the right empty measurement area, and the module measurement portion of the left empty measurement area is adjacent to the blank area measurement portion of the right empty measurement area.
4. The commodity barcode comparison device according to claim 2, characterized in that: The left and right empty measurement areas are provided with mutually staggered Y axes, the blank area measurement parts of the left and right empty measurement areas are far away from each other, and the module measurement parts of the left and right empty measurement areas are at least partially adjacent.
5. The commodity barcode comparison device according to claim 1, characterized in that: The X-axis coordinate value of the end point of the magnification reference line away from the origin is at least equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor; At least the module measurement portion of the left empty measurement area or the right empty measurement area is provided with a magnification factor reference line parallel to the Y axis, and the magnification factor reference line includes a maximum coefficient reference line and a minimum coefficient reference line, wherein the X-axis coordinate value of the point where the maximum coefficient reference line intersects with the magnification reference line is equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor, and the X-axis coordinate value of the point where the minimum coefficient reference line intersects with the magnification reference line is equal to the lower limit value of the total width of the barcode module corresponding to the set minimum magnification factor.
6. The commodity barcode comparison device according to claim 5, characterized in that: Among the multiple mapping reference lines, the points where the two most edge reference lines intersect with the magnification reference line are the points where the minimum coefficient reference line and the maximum coefficient reference line intersect with the magnification reference line.
7. The commodity barcode comparison device according to any one of claims 1 to 6, characterized in that: The multiple equal-scale reference lines are arranged at equal intervals, the multiple mapping reference lines are arranged at equal intervals, and each mapping reference line is connected to an equal-scale reference line on the Y axis.
8. The commodity barcode comparison device according to any one of claims 1 to 6, characterized in that: The comparison board body is square and is made of a glass substrate or a film. Different types of lines on the comparison board body made of the glass substrate are in different colors.
9. A comparison method of the commodity barcode comparison device according to any one of claims 1 to 8, characterized in that: include: A) When using the left empty measurement area for barcode comparison: Cover the comparison board body on the surface of the barcode to be detected, so that the Y axis of the left blank measurement area coincides with the outer edge line of the first module of the barcode start symbol, and the barcode is projected on the module measurement part of the left blank measurement area, and the left blank area of the barcode is projected on the blank area measurement part of the left blank measurement area; Obtain the actual intersection point between the outer edge line of the last module of the barcode terminator and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point between the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the left blank area of the barcode on the X-axis line; Determine whether the boundary line of the left blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the left blank area of the barcode is qualified; B) When using the right empty measurement area for barcode comparison: Cover the comparison plate body on the surface of the barcode to be detected, so that the Y axis of the right blank measurement area coincides with the outer edge line of the last module of the barcode terminator, and the barcode is projected on the module measurement part of the right blank measurement area, and the right blank area of the barcode is projected on the blank area measurement part of the right blank measurement area; Obtain the actual intersection point of the outer edge line of the first module of the barcode start character and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point of the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the right blank area of the barcode on the X-axis line; It is determined whether the boundary line of the right blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the right blank area of the barcode is qualified.
10. A comparison method of the commodity barcode comparison device according to any one of claims 1 to 8, characterized in that: On the comparison plate body of the commodity barcode comparator, at least the module measurement part of the left empty measurement area or the right empty measurement area is provided with a magnification factor reference line parallel to the Y axis, and the magnification factor reference line includes a maximum coefficient reference line and a minimum coefficient reference line, wherein the X-axis coordinate value of the point where the maximum coefficient reference line intersects with the magnification reference line is equal to the upper limit value of the total width of the barcode module corresponding to the set maximum magnification factor, and the X-axis coordinate value of the point where the minimum coefficient reference line intersects with the magnification reference line is equal to the lower limit value of the total width of the barcode module corresponding to the set minimum magnification factor; Comparison methods include: S1, using the left empty measurement area or the right empty measurement area with a magnification coefficient reference line to perform module width comparison, including: covering the comparison board body on the surface of the barcode to be detected, so that the barcode is projected on the module measurement part, and the edge line of one side of the barcode module coincides with the Y axis line; judging whether the edge line of the other side of the barcode module is located between the maximum coefficient reference line and the minimum coefficient reference line, if it is satisfied, the barcode module width is qualified, and the process goes to step S2, if not, it is judged that the barcode module width is unqualified, and the comparison test is stopped; S2, detect the width of the blank area of the barcode, including: A) When using the left empty measurement area for barcode comparison: Cover the comparison board body on the surface of the barcode to be detected, so that the Y axis of the left blank measurement area coincides with the outer edge line of the first module of the barcode start symbol, and the barcode is projected on the module measurement part of the left blank measurement area, and the left blank area of the barcode is projected on the blank area measurement part of the left blank measurement area; Obtain the actual intersection point between the outer edge line of the last module of the barcode terminator and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point between the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the left blank area of the barcode on the X-axis line; Determine whether the boundary line of the left blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the left blank area of the barcode is qualified; B) When using the right empty measurement area for barcode comparison: Cover the comparison plate body on the surface of the barcode to be detected, so that the Y axis of the right blank measurement area coincides with the outer edge line of the last module of the barcode terminator, and the barcode is projected on the module measurement part of the right blank measurement area, and the right blank area of the barcode is projected on the blank area measurement part of the right blank measurement area; Obtain the actual intersection point of the outer edge line of the first module of the barcode start character and the magnification reference line, select a mapping reference line that is closest to the actual intersection point or passes through the actual intersection point, and obtain the connection point of the equal-scale reference line and the X-axis line by connecting the equal-scale reference line of the mapping reference line. According to the position of the connection point and the positional relationship between the selected mapping reference line and the actual intersection point, determine the reference position point of the minimum width boundary of the right blank area of the barcode on the X-axis line; It is determined whether the boundary line of the right blank area of the barcode intersects with the X-axis line at the reference position point or at the side of the reference position point away from the origin. If so, the width of the right blank area of the barcode is qualified.
Citation Information
Patent Citations
Commodity bar code blank area comparator and detection method
CN119374446A