TW201601068A - Image type high-speed barcode scanning method - Google Patents

Image type high-speed barcode scanning method Download PDF

Info

Publication number
TW201601068A
TW201601068A TW103122002A TW103122002A TW201601068A TW 201601068 A TW201601068 A TW 201601068A TW 103122002 A TW103122002 A TW 103122002A TW 103122002 A TW103122002 A TW 103122002A TW 201601068 A TW201601068 A TW 201601068A
Authority
TW
Taiwan
Prior art keywords
barcode
image
sequence
dimensional
oblique
Prior art date
Application number
TW103122002A
Other languages
Chinese (zh)
Other versions
TWI522927B (en
Inventor
deng-zhen Liao
Original Assignee
Mexxen Technology 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 Mexxen Technology Inc filed Critical Mexxen Technology Inc
Priority to TW103122002A priority Critical patent/TW201601068A/en
Priority to CN201410475445.5A priority patent/CN104680111A/en
Publication of TW201601068A publication Critical patent/TW201601068A/en
Application granted granted Critical
Publication of TWI522927B publication Critical patent/TWI522927B/zh

Links

Landscapes

  • Image Input (AREA)

Abstract

An image type high-speed barcode scanning method includes the steps that an image of a barcode of a label is read by an image sensor, the image is stored in an image storage and memory device, and then the image of the barcode of the label is sampled in multiple directions and full-width image decoding is carried out. During the multiple-direction sampling, the barcode is scanned successively by multiple X-axis directions, Y-axis directions, first inclined axial directions and second inclined axial directions, so a sequence sampling signal of the multiple scanning lines is obtained. Decoding is carried out by a one-dimension image decoding engine, and one-dimension barcode information is obtained. If the barcode of the label is a two-dimension barcode, then decoding is carried out by a two-dimension image decoding engine and two-dimension barcode information is obtained.

Description

影像式高速條碼掃描方法 Image type high speed barcode scanning method

本發明係關於一種條碼掃描方法,特別是指一種影像式高速條碼掃描方法。 The invention relates to a barcode scanning method, in particular to an image high speed barcode scanning method.

條碼在現今商業活動中應用廣泛,特別是在高科技行業、儲存運輸業、批發零售業等需要對物品進行快捷的標示信息、傳送信息的行業用途廣泛。 Bar codes are widely used in today's commercial activities, especially in the high-tech industry, storage and transportation, wholesale and retail industries, etc., which require rapid labeling and transmission of information.

由於條碼可以標出物品的生產國、製造廠家、商品名稱、生產日期、圖書分類號、信件起止地點、類別、日期等訊息,因而在商品流通、圖書管理、郵政管理、銀行系統等許多領域都得到了廣泛的應用。 Since the bar code can indicate the country of manufacture, manufacturer, product name, date of manufacture, book classification number, start and end of the letter, category, date, etc., it is used in many fields such as commodity circulation, book management, postal management, banking system, etc. Has been widely used.

目前所使用的條碼類型大致上區分為一維條碼及二維條碼。一維條碼的結構中主要是將寬度不等的多個黑條和空白按照一定的編碼規則排列的平行線圖案,用以表達一組訊息的圖形識別元。 The type of bar code currently used is roughly divided into a one-dimensional bar code and a two-dimensional bar code. The structure of the one-dimensional bar code is mainly a parallel line pattern in which a plurality of black bars and spaces of different widths are arranged according to a certain coding rule, and a graphic identification element for expressing a group of messages.

條碼的掃描需要掃描器,掃描器利用自身光源照射條碼,再利用光電轉換器接受反射的光線,將反射光線的明暗轉換成數位訊號。 The scanning of the barcode requires a scanner. The scanner uses its own light source to illuminate the barcode, and then uses the photoelectric converter to receive the reflected light, and converts the light and dark of the reflected light into a digital signal.

要將按照一定規則編譯出來的條碼轉換成有意義的訊息,需要經歷掃描和解碼兩個過程。物體的顏色是由其反射光的型別決定的,白色物體能反射各種波長的可見光,黑色物體則吸收各種波長的可見光,所以當條碼掃描器光源發出的光在條碼上反射後,反射光照射到條碼掃描器內部的光電轉換器上,光電轉換器根據強弱不同的反射光訊號,轉換成相應的電訊號。 To convert a bar code compiled according to certain rules into a meaningful message, you need to go through two processes of scanning and decoding. The color of an object is determined by the type of light it reflects. White objects can reflect visible light of various wavelengths, while black objects absorb visible light of various wavelengths. Therefore, when the light emitted by the bar code scanner source is reflected on the bar code, the reflected light is irradiated. To the photoelectric converter inside the barcode scanner, the photoelectric converter converts into a corresponding electrical signal according to different reflected light signals of different strengths and weaknesses.

白條、黑條的寬度不同,相應的電訊號持續時間長短也 不同。然後解碼器透過測量脈衝數位電訊號0,1的數目來判別條和空的數目。透過測量0,1訊號持續的時間來判別條和空的寬度。此時所得到的資料仍然是雜亂無章的,要知道條碼所包含的訊息,則需根據對應的編碼規則(例如:EAN-8碼),將條形符號換成相應的數位、字元訊息。最後,由電腦系統進行資料處理與管理,物品的詳細訊息便被識別了。 The width of the white strip and the black strip are different, and the corresponding duration of the electrical signal is also different. The decoder then discriminates the number of bars and spaces by measuring the number of pulsed digital signals 0,1. The width of the strip and the space are determined by measuring the duration of the 0, 1 signal. The information obtained at this time is still chaotic. To know the message contained in the barcode, the bar symbol should be replaced with the corresponding digit and character message according to the corresponding coding rule (for example: EAN-8 code). Finally, the data processing and management by the computer system, the detailed information of the item is identified.

二維條碼是指在一維條碼的基礎上擴展出另一維具有可讀性的條碼,使用黑白矩形圖案表示二進制數據,被設備掃描後可獲取其中所包含的信息。 The two-dimensional bar code refers to a bar code that expands another dimension on the basis of one-dimensional bar code, and uses a black and white rectangular pattern to represent binary data, and is scanned by the device to obtain information contained therein.

然而,目前使用在各種領域中的商品條碼可能採用一維條碼,亦有可能使用的是二維條碼。因此,業者即必須同時配置一維條碼及二維條碼的讀取器才能順利讀取條碼資訊。 However, commercially available bar codes in various fields may use one-dimensional bar codes, and it is also possible to use two-dimensional bar codes. Therefore, the operator must configure the reader of the one-dimensional barcode and the two-dimensional barcode at the same time in order to smoothly read the barcode information.

業者為了要解決此一問題,因此設計出同時具備一維條碼與二維條碼讀取功能的整合裝置。雖然此一設計解決了業者分別購置不同讀取器的問題,但在實際運作時,若標的條碼是為一維條碼時,由於傳統一維條碼的掃描引擎效能不佳,故大部份系統資源(例如約65%)都會耗費在一維條碼的解碼作業,僅小部份系統資源(例如約35%)耗費在二維條碼的解碼作業。如此作法,使得整個系統效能無法提昇。 In order to solve this problem, the industry has designed an integrated device that has both a one-dimensional barcode and a two-dimensional barcode reading function. Although this design solves the problem of different readers purchasing different readers, in actual operation, if the standard barcode is a one-dimensional barcode, most of the system resources are due to the poor performance of the traditional one-dimensional barcode scanning engine. (for example, about 65%) will consume the decoding operation of the one-dimensional barcode, and only a small part of the system resources (for example, about 35%) consume the decoding operation of the two-dimensional barcode. In this way, the overall system performance cannot be improved.

再者,在習知技術中,要對一維條碼進行掃描取樣時,需將掃描線由左至右進行掃描,且該掃描線必須與一維條碼相互垂直,才能精準讀取一維條碼的條碼資訊。這對操作人員而言,會造成操作上的限制,且經常會有掃描失敗、缺損的問題。 Furthermore, in the prior art, when scanning and sampling a one-dimensional barcode, the scan line needs to be scanned from left to right, and the scan line must be perpendicular to the one-dimensional barcode to accurately read the one-dimensional barcode. Barcode information. This can cause operational limitations for the operator, and there are often problems with scan failure and defect.

緣此,為了解決上述問題,本發明的一目的即是提供一種影像式高速條碼掃描方法,以使條碼的掃描作業效能提昇,以改善傳統作法中所遇到的系統資源大量耗費在一維條碼解碼的問題。 Therefore, in order to solve the above problems, an object of the present invention is to provide an image-based high-speed bar code scanning method, so as to improve the scanning operation efficiency of the bar code, so as to improve the system resources encountered in the conventional method and consume a large amount of one-dimensional bar code. The problem of decoding.

本發明為達到上述目的所採用之技術手段係將一標的條碼的條碼影像經由影像感測器讀取後,先儲存在一影像存取記憶裝置中,然後對該標的條碼的條碼影像進行多方向取樣及全幅影像解碼。在該多方向取樣中係以複數條X軸向、Y軸向、第一斜向軸向、第二斜向軸向的掃描線逐一對條碼進行掃描,而得到該複數條掃描線的一序列取樣信號,再以一維影像解碼引擎進行解碼,而得到一維條碼資訊。若該標的條碼是二維條碼時,則是以二維影像解碼引擎予以解碼得到二維條碼資訊。 The technical means for achieving the above object is to read a bar code image of a standard bar code through an image sensor, store it in an image access memory device, and then perform multi-directionality on the bar code image of the target bar code. Sampling and full-frame image decoding. In the multi-directional sampling, scanning lines of a plurality of X-axis, Y-axis, first oblique axial direction and second oblique axial direction are scanned one by one bar code to obtain a sequence of the plurality of scanning lines. The sampled signal is decoded by a one-dimensional image decoding engine to obtain one-dimensional bar code information. If the target barcode is a two-dimensional barcode, the two-dimensional image decoding engine decodes the two-dimensional barcode information.

其中該條碼資訊輸出界面係可為USB、串列輸出界面、並列輸出界面之一。 The bar code information output interface can be one of a USB, a serial output interface, and a parallel output interface.

其中,該多方向取樣包括下列步驟:(a)以複數條X軸向掃描線逐一對該一維條碼進行掃描,而得到該複數條X軸向掃描線的一序列X軸向取樣信號;(b)以複數條Y軸向掃描線逐一對該一維條碼進行掃描,而得到該複數條X軸向掃描線的一序列Y軸向取樣信號;(c)以複數條第一斜向掃描線逐一對該一維條碼進行掃描,而得到該複數條第一斜向掃描線的一序列第一斜向取樣信號;(d)以複數條第二斜向掃描線逐一對該一維條碼進行掃描,而得到該複數條第二斜向掃描線的一序列第二斜向取樣信號;(e)將該得到的一序列X軸向取樣信號、一序列Y軸向取樣信號、一序列第一斜向取樣信號、一序列第二斜向取樣信號組成該序列取樣信號。 Wherein, the multi-directional sampling comprises the following steps: (a) scanning a plurality of the one-dimensional barcodes by a plurality of X-axis scan lines to obtain a sequence of X-axis sampling signals of the plurality of X-axis scan lines; b) scanning a plurality of Y-axis scan lines by a plurality of Y-axis scan lines to obtain a sequence of Y-axis sampling signals of the plurality of X-axis scan lines; (c) using a plurality of first oblique scan lines Scanning a pair of the one-dimensional barcodes one by one to obtain a sequence of first oblique sampling signals of the plurality of first oblique scanning lines; (d) scanning the one-dimensional barcodes by a plurality of second oblique scanning lines And obtaining a sequence of second oblique sampling signals of the plurality of second oblique scanning lines; (e) obtaining the obtained sequence of X axial sampling signals, a sequence of Y axial sampling signals, and a sequence of first oblique The sequence of sampled signals is composed of a sampled signal and a sequence of second obliquely sampled signals.

