[go: up one dir, main page]

CN119374445A - Commodity barcode comparison device and comparison method - Google Patents

Commodity barcode comparison device and comparison method Download PDF

Info

Publication number
CN119374445A
CN119374445A CN202411950549.7A CN202411950549A CN119374445A CN 119374445 A CN119374445 A CN 119374445A CN 202411950549 A CN202411950549 A CN 202411950549A CN 119374445 A CN119374445 A CN 119374445A
Authority
CN
China
Prior art keywords
barcode
reference line
area
axis
line
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.)
Granted
Application number
CN202411950549.7A
Other languages
Chinese (zh)
Other versions
CN119374445B (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.)
Nanjing Institute Of Standardization Nanjing Organization Code Management Center
Original Assignee
Nanjing Institute Of Standardization Nanjing Organization Code Management Center
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 Nanjing Institute Of Standardization Nanjing Organization Code Management Center filed Critical Nanjing Institute Of Standardization Nanjing Organization Code Management Center
Priority to CN202411950549.7A priority Critical patent/CN119374445B/en
Publication of CN119374445A publication Critical patent/CN119374445A/en
Application granted granted Critical
Publication of CN119374445B publication Critical patent/CN119374445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B5/00Measuring arrangements characterised by the use of mechanical techniques
    • G01B5/02Measuring arrangements characterised by the use of mechanical techniques for measuring length, width or thickness
    • 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/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14131D bar codes
    • 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/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • 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/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1452Methods for optical code recognition including a method step for retrieval of the optical code detecting bar code edges
    • 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/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1486Setting the threshold-width for bar codes to be decoded
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

The invention discloses a commodity bar code comparator and a comparison method, and belongs to the technical field of bar code quality detection. The comparator comprises a comparison plate body, wherein an X axis is arranged on the surface of the comparison plate body, a left blank measuring area and a right blank measuring area are respectively arranged on two sides of the X axis, Y axes which are perpendicular to and intersected with the X axis are respectively arranged on the left blank measuring area and the right blank measuring area, a module measuring part and a blank measuring part are respectively arranged on two sides of the Y axis, multiplying power reference lines corresponding to the original points are respectively arranged on the two module measuring parts, the slope of each multiplying power reference line is the ratio of the corresponding blank area width to the total width of a bar code module, a plurality of mapping reference lines parallel to the X axis are connected between each multiplying power reference line and the Y axis, a plurality of equal scale reference lines inclined by 45 degrees are respectively arranged on the two blank measuring parts, and the plurality of mapping reference lines are connected with the plurality of equal scale reference lines in the corresponding Y axis. The invention can improve the efficiency of detecting the width of the bar code module and the blank area.

Description

