Unlock instant, AI-driven research and patent intelligence for your innovation.

Boundary point positioning method and device for one-dimensional code

A boundary point and two-dimensional code technology, applied in the field of image processing, can solve problems such as the inability to accurately locate the boundary point of one-dimensional codes, the presence of noise, etc.

Active Publication Date: 2017-06-30
ゼジャンハーレイテクノロジーカンパニーリミテッド
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method and device for locating the boundary point of a one-dimensional code, which is used to solve the problem that the boundary point of the one-dimensional code cannot be accurately positioned due to the presence of noise in the image

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
  • Boundary point positioning method and device for one-dimensional code
  • Boundary point positioning method and device for one-dimensional code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 A schematic diagram of a one-dimensional code boundary point positioning process provided by an embodiment of the present invention, the process includes the following steps:

[0049] S101: Determine the gradient value of each pixel point on the scanning line in the one-dimensional code area, and determine the pixel point whose gradient direction changes as a reference point according to the gradient value of each pixel point.

[0050] A method for locating a boundary point of a one-dimensional code provided by an embodiment of the present invention is applied to an electronic device. The electronic device may be a barcode reading device such as a handheld barcode reader or a fixed barcode reader, or may be a terminal device such as a PC, a smart TV, a camera phone, or a tablet computer with a barcode decoding function.

[0051] The electronic device determines the scanning line in the one-dimensional code area along the direction of the long side of the one-d...

Embodiment 2

[0060] In order to accurately determine each peak point and valley point on the scanning line, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, for the adjacent reference point, according to the pixel value of the adjacent reference point and the preset Set the pixel threshold to determine each peak and valley point on the scan line including:

[0061] Assuming that the current first reference point is a candidate peak point, determine whether the pixel value of a second reference point adjacent to the first reference point and located behind the first reference point is greater than the pixel value of the first reference point;

[0062] If yes, updating the second reference point as a candidate peak point;

[0063] If not, determine whether the absolute value of the difference between the pixel values ​​of the second reference point and the first reference point is greater than a preset pixel threshold, if yes, determine the second ...

Embodiment 3

[0070] In order to further make each peak point and valley point on the determined scanning line more accurate, on the basis of the above embodiments, in the embodiment of the present invention, after the first reference point is determined as the peak point, the Methods also include:

[0071] updating the currently saved reference difference according to the absolute value of the difference between the peak point and the pixel value of the valley point before the peak point;

[0072] The determining the second reference point as a candidate valley point includes:

[0073] Determine the absolute value of the difference between the pixel values ​​of the first reference point and the second reference point, determine whether the ratio of the absolute value of the difference to the reference difference is greater than a preset ratio threshold, and if so, convert the first Two reference points are determined as candidate valley points.

[0074]For the one-dimensional code area, ...

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

The invention discloses a boundary point positioning method and device for a one-dimensional code, and the method comprises the steps: determining the gradient value of each pixel on a scanning line in a one-dimensional code region, and enabling the pixels, the gradient directions of which change, to be determined as reference points; determining each peak point and each valley point according to the pixel values of the adjacent reference points and a preset pixel threshold value; and determining the boundary points between the adjacent peak and valley points according to the gradient value and / or pixel value of each pixel between the adjacent peak and valley points. According to the invention, each peak point and each valley point on the scanning line are determined according to the pixel values of the adjacent reference points and the preset pixel threshold value, so the impact from noise can be effectively restrained, and the method can achieve the accurate locating of the boundary points between the peak and valley points according to the gradient value and / or pixel value of each pixel between the adjacent peak and valley points.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a method and device for locating boundary points of a one-dimensional code. Background technique [0002] With the rapid development of science and technology, the appearance of one-dimensional codes facilitates the lives of users. One-dimensional codes are widely used in commerce, postal services, book management, warehousing, industrial production process control, transportation and other fields. For the image including the one-dimensional code, the electronic device locates the one-dimensional code in the image, decodes the one-dimensional code, and obtains item information corresponding to the one-dimensional code. When an electronic device decodes a one-dimensional code, it usually draws at least one scanning line on the positioned one-dimensional code area, then extracts the boundary points on each scanning line, and determines the coding characteristics of the cha...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06K19/06G06T7/13
CPCG06K19/06018
Inventor 谢世斌周璐马诗洁
Owner ゼジャンハーレイテクノロジーカンパニーリミテッド