Method for zone location and type judgment of two-dimensional bar code

A two-dimensional barcode and area positioning technology, which is applied in the direction of instruments, character and pattern recognition, computer parts, etc., can solve the problem of slow operation speed

Inactive Publication Date: 2008-04-02
李振宇
View PDF0 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The above-mentioned existing algorithms are not only slow in operatio

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for zone location and type judgment of two-dimensional bar code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In this embodiment, the formula for converting a color bitmap into a 256-level grayscale bitmap is:

[0020] Grayscale=0.29×red component+0.61×green component+0.10×blue component

[0021] In this embodiment, the collected image is 320×240 pixels, and the image is divided into 8×6 sub-regions for binarization, and the threshold for binarization of each sub-region is the average value of gray levels of all pixels in the sub-region.

[0022] Figure 1 is the image of the binarized QR Code two-dimensional code. After marking the binary image with four connected regions, different values ​​can be assigned to different connected regions. As shown in Figure 2, the QR Code two-dimensional code The positioning graph of , the pixels of the outer box-shaped part have been marked as k, the inner square part is marked as i, and the connected regions of the rest are also marked with different values.

[0023] All the pixels whose pixel label value is a are taken out from the marked i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A two-dimensional bar code region location and type judgment method has the following steps: a collected color bitmap image is converted into a 256-level grey level image; the grey level image is divided into m x n sub regions, and the threshold value of each sub region is automatically obtained; after an overall check of all the pixels, a pixel value is set as '0' if the grey-level value of the pixel is larger than the threshold value of the sub region where the pixel is located, and on the contrary, the pixel value is set as '1'; a four communicated region labeling method is used for carrying out communicated region labeling of the two-valued image; communicated sub regions having different labeling values are respectively picked up, the shape feature of the communicated regions is compared with that of the existing location map of the two-dimensional bar code, and the type of the two-dimensional bar code to be recognized can be judged and the region location of the two-dimensional bar code can also be completed if the similarity with a certain existing shape feature of the location map of the two-dimensional bar code is sufficient.

Description

technical field [0001] The invention relates to a method for locating a two-dimensional barcode area and judging its type, and belongs to the technical field of barcode reading in computer vision. Background technique [0002] A barcode that can store information in a two-dimensional space in the horizontal and vertical directions is called a two-dimensional code. The two-dimensional code can directly store English, Chinese, numbers, symbols, graphics and other information, which can be directly read by the reading device without database support. At present, there are many encoding methods of two-dimensional barcodes. The method of storing information in a two-dimensional code is: in a rectangular space, it is encoded by different distributions of black and white pixels in the matrix. In the position of the corresponding element of the matrix, the presence of a module represents a binary "1", and the absence of a module represents a binary "0". The arrangement and combina...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06K9/00
Inventor 李振宇
Owner 李振宇
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products