Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for positioning bar code in image and code scanning equipment

A positioning method and barcode technology, applied in the field of image processing

Active Publication Date: 2020-09-08
天津维创微智能科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a barcode positioning method, device, equipment and storage medium in an image, which solves the problem that the short barcode cannot be effectively positioned in the existing barcode positioning implementation

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 and device for positioning bar code in image and code scanning equipment
  • Method and device for positioning bar code in image and code scanning equipment
  • Method and device for positioning bar code in image and code scanning equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a schematic flowchart of a method for locating barcodes in images provided by Embodiment 1 of the present invention. This method is suitable for locating short barcodes in captured images so as to decode short barcodes. The method consists of barcodes in images The positioning device of the barcode in the image can be implemented by means of software and / or hardware, and can be integrated into an electronic device with a specific scanning function. code device. Such as figure 1 As shown, the method specifically includes the following steps:

[0031] S101. Acquire initial rectangles positioned from the captured images to be positioned, and acquire line segment information of the line segments included in each of the initial rectangles.

[0032] In this embodiment, the image to be positioned can be specifically understood as an image containing a barcode to be recognized, and the image to be positioned can be captured by the built-in information captur...

Embodiment 2

[0045] figure 2 It is a schematic flowchart of a barcode positioning method in an image provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, according to the line segments contained in each initial rectangle Combining the line segment information with the given short barcode bar length range, determining at least one intermediate rectangle is further embodied as: for each initial rectangle, according to the line segment information of the line segments contained in the initial rectangle, determine whether there are more than The lengths of the set number of line segments are all within the length range of the short barcode; if so, record the initial rectangle as the middle rectangle; otherwise, delete the initial rectangle and the included line segments.

[0046] At the same time, this embodiment further embodies the determination of the effective rectangular area containing the sh...

Embodiment 3

[0109] Figure 5 It is a structural block diagram of a barcode positioning device in an image provided by Embodiment 3 of the present invention. The device can be implemented in the form of software and / or hardware, and the device can be configured in equipment, such as a code scanning gun, a code scanning platform, etc. Scanning equipment. Such as Figure 5 As shown, the device may include: an information acquisition module 31 , a rectangular screening module 32 and an area determination module 33 .

[0110] Wherein, the information obtaining module 31 is used to obtain the initial rectangles positioned from the captured image to be positioned, and obtain the line segment information of the line segments included in each of the initial rectangles;

[0111] The rectangle screening module 32 is used to determine at least one intermediate rectangle according to the line segment information of the line segments contained in each of the initial rectangles in combination with the...

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 method and device for positioning a bar code in an image and code scanning equipment. The method comprises the steps: obtaining initial rectangles positioned in a captured to-be-positioned image, and obtaining the line segment information of line segments included in each initial rectangle; determining at least one middle rectangle according to the line segment information of the line segments contained in the initial rectangles in combination with a given short bar code length range; and determining an effective rectangular area containing the short bar code as a barcode area based on the processing of each middle rectangle. Utilizing the method, equivalently, optimization positioning processing is carried out on a rectangle determined from an image by using a conventional positioning method; through optimization processing of the determined rectangle, the problem of decoding failure of the short bar code caused by incomplete short bar code contained in thearea formed by positioning the short bar code or large positioning direction deviation in the prior art is solved, the positioning precision of the short bar code is effectively improved, and the decoding accuracy of the short bar code is further improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of image processing, and in particular to a method, a device, and a barcode scanning device for locating a barcode in an image. Background technique [0002] Barcodes are widely used in various fields of life, such as: commodities in circulation, express orders, etc., through barcodes to record the price information of the commodities in circulation or to trace commodity information, the barcodes in express orders can also be used to record The logistics information of the courier order. At present, there are some code systems in the market whose length-to-width ratio is quite different from that of conventional barcodes (for example, the length of the entire barcode is longer than that of conventional barcodes, and the width is narrower than that of conventional barcodes), referred to as short barcodes. Figure 1a and Figure 1b The effect display diagrams of conventional barcodes...

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): G06K7/14
CPCG06K7/1443Y02P90/30
Inventor 张沐然
Owner 天津维创微智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products