在效果方面,由於一維條碼的解碼是以多方向取樣後再以一維影像解碼引擎予以解碼,具有快速的效能,使得一維影像解碼時間大大減少,可以在不佔用大部份系統資料的狀況下,提昇了整個系統的作業效能。若標的條碼是二維條碼時,則二維影像解碼引擎可 全力對條碼進行解碼作業,亦加快了二維條碼的解碼作業。 In terms of effect, since the decoding of the one-dimensional barcode is multi-directional sampling and then decoded by the one-dimensional image decoding engine, the decoding performance has a fast performance, so that the decoding time of the one-dimensional image is greatly reduced, and the system data can be occupied without occupying most of the system data. In the situation, the performance of the entire system is improved. If the target barcode is a two-dimensional barcode, the 2D image decoding engine can Decoding the barcode completely, and speeding up the decoding of the 2D barcode.

再者,由於本發明在進行一維條碼的取樣時,是以多方向取樣的模式對一維條碼的影像進行取樣,故不論條碼在任一擺置方向,都能被本發明中的多方向取樣模式精確讀取,不會有習知技術中受到掃描線必須與條碼相互垂直的限制,可提昇操作人員的操作效能,有效改善了掃描失敗、缺損的問題。 Furthermore, since the present invention samples the one-dimensional barcode image in the multi-directional sampling mode when sampling the one-dimensional barcode, the multi-directional sampling in the present invention can be performed regardless of the barcode in any of the orientation directions. The accurate reading of the mode does not limit the scanning line to be perpendicular to the bar code in the prior art, which can improve the operation performance of the operator and effectively improve the scanning failure and defect.

