Barcode Technology

Barcode History

Barcode Label Paper

Barcode Printer

Barcode Application

Inventory Management

AI Barcode QRCode

Barcode Scanner

Barcode Software

Barcode Software B

Barcode Software C

Barcode Software D

Barcode Software E

New Technology A

New Technology B

Robot Technology

Barcode Types

Barcode Types B

Barcode Types C

Barcode Types D

Barcode Types E

Barcode Types F

Electronic Technology

Psychology at Work

Barcode Technology and Barcode Software Related   <<< Back to Directory <<<

Error correction of the JAN (Japanese Article Number) barcode

Error Correction in JAN (Japanese Article Number) Barcode

1. Introduction to JAN Barcodes

The Japanese Article Number (JAN) barcode, also known as the Japanese version of the EAN (European Article Number), is widely used for identifying retail products in Japan. The JAN system, governed by the Japan Article Number Council, is fully compatible with the EAN-13 standard, using a 13-digit format. Error correction in JAN barcodes is crucial for ensuring accurate data transmission and reducing the likelihood of misreads.

2. Structure of a JAN Barcode

Before delving into error correction mechanisms, it is important to understand the structure of a JAN barcode:

2.1 Composition

A standard JAN barcode comprises the following components:

1.Country Code: The first two or three digits identify the country of origin. For Japan, this is usually 45 or 49.

2.Manufacturer Code: The next 4 to 5 digits identify the manufacturer.

3.Product Code: The subsequent 5 digits are specific to the product.

4.Check Digit: The final digit is a check digit used for error detection.

2.2 Encoding

JAN barcodes use the same encoding scheme as EAN-13, employing a combination of bars and spaces of varying widths to represent each digit from 0 to 9. The encoding process splits the barcode into a left and right section, with a central guard pattern separating them.

3. Error Detection and Correction in JAN Barcodes

Error correction in JAN barcodes primarily relies on the check digit, a form of redundancy that helps detect and correct errors.

3.1 Calculating the Check Digit

The check digit is calculated using a modulo-10 algorithm. Here's a step-by-step method:

1.Sum the digits in the odd positions (1st, 3rd, 5th, etc.), including the country code, manufacturer code, and product code.

2.Sum the digits in the even positions (2nd, 4th, 6th, etc.) and multiply this sum by 3.

3.Add the results from steps 1 and 2.

4.Find the smallest number which, when added to this sum, produces a multiple of 10. This number is the check digit.

Example: For a hypothetical JAN code 491234567890:

1.Odd position sum: 4 + 1 + 3 + 5 + 7 + 9 = 29

2.Even position sum: (9 + 2 + 4 + 6 + 8 + 0) * 3 = 29 * 3 = 87

3.Total sum: 29 + 87 = 116

4.The next multiple of 10 is 120. So, 120 - 116 = 4. The check digit is 4.

3.2 Error Detection

The check digit enables the detection of common errors:

1.Single-digit errors: If one digit is incorrect, the check digit will not match, indicating an error.

2.Transposition errors: If two adjacent digits are swapped, the check digit calculation will typically not match, signaling an error.

4. Examples of Error Detection

Let's consider practical examples to illustrate error detection:

4.1 Single-digit Error

Given the valid JAN code 4912345678904:

1.Suppose the scanner reads 4912345678905 (last digit incorrectly read as 5).

2.Recalculate the check digit for 491234567890:

Odd position sum: 4 + 1 + 3 + 5 + 7 + 9 = 29

Even position sum: (9 + 2 + 4 + 6 + 8 + 0) * 3 = 29 * 3 = 87

Total sum: 29 + 87 = 116

Check digit: 120 - 116 = 4 (the actual check digit).

3.The read code 4912345678905 has a check digit of 5, which does not match the calculated check digit of 4, indicating an error.

4.2 Transposition Error

For the valid JAN code 4912345678904:

1.Suppose the scanner reads 4912345678094 (digits 8 and 9 are transposed).

2.Recalculate the check digit for 491234567809:

Odd position sum: 4 + 1 + 3 + 5 + 8 + 0 = 21