Commodity bar code comparator and comparison method
Technical Field
The invention relates to the technical field of commodity bar code quality detection, in particular to a commodity bar code comparator and a commodity bar code comparison method.
Background
The bar code or bar code is formed from a group of bar, blank and its correspondent code which are regularly arranged, and is used for expressing information for identifying retail commodity, storage and transportation package commodity, logistics unit and participant position, etc.. Wherein the retail commodity code is a unique code identifying the identity of the commodity in the retail industry, with global uniqueness. The retail commodity code is formulated by the international association of item codes, the bar code representation of which employs the EAN/UPC bar code system defined in ISO/IEC 15420. The EAN/UPC bar code has four structures of EAN-13, EAN-8 and UPC-A, UPC-E. The EAN/UPC bar code is characterized by that several black bars (short bars) and white bars (short spaces) with identical width and large difference in reflectivity are arranged into parallel line pattern according to a certain coding rule, and a graphic identifier for expressing a group of information can be used for identifying various information of production country, manufacturer, commodity name and specification model of article. The method has the advantages of high information acquisition speed, high reliability, large information quantity, large degree of freedom, convenient manufacture, flexible use and the like, and is widely applied to the commodity circulation field.
The EAN/UPC bar code is generally printed on commodity package for supermarket, market and other places to use in a code scanning identification mode, so that the quality of the printed bar code plays a vital role in identification speed and accuracy.
In order to enable the bar code to be effectively identified, relevant standards make clear regulations on indexes such as the decoding degree, optical characteristics, blank area width, symbol level, Z dimension (single module width) and the like of the bar code, wherein the blank area size and the module width of the bar code are mandatory items for detecting the quality of the bar code, the accuracy rate of bar code identification is directly influenced, and the most common non-conforming items causing unqualified bar code quality are also generated.
At present, a plurality of members of a bar code system exist, but the existing bar code measuring ruler can only be used for detecting the amplification factor of a bar code, and no tool capable of rapidly judging whether the blank area and the module width of the bar code meet the requirements exists. Enterprises generally need to send bar code samples to branches of national article coding centers for detection and judgment. The conventional detection and judgment mode is complex, and generally, the length measuring tool is used for measuring the width of the blank area, the bar code detector is used for measuring the Z value, judging whether the Z value is qualified or not, and the calculation and comparison are used for judging whether the blank area meets the standard requirement or not, so that the detection efficiency is low. In addition, the width of the bar code blank area is related to the Z size, but the bar code pattern is small, a single module of the initiator and the terminator is thin, the Z size cannot be accurately measured by means of a conventional length measuring tool, an enterprise needs to add extra expense if being provided with a bar code detecting instrument, the Z size cannot be easily measured due to lack of the device, and therefore self-inspection and daily management and control of the printing quality of the bar code blank area cannot be performed. Therefore, a tool capable of conveniently and rapidly measuring the size of the blank space of the bar code and whether the width of the module meets the specification is needed.
Disclosure of Invention
The invention aims to provide a commodity bar code comparator and a comparison method, which can conveniently and rapidly compare and detect the width of a bar code blank area and a module, improve the detection efficiency of the bar code blank area and the module, and reduce the cost of daily control of the printing quality of the bar code blank area of an enterprise. The technical scheme adopted by the invention is as follows.
In one aspect, the invention provides a commodity bar code comparator, which comprises a transparent comparison plate body, wherein the surface of the comparison plate body is provided with an X axis, and the two sides of the X axis are respectively provided with a left empty measuring area and a right empty measuring area;
The left empty measuring area and the right empty measuring area are respectively provided with a Y axis which is perpendicular to the X axis and is intersected with the X axis, and the left empty measuring area and the right empty measuring area are respectively divided into a module measuring part and a blank area measuring part by the corresponding Y axes;
The method comprises the steps that an intersection point of a Y axis and an X axis is taken as an origin, two module measuring parts are provided with multiplying power reference lines corresponding to the origin, wherein the slope of the multiplying power reference line of a left blank measuring area is a ratio of a preset bar code left blank area width to a bar code module total width, and the slope of the multiplying power reference line of a right blank measuring area is a ratio of a preset bar code right blank area width to the bar code module total width;
The two blank area measuring parts are respectively provided with a plurality of equal scale reference lines, two ends of each equal scale reference line are respectively connected with an X axis and a Y axis, and the included angles of each equal scale reference line and the X axis and the Y axis are 45 degrees;
In the left and right empty measuring areas, there are several mapping reference lines and several equal scale reference lines connected to corresponding Y-axis.
According to the technical scheme, according to the standard specification of the identifiable bar code, the minimum value of the width of the bar code blank area and the total width of the module are specified multiples of the Z value of the bar code, so that the comparator is designed according to the relationship between the width of the bar code blank area and the total width of the module and the Z value of the bar code, the actual value of the total width of the bar code module and the theoretical minimum value of the width of the blank area are related through the multiplying power reference line and the equal scale mark, when the comparator is used, the bar code module area is only required to be aligned with the module measuring part, the point corresponding to the width of the module is found out on the multiplying power reference line, and then the Y-axis coordinate of the point is mapped to the blank area measuring part through the mapping reference line and the equal scale mark, so that whether the width of the blank area meets the minimum value requirement of the width of the blank area corresponding to the total width of the module can be rapidly judged, and the comparison and detection are convenient and rapid.
It should be noted that, considering that the comparator of the present invention is placed according to the direction of the bar code, the X axis and the Y axis are not limited to the horizontal X coordinate axis and the vertical Y coordinate axis in the planar coordinate system.
Optionally, the positions of the inner module measuring part and the blank measuring part in the left blank measuring area and the right blank measuring area are met, when the bar code is projected in the left blank measuring area, the blank measuring part in the left blank measuring area is projected by the left blank area of the bar code when the outer edge of the bar code initiator is coincident with the Y axis of the left blank measuring area, and when the bar code is projected in the right blank measuring area, the blank measuring part in the right blank area is projected by the blank measuring part in the left blank measuring area when the outer edge of the bar code terminator is coincident with the Y axis of the right blank measuring area. Under this concept, the Y axis on the alignment plate body may be provided as one or two, that is:
as an embodiment, the Y axes of the left empty measurement area and the right empty measurement area are on the same straight line, the empty measurement area of the left empty measurement area is adjacent to the module measurement area of the right empty measurement area, and the module measurement area of the left empty measurement area is adjacent to the empty measurement area of the right empty measurement area. However, in this embodiment, since the length of the module measuring part is adapted to the total length of the bar code, and the module measuring parts of the left and right empty measuring areas are extended away from each other, the whole comparison board body needs a relatively long length, which is inconvenient to carry and place;
thus, as a further embodiment, the left and right measuring areas are provided with mutually offset Y-axes, the empty measuring sections of the left and right measuring areas being remote from each other, the modular measuring sections of the left and right measuring areas being at least partially adjacent. Under this kind of embodiment, the whole length in left side empty measurement area and the empty measurement area in right side all adapts to and compares the board body's overall length and design, can make comparator area and length reduce, conveniently carry, place and use.
As the bar code Z values under different amplification factors, namely the single module width and the amplification factor range of the bar code are specified in the bar code standard, the possible breadth size range of the actual bar code is considered, and the following technical scheme not only can reduce the size of the comparator as much as possible, but also can detect whether the width of the bar code module is qualified or not:
the X-axis coordinate value of the end point of the multiplying power reference line far away from the origin is at least equal to the total width upper limit value of the bar code module corresponding to the set maximum amplification factor;
The module measuring part of at least the left blank measuring area or the right blank measuring area is provided with an amplification factor reference line parallel to the Y axis, wherein the amplification factor reference line comprises a maximum factor reference line and a minimum factor reference line, the X-axis coordinate value of a point where the maximum factor reference line and the magnification reference line intersect is equal to the set maximum amplification factor corresponding bar code module total width upper limit value, and the X-axis coordinate value of a point where the minimum factor reference line and the magnification reference line intersect is equal to the set minimum amplification factor corresponding bar code module total width lower limit value.
During contrast detection, the bar code is projected on the module measuring part, one side edge is aligned with the Y axis, if the other side edge exceeds the range defined between the two amplification factor reference lines, the total width of the bar code module is not qualified, and the detection of the blank area width is not needed. Because the detection of the total width of the bar code only needs to be detected once, the amplification factor reference line can be only arranged in the left-hand measuring area or the right-hand measuring area, and can be also arranged in both the left-hand measuring area and the right-hand measuring area.
In some possible embodiments, the points of intersection of the two reference lines at the extreme edge and the multiplying power reference line in the plurality of mapping reference lines are respectively the points of intersection of the minimum coefficient reference line and the maximum coefficient reference line and the multiplying power reference line.
Optionally, the plurality of equal scale reference lines are equidistantly arranged, the plurality of mapping reference lines are equidistantly arranged, and each mapping reference line is respectively connected with one equal scale reference line on the Y axis. Under the implementation mode, a user can judge the position of the minimum value of the blank area width corresponding to the bar code to be tested on the X axis through naked eyes more conveniently.
Optionally, the alignment plate body is square, can adopt glass substrate or film to make, and on the alignment plate body that adopts glass substrate to make, the lines can adopt other colours of non-black to the preferred different types of lines adopt different colours, more be convenient for distinguish and detect. The film is adopted to the comparison plate body, so that the manufacturing cost can be greatly reduced, and the rapid popularization of products is facilitated.
In a second aspect, the present invention provides an alignment method based on the commodity barcode comparator of the first aspect, including:
a) When the left empty measuring area is used for bar code comparison:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the left blank measurement area to coincide with the outer side edge line of the first module of the bar code initiator, projecting the bar code on the module measurement part of the left blank measurement area, and projecting the bar code left blank area on the blank area measurement part of the left blank measurement area;
Acquiring an actual intersection point of an outer edge line of a last module of the bar code terminator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis by connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a left blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether a boundary line of the left blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the left blank area of the bar code is qualified;
B) When the right empty measuring area is used for bar code comparison:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the right empty measuring area to coincide with the outer side edge line of the last module of the bar code terminator, projecting the bar code on the module measuring part of the right empty measuring area, and projecting the bar code right empty area on the empty area measuring part of the right empty measuring area;
Acquiring an actual intersection point of an edge line at the outer side of a first module of a bar code initiator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis through connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a right blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether the boundary line of the right blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the right blank area of the bar code is qualified.
The inner side and the outer side of the first module of the initiator and the last module of the terminator are distinguished according to whether the first module faces the other modules of the bar code or the blank area, the side close to the other modules of the bar code is the inner side, and the side facing the blank area is the outer side.
In a third aspect, the present invention provides another comparison method based on the commodity barcode comparator of the first aspect, where on the comparison plate body of the commodity barcode comparator, at least a module measurement portion of a left space measurement area or a right space measurement area is provided with an amplification factor reference line parallel to a Y axis, where the amplification factor reference line includes a maximum factor reference line and a minimum factor reference line, where an X-axis coordinate value of a point where the maximum factor reference line intersects with the magnification factor reference line is equal to a set maximum amplification factor corresponding barcode module total width upper limit value, and an X-axis coordinate value of a point where the minimum factor reference line intersects with the magnification factor reference line is equal to a set minimum amplification factor corresponding barcode module total width lower limit value;
The comparison method comprises the following steps:
S1, performing module width comparison by using a left blank measurement area or a right blank measurement area provided with an amplification factor reference line, wherein the module width comparison comprises the steps of covering a comparison plate body on the surface of a bar code to be detected, enabling the bar code to be projected on a module measurement part, enabling one side edge line of the bar code module to coincide with a Y axis, judging whether the other side edge line of the bar code module is positioned between a maximum factor reference line and a minimum factor reference line, if the maximum factor reference line and the minimum factor reference line are met, judging that the width of the bar code module is qualified, and if the maximum factor reference line and the minimum factor reference line are not met, judging that the width of the bar code module is not qualified, and stopping comparison detection;
s2, detecting the width of a bar code blank area, comprising the following steps:
a) When the left empty measuring area is used for bar code comparison:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the left blank measurement area to coincide with the outer side edge line of the first module of the bar code initiator, projecting the bar code on the module measurement part of the left blank measurement area, and projecting the bar code left blank area on the blank area measurement part of the left blank measurement area;
Acquiring an actual intersection point of an outer edge line of a last module of the bar code terminator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis by connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a left blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether a boundary line of the left blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the left blank area of the bar code is qualified;
B) When the right empty measuring area is used for bar code comparison:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the right empty measuring area to coincide with the outer side edge line of the last module of the bar code terminator, projecting the bar code on the module measuring part of the right empty measuring area, and projecting the bar code right empty area on the empty area measuring part of the right empty measuring area;
Acquiring an actual intersection point of an edge line at the outer side of a first module of a bar code initiator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis through connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a right blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether the boundary line of the right blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the right blank area of the bar code is qualified.
It should be noted that the density of the mapping reference lines and the equal scale lines in the invention should be as dense as possible while meeting the requirements of clear resolution, so that the invention is suitable for comparing and detecting barcodes with different amplification coefficients. When the outside edge line of the bar code initiator or terminator and the multiplying power reference line are not crossed, the nearest mapping reference line is selected so as to obtain the connection point of the corresponding equal scale line and the X axis, the upper and lower position relation between the selected mapping reference line and the actual crossing point is considered, and the corresponding reference position point used for defining the minimum width boundary of the bar code blank area is moved leftwards and rightwards by the connection point of the selected equal scale line and the X axis.
Advantageous effects
According to the commodity bar code comparator, the left blank measuring area and the right blank measuring area which are respectively provided with the module measuring part and the blank measuring part are arranged, the multiplying power reference line and the mapping reference line are arranged on the module measuring part, and the equal scale reference line is arranged on the blank measuring part, so that a user can compare and detect the actual widths of the left blank area and the right blank area according to the total width of a bar code module. The comparison process does not need a bar code detector, and the detection efficiency and the detection accuracy are high.
Meanwhile, the amplification factor reference line is arranged in the module measuring part, so that a user can conveniently and rapidly judge whether the total width of the bar code module is qualified or not, and if the total width of the bar code module is not qualified, the blank area width detection is not needed, namely, the comprehensive detection and comparison of the total width of the bar code module and the blank area width can be realized.
Drawings
FIG. 1 is a schematic diagram of the product of example 2 of the bar code comparator of the present invention;
FIG. 2 is a schematic diagram of the product of example 3 of the bar code comparator of the present invention;
FIG. 3 is a schematic diagram of the product of example 4 of the bar code comparator of the present invention;
FIG. 4 is a schematic diagram showing the structure of EAN-13 code;
FIG. 5 is a schematic diagram of EAN-13 code;
FIG. 6 is a diagram of the left empty measurement zone of the comparator for EAN-13 codes according to the present invention;
FIG. 7 is a schematic diagram of the comparison method of the present invention when EAN-13 code left space detection is performed by using the left space measurement area of the comparator;
FIG. 8 is a schematic diagram of the comparison method of the present invention when EAN-13 code right empty detection is performed by using the right empty measurement area of the comparator;
In FIGS. 1-8, 1-alignment plate body, 2-magnification reference line, 3-mapping reference line, 4-equal scale reference line, 5-EAN-13 code, 51-initiator, 52-left data symbol, 53-middle separator, 54-right data symbol, 55-verifier, 56-terminator, 57-left blank, 58-right blank, 59-preamble.
Detailed Description
According to the technical concept of the invention, according to the association relation between the width of the blank space of the bar code and the total width of the bar code module and the Z value of the bar code, by setting a comparison plate and reasonably setting a multiplying power reference line, a mapping reference line and an equal scale reference line on the comparison plate, the Y-axis coordinates of each point on the multiplying power reference line can be mapped to the X-axis of the blank space measuring part, so that the minimum width boundary of the blank space of the bar code in the blank space measuring part can be determined according to the intersection point of the outer edge line of the module in the module measuring part and the multiplying power reference line, and the rapid and efficient detection of the width of the blank space of the bar code is realized.
Further description is provided below in connection with the drawings and the specific embodiments.
Example 1
The embodiment introduces a commodity bar code comparator, referring to fig. 1 to 3, which comprises a transparent comparison plate body 1, wherein the surface of the comparison plate body 1 is provided with an X axis, and the two sides of the X axis are respectively provided with a left empty measuring area and a right empty measuring area;
The left empty measuring area and the right empty measuring area are respectively provided with a Y axis which is perpendicular to the X axis and is intersected with the X axis, and the left empty measuring area and the right empty measuring area are respectively divided into a module measuring part and a blank area measuring part by the corresponding Y axes;
The method comprises the steps that an intersection point of a Y axis and an X axis is taken as an origin, a multiplying power reference line 2 corresponding to the origin is arranged on each of two module measuring parts, wherein the slope of the multiplying power reference line 2 of a left blank measuring area is the ratio of the width of a preset bar code left blank area to the total width of a bar code module, and the slope of the multiplying power reference line of a right blank measuring area is the ratio of the width of a preset bar code right blank area to the total width of the bar code module;
The two blank area measuring parts are respectively provided with a plurality of equal scale reference lines 4, two ends of each equal scale reference line 4 are respectively connected with an X axis and a Y axis, and the included angles between each equal scale reference line 4 and the X axis and the Y axis are 45 degrees;
In the left and right empty measuring areas, there are several mapping reference lines 3 and several equal scale reference lines 4 connected to the corresponding Y-axis.
In the embodiment, the positions of the inner module measuring part and the blank measuring part in the left blank measuring area and the right blank measuring area are met, when the bar code is projected to the left blank measuring area, the blank measuring part in the left blank measuring area is projected to the bar code left blank when the outer edge of the bar code initiator is coincident with the Y axis of the left blank measuring area, and when the bar code is projected to the right blank measuring area, the blank measuring part in the left blank measuring area is projected to the bar code right blank when the outer edge of the bar code terminator is coincident with the Y axis of the right blank measuring area. Under this concept, the Y axis on the alignment plate body may be provided as one or two,
Because the minimum value of the width of the bar code blank area and the total width of the module are specified multiples of the Z value of the bar code, in the embodiment, the comparator is designed according to the relationship between the width of the bar code blank area and the total width of the module and the Z value of the bar code, and the actual value of the total width of the bar code module is related to the theoretical minimum value of the width of the blank area through a multiplying power reference line and an equal scale mark and is reflected in a blank area measuring part. When the system is used, only the bar code module area is aligned with the module measuring part, a point corresponding to the module width is found out on the multiplying power reference line, and then the Y-axis coordinate of the point is mapped to the blank area measuring part through the mapping reference line and the equal scale mark, so that whether the blank area width meets the minimum value requirement of the blank area width corresponding to the total module width can be rapidly judged.
It should be noted that, the densities of the mapping reference lines and the equal scale lines are preferably as dense as possible while meeting the requirements of clear resolution, so that the method can be suitable for comparing and detecting the bar codes with different amplification factors.
In fewer application scenes, when no mapping reference line exists at the intersection point of the outer edge line of the bar code initiator or terminator and the multiplying power reference line, after the closest mapping reference line is selected so as to obtain the connection point of the corresponding equal scale line and the X axis, the upper and lower position relation between the selected mapping reference line and the actual intersection point should be considered, and the corresponding reference position point used for defining the minimum width boundary of the bar code blank area is moved leftwards or rightwards at the connection point of the selected equal scale line and the X axis, for example, when the comparison test is carried out 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 of the equal scale line connected with 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 bar code blank area. Thus, the reference location point for defining the minimum width boundary of the barcode blank should be moved rightward from the selected connection point of the isocratic line with the X-axis. The distance moved can be calculated from the vertical distance between the selected mapped reference line and the actual intersection point, or other linear objects can be used as auxiliary isocratic lines to determine the actual reference position point.
As shown in fig. 1 to 3, the alignment plate body may be square or other shapes, and may be made of a glass substrate or a film, and on the alignment plate body made of a glass substrate, the lines may be made of other colors than black, and preferably different types of lines are made of different colors, so that the resolution and detection are facilitated. The film is adopted to the comparison plate body, so that the manufacturing cost can be greatly reduced, and the rapid popularization of products is facilitated.
Example 2
Based on embodiment 1, considering that the whole lengths of the left and right empty measuring areas are adapted to the whole length of the comparison plate body, the length of the comparison plate body should not be excessively large or excessively long as a tool capable of conveniently performing bar code comparison detection.
In this embodiment, as shown in fig. 1, the left empty measuring area and the right empty measuring area are provided with Y axes which are staggered, the empty measuring areas of the left empty measuring area and the right empty measuring area are far away from each other, and at least partial sections of the module measuring areas of the left empty measuring area and the right empty measuring area are adjacent.
Meanwhile, in order to facilitate the user to judge the position of the minimum value of the blank area width corresponding to the bar code to be tested on the X axis by naked eyes, in the embodiment, a plurality of equal-scale reference lines 4 are equidistantly arranged, a plurality of mapping reference lines 3 are equidistantly arranged, and each mapping reference line is respectively connected with one equal-scale reference line on the Y axis.
The design and description of the comparator is presented below for a common EAN-13 barcode.
Referring to fig. 4 and 5, fig. 5 shows the composition of the EAN-13 barcode, and it should be noted that, since the barcode is only schematic, the module part is subjected to the stripe portion spotting treatment and the stripe space cutting treatment for the purpose of non-scannable, and similarly, in fig. 7 and 8, the barcode is subjected to the spotting treatment so as to be non-identifiable by scanning.
From fig. 4 and 5, the ean-13 barcode includes, from left to right, a left blank section 57, a start symbol 51, a left side data symbol 52, a middle separator 53, a right side data symbol 54, a check symbol 55, a stop symbol 56, and a right blank section 58. The Z value of the bar code is the width of a single module of the bar code, and when the amplification factor of the bar code is determined, the width of the single module is determined. For an EAN-13 barcode, the minimum width of the left blank 57 is 11 modules wide, 11Z, the width of the initiator 51 to terminator 56 is 95 modules wide, 95Z, and the minimum width of the right blank 58 is 7 modules wide. It can be calculated that the slope of the magnification reference line in the left blank measurement region should be k1=1z/95z=11/95, and the slope of the magnification reference line in the right blank measurement region should be k2=7z/95z=7/95.
Referring to fig. 6, in the left blank 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 included angle between the magnification reference line OP and the X-axis is α. And the mapping reference line AP maps the Y-axis coordinate of the point on the multiplying power reference line to the X-axis through the equal scale reference line AB, and the ratio of OA to OP is converted into the ratio of OB to OP, which is 11:95.
And when the comparison test is carried out, the comparison ruler is covered on the bar code, so that the bar code module is projected on the module measuring part, one side edge of the bar code module is aligned with the Y axis, then the actual intersection point of the other side edge of the bar code module and the multiplying power reference line is obtained, the Y axis coordinate of the actual intersection point 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 measuring part, the reference position point is used as the minimum value of the allowed blank width to determine the qualified width range of the bar code blank, whether the edge of the bar code blank falls in the qualified width range of the bar code blank is judged, and whether the blank width of the measured bar code is qualified can be quickly read and judged.
Example 3
Referring to fig. 2, unlike embodiment 2, the Y axes of the left and right empty measurement areas are on the same straight line, the empty 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 empty measurement portion of the right empty measurement area.
However, in this embodiment, since the length of the module measuring portion is adapted to the total length of the bar code, and the module measuring portions of the left and right empty measuring regions are extended away from each other, the length of the whole comparison plate body must be greater than twice the total length of the bar code, and the comparison plate is too long, which is inconvenient to carry, place and use, so that the embodiment does not affect the detection of the width of the empty region of the bar code, but is not the preferred embodiment.
Example 4
The bar code Z value, namely the single module width, under different amplification factors and the amplification factor range of the bar code are specified in the bar code standard, so that the width size and the length of the bar code under different amplification factors are also different. Therefore, on the basis of embodiments 1 to 3, the present embodiment considers the possible range of the size of the actual barcode, and makes the design that the comparator can detect the total width of the barcode module on the premise of minimizing the size of the comparator, specifically as follows.
Referring to fig. 3, in the left blank measurement area and the right blank measurement area, the X-axis coordinate value of the end point of the magnification reference line far from the respective origin is at least equal to the total width upper limit value of the barcode module corresponding to the set maximum magnification factor, and in general, it is preferable that the X-axis coordinate value of the end point of the magnification reference line is far greater than the total width upper limit value of the barcode module.
Meanwhile, at least a module measuring part of the left blank measuring area or the right blank measuring area is provided with an amplification factor reference line parallel to the Y axis, wherein the amplification factor reference line comprises a maximum factor reference line and a minimum factor reference line, an X-axis coordinate value of a point where the maximum factor reference line and the magnification reference line intersect is equal to a set maximum amplification factor corresponding bar code module total width upper limit value, and an X-axis coordinate value of a point where the minimum factor reference line and the magnification reference line intersect is equal to a set minimum amplification factor corresponding bar code module total width lower limit value.
During contrast detection, the bar code is projected on the module measuring part, one side edge is aligned with the Y axis, if the other side edge exceeds the range defined between the two amplification factor reference lines, the total width of the bar code module is not qualified, and the detection of the blank area width is not needed. Because the detection of the total width of the bar code only needs to be detected once, the amplification factor reference line can be only arranged in the left-hand measuring area or the right-hand measuring area, and can be also arranged in both the left-hand measuring area and the right-hand measuring area.
For EAN-13 codes, the theoretical value of the single module width is represented by X dimension, the actual value is represented by Z dimension, the X value under 1-time magnification is 0.330mm, the standard bar code magnification range is 0.80-2.00, and the corresponding standard X value range is 0.264 mm-0.660 mm. Therefore, in the present embodiment shown in fig. 3, the module measuring section of the left empty measuring area sets a minimum coefficient reference line corresponding to a magnification factor of 0.8 times at the X-axis coordinate of 0.264mm, sets a base coefficient reference line corresponding to a magnification factor of 10 times at the X-axis coordinate of 0.330mm, sets a maximum coefficient reference line corresponding to a magnification factor of 2.0 times at the X-axis coordinate of 0.660mm, and is marked as "0.8 times base line", "1.0 times base line", and "2.0 times base line", respectively. The marks on the comparison plates together with the left blank, the right blank and the like are all used for enabling a user to clearly distinguish different measurement areas and comparison references so as to more efficiently finish bar code comparison detection.
Furthermore, in consideration of the fact that the blank area comparison is not needed for the bar code with the unqualified total width of the bar code module, preferably, points of intersection of two reference lines at the extreme edge and the multiplying power reference line in the plurality of mapping reference lines are points of intersection of the minimum coefficient reference line and the maximum coefficient reference line and the multiplying power reference line respectively.
Example 5
This example describes a method of comparing a commodity barcode comparator achievable using any of the embodiments of examples 1 to 4, comprising:
a) When the left empty measurement area is used for bar code alignment, the bar code alignment is shown in fig. 7:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the left blank measurement area to coincide with the outer side edge line of the first module of the bar code initiator, projecting the bar code on the module measurement part of the left blank measurement area, and projecting the bar code left blank area on the blank area measurement part of the left blank measurement area;
Acquiring an actual intersection point of an outer edge line of a last module of the bar code terminator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis by connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a left blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether a boundary line of the left blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the left blank area of the bar code is qualified;
b) When the right empty measurement area is used for bar code alignment, reference is made to fig. 8:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the right empty measuring area to coincide with the outer side edge line of the last module of the bar code terminator, projecting the bar code on the module measuring part of the right empty measuring area, and projecting the bar code right empty area on the empty area measuring part of the right empty measuring area;
Acquiring an actual intersection point of an edge line at the outer side of a first module of a bar code initiator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis through connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a right blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether the boundary line of the right blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the right blank area of the bar code is qualified.
The detection method of the embodiment can be carried out without considering whether the total width value of the bar code module is qualified or not, or after detecting the Z value of the bar code and the total width value of the module by other means. It should be noted that, the detection sequence of the left blank area and the right blank area is adjustable, and there is no restriction. Furthermore, the comparison detection of the width of the other blank area can be stopped after the comparison detection of the blank area is finished and the blank area width is judged to be unqualified, because the quality of the corresponding bar code can be judged to be unqualified at the moment.
Example 6
The embodiment introduces an comparison method of the commodity bar code comparator, wherein the adopted comparator is as in the embodiment 1 to the embodiment 4, and the comparator also meets the requirement that on a comparison plate body of the commodity bar code comparator, at least a module measuring part of a left blank measuring area or a right blank measuring area is provided with an amplification factor reference line parallel to a Y axis, wherein the amplification factor reference line comprises a maximum coefficient reference line and a minimum coefficient reference line, an X-axis coordinate value of a point where the maximum coefficient reference line and the multiplying power reference line intersect is equal to a set maximum amplification factor corresponding bar code module total width upper limit value, and an X-axis coordinate value of a point where the minimum coefficient reference line and the multiplying power reference line intersect is equal to a set minimum amplification factor corresponding bar code module total width lower limit value;
In the method of this embodiment, step a and step B may adjust the comparison sequence according to the setting area of the amplification factor reference line on the comparison board, if the amplification factor reference line is set in the left space measurement area, the comparison of the total width of the module is performed by using the left space measurement area, and after the comparison of the total width of the module is qualified, the comparison detection of the left space area is performed, and finally the comparison detection of the right space area is performed by using the right space measurement area. If the two measuring areas are provided with Z value range reference lines, selecting any one of the left empty measuring area or the right empty measuring area for comparison detection in advance.
Referring to fig. 3, 7 and 8, the comparison method of the present embodiment includes:
S1, performing module width comparison by using a left blank measurement area or a right blank measurement area provided with an amplification factor reference line, wherein the module width comparison comprises the steps of covering a comparison plate body on the surface of a bar code to be detected, enabling the bar code to be projected on a module measurement part, enabling one side edge line of the bar code module to coincide with a Y axis, judging whether the other side edge line of the bar code module is positioned between a maximum factor reference line and a minimum factor reference line, if the maximum factor reference line and the minimum factor reference line are met, judging that the width of the bar code module is qualified, and if the maximum factor reference line and the minimum factor reference line are not met, judging that the width of the bar code module is not qualified, and stopping comparison detection;
s2, detecting the width of a bar code blank area, comprising the following steps:
a) When the left empty measuring area is used for bar code comparison:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the left blank measurement area to coincide with the outer side edge line of the first module of the bar code initiator, projecting the bar code on the module measurement part of the left blank measurement area, and projecting the bar code left blank area on the blank area measurement part of the left blank measurement area;
Acquiring an actual intersection point of an outer edge line of a last module of the bar code terminator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis by connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a left blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether a boundary line of the left blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the left blank area of the bar code is qualified;
B) When the right empty measuring area is used for bar code comparison:
Covering the comparison plate body on the surface of the bar code to be detected, enabling the Y axis of the right empty measuring area to coincide with the outer side edge line of the last module of the bar code terminator, projecting the bar code on the module measuring part of the right empty measuring area, and projecting the bar code right empty area on the empty area measuring part of the right empty measuring area;
Acquiring an actual intersection point of an edge line at the outer side of a first module of a bar code initiator and the multiplying power reference line, selecting a mapping reference line which is nearest to the actual intersection point or passes through the actual intersection point, acquiring connection points of the scale reference lines and an X axis through connecting equal scale reference lines of the mapping reference line, and determining a reference position point of a minimum width boundary of a right blank area of the bar code on the X axis according to the position of the connection points and the position relation between the selected mapping reference line and the actual intersection point;
judging whether the boundary line of the right blank area of the bar code and the X axis intersect at the reference position point or one side of the reference position point deviating from the origin, if so, the width of the right blank area of the bar code is qualified.
Similarly, in step S2, if the blank area comparison detection performed first is finished and it is determined that the blank area width is not acceptable, the comparison detection of the other blank area width may be stopped, because it may already be determined that the corresponding barcode quality is not acceptable.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by one of ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which fall within the protection of the present invention.

