Can't Read 2D Codes? Reading Principles and Two Points to Check | KEYENCE
Keyence · Uploaded · 5:33 · Watch on YouTube
Keyence walks through the principles of reading 2D codes on production lines, where codes are often marked directly on parts. It covers the three marking-quality elements to check (contrast, position patterns, and square cells) and how a code reader separates image acquisition from decoding.
Transcript
Captions as a .vtt fileEmbed with the transcript
- 0:01A 2D code looks simple to read, so why can't your code reader read it?
- 0:06This is the Keyence Technical Guide, The Guide to Read When You Can't Read 2D Codes, Volume 1.
- 0:13In about six minutes, what reading 2D codes means and the two points to check.
- 0:19What does reading 2D codes mean?
- 0:22Reading 2D codes is now commonplace in daily life, such as paying via QR code or boarding a train or plane.
- 0:29But on production sites, 2D codes cause a variety of problems.
- 0:34An act that appears simple at a glance is actually very difficult to implement.
- 0:39Here are examples of 2D codes marked directly on materials.
- 0:43A flexible PCB, a steel medical accessory, an automotive motor, a PE bottle, a lead frame, an ECU PCB, an in-vehicle resin part and a carbide tool.
- 0:56The majority of problems when reading 2D codes are caused by codes marked directly on materials.
- 1:03There is an international standard for marking quality, and problems can be eliminated by using it to perform correct marking.
- 1:10Its main points are summarized in a separate Keyence document, the Barcode, Two-Dimensional Code Verification Guidebook.
- 1:18It is necessary to think about two points when reading 2D codes.
- 1:23Point one, is the target a correct 2D code?
- 1:26The guide shows examples such as missing dots, missing fixed patterns, misaligned dots, gradation, insufficient margins, uneven marking and scratches.
- 1:37Point two, can you master the code reader being used?
- 1:40Here, the guide shows installation distance, angle adjustment and lighting optimization.
- 1:47Point one, what exactly are correct 2D codes?
- 1:51A 2D code first fulfills its role when it is read, so the important point is how easy it is to read.
- 1:57However, at production sites, codes marked directly on materials, called direct part marking or DPM, sometimes cannot be read.
- 2:07ISO, IEC, TR29158 is the marking verification standard for DPM excluding overall judgment.
- 2:16There are 12 evaluation items, such as decode, cell contrast, fixed pattern damage and print growth.
- 2:24Three elements have a noted effect on reading.
- 2:27Contrast between white and black, the pattern that identifies the code position information, and cells that are close to square.
- 2:36Element one, whether there is contrast between white and black.
- 2:40Without sufficient contrast during marking, it may not be possible to read the code.
- 2:45In this example of marking with laser markers, slight tilting during conveyance shifts the focal distance, and uneven marking occurs.
- 2:53With no shifts, the marking is uniform.
- 2:56The histograms of light intensity compare the two.
- 3:00Element two, whether the pattern that identifies the code position information is accurate.
- 3:06Reading is not possible if this part is damaged.
- 3:09In a data matrix code, the data area is surrounded by an L-shaped alignment pattern
- 3:14and a dotted clock pattern.
- 3:16Code readers capture these patterns to determine the position of the code, so data matrix codes can be read from any direction.
- 3:24Element three, whether the cells are close to square.
- 3:27On the right, the black and white parts are close to square.
- 3:31On the left, unstable marking left the black parts off the lines, so the white parts cannot be called square.
- 3:37Point two, what is the principle of reading 2D codes?
- 3:42With the lighting turned on, the code reader acquires an image and recognizes the difference in reflected light intensity.
- 3:49Low from the black code, and high from the white background.
- 3:54Reading is easier to understand when separated into two actions.
- 3:58One, image acquisition, creating a binary image with contrast between white and black.
- 4:04Two, decoding, searching for the 2D code, correcting items such as cell ratio, and then recognizing it as a 2D code.
- 4:13In image acquisition, if glare occurs, it must be removed, because it can make it impossible to obtain contrast.
- 4:21With this black resin cylinder, the result is an error without a polarizing filter, and OK with a polarizing filter.
- 4:30In decoding, if the installation distance and angle are suitable, reading success will be determined by the code reader's search and correction functions.
- 4:40In search processing, even if another pattern looks like a code, the image is binarized and only the 2D code is searched for immediately.
- 4:48Correction processing automatically selects the best filter and filtering intensity.
- 4:55To summarize, when you can't read 2D codes, check two points.
- 4:59Point one, is the 2D code correct? Check the three elements, contrast, position pattern, and close to square.
- 5:06Point two, have you mastered the code reader? Separate reading into two actions, image acquisition and decoding.
- 5:13This way of thinking can help implement appropriate countermeasures.
- 5:18For full details, see the Keyence Technical Guide, The Guide to Read When You Can't Read 2D Codes, Volume 1.
- 5:25The technical guide link is in the description below.
Discussion
A mail when somebody comments. No account needed.
The newsletter
Get our free newsletter with new robots, prices and robotics news.