Even position sum: (9 + 2 + 4 + 6 + 7 + 9) * 3 = 37 * 3 = 111

Total sum: 21 + 111 = 132

Check digit: 140 - 132 = 8.

3.The read code 4912345678094 has a check digit of 4, which does not match the calculated check digit of 8, indicating an error.

5. Error Correction Strategies

While the check digit primarily assists in error detection, it also facilitates certain error correction strategies.

5.1 Manual Verification and Correction

Upon detecting an error, manual verification can be performed:

1.Re-scan the barcode to verify the data.

2.Cross-reference the read data with the product database to identify and correct the discrepancy.

5.2 Automated Correction Algorithms

Automated systems can employ algorithms to attempt error correction:

1.Single-digit Correction: If an error is detected and suspected to be a single-digit error, the system can systematically change each digit and recalculate the check digit to identify a valid code.

2.Transposition Correction: For transposition errors, the system can swap adjacent digits and recalculate the check digit to identify a valid code.

Example of Single-digit Correction: Given an erroneous code 4912345678905:

1.System detects an error due to check digit mismatch.

2.It systematically changes each digit:

4912345678900 (check digit 0)

4912345678901 (check digit 1)

...

4912345678904 (check digit 4, which is correct).

Example of Transposition Correction: Given an erroneous code 4912345678094:

1.System detects an error due to check digit mismatch.

2.It swaps adjacent digits:

4912345678094 -> 4912345670894 (check digit mismatch)

4912345670894 -> 4912345760894 (check digit mismatch)

...

4912345678904 (check digit matches).

6. Limitations of Error Correction

While the check digit method provides robust error detection and correction capabilities, it has certain limitations:

6.1 Error Detection Limitation

The check digit algorithm might not detect:

1.Multiple-digit errors: Simultaneous errors in multiple digits that result in a valid check digit.

2.Cyclic errors: Specific cyclic permutations of digits that result in a valid check digit.

Example of Multiple-digit Error: Given the valid JAN code 4912345678904:

1.If the scanner reads 4912345618904 (digits 6 and 7 are replaced by 1 and 6, respectively).

2.Recalculate the check digit for 491234561890:

Odd position sum: 4 + 1 + 3 + 5 + 1 + 9 = 23

Even position sum: (9 + 2 + 4 + 6 + 8 + 0) * 3 = 29 * 3 = 87

Total sum: 23 + 87 = 110

Check digit: 110 is already a multiple of 10, so check digit is 0.

3.The read code 4912345618900 (check digit matches 0), but it is an erroneous read.

6.2 Error Correction Limitation

Automated error correction might:

1.Fail to correct complex errors: Errors involving multiple or non-adjacent digit changes may not be corrected.

2.Generate false positives: Incorrectly identifying a valid code that matches the check digit but is not the intended code.

Example of Complex Error: Given the valid JAN code 4912345678904:

1.If the scanner reads 4912345178904 (digits 6 and 5 are replaced by 1 and 7).

2.Automated correction might not easily identify the correct code due to the complex nature of the error.

7. Enhancements to Error Correction

To enhance error correction capabilities, additional strategies can be implemented:

7.1 Redundancy in Data Storage

Storing redundant data across multiple locations can help cross-verify and correct errors:

1.Multiple barcodes: Printing multiple barcodes on a single product or packaging.

2.Database cross-referencing: Using a centralized database to verify and correct scanned data.

7.2 Advanced Algorithms

Employing more sophisticated algorithms can improve error correction:

1.Machine learning: Training models to identify and correct common error patterns.

2.Statistical methods: Using statistical analysis to predict and correct errors.

Example of Advanced Algorithm: Using a machine learning model:

1.Train the model on a dataset of JAN codes and common errors.

2.Implement the model in the scanning system to identify and correct errors in real-time.

8. Conclusion

Error correction in JAN barcodes, primarily through the use of check digits, plays a critical role in ensuring data accuracy and reliability. While the check digit mechanism provides robust error detection and basic correction capabilities, limitations exist in handling complex errors. Enhancing error correction through redundancy, advanced algorithms, and machine learning can further improve the reliability and accuracy of JAN barcode systems. Through continuous improvement and innovation, error correction in JAN barcodes can meet the evolving needs of retail and industrial applications.

 