本發明所採用的具體實施例,將藉由以下之實施例及附呈圖式作進一步之說明。 The specific embodiments of the present invention will be further described by the following examples and the accompanying drawings.

1‧‧‧標的條碼 1‧‧‧labeled barcode

2‧‧‧光源裝置 2‧‧‧Light source device

21‧‧‧光源 21‧‧‧Light source

3‧‧‧處理單元 3‧‧‧Processing unit

4‧‧‧影像感測器 4‧‧‧Image sensor

41‧‧‧影像處理界面 41‧‧‧Image Processing Interface

5‧‧‧影像存取記憶裝置 5‧‧‧Image access memory device

6‧‧‧一維影像解碼引擎 6‧‧‧One-dimensional image decoding engine

61‧‧‧多方向取樣程式 61‧‧‧Multi-directional sampling program

62‧‧‧一維條碼資訊轉換表 62‧‧‧1D Barcode Information Conversion Form

7‧‧‧二維影像解碼引擎 7‧‧‧Two-dimensional image decoding engine

71‧‧‧二維條碼資訊轉換表 71‧‧‧2D barcode information conversion table

8‧‧‧條碼資訊輸出界面 8‧‧‧Barcode information output interface

9‧‧‧顯示器 9‧‧‧ display

C1‧‧‧一維條碼 C1‧‧‧1D barcode

C2‧‧‧二維條碼 C2‧‧‧2D barcode

X1、X2、X3...Xn‧‧‧X軸向掃描線 X1, X2, X3...Xn‧‧‧X axial scan lines

Y1、Y2、Y3...Yn‧‧‧Y軸向掃描線 Y1, Y2, Y3...Yn‧‧‧Y axial scan line

L1、L2、L3...Ln‧‧‧第一斜向掃描線 L1, L2, L3...Ln‧‧‧ first oblique scan line

K1、K2、K3...Kn‧‧‧第二斜向掃描線 K1, K2, K3...Kn‧‧‧second oblique scanning line

S1’‧‧‧序列取樣信號 S1’‧‧‧ sequence sampling signal

S1‧‧‧一維條碼資訊 S1‧‧‧1D Barcode Information

S2‧‧‧二維條碼資訊 S2‧‧‧2D barcode information

圖1顯示本發明較佳實施例電路功能方塊圖。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram showing the function of a preferred embodiment of the present invention.

圖2顯示本發明流程圖。 Figure 2 shows a flow chart of the invention.

圖3顯示本發明多方向取樣程式在進行多方向取樣時之流程圖 Figure 3 is a flow chart showing the multi-directional sampling program of the present invention for multi-directional sampling.

圖4A~4D顯示本發明多方向取樣程式在對一維條碼進行多方向取樣時之掃描示意圖。 4A-4D are schematic diagrams showing the scanning of the multi-directional sampling program of the present invention when multi-directional sampling of a one-dimensional barcode.

請參閱第1圖所示,其顯示本發明的較佳實施例系統電路功能方塊圖。本發明的影像式高速條碼掃描裝置係設計用以對一標的條碼1進行掃描取得該標的條碼的條碼資訊。標的條碼1可能是一維條碼C1或是二維條碼C2。 Referring to Figure 1, there is shown a functional block diagram of a preferred embodiment of the present invention. The image type high speed barcode scanning device of the present invention is designed to scan a standard barcode 1 to obtain barcode information of the target barcode. The target barcode 1 may be a one-dimensional barcode C1 or a two-dimensional barcode C2.

一光源裝置2係可產生一光源21投射向該標的條碼1,以提供適當光度的光源至該標的條碼1。光源裝置2可由處理單元3控制。 A light source device 2 generates a light source 21 that is projected onto the target barcode 1 to provide a light source of appropriate illuminance to the target barcode 1. The light source device 2 can be controlled by the processing unit 3.

一影像感測器4經由一影像處理界面41連接於處理單元3。影像感測器4對準該標的條碼1以讀取該標的條碼1的條碼影像11,再將該條碼影像11經由影像處理界面41送至該處理單元3。 An image sensor 4 is coupled to the processing unit 3 via an image processing interface 41. The image sensor 4 is aligned with the barcode 1 to read the barcode image 11 of the barcode 1 , and then sent to the processing unit 3 via the image processing interface 41 .

一影像存取記憶裝置5連接於該處理單元3,用以儲存該影像感測器4所擷取的該標的條碼1的條碼影像11。 An image access memory device 5 is connected to the processing unit 3 for storing the barcode image 11 of the target barcode 1 captured by the image sensor 4.

儲存在該影像存取記憶裝置5中的標的條碼1的條碼影像11會以多方向取樣程式61進行多方向取樣,並產生一序列取樣信號S1’。 The bar code image 11 of the target bar code 1 stored in the image access memory device 5 is multi-directionally sampled by the multi-directional sampling program 61, and a sequence of sample signals S1' is generated.

序列取樣信號S1’會再以一維影像解碼引擎61進行解碼,並依據一維條碼資訊轉換表62而得到一維條碼資訊S1。 The sequence sampling signal S1' is further decoded by the one-dimensional image decoding engine 61, and one-dimensional bar code information S1 is obtained according to the one-dimensional bar code information conversion table 62.

在該一維條碼資訊轉換表62中預先儲存有用以將一維條碼依預定編碼規則轉換為一維條碼資訊的轉換表。 A conversion table useful for converting the one-dimensional barcode into one-dimensional barcode information according to a predetermined encoding rule is previously stored in the one-dimensional barcode information conversion table 62.

同時,該儲存在該影像存取記憶裝置5中的標的條碼1的條碼影像11會被送到二維影像解碼引擎7進行解碼。若該標的條碼1是二維條碼C2時,即可成功解碼,並可依據二維條碼資訊轉換表71而得到二維條碼資訊S2。 At the same time, the barcode image 11 of the target barcode 1 stored in the image access memory device 5 is sent to the two-dimensional image decoding engine 7 for decoding. If the target barcode 1 is the two-dimensional barcode C2, the decoding can be successfully performed, and the two-dimensional barcode information S2 can be obtained according to the two-dimensional barcode information conversion table 71.

由於標的條碼1是一維條碼C1或是二維條碼C2,故只有一維影像解碼引擎61可得到一維條碼資訊S1或是二維影像解碼引擎7得到二維條碼資訊S2輸出至條碼資訊輸出界面8,再由顯示器9予以顯示。 Since the standard barcode 1 is a one-dimensional barcode C1 or a two-dimensional barcode C2, only the one-dimensional image decoding engine 61 can obtain one-dimensional barcode information S1 or the two-dimensional image decoding engine 7 obtains two-dimensional barcode information S2 and outputs the barcode information output. The interface 8, which is then displayed by the display 9.

圖2顯示本發明流程圖。茲同時參閱圖1對本發明的流程作一說明。首先係產生一光源2投射向標的條碼1(步驟101),再以一影像感測器4對準標的條碼1以讀取標的條碼1的條碼影像11,並經由一影像處理界面41送至一處理單元3(步驟102)。 Figure 2 shows a flow chart of the invention. The flow of the present invention will now be described with reference to FIG. Firstly, a light source 2 is generated to project the barcode 1 (step 101), and then the image sensor 4 is aligned with the barcode 1 to read the barcode image 11 of the barcode 1 and sent to the image processing interface 41. Processing unit 3 (step 102).

影像感測器4所擷取的標的條碼1的條碼影像11會先被儲存在一影像存取記憶裝置5(步驟103)。 The barcode image 11 of the target barcode 1 captured by the image sensor 4 is first stored in an image access memory device 5 (step 103).

儲存在該影像存取記憶裝置5中的標的條碼1的條碼影像11會以多方向取樣程式61進行多方向取樣(步驟104),並產生一序列取樣信號S1’。 The bar code image 11 of the target bar code 1 stored in the image access memory device 5 is multi-directionally sampled by the multi-directional sampling program 61 (step 104), and a sequence of sample signals S1' is generated.

接著,再以一維影像解碼引擎62對該序列取樣信號S1’進行解碼而得到一維條碼資訊S1(步驟105)。 Next, the sequence sample signal S1' is decoded by the one-dimensional video decoding engine 62 to obtain one-dimensional bar code information S1 (step 105).

由步驟105所得到的一維條碼資訊S1或是由步驟106所得到的二維條碼資訊S2在輸出至條碼資訊輸出界面8之後由顯示器9予以顯示(步驟107)。 The one-dimensional bar code information S1 obtained in step 105 or the two-dimensional bar code information S2 obtained in step 106 is displayed by the display 9 after being output to the bar code information output interface 8 (step 107).

圖3顯示本發明多方向取樣程式61在進行多方向取樣時之流程圖,圖4則顯示該多方向取樣程式61在對一維條碼C1進行多方向取樣時之掃描示意圖,該取樣之動作包括下列步驟: 在步驟201中,係以複數條X軸向掃描線X1、X2、X3...Xn逐一對一維條碼C1進行掃描,而得到該複數條X軸向掃描線X1、X2、X3...Xn的一序列X軸向取樣信號S1’。其進一步的執行程序如下: 參閱圖4A,首先以一X軸向掃描線X1對一維條碼C1進行掃描,且對該X軸向掃描線X1進行取樣而得到該X軸向掃描線X1的複數個取樣信號。在取得X軸向掃描線X1的複數個取樣信號之後,接著對第二條X軸向掃描線X2進行掃描,以得到該X軸向掃描線X2的一序列X軸向取樣信號。 3 is a flow chart showing the multi-directional sampling program 61 of the present invention when multi-directional sampling is performed, and FIG. 4 is a scanning diagram showing the multi-directional sampling program 61 for multi-directional sampling of the one-dimensional barcode C1. The following steps: In step 201, a plurality of X-axis scan lines X1, X2, X3, ... Xn are scanned one by one-dimensional bar code C1 to obtain the plurality of X-axis scan lines X1, X2, X3... A sequence of Xn X-axis samples the signal S1'. Its further implementation procedures are as follows: Referring to FIG. 4A, the one-dimensional bar code C1 is first scanned by an X-axis scan line X1, and the X-axis scan line X1 is sampled to obtain a plurality of sample signals of the X-axis scan line X1. After the plurality of sampling signals of the X-axis scan line X1 are obtained, the second X-axis scan line X2 is then scanned to obtain a sequence of X-axis sampling signals of the X-axis scan line X2.

在完成上述的Y軸向掃描取樣之後,接著進行Y軸向掃描取樣。在步驟202中,參閱圖4B,首先以一Y軸向掃描線Y1對一維條碼C1進行掃描,且對該Y軸向掃描線Y1進行取樣而得到該Y軸向掃描線Y1的複數個取樣信號。在取得Y軸向掃描線Y1的複數個取樣信號之後,接著對第二條Y軸向掃描線Y2進行掃描,以得到該Y軸向掃描線Y2的一序列Y軸向取樣信號。如此即可以得到複數條Y軸向掃描線Y1、Y2、Y3...Yn的一序列Y軸向取樣信號。 After the above Y-axis scan sampling is completed, Y-axis scan sampling is then performed. In step 202, referring to FIG. 4B, the one-dimensional barcode C1 is first scanned with a Y-axis scan line Y1, and the Y-axis scan line Y1 is sampled to obtain a plurality of samples of the Y-axis scan line Y1. signal. After the plurality of sampling signals of the Y-axis scanning line Y1 are obtained, the second Y-axis scanning line Y2 is then scanned to obtain a sequence of Y-axis sampling signals of the Y-axis scanning line Y2. Thus, a sequence of Y-axis sampling signals of a plurality of Y-axis scan lines Y1, Y2, Y3, ..., Yn can be obtained.

在完成上述的掃描取樣之後,接著進行第一斜向掃描取樣。在步驟203中,參閱圖4C,首先以一第一斜向掃描線L1對一維條碼C1進行掃描,且對該第一斜向掃描線L1進行取樣而得到該第一 斜向掃描線L1的複數個取樣信號。在取得第一斜向掃描線L1的複數個取樣信號之後,接著對第二條第一斜向掃描線L2進行掃描,以得到該第一斜向掃描線L2的一序列第一斜向取樣信號。如此即可以得到複數條第一斜向掃描線L1、L2、L3...Ln的一序列第一斜向取樣信號。 After the above-described scan sampling is completed, the first oblique scan sampling is then performed. In step 203, referring to FIG. 4C, the one-dimensional barcode C1 is first scanned by a first oblique scan line L1, and the first oblique scan line L1 is sampled to obtain the first A plurality of sampling signals of the scanning line L1 are obliquely scanned. After the plurality of sampling signals of the first oblique scanning line L1 are obtained, the second first oblique scanning line L2 is scanned to obtain a sequence of the first oblique sampling signals of the first oblique scanning line L2. . Thus, a sequence of first oblique sampling signals of the plurality of first oblique scanning lines L1, L2, L3, ... Ln can be obtained.

在完成上述的掃描取樣之後,接著進行第二斜向掃描取樣。在步驟204中,參閱圖4C,首先以一第二斜向掃描線K1對一維條碼C1進行掃描,且對該第二斜向掃描線K1進行取樣而得到該第二斜向掃描線K1的複數個取樣信號。在取得第二斜向掃描線K1的複數個取樣信號之後,接著對第二條第二斜向掃描線K2進行掃描,以得到該第二斜向掃描線K2的一序列第二斜向取樣信號。如此即可以得到複數條第一斜向掃描線K1、K2、K3...Kn的一序列第二斜向取樣信號。 After the above-described scan sampling is completed, a second oblique scan sampling is then performed. In step 204, referring to FIG. 4C, the one-dimensional barcode C1 is first scanned by a second oblique scan line K1, and the second oblique scan line K1 is sampled to obtain the second oblique scan line K1. A plurality of sampling signals. After the plurality of sampling signals of the second oblique scanning line K1 are obtained, the second second oblique scanning line K2 is scanned to obtain a sequence of the second oblique sampling signals of the second oblique scanning line K2. . Thus, a sequence of second oblique sampling signals of the plurality of first oblique scanning lines K1, K2, K3, ... Kn can be obtained.

最後,在步驟205中,將前述各步驟中所得到的一序列X軸向取樣信號、一序列Y軸向取樣信號、一序列第一斜向取樣信號、一序列第二斜向取樣信號組成該序列取樣信號S1’。 Finally, in step 205, a sequence of X-axis sampling signals, a sequence of Y-axis sampling signals, a sequence of first oblique sampling signals, and a sequence of second oblique sampling signals obtained in the foregoing steps are formed. The sequence samples the signal S1'.

以上實施例僅為例示性說明本發明之設計,而非用於限制本發明。任何熟於此項技藝之人士均可在本發明之結構設計及精神下,對上述實施例進行修改及變化,唯這些改變仍屬本發明之精神及以下所界定之專利範圍中。因此本發明之權利保護範圍應如後述之申請專利範圍所列。 The above embodiments are merely illustrative of the design of the invention and are not intended to limit the invention. Any modifications and variations of the above-described embodiments can be made by those skilled in the art, and such changes are still within the spirit of the invention and the scope of the invention as defined below. Therefore, the scope of protection of the present invention should be as set forth in the appended claims.

Claims (5)

一種影像式高速條碼掃描方法,用以對一標的條碼進行掃描取得該標的條碼的條碼資訊,該方法包括下列步驟:(a)產生一光源投射向該標的條碼,該標的條碼係為一維條碼或是二維條碼;(b)以一影像感測器對準該標的條碼以讀取該標的條碼的條碼影像,並經由一影像處理界面送至一處理單元;(c)將該影像感測器所擷取的該標的條碼的條碼影像儲存在一影像存取記憶裝置;(d)對儲存在該影像存取記憶裝置中的該標的條碼的該條碼影像以一多方向取樣程式進行多方向取樣,若該條碼影像係為該一維條碼時,即得到一序列取樣信號,再對該序列取樣信號以一維影像解碼引擎進行解碼,而得到一維條碼資訊;(e)同時將該條碼影像以二維影像解碼引擎進行全幅影像解碼,若該條碼影像係為該二維條碼時,即解碼出一二維全幅影像條碼資訊;(f)將該一維條碼資訊、該二維全幅影像條碼資訊之一經由一條碼資訊輸出界面輸出至一顯示器。 An image high-speed bar code scanning method for scanning a bar code to obtain bar code information of the bar code, the method comprising the following steps: (a) generating a light source to project a bar code of the target, the bar code is a one-dimensional bar code Or a two-dimensional barcode; (b) aligning the target barcode with an image sensor to read the barcode image of the target barcode, and sending it to a processing unit via an image processing interface; (c) sensing the image The barcode image of the target barcode captured by the device is stored in an image access memory device; (d) the barcode image of the target barcode stored in the image access memory device is multi-directional by a multi-directional sampling program Sampling, if the barcode image is the one-dimensional barcode, a sequence of sampling signals is obtained, and the sequence sampling signal is decoded by a one-dimensional image decoding engine to obtain one-dimensional barcode information; (e) the barcode is simultaneously The image is decoded by the two-dimensional image decoding engine for full-frame image decoding. If the barcode image is the two-dimensional barcode, a two-dimensional full-image barcode information is decoded; (f) the one-dimensional barcode is encoded. One full-size image of the two-dimensional bar code information is output to a display via a bar code information output interface. 如申請專利範圍第1項所述之影像式高速條碼掃描方法,其中該條碼資訊輸出界面係為USB、串列輸出界面、並列輸出界面之一。 The image type high speed barcode scanning method according to claim 1, wherein the barcode information output interface is one of a USB, a serial output interface, and a parallel output interface. 如申請專利範圍第1項所述之影像式高速條碼掃描方法,其中步驟(d)中,該多方向取樣包括下列步驟:(d1)以複數條X軸向掃描線逐一對該一維條碼進行掃描,而得到該複數條X軸向掃描線的一序列X軸向取樣信號;(d2)以複數條Y軸向掃描線逐一對該一維條碼進行掃描,而得到該複數條X軸向掃描線的一序列Y軸向取樣信號; (d3)以複數條第一斜向掃描線逐一對該一維條碼進行掃描,而得到該複數條第一斜向掃描線的一序列第一斜向取樣信號;(d4)以複數條第二斜向掃描線逐一對該一維條碼進行掃描,而得到該複數條第二斜向掃描線的一序列第二斜向取樣信號;(d5)將該得到的一序列X軸向取樣信號、一序列Y軸向取樣信號、一序列第一斜向取樣信號、一序列第二斜向取樣信號組成該序列取樣信號。 The image type high speed barcode scanning method according to claim 1, wherein in the step (d), the multi-directional sampling comprises the following steps: (d1) performing a plurality of X-axis scan lines one by one for the one-dimensional barcode Scanning to obtain a sequence of X-axis sampling signals of the plurality of X-axis scan lines; (d2) scanning a plurality of Y-axis scan lines by a pair of the one-dimensional barcodes to obtain the plurality of X-axis scans a sequence of Y-axis sampling signals of the line; (d3) scanning a pair of the one-dimensional barcodes by a plurality of first oblique scan lines to obtain a sequence of first oblique sampling signals of the plurality of first oblique scan lines; (d4) The oblique scan line scans one pair of the one-dimensional barcodes to obtain a sequence of second oblique sampling signals of the plurality of second oblique scan lines; (d5) the obtained sequence of X-axis sampling signals, The sequence Y axial sampling signal, a sequence of first oblique sampling signals, and a sequence of second oblique sampling signals form the sequence sampling signal. 一種影像式高速條碼掃描方法,用以對一標的條碼進行掃描取得該標的條碼的條碼資訊,該方法包括下列步驟:(a)產生一光源投射向該標的條碼,該標的條碼係為一維條碼;(b)以一影像感測器對準該標的條碼以讀取該標的條碼的條碼影像,並經由一影像處理界面送至一處理單元;(c)將該影像感測器所擷取的該標的條碼的該條碼影像儲存在一影像存取記憶裝置;(d)對儲存在該影像存取記憶裝置中的該標的條碼的該條碼影像,以複數條X軸向掃描線逐一對該一維條碼進行掃描,而得到該複數條X軸向掃描線的一序列X軸向取樣信號;(e)對儲存在該影像存取記憶裝置中的該標的條碼的該條碼影像,以複數條Y軸向掃描線逐一對該一維條碼進行掃描,而得到該複數條X軸向掃描線的一序列Y軸向取樣信號;(f)對儲存在該影像存取記憶裝置中的該標的條碼的該條碼影像,以複數條第一斜向掃描線的一序列第一斜向取樣信號;(g)對儲存在該影像存取記憶裝置中的該標的條碼的該條碼影像,以複數條第一斜向掃描線逐一對該一維條碼進行掃描,而得到該複數條第一斜向掃描線的一序列第一斜向取樣信號;(h)對儲存在該影像存取記憶裝置中的該標的條碼的該條碼影像, 以複數條第二斜向掃描線逐一對該一維條碼進行掃描,而得到該複數條第二斜向掃描線的一序列第二斜向取樣信號;(i)將該得到的該一序列X軸向取樣信號、一序列Y軸向取樣信號、一序列第一斜向取樣信號、一序列第二斜向取樣信號組成一序列取樣信號。(j)對該序列取樣信號以一維影像解碼引擎進行解碼,而得到一維條碼資訊;(k)將該一維條碼資訊經由一條碼資訊輸出界面輸出至一顯示器。 An image high-speed bar code scanning method for scanning a bar code to obtain bar code information of the bar code, the method comprising the following steps: (a) generating a light source to project a bar code of the target, the bar code is a one-dimensional bar code (b) aligning the target barcode with an image sensor to read the barcode image of the target barcode, and sending it to a processing unit via an image processing interface; (c) capturing the image sensor The barcode image of the target barcode is stored in an image access memory device; (d) the barcode image of the target barcode stored in the image access memory device is multiplied by a plurality of X-axis scan lines The barcode is scanned to obtain a sequence of X-axis sampling signals of the plurality of X-axis scan lines; (e) the barcode image of the target barcode stored in the image access memory device is plural Y The axial scan line scans a pair of the one-dimensional barcodes to obtain a sequence of Y-axis sampling signals of the plurality of X-axis scan lines; (f) the barcodes of the target stored in the image access memory device The barcode a sequence of first oblique sampling signals of the plurality of first oblique scanning lines; (g) scanning the barcode image of the target barcode stored in the image access memory device by a plurality of first oblique scanning The line scans a pair of the one-dimensional barcodes to obtain a sequence of first oblique sampling signals of the plurality of first oblique scanning lines; (h) the pair of the barcodes stored in the image access memory device Bar code image, Scanning a plurality of the one-dimensional barcodes by a plurality of second oblique scan lines to obtain a sequence of second oblique sampling signals of the plurality of second oblique scan lines; (i) the obtained sequence X The axial sampling signal, a sequence of Y axial sampling signals, a sequence of first oblique sampling signals, and a sequence of second oblique sampling signals form a sequence of sampling signals. (j) decoding the sequence sample signal by the one-dimensional image decoding engine to obtain one-dimensional barcode information; (k) outputting the one-dimensional barcode information to a display via a code information output interface. 如申請專利範圍第4項所述之影像式高速條碼掃描方法,其中該條碼資訊輸出界面係為USB、串列輸出界面、並列輸出界面之一。 The image type high speed barcode scanning method according to claim 4, wherein the barcode information output interface is one of a USB, a serial output interface, and a parallel output interface.
TW103122002A 2014-06-26 2014-06-26 Image type high-speed barcode scanning method TW201601068A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW103122002A TW201601068A (en) 2014-06-26 2014-06-26 Image type high-speed barcode scanning method
CN201410475445.5A CN104680111A (en) 2014-06-26 2014-09-17 Image type high-speed bar code scanning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103122002A TW201601068A (en) 2014-06-26 2014-06-26 Image type high-speed barcode scanning method

Publications (2)

Publication Number Publication Date
TW201601068A true TW201601068A (en) 2016-01-01
TWI522927B TWI522927B (en) 2016-02-21

Family

ID=53315134

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103122002A TW201601068A (en) 2014-06-26 2014-06-26 Image type high-speed barcode scanning method

Country Status (2)

Country Link
CN (1) CN104680111A (en)
TW (1) TW201601068A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI560620B (en) * 2016-01-20 2016-12-01 Qisda Corp Barcode decoding method
US10853436B2 (en) 2016-02-29 2020-12-01 Advanced New Technologies Co., Ltd. Information display method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550623B (en) * 2016-01-25 2017-12-29 苏州佳世达电通有限公司 The analysis method and barcode device of a kind of barcode image
CN108256375B (en) * 2018-01-10 2021-04-06 钱志明 One-dimensional bar code scanning method
CN113111675B (en) * 2021-04-19 2021-10-12 广州讯宝电子科技有限公司 Method and system for rapidly identifying bar code based on bar code scanner

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4254628B2 (en) * 2004-06-21 2009-04-15 株式会社デンソーウェーブ Optical information reader
CN2736858Y (en) * 2004-09-14 2005-10-26 李超 Bar-code scanner
US8036773B2 (en) * 2006-05-10 2011-10-11 Mckesson Automation Inc. System, method and corresponding apparatus for storing, retrieving and delivering unit dose blisters

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI560620B (en) * 2016-01-20 2016-12-01 Qisda Corp Barcode decoding method
US10853436B2 (en) 2016-02-29 2020-12-01 Advanced New Technologies Co., Ltd. Information display method and device
US11157585B2 (en) 2016-02-29 2021-10-26 Advanced New Technologies Co., Ltd. Information display method and device

Also Published As

Publication number Publication date
TWI522927B (en) 2016-02-21
CN104680111A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
TW201601068A (en) Image type high-speed barcode scanning method
US20130153662A1 (en) Barcode Photo-image Processing System
KR101554518B1 (en) Information obtaining method and apparatus
EP2482224A3 (en) Method and apparatus for reading optical indicia using a plurality of data sources
JP2006079615A (en) Method for confirming position of qr code (r), device and storage medium
WO2006049704A2 (en) Methods and apparatus for dynamic signal processing
GB2446424A (en) Two dimensional bar code with locating symbols
EP2320350B1 (en) Annotation of optical images on a mobile device
CN105787403B (en) A kind of bar code reading method of high pixel image processing and the bar code recognizing apparatus of high pixel image processing
JP2021119465A (en) Enhanced matrix symbol error correction method
Tarjan et al. Automatic identification based on 2D barcodes
JP5673257B2 (en) Code reading apparatus, code reading method and code reading program
US8783570B2 (en) Reader with optical character recognition
US20230342575A1 (en) Methods and systems of harvesting data for training machine learning (ml) model
CN113312937A (en) Bar code identification method and device, storage medium and computer equipment
CN104463071A (en) Bar code reading device
CN204360383U (en) A kind of bar code recognizing apparatus of high pixel image processing
JP2007034546A (en) Optical reader
CN203606835U (en) Two-dimensional barcode decoding recognition device
US11755859B2 (en) Apparatus and method for enabling decoding of remotely sourced and visually presented encoded data markers
Weng et al. Design and implementation of barcode management information system
CN1523531A (en) Two-dimensional bar code name card and universal pick-up head reading management method
Mathumitha et al. Enhanced Detection and Decoding of QR Code and Barcode using Machine Learning
Gupta Faster High Density Monochromic QR-Codes with Reduced Error Rate
CN112560535A (en) Decoding output method for panoramic sequencing

Legal Events

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