Claims (10)

1.一种商品条码比对器,其特征是,包括透明的比对板本体,所述比对板本体的表面设有X轴线,所述X轴线两侧分别为左空测量区和右空测量区;1. A commodity barcode comparison device, characterized in that it comprises a transparent comparison plate body, the surface of the comparison plate body 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; 所述左空测量区和右空测量区分别设有与所述X轴线垂直并相交的Y轴线,所述左空测量区和右空测量区分别被相应的Y轴线划分为模块测量部和空白区测量部;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; 以Y轴线与X轴线的交点为原点,两个所述模块测量部均设有过对应原点的倍率参考线,其中,左空测量区的倍率参考线的斜率为预设的条码左空白区宽度与条码模块总宽度的比值,右空测量区的倍率参考线的斜率为预设的条码右空白区宽度与条码模块总宽度的比值;各模块测量部中,所述倍率参考线与Y轴线之间连接有多条平行于X轴线的映射参考线;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; 两个所述空白区测量部均设有多条等刻度参考线,各所述等刻度参考线的两端分别连接X轴线和Y轴线,且各所述等刻度参考线与X轴线和Y轴线的夹角均为45度;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; 在左空测量区及右空测量区中,均有多条映射参考线与多条等刻度参考线相接于对应的Y轴线。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.根据权利要求1所述的商品条码比对器,其特征是,当条码投影于左空测量区,条码起始符外侧边缘与左空测量区的Y轴线相重合时,条码左侧空白区投影于左空测量区的空白区测量部;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 line 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; 当条码投影于右空测量区,条码终止符外侧边缘与右空测量区的Y轴线相重合时,条码右侧空白区投影于左空测量区的空白区测量部。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.根据权利要求2所述的商品条码比对器,其特征是,所述左空测量区和右空测量区的Y轴线在同一直线上,左空测量区的空白区测量部与右空测量区的模块测量部相邻接,左空测量区的模块测量部与右空测量区的空白区测量部相邻接。3. The commodity barcode comparator according to claim 2 is characterized in that the Y axes of the left space measurement area and the right space measurement area are on the same straight line, the blank area measurement part of the left space measurement area is adjacent to the module measurement part of the right space measurement area, and the module measurement part of the left space measurement area is adjacent to the blank area measurement part of the right space measurement area. 4.根据权利要求2所述的商品条码比对器,其特征是,所述左空测量区和右空测量区设有相互错开的Y轴线,左空测量区和右空测量区的空白区测量部相互远离,左空测量区和右空测量区的模块测量部至少有部分区段相邻接。4. The commodity barcode comparator according to claim 2 is characterized in that the left space measurement area and the right space measurement area are provided with Y-axis lines that are staggered from each other, the blank area measurement parts of the left space measurement area and the right space measurement area are far away from each other, and the module measurement parts of the left space measurement area and the right space measurement area are at least partially adjacent. 5.根据权利要求1所述的商品条码比对器,其特征是,所述倍率参考线远离原点的一端端点的X轴坐标值,至少等于设定的最大放大系数对应的条码模块总宽度上限值;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; 至少左空测量区或右空测量区的模块测量部设有平行于Y轴线的放大系数参考线,所述放大系数参考线包括最大系数参考线和最小系数参考线,其中,所述最大系数参考线与倍率参考线相交的点的X轴坐标值等于设定的最大放大系数对应的条码模块总宽度上限值,所述最小系数参考线与倍率参考线相交的点的X轴坐标值等于设定的最小放大系数对应的条码模块总宽度下限值。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 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 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.根据权利要求5所述的商品条码比对器,其特征是,多条映射参考线中,最边缘的两条参考线与倍率参考线相交的点,分别为最小系数参考线和最大系数参考线与倍率参考线相交的点。6. The commodity barcode comparator according to claim 5 is 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 respectively. 7.根据权利要求1-6任一项所述的商品条码比对器,其特征是,所述多条等刻度参考线之间等距设置,所述多条映射参考线之间等距设置,且每条映射参考线分别与一条等刻度参考线相接于Y轴线。7. The commodity barcode comparator according to any one of claims 1 to 6, characterized in that 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. 8.根据权利要求1-6任一项所述的商品条码比对器,其特征是,所述比对板本体为方形,采用玻璃基板或菲林片制成,且采用玻璃基板制成的比对板本体上,不同类型的线条采用不同的颜色。8. The commodity barcode comparator according to any one of claims 1 to 6, characterized in that the comparison board body is square and made of a glass substrate or a film, and different types of lines on the comparison board body made of a glass substrate are in different colors. 9.一种权利要求1-8任一项所述商品条码比对器的比对方法,其特征是,包括:9. A comparison method of the commodity barcode comparison device according to any one of claims 1 to 8, characterized in that it comprises: A)用左空测量区进行条码比对时:A) When using the left empty measurement area for barcode comparison: 将比对板本体覆盖于待检测条码表面,使左空测量区的Y轴线与条码起始符第一个模块的外侧边缘线重合,且条码投影在左空测量区的模块测量部,条码左空白区投影在左空测量区的空白区测量部;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; 获取条码终止符最后一个模块外侧边缘线与所述倍率参考线的实际交叉点,选择距离实际交叉点最近或过实际交叉点的映射参考线,通过连线该映射参考线的等刻度参考线,获得该等刻度参考线与X轴线的连接点,根据该连接点位置以及所选择的映射参考线与所述实际交叉点之间的位置关系,确定条码左空白区最小宽度边界在X轴线上的参考位置点;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; 判断条码左空白区边界线与X轴线是否相交于所述参考位置点或者所述参考位置点背离原点的一侧,若满足,则条码左空白区宽度合格;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)用右空测量区进行条码比对时:B) When using the right empty measurement area for barcode comparison: 将比对板本体覆盖于待检测条码表面,使右空测量区的Y轴线与条码终止符最后一个模块的外侧边缘线重合,且条码投影在右空测量区的模块测量部,条码右空白区投影在右空测量区的空白区测量部;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; 获取条码起始符第一个模块外侧边缘线与所述倍率参考线的实际交叉点,选择距离实际交叉点最近或过实际交叉点的映射参考线,通过连线该映射参考线的等刻度参考线,获得该等刻度参考线与X轴线的连接点,根据该连接点位置以及所选择的映射参考线与所述实际交叉点之间的位置关系,确定条码右空白区最小宽度边界在X轴线上的参考位置点;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; 判断条码右空白区边界线与X轴线是否相交于所述参考位置点或者所述参考位置点背离原点的一侧,若满足,则条码右空白区宽度合格。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.一种权利要求1-8任一项所述商品条码比对器的比对方法,其特征是,商品条码比对器的比对板本体上,至少左空测量区或右空测量区的模块测量部设有平行于Y轴线的放大系数参考线,所述放大系数参考线包括最大系数参考线和最小系数参考线,其中,所述最大系数参考线与倍率参考线相交的点的X轴坐标值等于设定的最大放大系数对应的条码模块总宽度上限值,所述最小系数参考线与倍率参考线相交的点的X轴坐标值等于设定的最小放大系数对应的条码模块总宽度下限值;10. A comparison method for a 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 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 coefficient reference line parallel to the Y axis, the magnification coefficient 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 coefficient, 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 coefficient; 比对方法包括:Comparison methods include: S1,用设有放大系数参考线的左空测量区或右空测量区进行模块宽度比对,包括:将比对板本体覆盖于待检测条码表面,使条码投影在模块测量部,条码模块的一侧边缘线与Y轴线相重合;判断条码模块的另一侧边缘线是否位于最大系数参考线与最小系数参考线之间,若满足则条码模块宽度合格,转至步骤S2,若不满足则判定为条码模块宽度不合格,停止比对检测;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,进行条码空白区宽度检测,包括:S2, detect the width of the blank area of the barcode, including: A)用左空测量区进行条码比对时:A) When using the left empty measurement area for barcode comparison: 将比对板本体覆盖于待检测条码表面,使左空测量区的Y轴线与条码起始符第一个模块的外侧边缘线重合,且条码投影在左空测量区的模块测量部,条码左空白区投影在左空测量区的空白区测量部;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; 获取条码终止符最后一个模块外侧边缘线与所述倍率参考线的实际交叉点,选择距离实际交叉点最近或过实际交叉点的映射参考线,通过连线该映射参考线的等刻度参考线,获得该等刻度参考线与X轴线的连接点,根据该连接点位置以及所选择的映射参考线与所述实际交叉点之间的位置关系,确定条码左空白区最小宽度边界在X轴线上的参考位置点;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; 判断条码左空白区边界线与X轴线是否相交于所述参考位置点或者所述参考位置点背离原点的一侧,若满足,则条码左空白区宽度合格;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)用右空测量区进行条码比对时:B) When using the right empty measurement area for barcode comparison: 将比对板本体覆盖于待检测条码表面,使右空测量区的Y轴线与条码终止符最后一个模块的外侧边缘线重合,且条码投影在右空测量区的模块测量部,条码右空白区投影在右空测量区的空白区测量部;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; 获取条码起始符第一个模块外侧边缘线与所述倍率参考线的实际交叉点,选择距离实际交叉点最近或过实际交叉点的映射参考线,通过连线该映射参考线的等刻度参考线,获得该等刻度参考线与X轴线的连接点,根据该连接点位置以及所选择的映射参考线与所述实际交叉点之间的位置关系,确定条码右空白区最小宽度边界在X轴线上的参考位置点;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; 判断条码右空白区边界线与X轴线是否相交于所述参考位置点或者所述参考位置点背离原点的一侧,若满足,则条码右空白区宽度合格。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.
CN202411950549.7A 2024-12-27 2024-12-27 Commodity barcode comparison device and comparison method Active CN119374445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411950549.7A CN119374445B (en) 2024-12-27 2024-12-27 Commodity barcode comparison device and comparison method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411950549.7A CN119374445B (en) 2024-12-27 2024-12-27 Commodity barcode comparison device and comparison method