EasierSoft Barcode Label Design & Bulk Printing Software

---- Use Excel Data to Batch Print Barcodes on Label Sheets or Roll Labels  

---- How to use this barcode software

Download:  Free Barcode Software + Barcode Label Designer

Download Free Barcode Software at Softonic

     Download at CNET

Once you obtain a GS1/UPC/EAN barcode, or other barcode type and QR code, you can use our free software to batch print barcode labels onto Roll label paper using a professional label printer, or to batch print barcodes onto Avery 5160 label sheets using a regular laser or inkjet printer. Our software has free and paid versions.

The free version fully meets your needs for batch printing GS1/UPC/EAN barcodes. The paid version can import data from Excel and databases to batch print barcode labels with different values.

How to Start

Input Data

Import Excel Data

Print Barcode

Barcode Format

Label Designer

All Screen Shot

Export Barcode Image

Save Template

Output Word Excel

How to Use & FAQ:

Automatically Adjusting Barcode Width

Text Beneath the Barcode

Configuring Barcode Size

Auto Calculate the Barcode Size

Export Barcode images

Export Barcode Image Format

File Names for Exported Barcode

Resolution of Exported Barcode Images

Fixed Folder for Exporting Barcode

Default Barcode Image Export Format

Print bulk barcodes quickly

Print barcodes to Avery 5160 label

How to bulk Barcode Printing

Sample - Avery 5162 (2x7) Label Sheet

Example: Print barcodes to 5*3cm roll

Example: Print barcodes to 5161 label

Example: Print barcodes to 5162 label

Example: Print barcodes to 5163 label

Example: Print barcodes to 5164 label

Example: Print portrait orientation 5164

Example: Print barcodes to 5167 label

Example: Print barcodes to 5168 label

Example: Print portrait orientation 5168

Example: Print barcodes to 5169 label

Example: Print barcodes to 5660 label

Example: Print barcodes to 5661 label

Example: Print barcodes to 5662 label

Example: Print barcodes to 5663 label

Example: Print barcodes to 5664 label

Example: Print portrait orientation 5664

Example: Print barcodes to 5873 label

Example: Print barcodes to 5874 label

Two ways to import Excel data

Import Excel Data - Pro Edition

Import Excel Data - Std Edition

Import Data from Excel - Detail

Load Data From Excel File

Data Editing Table

Copy Data From Excel

Four ways to input barcode data

Add ASCII Key E

Input Multiple Lines of Text for Barcodes

Generates Sequential Serial Numbers

Import or copy data from Excel sheets

Special sequence number generation

Std Details: Simple Input Form

Std Details: Multiple Line Text Input

Details: Sequence Barcode Generator

Examples: Sequence Barcode Generator

Import Data From Excel Spreadsheet

Highlights

Excel integration: Import data directly from Excel to generate and print barcodes in bulk.

Label designer: Create complex labels with multiple barcodes, text, logos, and shapes.

Batch printing: Print thousands of barcodes at once using standard inkjet/laser printers or professional barcode printers.


Flexible editions:

Standard Edition: Simple batch printing with Excel data.

Professional Edition: Adds command-line automation for workflow integration.

Label Designer Edition: Advanced design features for complex labels.


Why Choose Our Barcode Solutions?

Cost-effective: Free online generator and permanent free desktop version available.

Easy to use: No technical expertise required—just input data and print.

Versatile: Supports nearly all 1D and 2D barcode types, including QR codes.

Trusted: Recommended by CNET and widely downloaded by users worldwide.


Suitable Use Cases

Small businesses and startups needing quick barcode labels for products.

Retailers and online sellers managing inventory with batch barcode printing.

Manufacturers requiring sequential or custom barcode labels for packaging.

Educational and testing environments where barcodes are used for tracking.

 

 

CONTACT

cs@easiersoft.com

If you have any question, please feel free to email us.

 

https://free-barcode.com

 

<<< Back to Directory <<<     Barcode Generator     Barcode Freeware     Privacy Policy