國際商品條碼
國際商品條碼(英語:International Article Number),即歐洲商品條碼(European Article Number,EAN),原來只是歐洲範圍內商品代碼,而現在已是全球範圍內產品交易的商品代碼。為了適應讀碼器辨認的需要,這些代碼又做成大家熟知的條形碼。
另外,日本於1978年在EAN的基礎上開發出日本商品條碼(Japanese Article Number,JAN)。
代碼組成及其意義[編輯]
- 【EAN有8位數字和13位數字之分】
- 13位EAN的組成如下:
- 國家代碼(前3位)[1]
- 生產商代碼(長度不定)
國家代碼和生產商代碼由EAN各國負責機構具體發放和管理
- 貨品代碼(長度不定)
貨品代碼由廠商自行設定
- 計算機校驗碼(最後1位)
8位的EAN是專門為小商品設置的代碼,所以其組成部分和13位EAN是不同的。
- 8位EAN的組成如下:
- 國家代碼(前3位)
- 生產商代碼(長度不定)
國家代碼和生產商代碼由EAN各國負責機構具體發放和管理
- 貨品代碼(長度不定)
貨品代碼由廠商自行設定
- 計算機校驗碼(最後1位)
會員國列表[編輯]
國家代碼只能代表包裝該項商品的廠商所在地,並無法表示出原始生產地。未在下表出現的數字,乃是針對未來使用而保留。
- 000 - 019
File:Flag of the United States.svg 美國 - 020 - 029
Restricted distribution (MO defined) - 030 - 039
File:Flag of the United States.svg 美國 - 040 - 049
Restricted distribution (MO defined) - 050 - 139
File:Flag of the United States.svg 美國 - 200 - 299
Restricted distribution (MO defined) - 300 - 379
File:Flag of France (1794–1815, 1830–1958).svg 法國 - 380
File:Flag of Bulgaria.svg 保加利亞 - 383
File:Flag of Slovenia.svg 斯洛文尼亞 - 385
File:Flag of Croatia.svg 克羅地亞 - 387
File:Flag of Bosnia and Herzegovina.svg 波黑 - 389
File:Flag of Montenegro.svg 黑山 - 390
File:Flag of Kosovo.svg 科索沃 - 400 - 440
File:Flag of Germany.svg 德國 - 450 - 459
File:Flag of Japan.svg 日本 - 460 - 469
File:Flag of Russia.svg 俄羅斯 - 470
File:Flag of Kyrgyzstan.svg 吉爾吉斯 - 471
File:Flag of the Republic of China.svg 中華民國 - 474
File:Flag of Estonia.svg 愛沙尼亞 - 475
File:Flag of Latvia.svg 拉脫維亞 - 476
File:Flag of Azerbaijan.svg 阿塞拜疆 - 477
File:Flag of Lithuania.svg 立陶宛 - 478
File:Flag of Uzbekistan.svg 烏茲別克 - 479
File:Flag of Sri Lanka.svg 斯里蘭卡 - 480
File:Flag of the Philippines.svg 菲律賓 - 481
File:Flag of Belarus.svg 白俄羅斯 - 482
File:Flag of Ukraine.svg 烏克蘭 - 484
File:Flag of Moldova.svg 摩爾多瓦 - 485
File:Flag of Armenia.svg 亞美尼亞 - 486
File:Flag of Georgia.svg 格魯吉亞 - 487
File:Flag of Kazakhstan.svg 哈薩克 - 488
File:Flag of Tajikistan.svg 塔吉克 - 489
File:Flag of Hong Kong.svg 香港 - 490 - 499
File:Flag of Japan.svg 日本 - 500 - 509
File:Flag of the United Kingdom (1-2).svg 英國 - 520 - 521
File:Flag of Greece.svg 希臘 - 528
File:Flag of Lebanon.svg 黎巴嫩 - 529
File:Flag of Cyprus.svg 塞浦路斯 - 530
File:Flag of Albania.svg 阿爾巴尼亞 - 531
File:Flag of North Macedonia.svg 北馬其頓 - 535
File:Flag of Malta.svg 馬耳他 - 539
File:Flag of Ireland.svg 愛爾蘭 - 540 - 549
File:Flag of Belgium (civil).svg 比利時
File:Flag of Luxembourg.svg 盧森堡 - 560
File:Flag of Portugal.svg 葡萄牙 - 569
File:Flag of Iceland.svg 冰島 - 570 - 579
File:Flag of Denmark.svg 丹麥
File:Flag of the Faroe Islands.svg 法羅群島
File:Flag of Greenland.svg 格陵蘭 - 590
File:Flag of Poland.svg 波蘭 - 594
File:Flag of Romania.svg 羅馬尼亞 - 599
File:Flag of Hungary.svg 匈牙利 - 600 - 601
File:Flag of South Africa.svg 南非 - 603
File:Flag of Ghana.svg 加納 - 604
File:Flag of Senegal.svg 塞內加爾 - 608
File:Flag of Bahrain.svg 巴林 - 609
File:Flag of Mauritius.svg 毛里裘斯 - 611
File:Flag of Monaco.svg 摩納哥 - 613
File:Flag of Algeria.svg 阿爾及利亞 - 615
File:Flag of Nigeria.svg 尼日利亞 - 616
File:Flag of Kenya.svg 肯雅 - 618
File:Flag of Cote d'Ivoire.svg 科特迪瓦 - 617
File:Flag of Cameroon.svg 喀麥隆 - 619
File:Flag of Tunisia.svg 突尼西亞 - 620
File:Flag of Tanzania.svg 坦桑尼亞 - 621
File:Flag of Syria (2025-).svg 敘利亞 - 622
File:Flag of Egypt.svg 埃及 - 623
File:Flag of Brunei.svg 汶萊 - 624
File:Flag of Libya.svg 利比亞 - 625
File:Flag of Jordan.svg 約旦 - 626
File:Flag of Iran.svg 伊朗 - 627
File:Flag of Kuwait.svg 科威特 - 628
File:Flag of Saudi Arabia.svg 沙地阿拉伯 - 629
File:Flag of the United Arab Emirates.svg 阿聯酋 - 630
File:Flag of Qatar.svg 卡塔爾 - 637
File:Flag of Scotland.svg 蘇格蘭 - 640 - 649
File:Flag of Finland.svg 芬蘭 - 690 - 699
File:Flag of the People's Republic of China.svg 中國 - 700 - 709
File:Flag of Norway.svg 挪威 - 729
File:Flag of Israel.svg 以色列 - 730 - 739
File:Flag of Sweden.svg 瑞典 - 740
File:Flag of Guatemala.svg 危地馬拉 - 741
File:Flag of El Salvador.svg 薩爾瓦多 - 742
File:Flag of Honduras (1949–2022, 2026–present).svg 洪都拉斯 - 743
File:Flag of Nicaragua.svg 尼加拉瓜 - 744
File:Flag of Costa Rica.svg 哥斯達黎加 - 745
File:Flag of Panama.svg 巴拿馬 - 746
File:Flag of the Dominican Republic.svg 多米尼加 - 750
File:Flag of Mexico.svg 墨西哥 - 754 - 755
File:Flag of Canada (Pantone).svg 加拿大 - 759
File:Flag of Venezuela.svg 委內瑞拉 - 760 - 769
File:Flag of Switzerland.svg 瑞士
File:Flag of Liechtenstein.svg 列支敦士登 - 770 - 771
File:Flag of Colombia.svg 哥倫比亞 - 773
File:Flag of Uruguay.svg 烏拉圭 - 775
File:Flag of Peru.svg 秘魯 - 777
File:Flag of Bolivia.svg 玻利維亞 - 778 - 779
File:Flag of Argentina.svg 阿根廷 - 780
File:Flag of Chile.svg 智利 - 784
File:Flag of Paraguay.svg 巴拉圭 - 786
File:Flag of Ecuador.svg 厄瓜多爾 - 789 - 790
File:Flag of Brazil.svg 巴西 - 800 - 839
File:Flag of Italy.svg 意大利
File:Flag of San Marino.svg 聖馬力諾
File:Flag of Vatican City (2023–present).svg 梵蒂岡 - 840 - 849
File:Flag of Spain.svg 西班牙
File:Flag of Andorra.svg 安道爾 - 850
File:Flag of Cuba.svg 古巴 - 858
File:Flag of Slovakia.svg 斯洛伐克 - 859
File:Flag of the Czech Republic.svg 捷克 - 860
File:Flag of Serbia.svg 塞爾維亞 - 865
File:Flag of Mongolia.svg 蒙古國 - 867
File:Flag of North Korea.svg 北韓 - 868 - 869
File:Flag of Turkey.svg 土耳其 - 870 - 879
File:Flag of the Netherlands.svg 荷蘭 - 880
File:Flag of South Korea.svg 南韓 - 883
File:Flag of Myanmar.svg 緬甸 - 884
File:Flag of Cambodia.svg 柬埔寨 - 885
File:Flag of Thailand.svg 泰國 - 888
File:Flag of Singapore.svg 新加坡 - 890
File:Flag of India.svg 印度 - 893
File:Flag of Vietnam.svg 越南 - 896
File:Flag of Pakistan.svg 巴基斯坦 - 899
File:Flag of Indonesia.svg 印度尼西亞 - 900 - 919
File:Flag of Austria.svg 奧地利 - 930 - 939
File:Flag of Australia.svg 澳洲 - 940 - 949
File:Flag of New Zealand.svg 紐西蘭 - 950
Global Office - 951
Global Office (EPCglobal) - 952
Global Office (Test) - 955
File:Flag of Malaysia.svg 馬來西亞 - 958
File:Flag of Macau.svg 澳門 - 960 - 969
Global Office (GTIN-8s) - 977
期刊 (ISSN) - 978 - 979
書籍 (ISBN)[a] - 980
退款收據 - 981 - 984
貨幣價值票券 - 990 - 999
印花、禮券
EAN的背景[編輯]
早年[編輯]
美國依據1970年IBM佐治·勞雷爾所開發12位數字的通用產品代碼(Universal Product Code,縮寫「UPC」),在1973年制定為標準,後來重新改劃為「UPC-A」[2][3][4]。一年之後,為了和美國能協調一致歐洲也指定了一套類似的貨品代碼體系。1977年建立了歐洲貨品協會European Article Association,其組織成員覆蓋了全球98個國家。為了綜合美國和歐洲的產品代碼,設在美國的「均勻碼理事會」(Uniform Code Council, UCC)把現今使用的EAN稱為EAN·UCC。
更名[編輯]
1981年,EAN已發展為國際性組織,改名為國際商品編碼協會。
現在[編輯]
2005年EAN正式更名為GS1(Global Standard One)。 2005年1月1日起北美洲實行EAN-13的貨品代碼。
EAN-13 代碼[編輯]
在條形碼中的應用[編輯]
一位數字由兩條明線和兩條暗線來定義。
四條線段以最細的一條為標準,分別有一倍、兩倍、三倍、四倍四種粗細。
同時一位數字的四條線段加起來的粗度正好是標準線段(最細線段)的七倍。
編碼的組成[編輯]
要條碼一個13位數字,需要先把這些數字分為3部分:第一個數字,開始6個數字和後6個數字。開始的6個數字有兩種條碼模式,even模式(標識為G)和odd模式(標識為L)。第一個數字不會直接用G或L模式條碼,但決定了開始6數字是用G模式還是L模式。後6個數字都會用RRRRRR模式來條碼。 To encode the 13-digit EAN-13 number, the digits are split into 3 groups; the first digit, the first group of 6 and the last group of 6. The first group of 6 is encoded using a pattern whereby each digit has two possible encodings, one of which has even parity (denoted with letter G) and one of which has odd parity (denoted with letter L). The first digit is not represented directly by a pattern of bars and spaces, but is encoded indirectly, by selecting a pattern of choices between these two encodings for the first group of 6 digits, according to the table below. All digits in the last group of 6 digits are encoded using a single pattern RRRRRR, the one also used for UPC.
比如第一個數字為0,那麼前6個數字全部使用LLLLLL模式來條碼。UPC條碼可以理解為一個0開頭的EAN13條碼。 If the first digit is zero, all digits in the first group of 6 are encoded using the pattern LLLLLL used for UPC, therefore, a UPC barcode is also an EAN-13 barcode with the first digit set to zero.
| First digit | First group of 6 digits | Last group of 6 digits |
|---|---|---|
| 0 | LLLLLL | RRRRRR |
| 1 | LLGLGG | RRRRRR |
| 2 | LLGGLG | RRRRRR |
| 3 | LLGGGL | RRRRRR |
| 4 | LGLLGG | RRRRRR |
| 5 | LGGLLG | RRRRRR |
| 6 | LGGGLL | RRRRRR |
| 7 | LGLGLG | RRRRRR |
| 8 | LGLGGL | RRRRRR |
| 9 | LGGLGL | RRRRRR |
This encoding guarantees that the first group always starts with an L-code, which has odd parity, and that the second group always starts with an R-code, which has even parity. Thus, it does not matter whether the barcode is scanned from the left or from the right, as the scanning software can use this parity to identify the start and end of the code.
EAN-8 barcodes encode all digits directly, using this scheme:
| First group of 4 digits | Last group of 4 digits |
|---|---|
| LLLL | RRRR |
| Digit | L-code | G-code | R-code |
|---|---|---|---|
| 0 | 0001101 | 0100111 | 1110010 |
| 1 | 0011001 | 0110011 | 1100110 |
| 2 | 0010011 | 0011011 | 1101100 |
| 3 | 0111101 | 0100001 | 1000010 |
| 4 | 0100011 | 0011101 | 1011100 |
| 5 | 0110001 | 0111001 | 1001110 |
| 6 | 0101111 | 0000101 | 1010000 |
| 7 | 0111011 | 0010001 | 1000100 |
| 8 | 0110111 | 0001001 | 1001000 |
| 9 | 0001011 | 0010111 | 1110100 |
Note: Entries in the R-column are bitwise complements (logical operator: negation) of the respective entries in the L-column. Entries in the G-column are the entries in the R-column in reverse bit order. See pictures of all codes against a colored background.
A run of one or more black areas is known as a "bar", and a run of one or more white areas is known as a "space". As can be seen in the table, each digit's encoding comprises two bars and two spaces, and the maximum width of a bar or space is four areas.
校驗碼的計算方法[編輯]
- 例子:假設某國際商品條碼的前 12 位是:490-8569-21968;
- 計算加權和:<math>{\color{Red}4}\times1+{\color{Red}9}\times3+{\color{Red}0}\times1+{\color{Red}8}\times3+{\color{Red}5}\times1+{\color{Red}6}\times3+{\color{Red}9}\times1+{\color{Red}2}\times3+{\color{Red}1}\times1+{\color{Red}9}\times3+{\color{Red}6}\times1+{\color{Red}8}\times3=151</math>
- 校驗碼即為加權和除以 10 的負餘數:<math>151=16\times10-{\color{Red}9}</math>。
所以,範例的校驗碼是 9,完整的國際商品條碼為 490-8569-21968-9。
外部連結[編輯]
- (英文)GS1 (頁面存檔備份,存於互聯網檔案館)
- (簡體中文)GS1 China 中華人民共和國物品條碼中心 (頁面存檔備份,存於互聯網檔案館)
- (中文)GS1 Taiwan 財團法人中華民國商品條碼策進會 (頁面存檔備份,存於互聯網檔案館)
- (中文)GS1 Hong Kong 香港貨品編碼協會 (頁面存檔備份,存於互聯網檔案館)
- (中文)GS1 Macau 澳門 (頁面存檔備份,存於互聯網檔案館)
- (英文)GS1 Singapore 新加坡 (頁面存檔備份,存於互聯網檔案館)
- (英文)BarcodeRobot (頁面存檔備份,存於互聯網檔案館)
參考來源[編輯]
- 註釋
- ^ 979-0特意留空,給予國際標準音樂出版物編碼(ISMN)使用。
- 引用
- ^ Prefix List, GS1, [2017-01-03], (原始內容存檔於2014-12-28).
- ^ Alumni Hall of Fame Members. University of Maryland Alumni Association. The University of Maryland. 2005 [2009-06-10]. (原始內容存檔於2007-06-23).
After graduating from Maryland in 1951, George Laurer joined IBM as a junior engineer and worked up the ranks to senior engineer. In 1969, he returned to the technical side of engineering and was later assigned the monumental task of designing a code and symbol for product identification for the Uniform Grocery Product Code Council. His solution — the Universal Product Code — radically changed the retail world. Since then, he has enhanced the code by adding a 13th digit. Laurer retired from IBM in 1987. He holds some 25 patents and is a member of the university’s A. James Clark School of Engineering Hall of Fame.
- ^ 商品條碼發起人Alan Haberman與世長辭. Unwire.hk. 2011年6月17日 [2017-01-03]. (原始內容存檔於2017-01-04).
- ^ MARGALIT FOX. 現代條形碼發明者活蘭去世. 紐約時報中文網. 2012年12月17日 [2017-01-03]. (原始內容存檔於2017-01-04). ([//web.archive.org/web/20170104000906/http://cn.nytimes.com/obits/20121217/c17woodland-obit/zh-hant/ 頁面存檔備份,存於互聯網檔案館) (頁面存檔備份,存於互聯網檔案館) (頁面存檔備份,存於互聯網檔案館) (頁面存檔備份,存於互聯網檔案館) (繁體中文)] (頁面存檔備份,存於互聯網檔案館)