Publications (2)

Publication Number Publication Date
CN119374445A true CN119374445A (en) 2025-01-28
CN119374445B CN119374445B (en) 2025-04-04

Family

ID=94331067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411950549.7A Active CN119374445B (en) 2024-12-27 2024-12-27 Commodity barcode comparison device and comparison method

Country Status (1)

Country Link
CN (1) CN119374445B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119374446A (en) * 2024-12-27 2025-01-28 南京市标准化研究院(南京市组织机构代码管理中心) Commodity barcode blank area comparison device and detection method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2454755Y (en) * 2000-12-27 2001-10-17 叶菁 Goods code-stip measuring ruler
CN105758272A (en) * 2014-12-18 2016-07-13 富泰华工业(深圳)有限公司 Length measurement system and method and electronic measuring tape
CN105975894A (en) * 2016-05-11 2016-09-28 华中科技大学 One-dimensional code recognition algorithm based on self-adaptive edge detection and mapping model
JP2017007815A (en) * 2015-06-23 2017-01-12 佐川印刷株式会社 Inspection method and inspection system
CN108647549A (en) * 2018-03-14 2018-10-12 福州迈新生物技术开发有限公司 The processing method of bar code image, apparatus and system
WO2021223709A1 (en) * 2020-05-07 2021-11-11 Zhejiang Huaray Technology Co., Ltd. Systems and methods for barcode decoding
CN114781563A (en) * 2022-04-22 2022-07-22 苏州浪潮智能科技有限公司 Board-card barcode comparison method, system, terminal and storage medium
CN119374446A (en) * 2024-12-27 2025-01-28 南京市标准化研究院(南京市组织机构代码管理中心) Commodity barcode blank area comparison device and detection method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2454755Y (en) * 2000-12-27 2001-10-17 叶菁 Goods code-stip measuring ruler
CN105758272A (en) * 2014-12-18 2016-07-13 富泰华工业(深圳)有限公司 Length measurement system and method and electronic measuring tape
JP2017007815A (en) * 2015-06-23 2017-01-12 佐川印刷株式会社 Inspection method and inspection system
CN105975894A (en) * 2016-05-11 2016-09-28 华中科技大学 One-dimensional code recognition algorithm based on self-adaptive edge detection and mapping model
CN108647549A (en) * 2018-03-14 2018-10-12 福州迈新生物技术开发有限公司 The processing method of bar code image, apparatus and system
WO2021223709A1 (en) * 2020-05-07 2021-11-11 Zhejiang Huaray Technology Co., Ltd. Systems and methods for barcode decoding
CN114781563A (en) * 2022-04-22 2022-07-22 苏州浪潮智能科技有限公司 Board-card barcode comparison method, system, terminal and storage medium
CN119374446A (en) * 2024-12-27 2025-01-28 南京市标准化研究院(南京市组织机构代码管理中心) Commodity barcode blank area comparison device and detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119374446A (en) * 2024-12-27 2025-01-28 南京市标准化研究院(南京市组织机构代码管理中心) Commodity barcode blank area comparison device and detection method
CN119374446B (en) * 2024-12-27 2025-04-04 南京市标准化研究院(南京市组织机构代码管理中心) Commodity bar code blank area comparator and detection method

