TW201411498A - 條碼讀取方法及讀取裝置 - Google Patents

條碼讀取方法及讀取裝置 Download PDF

Info

Publication number
TW201411498A
TW201411498A TW101133201A TW101133201A TW201411498A TW 201411498 A TW201411498 A TW 201411498A TW 101133201 A TW101133201 A TW 101133201A TW 101133201 A TW101133201 A TW 101133201A TW 201411498 A TW201411498 A TW 201411498A
Authority
TW
Taiwan
Prior art keywords
distance
image
barcode
image sensor
optical lens
Prior art date
Application number
TW101133201A
Other languages
English (en)
Other versions
TWI505198B (zh
Inventor
Li-Jiang Dai
Chang-Feng Wang
Hui-Qing Chen
Bi-Yao Jian
Original Assignee
Sintai Optical Shenzhen Co Ltd
Asia Optical Co Inc
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 Sintai Optical Shenzhen Co Ltd, Asia Optical Co Inc filed Critical Sintai Optical Shenzhen Co Ltd
Priority to TW101133201A priority Critical patent/TWI505198B/zh
Priority to CN201310376890.1A priority patent/CN103679109A/zh
Priority to US13/975,402 priority patent/US8950677B2/en
Publication of TW201411498A publication Critical patent/TW201411498A/zh
Application granted granted Critical
Publication of TWI505198B publication Critical patent/TWI505198B/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10792Special measures in relation to the object to be scanned
    • G06K7/10801Multidistance reading
    • G06K7/10811Focalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/01Details
    • G06K7/015Aligning or centering of the sensing device with respect to the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10831Arrangement of optical elements, e.g. lenses, mirrors, prisms

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Automatic Focus Adjustment (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

一種條碼讀取方法及讀取裝置,首先係使一影像感測器透過一光學鏡頭擷取一條碼之數位影像,然後搭配三角測距法與理想透鏡成像法演算該數位影像,進而產生出最佳像距,再依最佳像距調整影像感測器與光學鏡頭之間的距離,即可快速且清晰地使條碼成像於影像感測器。

Description

條碼讀取方法及讀取裝置
本發明係與條碼讀取方法有關,特別是指一種具有自動調整焦距之條碼讀取方法及讀取裝置。
利用條碼紀錄商品品項、售價之類的資訊,已經是目前最常見的商品交易與管理方式。利用條碼讀取機掃瞄顯示於商品表面的條碼,再經由解碼條碼之後,就能夠讀取到商品資料,方便做各種後續處理程序與動作。
一般的條碼讀取機包含有一影像感測器,影像感測器可透過鏡頭擷取外界影像,當條碼通過鏡頭時,條碼就能夠被影像感測器擷取其影像,並且產生出相對應可用以供判讀的影像資料。
然而,在目前條碼讀取機的組成構件裡,上述影像感測器與鏡頭之間皆為固定距離,條碼必須靠近鏡頭才能完整成像於影像感測器,若是條碼與鏡頭之間的距離較遠,條碼就無法清晰成像於影像感測器,影響後續判讀的正確性與成功率。而且目前市面上也同時使用許多種不同格式的條碼,更加地提高條碼讀取的複雜性。
因此,本發明之主要目的乃在於提供一種條碼讀取方法及其裝置,其可自動調整焦距,對焦與解碼較為快速, 而且成像更為正確及清晰。
為了達成上述目的,本發明所提供之條碼讀取方法,首先係使一影像感測器透過一光學鏡頭擷取一條碼之數位影像,然後演算該數位影像,接著調整該影像感測器與該光學鏡頭之間的距離,使該條碼再成像於該影像感測器。
應用本發明之條碼讀取裝置,包含有一光學鏡頭、一影像感測器、一移動裝置,以及一微控制器;該影像感測器係設於該光學鏡頭一側,該影像感測器透過該光學鏡頭擷取一條碼之數位影像,該移動裝置用以改變該光學鏡頭與該影像感測器之間的距離,該微控制器係電性連接於該影像感測器與該移動裝置,用以接收並解碼運算該數位影像,並且控制該移動裝置。
為了能更為精確地演算成像出該條碼的像距,本發明應用微控制器搭配三角測距法與理想透鏡成像法進行演算解碼。利用上述各技術特徵,本發明即可達成快速對焦與解碼,而且成像更為正確及清晰等目的。
茲配合圖式列舉一較佳實施例詳細說明本發明之技術特徵與功效所在,其中各圖式之簡要說明如下:第一圖係為本發明一較佳實施例之示意圖。
第二圖係為本發明一較佳實施例之成像示意圖。
第三圖係為本發明一較佳實施例之系統組成圖。
第四圖係為本發明一較佳實施例之流程圖。
第五圖係為本發明一較佳實施例之說明圖。
請參閱第一圖至第四圖所示,係為本發明一較佳實施例所提供之條碼讀取方法與讀取裝置,條碼讀取方法包括有下列步驟:
一、擷取條碼影像:利用一影像感測器10透過一光學鏡頭20接收一條碼30影像,光學鏡頭20本身具有光學焦距,影像感測器10與光學鏡頭20之間相距一初始像距V1之距離。
在擷取條碼30影像的過程裡,為了使影像感測器10能正確地對準到條碼30位置,主要係利用一光源40透過一框體42朝條碼30投射出一照明框44,於本較佳實施例之光源40為發光二極體,照明框44必須位於條碼30的中間位置,光源40與條碼影像之間具有區別性,使影像感測器10藉由照明框44之輔助而確定擷取到條碼30影像,進而產生出條碼30的數位影像資料。
再者,藉由位於與影像感測器10同一側之二光源50朝向條碼30投射二位於垂直方向的標定影像52,各光源50與條碼影像之間同樣具有區別性,於本較佳實施例之光源50係為雷射二極體,二標定影像52之間相距一第一距離L1,使得影像感測器10所擷取到條碼30之數位影像資料中包含了該二標定影像52,而且於數位影像的資料內容裡,該二標定影像52相距一第二距離L2。第一距離L1除了可如上述為垂直方向距離以外,亦可改為沿水平方向之距離。
二、演算:當影像感測器10擷取條碼30的數位影像之後,數位影像資料係藉由電性連接於影像感測器10之一微控制器60搭配三角測距法與理想透鏡成像法進行演算解碼。本發明所應用的三角測距法如A式,主要利用第一距離L1除以第二距離L2之後再乘上初始像距V1即可得出一實際物距U1
U 1=(L 1/L 2) V 1 (A)
而本發明所應用的理想透鏡成像法則如B式,利用光學鏡頭20之焦距f的倒數減去實際物距U1之倒數以後即可得出一最佳像距V2之倒數。利用初始像距V1與最佳像距V2之間的差值,即為光學鏡頭20可清楚成像出條碼30影像的移動距離D。
三、調整像距:如第三圖所示,利用一移動裝置70讓光學鏡頭20移動經由上述演算步驟所得到的移動距離D,使條碼30再成像於影像感測器10,影像感測器10即可產生出清晰之數位化條碼影像。於本較佳實施例之移動裝置70係以一步進馬達72帶動設於滑軌組件74之光學鏡頭20為例,移動裝置70亦電性連接於微控制器60,使微控制器60依據移動距離D驅使移動裝置70帶動光學鏡頭20改變與影像感測器10之間的距離。本案在相同設計概念下,也可改為移動影像感測器達成同樣的發明目的。
上述方法主要是利用演算步驟解碼條碼30之數位影 像,不論條碼30與影像感測器10、光學鏡頭20之間的距離較遠或較近,都能透過演算方式調整光學鏡頭20至能清楚成像之位置。從第五圖所顯示各種格式之條碼的最佳偵測範圍示意圖可知,因應不同格式的條碼,條碼與影像感測器之間對應有著不同的最佳偵測距離與位置範圍,因此本發明利用可彈性調整光學鏡頭20與條碼30之間的距離,使各種格式的條碼都能夠清楚且正確地被影像感測器所擷取,使得本發明具備有自動對焦與應用更為廣泛的功效。
再者,利用擷取與演算條碼影像資料,再進行對焦的方式,不但能由軟體完全進行解碼與控制焦距等工作,使影像對焦較為方便與快速。而且不需由使用者以目視觀察條碼,讓對焦效果更為精確與清晰。
本發明於前揭實施例中所揭露的構成元件與步驟僅為舉例說明,並非用來限制本案之範圍,其他等效方式的替代或變化,亦應為本案之申請專利範圍所涵蓋。
10‧‧‧影像感測器
20‧‧‧光學鏡頭
30‧‧‧條碼
40‧‧‧光源
42‧‧‧框體
44‧‧‧照明框
50‧‧‧光源
52‧‧‧標定影像
60‧‧‧微控制器
70‧‧‧移動裝置
72‧‧‧步進馬達
74‧‧‧滑軌組件
L1‧‧‧第一距離
L2‧‧‧第二距離
U1‧‧‧實際物距
V1‧‧‧初始像距
V2‧‧‧最佳像距
D‧‧‧移動距離
第一圖係為本發明一較佳實施例之示意圖。
第二圖係為本發明一較佳實施例之成像示意圖。
第三圖係為本發明一較佳實施例之系統組成圖。
第四圖係為本發明一較佳實施例之流程圖。
第五圖係為本發明一較佳實施例之說明圖。
10‧‧‧影像感測器
20‧‧‧光學鏡頭
30‧‧‧條碼
40‧‧‧光源
42‧‧‧框體
44‧‧‧照明框
50‧‧‧光源
52‧‧‧標定影像
L1‧‧‧第一距離

Claims (8)

  1. 一種條碼讀取方法,包括有:a.使一影像感測器透過一光學鏡頭擷取一條碼之數位影像;b.演算該數位影像;以及c.調整該影像感測器與該光學鏡頭之間的距離,使該條碼再成像於該影像感測器。
  2. 依據請求項1所述之條碼讀取方法,其中該影像感測器與該光學鏡頭之間具有一初始像距,步驟a另包含有:朝該條碼投射二相距一第一距離之標定影像,使該二標定影像於該條碼被擷取的數位影像中相距一第二距離,於該步驟b中,利用該第一距離除以該第二距離之後再乘上該初始像距得出一實際物距。
  3. 依據請求項2所述之條碼讀取方法,該步驟b係利用該光學鏡頭之焦距的倒數減去該實際物距之倒數之後即可得出一最佳像距之倒數。
  4. 依據請求項1所述之條碼讀取方法,該步驟a中另以一區別於該條碼之數位影像的光源透過一框體朝該條碼投射出一照明框,該照明框位於該條碼的中間位置,使該影像感測器藉由該照明框輔助擷取該條碼之影像。
  5. 一種條碼讀取裝置,包含有:一光學鏡頭;一影像感測器,設於該光學鏡頭一側,該影像感測器透過該光學鏡頭擷取一條碼之數位影像; 一移動裝置,用以改變該光學鏡頭與該影像感測器之間的距離;以及一微控制器,係電性連接於該影像感測器與該移動裝置,用以接收並解碼運算該數位影像,並且控制該移動裝置。
  6. 如請求項5所述之條碼讀取裝置,另包含至少一區別於該條碼之數位影像的光源,該光源朝向該條碼投射二標定影像,該二標定影像相距一第一距離,且該二標定影像於該條碼被擷取的數位影像中相距一第二距離,該影像感測器與該光學鏡頭之間具有一初始像距,該微控制器係將該第一距離除以該第二距離之後再乘上該初始像距得出一實際物距。
  7. 如請求項6所述之條碼讀取裝置,其中該微控制器係用以將該光學鏡頭之焦距的倒數減去該實際物距之倒數之後即可得出一最佳像距之倒數。
  8. 如請求項5所述之條碼讀取裝置,另包括一光源透過一框體朝該條碼投射出一照明框,該照明框係位於該條碼的中間位置,使該影像感測器藉由該照明框之輔助擷取該條碼之影像。
TW101133201A 2012-09-11 2012-09-11 Bar code reading method and reading device TWI505198B (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
TW101133201A TWI505198B (zh) 2012-09-11 2012-09-11 Bar code reading method and reading device
CN201310376890.1A CN103679109A (zh) 2012-09-11 2013-08-26 条形码读取方法及读取装置
US13/975,402 US8950677B2 (en) 2012-09-11 2013-08-26 Barcode reading method and barcode reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101133201A TWI505198B (zh) 2012-09-11 2012-09-11 Bar code reading method and reading device

Publications (2)

Publication Number Publication Date
TW201411498A true TW201411498A (zh) 2014-03-16
TWI505198B TWI505198B (zh) 2015-10-21

Family

ID=50232237

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101133201A TWI505198B (zh) 2012-09-11 2012-09-11 Bar code reading method and reading device

Country Status (3)

Country Link
US (1) US8950677B2 (zh)
CN (1) CN103679109A (zh)
TW (1) TWI505198B (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI595426B (zh) * 2016-03-24 2017-08-11 佳世達科技股份有限公司 條碼解碼方法

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103837129B (zh) * 2014-02-27 2016-06-08 华为终端有限公司 一种终端中的测距方法、装置及终端
DE102015210504B4 (de) * 2015-06-09 2020-01-16 Pepperl + Fuchs Gmbh Detektionsanordnung und Verfahren zum Detektieren eines Markierungsabschnitts auf einem Träger sowie Verfahren zum Betreiben einer Detektionsanordnung
US9798912B1 (en) * 2016-09-26 2017-10-24 Symbol Technologies, Llc Imaging module and reader for, and method of, reading targets by image capture with a substantially constant resolution over an extended range of working distances
CN107122694A (zh) * 2017-06-16 2017-09-01 北京鼎九信息工程研究院有限公司 一种图像扫描设备的补光照准装置及图像扫描设备
CN109782564B (zh) * 2017-11-15 2021-03-23 许家维 雷射投射钟
CN110969044B (zh) * 2019-11-29 2021-04-13 联想(北京)有限公司 一种扫码设备及扫码方法
TWI817265B (zh) * 2021-11-29 2023-10-01 財團法人工業技術研究院 輸送帶上的物件追蹤及導引系統及其方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6382512B1 (en) * 2001-04-09 2002-05-07 Yu-Chun Chang Signal reading control apparatus for barcode scanner
DE60331151D1 (de) * 2003-10-27 2010-03-18 Bea Sa Entfernungsmessgerät
US20080277477A1 (en) * 2007-05-10 2008-11-13 Serge Thuries Dynamic focus calibration, such as dynamic focus calibration using an open-loop system in a bar code scanner
US8387884B2 (en) * 2007-05-31 2013-03-05 Symbol Technologies, Inc. Variable focus imaging lens assembly for an imaging-based bar code reader
EP2218033A4 (en) * 2007-11-08 2010-12-29 Optoelectronics Co Ltd OPTICAL CODE READER WITH AUTOMATIC FOCUS
TWI397861B (zh) * 2007-12-24 2013-06-01 Marson Technology Co Ltd Laser bar code scanner and its execution method
TWI427540B (zh) * 2011-01-14 2014-02-21 Ind Tech Res Inst 條碼讀取裝置與條碼讀取方法
US8657195B2 (en) * 2011-09-27 2014-02-25 Symbol Technologies, Inc. Document capture with imaging-based bar code readers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI595426B (zh) * 2016-03-24 2017-08-11 佳世達科技股份有限公司 條碼解碼方法

Also Published As

Publication number Publication date
TWI505198B (zh) 2015-10-21
US20140070007A1 (en) 2014-03-13
CN103679109A (zh) 2014-03-26
US8950677B2 (en) 2015-02-10

Similar Documents

Publication Publication Date Title
TWI505198B (zh) Bar code reading method and reading device
US11301655B2 (en) Vision imaging system having a camera and dual aimer assemblies
US20160104274A1 (en) Image-stitching for dimensioning
US8061616B2 (en) Aiming sight for a barcode reader
US10832023B2 (en) Dual-imaging vision system camera and method for using the same
US8079524B2 (en) Imaging-based scanner including border searching for image acquisition
EP3353705B1 (en) Compact imaging module with range finder
JP7177295B1 (ja) 可変焦点レンズのための焦点ドリフトと対象までの距離変化とを区別する方法
US11828847B2 (en) Distance measurement device, deriving method for distance measurement, and deriving program for distance measurement
US11009347B2 (en) Arrangement for, and method of, determining a distance to a target to be read by image capture over a range of working distances
CN102096797A (zh) 一种被识读条码的位置提示装置、方法及条码识读设备
JP2012508927A5 (zh)
KR102079697B1 (ko) 판독장치, 프로그램 및 유닛
CN105806225A (zh) 一种基于线激光拍摄成像的测量系统
US10621398B2 (en) Methods and systems for operating an indicia scanner
KR20230004309A (ko) 고정 초점 애플리케이션들을 위한 가변 초점 렌즈의 초점 드리프트를 검출 및 보정하는 방법
TWI411862B (zh) 影像量測對焦系統及方法
JP4176007B2 (ja) 測距機能を有するコード読取装置
JP5402587B2 (ja) 光学的情報読取装置
JP2012185842A (ja) スキャナ
JP2022055005A (ja) 光学式情報読取装置及び光学式情報読取方法
US20200080838A1 (en) Apparatus and method for measuring three-dimensional shape
JP2010176417A (ja) コードシンボル読取装置
KR20120053828A (ko) Dfov를 이용한 카메라 모듈의 자동초점 캘리브레이션 장치, 자동초점 캘리브레이션 방법 및 그 기록매체
KR20100015199A (ko) 측정 대상물의 높이 측정 장치

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees