[go: up one dir, main page]

CN1848136A - Method and system for decoding barcode images - Google Patents

Method and system for decoding barcode images Download PDF

Info

Publication number
CN1848136A
CN1848136A CN 200510064994 CN200510064994A CN1848136A CN 1848136 A CN1848136 A CN 1848136A CN 200510064994 CN200510064994 CN 200510064994 CN 200510064994 A CN200510064994 A CN 200510064994A CN 1848136 A CN1848136 A CN 1848136A
Authority
CN
China
Prior art keywords
data
image
text
region
barcode
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN 200510064994
Other languages
Chinese (zh)
Other versions
CN100353370C (en
Inventor
罗希平
黄建成
肖柏华
镇立新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Motorola Mobility LLC
Google Technology Holdings LLC
Original Assignee
Motorola 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 Motorola Inc filed Critical Motorola Inc
Priority to CNB2005100649944A priority Critical patent/CN100353370C/en
Publication of CN1848136A publication Critical patent/CN1848136A/en
Application granted granted Critical
Publication of CN100353370C publication Critical patent/CN100353370C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

The present invention relates to a method for decoding bar code image and its system. Said invention adopts a redundant decode procedure related to data area and text area of bar code, and said method includes the following steps: receiving previewing image of bar code by image sensor of camera, in which the previewing image includes data area representing coded data and text area representing text character; displaying picture of previewing image in previewing window of camera, in which the picture includes pictures of data area and text area; then shooting data image including at least a portion of data area and text area, analyzing data area of data image and identifying optical character of text area of data image so as to decode said bar code.

Description

对条形码图像解码的方法和系统Method and system for decoding barcode images

技术领域technical field

本发明通常涉及对编码数据进行解码,且尤其涉及对采用数码相机拍摄的包括文本数据的条形码数据图像进行解码的方法和系统。The present invention relates generally to decoding encoded data, and more particularly to methods and systems for decoding images of barcode data, including text data, taken with a digital camera.

背景技术Background technique

条形码扫描器现在普遍应用于超市、零售店以及各种涉及目录和存货清单管理的场所,例如仓库和工厂。通常,条形码粘贴在目录中的物品上,并采用可由光学扫描器读取的标签。诸如那些遵循IBM在20世纪70年代研发的统一产品代码(UPC)的常见的线性或一维条形码可以由“光点(flying spot)”激光扫描器发射的光栅帮助使用者在相对扫描器的条形码的合适位置读取。通常这些扫描器或者固定在超市结账处诸如传送带的目录管理设备上,或者作为手持有线或无线设备。Barcode scanners are now commonly used in supermarkets, retail stores, and a variety of locations that involve catalog and inventory management, such as warehouses and factories. Typically, barcodes are affixed to items in catalogs on labels that can be read by optical scanners. Common linear or one-dimensional barcodes, such as those following the Uniform Product Code (UPC) developed by IBM in the 1970s, can be lighted by a "flying spot" laser The appropriate location to read. Typically these scanners are either affixed to inventory management equipment such as conveyor belts at supermarket checkouts, or as hand-held wired or wireless devices.

二维(2D)条形码也越来越普遍。线性条形码通常限制在10到20个字符之间,因此仅仅作为数据库中记录的简单索引(例如零件号码,客户账号等)。然而,二维条形码可以用少得多的空间完成同样的功能。同样,诸如Aztec码,PDF417,Data Matrix和MaxiCode的二维条形码也可以作为数据库本身,因为它们能编码出几千个机器可读取数据的字符。因此二维条形码可以作为便携式数据库或者便携式数据文件,在整个制造和销售链中与产品绑定。此外,可以在二维条形码中嵌入错误纠正规则,从而保证在代码表面区域受到损坏的时候不丢失任何可读信息。因此条形码的广泛使用以及设计中的改进使得条形码在未来继续得以普及。Two-dimensional (2D) barcodes are also becoming more common. Linear barcodes are usually limited to between 10 and 20 characters and thus serve only as simple references to records in databases (eg part numbers, customer account numbers, etc.). However, 2D barcodes can accomplish the same function with much less space. Likewise, 2D barcodes such as Aztec Code, PDF417, Data Matrix and MaxiCode can also serve as databases themselves, as they encode thousands of characters of machine-readable data. Therefore, the 2D barcode can be used as a portable database or portable data file, which is bound to the product throughout the manufacturing and sales chain. In addition, error correction rules can be embedded in 2D barcodes so that no readable information is lost if the surface area of the code is damaged. Therefore, the widespread use of barcodes and improvements in design will allow barcodes to continue to be popular in the future.

数码相机代表了另外一种广为采用的技术。最近几年数码相机的成本和尺寸迅速减小,而相机质量和画面分辨率不断提高。现在数码相机经常与多种电子设备集成,例如移动电话、个人数字助理和笔记本电脑。Digital cameras represent another widely adopted technology. The cost and size of digital cameras have decreased rapidly in recent years, while camera quality and picture resolution have continued to improve. Digital cameras are now often integrated with a variety of electronic devices, such as mobile phones, personal digital assistants, and notebook computers.

现有技术包括了将数码相机技术与条形码扫描器结合的启示。这样的结合可以对条形码的数字图像,而不是条形码的激光扫描进行分析和解码。因此条形码扫描器不仅可以用于零售商和目录管理员,而且可以由扫描产品条形码搜寻该产品更多信息或者存储产品价格和其它信息备查的消费者来使用。然而,如果条形码不是立即被解码,那么条形码的数字图像存在一定的问题,因为无法确认条形码的数字图像是否具有足够的质量可以被成功解码。手持激光条形码扫描器通常在系统成功获取和解码条形码时发出熟悉的信号声。尤其在对部分剥蚀或损坏的条形码进行扫描的时候,扫描器的使用者通常需要重复操作相对于扫描器的条形码位置,直到扫描器发出信号表示成功读取条形码。另一方面,数码相机的使用者可能拍摄的是不能立即解码的条形码图像。此时,诸如模糊、焦点没有对准或者分辨率或尺寸不够的条形码的低质量图像可能无法读取,而使用者可能不再有机会接近条形码,因而不能获取一张新的、高质量的图像。The prior art includes the revelation of combining digital camera technology with barcode scanners. Such a combination can analyze and decode a digital image of a barcode, rather than a laser scan of the barcode. Barcode scanners can thus be used not only by retailers and catalog managers, but also by consumers who scan product barcodes to find more information about that product or store product prices and other information for future reference. However, if the barcode is not decoded immediately, then the digital image of the barcode presents certain problems, because there is no way to confirm whether the digital image of the barcode is of sufficient quality to be successfully decoded. Handheld laser barcode scanners typically emit a familiar beep when the system successfully acquires and decodes a barcode. Especially when scanning partially denuded or damaged barcodes, the user of the scanner often needs to repeatedly manipulate the position of the barcode relative to the scanner until the scanner signals a successful read of the barcode. On the other hand, a user of a digital camera may capture an image of a barcode that cannot be decoded immediately. At this point, low-quality images such as barcodes that are blurry, out of focus, or of insufficient resolution or size may not be read, and the user may no longer have access to the barcode to acquire a new, high-quality image .

发明内容Contents of the invention

根据一个方面,本发明是一种对条形码图像进行解码的方法。该方法包括在相机的图像传感器接收条形码的预览图像,其中预览图像包括表示编码数据的数据区域和表示文本字符的文本区域。然后在相机的预览窗口显示预览图像的画面,其中画面包括数据区域和文本区域的画面。然后拍摄包括至少一部分数据区域和文本区域的数据图像。通过对数据图像的数据区域进行分析和对数据图像的文本区域进行光学字符识别完成对条形码的解码。According to one aspect, the invention is a method of decoding a barcode image. The method includes receiving, at an image sensor of the camera, a preview image of the barcode, wherein the preview image includes a data region representing encoded data and a text region representing text characters. Then display the picture of the preview image in the preview window of the camera, wherein the picture includes the picture of the data area and the text area. A data image including at least a portion of the data region and the text region is then captured. The barcode is decoded by analyzing the data area of the data image and performing optical character recognition on the text area of the data image.

根据另一方面,本发明是对条形码图像进行解码的相机系统。该系统包括相机机架和连接到相机机架、适合接收条形码预览图像的图像传感器。预览图像包括表示编码数据的数据区域和表示文本字符的文本区域。连接到相机机架的预览窗口适合于显示预览图像的画面,并帮助拍摄包括至少一部分数据区域和文本区域的数据图像。处理器通过对数据图像的数据区域进行分析和对数据图像的文本区域进行光学字符识别完成对条形码的解码。According to another aspect, the invention is a camera system for decoding barcode images. The system includes a camera frame and an image sensor coupled to the camera frame adapted to receive a preview image of a barcode. The preview image includes a data area representing encoded data and a text area representing text characters. A preview window connected to the camera frame is adapted to display a frame of a preview image, and assists in taking a data image including at least a part of the data area and the text area. The processor completes the decoding of the barcode by analyzing the data area of the data image and performing optical character recognition on the text area of the data image.

附图说明Description of drawings

为了更好地理解本发明并产生实际效果,参照附图对典型的实施例进行描述作为参考,当中同样的参考数字表示同样的元素,其中:For a better understanding of the invention and its practical effects, reference is made to exemplary embodiments described with reference to the accompanying drawings, wherein like reference numerals indicate like elements, wherein:

图1是图示依照本发明实施例的相机系统的前工作面的示意图;1 is a schematic diagram illustrating a front face of a camera system according to an embodiment of the present invention;

图2是图示依照本发明实施例的相机系统的后工作面的示意图;2 is a schematic diagram illustrating a rear face of a camera system according to an embodiment of the present invention;

图3是采用现有技术相机拍摄的典型的、部分模糊的条形码数字图像的示意图。Figure 3 is a schematic illustration of a typical, partially blurred digital image of a barcode taken with a prior art camera.

图4是依照本发明实施例在相机系统的预览窗口显示的条形码图像的示意图。FIG. 4 is a schematic diagram of a barcode image displayed in a preview window of a camera system according to an embodiment of the present invention.

图5是基于图4所示的条形码图像可进行拍摄、存储和解码的经过裁减的条形码图像的图示。FIG. 5 is an illustration of a cropped barcode image that may be captured, stored, and decoded based on the barcode image shown in FIG. 4 .

图6是依照本发明实施例图示方法步骤的流程图。FIG. 6 is a flowchart illustrating method steps in accordance with an embodiment of the invention.

具体实施方式Detailed ways

参考图1,是依照本发明实施例图示相机系统100的示意图。与大多数相机类似,系统100包括集成了前工作面110的相机机架105。前工作面110包括适合于接收图像的图像传感器115。图像传感器115可以包括常规的镜头和光学器件以及诸如电荷耦合装置(CCD)传感器、CMOS传感器等的数字图像传感器。Referring to FIG. 1 , it is a schematic diagram illustrating a camera system 100 according to an embodiment of the present invention. Like most cameras, the system 100 includes a camera housing 105 that integrates a front work surface 110 . The front working surface 110 includes an image sensor 115 adapted to receive images. Image sensor 115 may include conventional lenses and optics as well as digital image sensors such as charge-coupled device (CCD) sensors, CMOS sensors, and the like.

参考图2,是相机系统100后工作面120的示意图。后工作面120包括适合显示由图像传感器115接收的图像画面的预览窗口125。与多数数码相机类似,本领域技术人员知道预览窗口125可以作为常规相机的取景器,且实时显示位于图像传感器115前方场景的任意移动图像。典型地,预览窗口125显示的实时图像仅仅短暂存在,且在使用者激活快门按钮(未图示)、定时器或其它图像拍摄触发装置的时候保存在系统100的存储器中。本发明的一种实施例进一步包括模式选择器开关130,用于将相机系统100设置成不同的照相模式。例如,与多数现有技术设备类似,模式选择器开关130可以用于将系统100设置成标准静止图像模式、视频模式、低光模式、高速模式等。依照本发明,模式选择器开关130也可以用于将系统100设置成条形码读取模式。当模式选择器开关130设置成条形码读取模式的时候,在预览窗口125显示条形码数据拍摄指示器135。本领域技术人员知道模式选择器开关130可以是相机机架105上的物理开关或拨动开关,或者是使用例如预览窗口125激活的软开关。机架105的内部还包括与图像传感器115预览窗口125和模式选择器开关130连接的处理器140,以帮助控制那些组件之间用于处理图像数据的交互。Referring to FIG. 2 , it is a schematic diagram of the rear working surface 120 of the camera system 100 . Rear work surface 120 includes a preview window 125 adapted to display image frames received by image sensor 115 . Similar to most digital cameras, those skilled in the art know that the preview window 125 can be used as a viewfinder of a conventional camera and display any moving image of the scene in front of the image sensor 115 in real time. Typically, the live image displayed by preview window 125 exists only briefly and is stored in memory of system 100 when a user activates a shutter button (not shown), a timer, or other triggering device for image capture. One embodiment of the present invention further includes a mode selector switch 130 for setting the camera system 100 into different photographing modes. For example, like most prior art devices, the mode selector switch 130 can be used to set the system 100 into a standard still image mode, a video mode, a low light mode, a high speed mode, and the like. Mode selector switch 130 may also be used to place system 100 in a barcode reading mode in accordance with the present invention. When the mode selector switch 130 is set to the barcode reading mode, a barcode data capture indicator 135 is displayed on the preview window 125 . Those skilled in the art will appreciate that the mode selector switch 130 may be a physical switch or a toggle switch on the camera housing 105, or a soft switch activated using the preview window 125, for example. The interior of the chassis 105 also includes a processor 140 coupled to the image sensor 115 preview window 125 and mode selector switch 130 to help control the interaction between those components for processing image data.

数据拍摄指示器135的不同实施例可以包括不同的尺寸、形状和格式,而且可以是半透明或不透明的。使用中数据拍摄指示器135用于引导系统100的使用者相对诸如条形码的编码数据正确放置图像传感器115。因此,使用中数据拍摄指示器135的位置将相对于预览窗口125固定。根据一种实施例,数据拍摄指示器135设计成模拟常规条形码激光扫描光栅的样式,从而在预览窗口125显示成位于靠近预览窗口124中心的闪烁的红色线条。Different embodiments of the data capture indicator 135 may include different sizes, shapes and formats, and may be translucent or opaque. The in-use data capture indicator 135 is used to guide a user of the system 100 to properly position the image sensor 115 relative to encoded data, such as a barcode. Accordingly, the position of the in-use data capture indicator 135 will be fixed relative to the preview window 125 . According to one embodiment, the data capture indicator 135 is designed to simulate a conventional barcode laser scanning raster pattern, so that it is displayed as a flashing red line near the center of the preview window 124 in the preview window 125 .

如图2所示,在本发明一种实施例的操作中,使用者将数据拍摄指示器135水平放置在线性条形码上,从而数据拍摄指示器135的左右边缘刚好分别延伸到条形码的第一个和最后一个条码。此外,使用者将数据拍摄指示器135垂直放置,从而指示器刚好位于在条形码下端的对应的文本数据上。在这个位置上,系统100设计用于拍摄对准焦点、清晰和具有足够分辨率的条形码及其对应文本数据的图像。该图像可以采用解码算法有效且可靠地加以分析并对条形码解码。同样,通过拍摄对应文本数据的清晰图像,光学字符识别(OCR)技术可以可靠地应用于对应的文本数据。OCR将对应的文本数据进行解析,然后与解码后的条形码数据对比,确认解码过程的正确性。As shown in Figure 2, in the operation of an embodiment of the present invention, the user places the data shooting indicator 135 horizontally on the linear barcode, so that the left and right edges of the data shooting indicator 135 just extend to the first barcode respectively. and the last barcode. In addition, the user vertically places the data capture indicator 135 so that the indicator is just positioned on the corresponding text data at the lower end of the barcode. In this position, the system 100 is designed to capture an image of the barcode and its corresponding text data that is in focus, clear, and of sufficient resolution. This image can be efficiently and reliably analyzed and the barcode decoded using decoding algorithms. Also, by taking a clear image of the corresponding text data, optical character recognition (OCR) technology can be reliably applied to the corresponding text data. OCR parses the corresponding text data, and then compares it with the decoded barcode data to confirm the correctness of the decoding process.

因为数据拍摄指示 135可以模拟常规的条形码激光扫描器的光栅,系统100的实施例的条形码读取模式的使用者通常能够非常容易并且靠直觉使用数据拍摄指示器135。那是因为多数人对零售店中购物时的激光扫描器比较熟悉。Because the data capture indicator 135 can mimic the raster of a conventional barcode laser scanner, users of the barcode reading mode of embodiments of the system 100 can generally use the data capture indicator 135 very easily and intuitively. That's because most people are familiar with laser scanners when shopping in retail stores.

参考图3,是采用现有技术相机拍摄的包括数据区域305和文本区域310的典型的、部分模糊的条形码数字图像的图示。尽管图3所示的图像部分模糊,且条形码的数据区域305的部分条码无法解码,但是条形码的文本区域310的字符仍然可读。主要由于包含字符数据的条形码中条码和字符存在相对的尺寸和距离,所以数据区域305无法解码而条形码的文本区域310可读的情况比较常见。文本字符通常并不像条形码数据一样易于模糊。此外,对应条形码的文本字符通常间隔较远,从而OCR程序比较容易分段和识别。众所周知,OCR程序中的多数错误是由对各字符分段的错误而产生的。本发明采用上述事实提供对条形码图像进行解码的改进的方法和系统。Referring to FIG. 3 , there is an illustration of a typical, partially blurred digital image of a barcode including a data field 305 and a text field 310 taken with a prior art camera. Although the image shown in FIG. 3 is partially blurred and part of the barcode in the data area 305 of the barcode cannot be decoded, the characters in the text area 310 of the barcode are still readable. Mainly due to the relative size and distance between the barcode and the characters in the barcode containing character data, it is common that the data area 305 cannot be decoded while the text area 310 of the barcode is readable. Text characters are generally not as easily blurred as barcode data. In addition, the text characters corresponding to barcodes are usually spaced far apart, making it easier for an OCR program to segment and recognize them. As we all know, most errors in OCR programs are caused by errors in segmenting characters. The present invention takes advantage of the above facts to provide an improved method and system for decoding barcode images.

参考图4,是依照本发明实施例的相机100的预览窗口125显示条形码图像的图示。图4中激活了本发明的条形码读取模式,从而预览窗口125包括数据拍摄指示器135,该指示器适当地显示在穿过条形码数据区域305的所有条码的位置,并在条形码的文本区域310上叠加。这个适当的位置有助于拍摄可准确解码的图像,其中诸如线性条形码的所有线条的条形码所有可解码的元素,在拍摄的时候具有足够的清晰度且OCR程序能可靠地识别对应的文本数据。Referring to FIG. 4 , it is an illustration of displaying a barcode image in the preview window 125 of the camera 100 according to an embodiment of the present invention. The barcode reading mode of the present invention is activated in FIG. 4, so that the preview window 125 includes a data capture indicator 135, which is appropriately displayed at the position of all barcodes passing through the barcode data area 305, and in the text area 310 of the barcode. overlay. This proper location helps to capture an accurately decodable image, where all decodable elements of the barcode, such as all lines of a linear barcode, are captured with sufficient clarity and the corresponding text data can be reliably recognized by the OCR program.

参考图5,是基于图4所示条形码图像的可被拍摄、存储和解码的裁减后的条形码图像的图示。这个剪裁区域的图像对于本系统100相比那些现有技术的与数字图像相关的条形码读取器来说,具有许多优势。首先,如图5所示的图像非常小且紧凑,从而比图4所示的条形码的全尺寸图像需要更少的存储空间;第二,图5所示的图像仅仅拍摄需要解码的条形码的相关数据部分。这意味着解码算法可以直接对图像进行处理,而不需要任何预定位、配准、定位或剪切步骤。因此解码算法可以简化,这在存储和计算资源有限的手持设备中非常有利。根据本发明的不同的实施例,拍摄图像区域的尺寸可由特定的图像分析和解码算法进行用于有效解码的优化。如图5所示的拍摄图像区域的尺寸因此可由使用者调整或由制造商预设。Referring to FIG. 5 , there is an illustration of a cropped barcode image that can be captured, stored, and decoded based on the barcode image shown in FIG. 4 . The image of this cropped area has a number of advantages for the present system 100 over those of prior art bar code readers associated with digital images. First, the image shown in Figure 5 is very small and compact, thus requiring less storage space than the full-size image of the barcode shown in Figure 4; second, the image shown in Figure 5 only captures the relevant data part. This means that the decoding algorithm can work directly on the image without any pre-positioning, registration, positioning or cropping steps. Therefore, the decoding algorithm can be simplified, which is very beneficial in handheld devices with limited storage and computing resources. According to various embodiments of the invention, the size of the captured image area may be optimized for efficient decoding by specific image analysis and decoding algorithms. The size of the captured image area as shown in FIG. 5 can therefore be adjusted by the user or preset by the manufacturer.

本领域技术人员知道数码相机小型化的技术使得相机机架105、图像传感器115和预览窗口125可以具有几乎任意尺寸,因此本发明的实施例可以集成在诸如移动电话、个人数字助理和笔记本电脑的多种电子设备中。此外,数据拍摄指示器135可以设计用于针对各种类型的编码数据,而不仅仅是线性条形码数据。例如圆形或椭圆形数据拍摄指示器135可以适用于帮助读取诸如Aztec Code,PDF417,DataMatrix和MaxiCode等有时也包括对应文本字符的多种二维码。Those skilled in the art know that digital camera miniaturization techniques allow the camera frame 105, image sensor 115, and preview window 125 to be of almost any size, so that embodiments of the present invention can be integrated into devices such as mobile phones, personal digital assistants, and notebook computers. in various electronic devices. Furthermore, the data capture indicator 135 can be designed for various types of encoded data, not just linear barcode data. For example a circular or oval shaped data capture indicator 135 may be adapted to aid in reading various QR codes such as Aztec Code, PDF417, DataMatrix and MaxiCode which sometimes also include corresponding text characters.

参考图6,是依照本发明实施例图示方法600步骤的流程图。首先,在步骤605,在相机系统100的图像传感器115接收预览图像。预览图像包括表示诸如条形码的编码数据的数据区域305和表示文本字符的文本区域310。如上所述,预览图像通常是用于将相机系统100对准编码数据的暂时的图像。接着,在步骤610,与相机系统100关联的预览窗口125显示预览图像的画面。预览窗口125可以包括在预览图像画面上叠加数据拍摄指示器135的显示。在步骤615,拍摄包括预览图像中至少一部分数据区域305和文本区域310的数据图像。Referring to FIG. 6 , it is a flowchart illustrating steps of a method 600 according to an embodiment of the present invention. First, at step 605 , a preview image is received at the image sensor 115 of the camera system 100 . The preview image includes a data area 305 representing encoded data such as a barcode and a text area 310 representing text characters. As mentioned above, the preview image is generally a temporary image used to align the camera system 100 to the encoded data. Next, at step 610, the preview window 125 associated with the camera system 100 displays a frame of the preview image. The preview window 125 may include a display of a data capture indicator 135 superimposed on the preview image screen. In step 615, a data image including at least a part of the data area 305 and the text area 310 in the preview image is captured.

接下来,在方法600的步骤620,对数据区域305进行分析并对数据区域305的噪声等级进行估算。对噪声等级的估算是评估所拍摄数据图像的质量,且可以采用本领域技术人员熟知的各种技术完成。例如严重模糊的数据图像通常具有很高的噪声等级,而锐利清晰的数据图像具有较低的噪声等级。在步骤625,用与相机系统100关联的解码算法判定数据区域305是否可以解码。如果数据区域305判定为不能解码,那么方法600在步骤630对数据图像的文本区域310执行OCR程序。最后,在步骤630提供OCR处理的结果作为最终解码结果。Next, at step 620 of method 600 , the data region 305 is analyzed and the noise level of the data region 305 is estimated. Estimation of the noise level is an assessment of the quality of the captured data image and can be accomplished using various techniques well known to those skilled in the art. For example, a severely blurred data image usually has a high noise level, while a sharp and clear data image has a low noise level. At step 625, a decoding algorithm associated with the camera system 100 is used to determine whether the data region 305 is decodable. If the data region 305 is determined not to be decodable, then the method 600 performs an OCR process on the text region 310 of the data image at step 630 . Finally, the result of the OCR process is provided at step 630 as the final decoding result.

本发明可以使用各种类型的适合于缩减尺寸电子设备的OCR程序和系统。本领域技术人员众所周知,这些OCR系统可以包括矩阵匹配、特征提取和其它类型的OCR技术。The present invention can use various types of OCR programs and systems suitable for downsizing electronic devices. As is well known to those skilled in the art, these OCR systems may include matrix matching, feature extraction, and other types of OCR techniques.

再次回到方法600的步骤625,如果数据区域305判定为可以解码,那么方法600在步骤640采用本领域技术人员熟知的任意条形码解码算法对数据区域305进行解码。在步骤645判定数据区域305是否正确解码。许多线性和二维条形码含有错误检测机制,可以确认正确的解码结果。因此,如果数据区域305判定为正确解码,那么方法600直接进行到步骤635,将解码后的数据区域305作为最后的解码结果。Going back to step 625 of method 600 , if the data area 305 is determined to be decodable, then method 600 uses any barcode decoding algorithm known to those skilled in the art to decode the data area 305 at step 640 . In step 645 it is determined whether the data area 305 was correctly decoded. Many linear and 2D barcodes include error detection mechanisms to confirm correct decoding results. Therefore, if the data region 305 is determined to be correctly decoded, the method 600 directly proceeds to step 635, and the decoded data region 305 is used as the final decoding result.

作为选择,如果在步骤645判定数据区域305没有正确解码,那么在方法600的步骤650对文本区域310执行OCR处理。在步骤655,将解码数据区域305的结果和文本区域310的OCR处理的结果进行比较。接下来,在步骤660,对于数据图像文本区域310的每个字符确定OCR置信分数。在步骤665,基于步骤655的比较结果和步骤660的置信分数,用步骤640获得的对应的解码字符替换步骤630识别的特定字符。通常在所替换字符的OCR置信分数低于使用者设定的或相机系统100的制造商预设的阈值的时候执行上述替换。然后方法600在步骤635提供最终解码结果。Alternatively, if it is determined at step 645 that the data region 305 was not decoded correctly, then at step 650 of the method 600 an OCR process is performed on the text region 310 . At step 655 , the results of the decoded data region 305 are compared with the results of the OCR processing of the text region 310 . Next, at step 660 , an OCR confidence score is determined for each character of the data image text area 310 . At step 665 , based on the comparison result of step 655 and the confidence score of step 660 , the particular character identified at step 630 is replaced with the corresponding decoded character obtained at step 640 . Such replacement is typically performed when the OCR confidence score of the replaced character is below a threshold set by the user or preset by the manufacturer of the camera system 100 . Method 600 then provides the final decoding result at step 635 .

总之,本发明是对条形码图像进行解码的改进的方法和系统。本发明的实施例是用户友好且富于直觉的,因为它们有效地模拟了手持激光扫描器的动作,尽管是在相机系统100的预览窗口125的完全不同的环境下。因此本发明通过相机系统100相对编码数据的正确放置,帮助使用者准确且可靠地拍摄编码数据的可解码图像。此外,所拍摄的编码数据的图像可以相比于使用现有技术拍摄的图像更加简洁且更容易由图像分析软件进行处理。本发明还通过对条形码数据区域305和文本区域310的冗余解码提高条形码解码的准确性。采用标准OCR处理的文本区域的解码相比于标准条形码解码过程有时能获得更高的解码准确性,尤其是在对条形码的模糊图像解码的时候。最后,通过对比解码数据区域305和识别文本区域310的结果来优化解码过程。In summary, the present invention is an improved method and system for decoding barcode images. Embodiments of the present invention are user-friendly and intuitive in that they effectively simulate the motion of a hand-held laser scanner, albeit in the entirely different context of the preview window 125 of the camera system 100 . Therefore, the present invention helps the user to accurately and reliably capture decodable images of the encoded data through the correct placement of the camera system 100 relative to the encoded data. Furthermore, captured images of encoded data can be more compact and easier to process by image analysis software than images captured using prior art techniques. The present invention also improves barcode decoding accuracy through redundant decoding of the barcode data area 305 and text area 310 . Decoding text regions processed with standard OCR can sometimes achieve higher decoding accuracy than standard barcode decoding processes, especially when decoding blurred images of barcodes. Finally, the decoding process is optimized by comparing the results of the decoded data region 305 and the recognized text region 310 .

上面的详细描述仅仅提供了典型的实施例,而且并不是为了限制本发明的范围、适用性或结构。相反,典型的实施例的详细描述为本领域技术人员提供了实现本发明典型实施例的可行描述。需要意识到的是,在不违背权利要求书说明的本发明的精神和范围的前提下,可以对元素和步骤的功能和排列上进行多种修改。The above detailed description provides typical embodiments only, and is not intended to limit the scope, applicability or structure of the invention. Rather, the detailed description of the exemplary embodiments provides those skilled in the art with an enabling description for implementing exemplary embodiments of the invention. It should be realized that various changes can be made in the function and arrangement of elements and steps without departing from the spirit and scope of the invention as described in the claims.

Claims (12)

1.一种对条形码图像进行解码的方法,包括步骤:1. A method for decoding a barcode image, comprising steps: 在相机的图像传感器接收条形码的预览图像,预览图像包括表示编码数据的数据区域和表示文本字符的文本区域;receiving a preview image of the barcode at the camera's image sensor, the preview image including a data area representing encoded data and a text area representing text characters; 在相机的预览窗口显示预览图像的画面,包括数据区域和文本区域的画面;Display the picture of the preview image in the preview window of the camera, including the picture of the data area and the text area; 拍摄包括至少一部分数据区域和文本区域的数据图像;和taking an image of the data including at least a portion of the data region and the text region; and 通过对数据图像的数据区域进行分析和对数据图像的文本区域进行光学字符识别来进行对条形码的解码。The barcode is decoded by analyzing the data area of the data image and performing optical character recognition on the text area of the data image. 2.如权利要求1所述的方法,其中,对数据图像的数据区域的分析包含对数据图像的数据区域估算噪声等级。2. The method of claim 1, wherein analyzing the data region of the data image includes estimating a noise level for the data region of the data image. 3.如权利要求2所述的方法,进一步包含步骤:3. The method of claim 2, further comprising the steps of: 噪声等级估算值判定数据图像的数据区域是可以解码的,对数据图像的数据区域进行解码以确定解码字符;The noise level estimation value determines that the data area of the data image is decodable, and the data area of the data image is decoded to determine the decoded character; 对比解码后的数据区域结果和数据图像文本区域的光学字符识别结果;和comparing the decoded data region results with the OCR results for the text regions of the data image; and 提供最终解码结果。Provides the final decoding result. 4.如权利要求1所述的方法,其中,显示预览图像画面的步骤包含在预览窗口的预览图像的画面上叠加数据拍摄指示器。4. The method of claim 1, wherein displaying the preview image frame comprises superimposing a data capturing indicator on the preview image frame of the preview window. 5.如权利要求1所述的方法,其中,相机集成在以下的一种设备中:手持数码相机,个人数字助理,笔记本电脑或移动电话。5. The method of claim 1, wherein the camera is integrated in one of the following devices: a handheld digital camera, a personal digital assistant, a laptop computer, or a mobile phone. 6.如权利要求3所述的方法,在对比解码后数据区域结果和光学字符识别结果后,进一步包括步骤:6. The method according to claim 3, after comparing the decoded data area result and the optical character recognition result, further comprising the steps of: 对数据图像的文本区域的每个字符确定光学字符识别置信分数;和determining an optical character recognition confidence score for each character of the text region of the data image; and 当文本区域的光学字符识别确定的字符的光学字符识别置信分数低于阈值时,用解码后的数据区域确定的解码字符替换文本区域的光学字符识别确定的字符。When the OCR confidence score of the OCR-determined character in the text region is lower than the threshold, the OCR-determined character in the text region is replaced with the decoded character determined in the decoded data region. 7.一种用于对条形码图像解码的相机系统,该系统包括:7. A camera system for decoding barcode images, the system comprising: 相机机架;camera rack; 连接到相机机架、适合接收条形码预览图像的图像传感器,该预览图像包括表示编码数据的数据区域和表示文本字符的文本区域;an image sensor coupled to the camera housing and adapted to receive a preview image of the barcode, the preview image including a data area representing encoded data and a text area representing text characters; 连接到相机机架的预览窗口,适合显示预览图像画面,并帮助拍摄包含至少一部分数据区域和文本区域的数据图像;和a preview window attached to the camera gantry, adapted to display a preview image frame and to facilitate capturing an image of the data comprising at least a portion of the data region and the text region; and 处理器,用于通过对数据图像的数据区域分析和对数据图像的文本区域进行光学字符识别来对条形码进行解码。A processor for decoding the barcode by analyzing the data region of the data image and performing optical character recognition on the text region of the data image. 8.如权利要求7所述的系统,其中,处理器用于估算数据图像的数据区域的噪声等级。8. The system of claim 7, wherein the processor is operable to estimate a noise level of a data region of the data image. 9.如权利要求8所述的系统,其中,当噪声等级估计值确定数据图像的数据区域可以解码时,处理器进一步用于解码数据图像的数据区域,以确定解码字符,并将解码的数据区域结果与数据图像的文本区域的光学字符识别结果对比,从而提供最终解码结果。9. The system of claim 8, wherein when the noise level estimate determines that the data region of the data image is decodable, the processor is further configured to decode the data region of the data image to determine a decoded character, and convert the decoded data The region results are compared with the OCR results for the text regions of the data image to provide the final decoding result. 10.如权利要求7所述的系统,其中,预览窗口包含叠加在至少一部分数据区域画面上的数据拍摄指示器,该数据拍摄指示器用于帮助拍摄包含至少一部分数据区域和文本区域的数据图像。10. The system of claim 7, wherein the preview window includes a data capture indicator superimposed on at least a portion of the data area frame, the data capture indicator being used to assist in capturing a data image including at least a portion of the data area and the text area. 11.如权利要求7所述的系统,其中,系统集成在以下的一种设备中:手持数码相机、个人数字助理,笔记本电脑或移动电话。11. The system of claim 7, wherein the system is integrated in one of the following devices: a handheld digital camera, a personal digital assistant, a laptop computer or a mobile phone. 12.如权利要求9所述的系统,其中,处理器进一步用于确定数据图像的文本区域中每个字符的光学识别置信分数,并在文本区域的光学字符识别确定的字符的光学识别置信分数低于阈值时,用解码数据区域确定的解码字符替换文本区域的光学字符识别确定的字符。12. The system of claim 9, wherein the processor is further configured to determine an OCR confidence score for each character in the text region of the data image, and to determine the OCR confidence score for the character in the text region Below the threshold, the characters determined by the optical character recognition of the text region are replaced with the decoded characters determined by the decoded data region.
CNB2005100649944A 2005-04-13 2005-04-13 Method and system for decoding bar code image Expired - Fee Related CN100353370C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100649944A CN100353370C (en) 2005-04-13 2005-04-13 Method and system for decoding bar code image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100649944A CN100353370C (en) 2005-04-13 2005-04-13 Method and system for decoding bar code image

Publications (2)

Publication Number Publication Date
CN1848136A true CN1848136A (en) 2006-10-18
CN100353370C CN100353370C (en) 2007-12-05

Family

ID=37077694

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100649944A Expired - Fee Related CN100353370C (en) 2005-04-13 2005-04-13 Method and system for decoding bar code image

Country Status (1)

Country Link
CN (1) CN100353370C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100483080C (en) * 2007-04-24 2009-04-29 中国科学院合肥物质科学研究院 Image Direct Reading Method of Character Barcode Metering Indicator Wheel
WO2011079432A1 (en) * 2009-12-29 2011-07-07 Nokia Corporation Method and apparatus for generating a text image
CN102799850A (en) * 2012-06-30 2012-11-28 北京百度网讯科技有限公司 Bar code recognition method and device
CN103123683A (en) * 2011-09-08 2013-05-29 三星电子株式会社 Apparatus for recognizing character and barcode simultaneously and method for controlling the same
CN106022183A (en) * 2015-08-11 2016-10-12 上海畅星软件有限公司 Elevator maintenance recognition method
CN106446732A (en) * 2015-08-13 2017-02-22 株式会社理光 Barcode identification method, device and equipment
CN109829349A (en) * 2018-12-20 2019-05-31 天翼电子商务有限公司 Promote two dimensional code safety in utilization method, system, storage medium and device
CN111144161A (en) * 2020-04-03 2020-05-12 支付宝(杭州)信息技术有限公司 Bar code identification method and device, commodity information determination method and payment method
CN111368574A (en) * 2020-03-06 2020-07-03 联想(北京)有限公司 Bar code identification method and device
CN111753568A (en) * 2019-07-31 2020-10-09 北京市商汤科技开发有限公司 Document information processing method and device, electronic device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100257128B1 (en) * 1991-11-11 2000-05-15 시모야마 도시로 Symbol information reading device
US6366696B1 (en) * 1996-12-20 2002-04-02 Ncr Corporation Visual bar code recognition method
GB0100736D0 (en) * 2001-01-11 2001-02-21 Pace Micro Tech Plc Data reader
JP4113387B2 (en) * 2002-07-24 2008-07-09 シャープ株式会社 Portable terminal device, information reading program, and recording medium recording the program
KR20040045078A (en) * 2002-11-22 2004-06-01 (주)뷰시스템 Barcode Image Recognition Method
JP2004350041A (en) * 2003-05-22 2004-12-09 Fuji Photo Film Co Ltd Mobile phone with camera

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100483080C (en) * 2007-04-24 2009-04-29 中国科学院合肥物质科学研究院 Image Direct Reading Method of Character Barcode Metering Indicator Wheel
WO2011079432A1 (en) * 2009-12-29 2011-07-07 Nokia Corporation Method and apparatus for generating a text image
US9805225B2 (en) 2011-09-08 2017-10-31 Samsung Electronics Co., Ltd Apparatus for recognizing character and barcode simultaneously and method for controlling the same
KR101860569B1 (en) 2011-09-08 2018-07-03 삼성전자주식회사 Recognition device for text and barcode reconizing text and barcode simultaneously
CN103123683A (en) * 2011-09-08 2013-05-29 三星电子株式会社 Apparatus for recognizing character and barcode simultaneously and method for controlling the same
CN102799850B (en) * 2012-06-30 2016-03-30 北京百度网讯科技有限公司 A kind of barcode recognition method and device
CN102799850A (en) * 2012-06-30 2012-11-28 北京百度网讯科技有限公司 Bar code recognition method and device
CN106022183A (en) * 2015-08-11 2016-10-12 上海畅星软件有限公司 Elevator maintenance recognition method
CN106022183B (en) * 2015-08-11 2019-01-04 上海畅星软件有限公司 The recognition methods of maintenance elevator
CN106446732A (en) * 2015-08-13 2017-02-22 株式会社理光 Barcode identification method, device and equipment
CN106446732B (en) * 2015-08-13 2019-05-07 株式会社理光 A kind of recognition methods of bar code, device and equipment
CN109829349A (en) * 2018-12-20 2019-05-31 天翼电子商务有限公司 Promote two dimensional code safety in utilization method, system, storage medium and device
CN111753568A (en) * 2019-07-31 2020-10-09 北京市商汤科技开发有限公司 Document information processing method and device, electronic device and storage medium
CN111753568B (en) * 2019-07-31 2022-09-23 北京市商汤科技开发有限公司 Document information processing method and device, electronic device and storage medium
CN111368574A (en) * 2020-03-06 2020-07-03 联想(北京)有限公司 Bar code identification method and device
CN111144161A (en) * 2020-04-03 2020-05-12 支付宝(杭州)信息技术有限公司 Bar code identification method and device, commodity information determination method and payment method

Also Published As

Publication number Publication date
CN100353370C (en) 2007-12-05

Similar Documents

Publication Publication Date Title
JP4586026B2 (en) Hand-supportable imaging-based barcode symbol reader that supports narrow and wide modes of illumination and image capture
CN107423652B (en) System and method for document processing
US8150163B2 (en) System and method for recovering image detail from multiple image frames in real-time
EP2422294B1 (en) A multiple barcode detection system and method
US7086595B2 (en) Method of and apparatus for processing captured digital images of objects within a semi-automatic hand-supportable imaging-based bar code symbol reader so as to read 1d and/or 2d bar code symbols graphically represented therein
US8774453B2 (en) Method and arrangement for retrieving information comprised in a barcode
Falas et al. Two-dimensional bar-code decoding with camera-equipped mobile phones
US8167209B2 (en) Increasing imaging quality of a bar code reader
US20050082370A1 (en) System and method for decoding barcodes using digital imaging techniques
EP2507741B1 (en) Imaging-based scanner including border searching for image acquisition
US20050263599A1 (en) Digital imaging-based bar code symbol reading system employing a multi-mode image-processing symbol reading subsystem that switches its modes of reading during a single bar code symbol reading cycle, and within each said mode of reading, automatically applies a different image-processing based bar code symbol reading methodology
US8313032B2 (en) Method and apparatus for time and date stamping of image files
CN1848136A (en) Method and system for decoding barcode images
US7578444B2 (en) Methods and apparatus for dynamic signal processing
US20070069028A1 (en) System to improve reading performance and accuracy of single or two dimensional data codes in a large field of view
CN100586153C (en) Method and system for imaging coded data
US12250449B2 (en) Systems and methods for rapid camera illumination tuning
CN107609448B (en) Bar code decoding method and bar code decoding device
JPH06231297A (en) Bar code symbol reader
Liu Computer vision and image processing techniques for mobile applications
Liu et al. LAMP-TR-151 November 2008 COMPUTER VISION AND IMAGE PROCESSING LARGE TECHNIQUES FOR MOBILE APPLICATIONS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: MOTOROLA MOBILE CO., LTD

Free format text: FORMER OWNER: MOTOROLA INC.

Effective date: 20110117

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20110117

Address after: Illinois State

Patentee after: MOTOROLA MOBILITY, Inc.

Address before: Illinois, USA

Patentee before: Motorola, Inc.

C41 Transfer of patent application or patent right or utility model
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Illinois State

Patentee after: MOTOROLA MOBILITY LLC

Address before: Illinois State

Patentee before: MOTOROLA MOBILITY, Inc.

TR01 Transfer of patent right

Effective date of registration: 20160308

Address after: California, USA

Patentee after: Google Technology Holdings LLC

Address before: Illinois State

Patentee before: MOTOROLA MOBILITY LLC

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071205