Also Published As

Publication number Publication date
CN119374445B (en) 2025-04-04

Similar Documents

Publication Publication Date Title
CN119374445B (en) Commodity barcode comparison device and comparison method
US6991164B2 (en) Method and apparatus for encoding and decoding bar codes with primary and secondary information and method of using such bar codes
EP0917685B1 (en) High speed image acquisition system and method
US4963719A (en) Bar code scanner and method of scanning
US6032861A (en) Method and apparatus for encoding and decoding bar codes with primary and secondary information and method of using such bar codes
CN106249694B (en) Automatic machinery, the method for auto-control machine and machine readable media
US5175774A (en) Semiconductor wafer marking for identification during processing
TWI228238B (en) Method for reading a symbol having encoded information
US3961164A (en) UPC encodation verifier
US4814553A (en) Absolute position controller
US20050019796A1 (en) Image and part recognition technology
US7860298B2 (en) Method and system for the calibration of a computer vision system
JP2008525783A (en) Positioning method
JPH08180125A (en) Two-dimensional code reader
GB2434442A (en) Verification of performance attributes of packaged integrated circuits
CN119374446B (en) Commodity bar code blank area comparator and detection method
CN119006470B (en) Workpiece detection method, device, visual inspection equipment and storage medium
CN1467479A (en) Two-dimensional coding type zero alignment mark and coding method
JPS6165375A (en) Mark code and reading device
EP0552826B1 (en) Positioning device
JPH11230729A (en) Straight line bending measuring device
US7529409B2 (en) 2-D encoded symbol quality assessment
CN2454755Y (en) Goods code-stip measuring ruler
CN100351608C (en) Scanning precision verifying method for laser measurement equipment
JP3645975B2 (en) Measuring device

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