CN110929541A - Panoramic cigarette two-dimensional code scanning system - Google Patents

Panoramic cigarette two-dimensional code scanning system Download PDF

Info

Publication number
CN110929541A
CN110929541A CN201911127566.XA CN201911127566A CN110929541A CN 110929541 A CN110929541 A CN 110929541A CN 201911127566 A CN201911127566 A CN 201911127566A CN 110929541 A CN110929541 A CN 110929541A
Authority
CN
China
Prior art keywords
image
module
dimensional code
cigarette
code
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
CN201911127566.XA
Other languages
Chinese (zh)
Other versions
CN110929541B (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.)
Nanjing Dashu Intelligence Technology Co Ltd
Original Assignee
Nanjing Dashu Intelligence Technology Co Ltd
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 Nanjing Dashu Intelligence Technology Co Ltd filed Critical Nanjing Dashu Intelligence Technology Co Ltd
Priority to CN201911127566.XA priority Critical patent/CN110929541B/en
Publication of CN110929541A publication Critical patent/CN110929541A/en
Application granted granted Critical
Publication of CN110929541B publication Critical patent/CN110929541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to the technical field of cigarette detection systems, in particular to a panoramic cigarette two-dimensional code scanning system which comprises a base, an outer sleeve plate arranged at the top of the base, a sliding plate arranged inside the outer sleeve plate and a sliding rail arranged at the top of the sliding plate. In this panorama formula cigarette two-dimensional code scanning system, through setting up the image acquisition module, shoot the cigarette strip that removes, will wait to splice the image through image registration module and carry out the alignment in the space and the integration on the grey level, and fuse and splice the image overlap area through the image fusion module, can detect the two-dimensional code on the cigarette strip under to the moving state, reduce the time that the machine halt detection consumes, improve whole detection efficiency, through setting up image decoding module, and decode two-dimensional code image data through the motor neural network dynamic V mechanics model algorithm, improve the speed of decoding, guarantee the accuracy of decoding simultaneously.

Description

Panoramic cigarette two-dimensional code scanning system
Technical Field
The invention relates to the technical field of cigarette detection systems, in particular to a panoramic cigarette two-dimensional code scanning system.
Background
With the continuous progress of science and technology and the aggravation of market competition of the tobacco industry, the realization of comprehensive information formation is an urgent requirement of the tobacco industry. To meet this requirement, large data analysis needs to be introduced into the tobacco industry. The acquisition of data for analysis is the first step of big data analysis, and the two-dimensional code is used as the identification of tobacco bale, tobacco rod, cigarette case, contains the production date, batch, brand, producer and other important data information of production and sale in the tobacco industry. The two-dimension code information is acquired at the production end and the sale end respectively, and the two-dimension code information association of the cigarette packet, the cigarette strip and the cigarette box is realized, so that the flow direction of commodities can be comprehensively mastered, and the information combination of production and sale is realized.
However, when the two-dimension code of the existing cigarette is detected, the two-dimension code needs to be stopped in the detection area of the detection camera, so that the detection camera can capture the complete data of the two-dimension code image, the whole production line needs to be interrupted when the two-dimension code is detected, and the whole detection efficiency is influenced. In view of this, we propose a panoramic cigarette two-dimensional code scanning system.
Disclosure of Invention
The invention aims to provide a panoramic cigarette two-dimensional code scanning system to solve the problem that the whole production line needs to be interrupted when two-dimensional code detection is carried out in the background technology, so that the whole detection efficiency is influenced.
In order to achieve the above object, in one aspect, the present invention provides a panoramic cigarette two-dimensional code scanning system, which comprises a base, an outer sleeve plate arranged on the top of the base, a sliding plate arranged inside the outer sleeve plate, and a sliding rail arranged on the top of the sliding plate, the interior of the outer sleeve plate is of a hollow structure with one open end, a telescopic electric cylinder is arranged in the outer sleeve plate, the two sides of the inner wall of the outer sleeve plate are respectively provided with a sliding chute, the two ends of the sliding plate are respectively provided with a sliding block, one end of the slide rail is provided with a clamping plate, the interior of the slide rail is provided with a limiting groove, the bottom of the slide rail is provided with a rack, a moving plate is connected on the sliding rail in a sliding way, a bearing plate is arranged on one side of the moving plate, a detection camera is arranged on the top of the bearing plate, the detection camera comprises an image acquisition module, an image preprocessing module, an image processing module and an image decoding module.
Preferably, the movable plate is provided with a groove inside, the top of the groove is provided with a limiting block in sliding connection with the limiting groove, the groove is further provided with a fluted disc inside, and the outer wall of the movable plate is provided with a driving motor for driving the fluted disc to rotate.
Preferably, the toothed disc and the toothed rack are in mesh.
Preferably, the image acquisition module comprises an image data acquisition module, an image digital processing module, an image correction processing module, an image registration module, an image fusion module and an image output module; the image data acquisition module is used for acquiring the two-dimensional code image data of the photographed cigarette; the image digital processing module is used for converting image data into an IntPoint type array for storage after reading the image data; the image correction processing module is used for correcting the geometric position of the image; the image registration module is used for carrying out spatial alignment and gray level fusion on the images to be spliced; the image fusion module is used for fusing and splicing the image overlapping regions; and the image output module is used for outputting the spliced image data.
Preferably, the image preprocessing module comprises an image graying processing module, an image smoothing processing module and an image binarization processing module; the image graying processing module is used for removing colors in the image and carrying out image graying processing; the image smoothing processing module is used for optimizing the smoothness of the image; the image binarization processing module is used for carrying out segmentation and edge detection on the grayed image.
Preferably, the image processing module comprises a two-dimensional code positioning module and a two-dimensional code correction module; the two-dimension code positioning module is used for determining an identification area of the two-dimension code; the two-dimensional code correction module is used for correcting the distorted two-dimensional code image.
Preferably, the two-dimension code positioning module comprises a two-dimension code positioning size module, a two-dimension code positioning effective area module and a two-dimension code positioning edge information module; the positioning two-dimension code size module is used for positioning the whole size area of the two-dimension code; the two-dimension code positioning effective area module is used for positioning an effective area of a two-dimension code; the positioning two-dimensional code edge information module is used for positioning the edge area of the two-dimensional code.
Preferably, the two-dimension code correction module comprises a two-dimension code translation module and a two-dimension code rotation module; the two-dimensional code translation module is used for correcting the position of the two-dimensional code image; the two-dimensional code rotation module is used for correcting the angle position of the two-dimensional code image.
Preferably, the image decoding module comprises an extraction format information module, a mask removing module, an error correcting module, an information extracting module and a decoding algorithm module; the format information extracting module is used for extracting format information of the two-dimensional code image; the mask removing module is used for removing a mask area in the two-dimensional code image; the error correction module is used for partitioning the code word sequence, adding error correction code words in front of the data code word sequence according to the error correction level and partitioned code words, and forming a new sequence; the extraction information module is used for extracting information needing to be decoded; the decoding algorithm module is used for decoding the two-dimensional code image.
Preferably, the panoramic cigarette two-dimensional code scanning system comprises the following operation steps:
s1, adjusting and detecting the camera position: when the proper height is reached, the fluted disc is driven to rotate by the driving motor and is meshed with the rack, and when the fluted disc rotates, the fluted disc moves along the rack, so that the movable plate moves along the direction of the slide rail, and the distance adjustment of the detection camera is realized;
s2, acquiring a two-dimensional code image: acquiring the image data of the two-dimensional code of the cigarette strip by an image data acquisition module, converting the image data into an IntPoint type array for storage by an image digital processing module after reading the image data, correcting the geometric position of the image by an image correction processing module, performing spatial alignment and grayscale fusion on the images to be spliced by an image registration module, performing fusion and splicing on the image overlapping area by an image fusion module, and finally outputting the spliced image data by an image output module;
s3, preprocessing image data: removing colors in the image through an image graying processing module, optimizing the smoothness of the image through an image smoothing processing module, and finally segmenting and detecting the grayed image through an image binarization processing module;
s4, processing image data: positioning the whole size area of the two-dimensional code, positioning the effective area of the two-dimensional code and positioning the edge area of the two-dimensional code by a two-dimensional code positioning module, and correcting the position of the two-dimensional code image and the angle position of the two-dimensional code image by a two-dimensional code correcting module;
s5, decoding two-dimensional code information: the format information of the two-dimensional code image is extracted through the format information extraction module, a mask area in the two-dimensional code image is removed through the mask removal module, the code word sequence is partitioned through the error correction module, the error correction code word is added in front of the data code word sequence to form a new sequence according to the error correction level and the partitioned code word, then the information needing to be decoded is extracted through the information extraction module, and finally the two-dimensional code image is decoded through the decoding algorithm module.
Compared with the prior art, the invention has the beneficial effects that:
1. among this a panorama formula cigarette two-dimensional code scanning system, will drive the slide through flexible electric jar and slide in the outer sleeve plate, realize detecting the regulation of camera height, through the fluted disc along rack motion for the movable plate moves along the slide rail direction, realizes detecting the distance adjustment of camera, is convenient for adjust detecting the camera detection area.
2. In this panorama cigarette two-dimensional code scanning system, through setting up image acquisition module, shoot the cigarette strip that removes, will wait to splice the image through image registration module and carry out the alignment in the space and the integration on the grey level to fuse and splice the image overlap area through image fusion module, can detect the two-dimensional code on the cigarette strip under the mobile state, reduce the time that the machine halt detection consumes, improve whole detection efficiency.
3. In this a panorama formula cigarette two-dimensional code scanning system, through setting up image decoding module to move V mechanics model algorithm through the motor neural network and decode two-dimensional code image data, improve the decoding speed, ensure the accuracy of decoding simultaneously.
Drawings
FIG. 1 is a schematic view of the overall structure of the present invention;
FIG. 2 is an exploded view of the overall structure of the present invention;
FIG. 3 is a schematic diagram of a moving plate structure according to the present invention;
FIG. 4 is a block diagram of the overall structure of the present invention;
FIG. 5 is a block diagram of an image acquisition module of the present invention;
FIG. 6 is a diagram of an image pre-processing module of the present invention;
FIG. 7 is a block diagram of an image processing module of the present invention;
FIG. 8 is a block diagram of a two-dimensional code positioning module according to the present invention;
FIG. 9 is a block diagram of two-dimensional code calibration according to the present invention;
FIG. 10 is a block diagram of an image decoding module according to the present invention.
In the figure: 1. a base; 2. an outer race plate; 21. a telescopic electric cylinder; 22. a chute; 3. a slide plate; 31. a slider; 4. a slide rail; 41. clamping a plate; 42. a limiting groove; 43. a rack; 44. moving the plate; 441. a groove; 442. a limiting block; 443. a fluted disc; 444. a drive motor; 45. a support plate; 46. a camera is detected.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the equipment or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Example 1
On one hand, the invention provides a panoramic cigarette two-dimensional code scanning system, as shown in fig. 1-3, the panoramic cigarette two-dimensional code scanning system comprises a base 1, an outer sleeve plate 2 arranged on the top of the base 1, a sliding plate 3 arranged inside the outer sleeve plate 2, and a sliding rail 4 arranged on the top of the sliding plate 3, wherein the inner part of the outer sleeve plate 2 is of a hollow structure with one open end, a telescopic electric cylinder 21 is arranged inside the outer sleeve plate 2, sliding grooves 22 are respectively formed in two sides of the inner wall of the outer sleeve plate 2, sliding blocks 31 are respectively arranged at two ends of the sliding plate 3, a clamping plate 41 is arranged at one end of the sliding rail 4, a limiting groove 42 is formed inside the sliding rail 4, a rack 43 is arranged at the bottom of the sliding rail 4, a moving plate 44 is slidably connected on the sliding rail 4, a supporting plate 45 is arranged on one side of the, The image decoding device comprises an image processing module and an image decoding module.
In this embodiment, the sliding plate 3 is slidably connected to the outer sleeve plate 2, and the top of the piston rod of the telescopic electric cylinder 21 is welded to the bottom of the sliding plate 3, so that the sliding plate 3 is pushed by the telescopic electric cylinder 21 to slide in the outer sleeve plate 2, thereby adjusting the position of the sliding plate 3.
Further, slide rail 4 and cardboard 41 are integrated into one piece structure, and cardboard 41 is "concave" word shape for cardboard 41 can block on slide 3, and cardboard 41 and slide 3 welded fastening realize slide rail 4's fixed simultaneously.
Specifically, the supporting plate 45 and the moving plate 44 are welded and fixed, the detection camera 46 and the supporting plate 45 are fixed in a bolt mode, and meanwhile the supporting plate 45 is designed to be inclined downwards, so that the detection camera 46 has a certain inclination angle, and the detection camera 46 can conveniently capture images.
In addition, a groove 441 is formed in the moving plate 44, the moving plate 44 is integrally of a "concave" structure, a limit block 442 slidably connected to the limit groove 42 is mounted at the top of the groove 441, the limit block 442 and the limit groove 42 are slidably connected to enable the moving plate 44 to slide on the slide rail 4, a fluted disc 443 is further disposed in the groove 441, a driving motor 444 for driving the fluted disc 443 to rotate is mounted on an outer wall of the moving plate 44, the fluted disc 443 is meshed with the rack 43, an output shaft of the driving motor 444 penetrates through the moving plate 44 and is connected to the fluted disc 443, and the fluted disc 443 is driven to rotate by the driving motor 444.
The two-dimensional code scanning system that props up of panorama formula of this embodiment is when detecting camera 46 adjusting position, through with flexible electric jar 21 switch on, make its work, flexible electric jar 21 will drive slide 3 and slide in outer race 2, realize the regulation of detecting camera 46 height, when reacing suitable height, again with driving motor 444 switch on, make its work, driving motor 444 drive fluted disc 443 rotates, fluted disc 443 meshes on rack 43 simultaneously, when fluted disc 443 rotates, fluted disc 443 moves along rack 43, make movable plate 44 move along slide rail 4 direction, realize detecting camera 46's distance adjustment.
Example 2
As a second embodiment of the present invention, in order to facilitate the detection of the two-dimensional code of the moving cigarette rod by the detection camera 46, the present invention is provided with an image acquisition module, as shown in fig. 4 and 5, as a preferred embodiment, the image acquisition module includes an image data acquisition module, an image digitization processing module, an image correction processing module, an image registration module, an image fusion module and an image output module; the image data acquisition module is used for acquiring the two-dimensional code image data of the photographed cigarette; the image digital processing module is used for converting the image data into an IntPoint type array for storage after reading the image data; the image correction processing module is used for correcting the geometric position of the image; the image registration module is used for carrying out spatial alignment and gray level fusion on the images to be spliced; the image fusion module is used for fusing and splicing the image overlapping areas; and the image output module is used for outputting the spliced image data.
In this embodiment, the acquiring image data module acquires a certain number of panoramic image sets by controlling, managing and detecting the camera 46 through an AForge class library, which is an image device operation class library specially designed for developers and researchers for a C # platform, and the class library has a strong function, including many fields such as computer vision and artificial intelligence, image processing, neural networks, genetic algorithms, machine learning, fuzzy systems, robot control, and the like.
And further, the image digital processing module adopts a Net frame to carry out program construction, and after image data is read, the image data is converted into an IntPoint type array for storage.
Specifically, the image fusion module is realized based on an image splicing algorithm, wherein the splicing algorithm is designed based on a Harris interest point detection method, the Harris algorithm describes the change of an image in a two-dimensional space by an autocorrelation function, the detection method has translation and rotation invariance, can achieve the precision of tiny intervals between adjacent pixels, and has better robustness on the influences of noise interference, illumination and other conditions.
The basic mathematical formula of Harris corner detection is as follows:
Figure BDA0002277332560000071
wherein w (x, y) represents a moving window, I (x, y) represents the intensity of the gray value of the pixel, and the partial derivative from the first order to the N order is calculated by using a taylor series diagonal point detection mathematical formula, so that a Harris matrix formula can be obtained:
Figure BDA0002277332560000072
the matrix represents the intensity Ix of each pixel point in the X direction and the intensity Iy of each pixel point in the Y direction in the image, and the characteristic lambda of the matrix is further obtained according to the matrix1And λ2The Harris angular response value R is then calculated:
R=det M-k(traceM)2
det M=λ1λ2
traceM=λ12
through the calculation, the Harris matrix of all the pixel points can be obtained, after the characteristic value of the Harris matrix is obtained, the R value of each pixel point is calculated, a 3 × 3 or 5 × 5 window can be usually selected, the pixel points meeting the conditions are finally calculated and marked, R is only related to the characteristic value of M, if the R value is an angular point, R is a large-value positive number, if the R value is an edge point, R is a large-value negative number, and if the R value is a flat area, R is a small-value.
In addition, the splicing algorithm is designed based on an SIFT algorithm, the SIFT algorithm is a scale invariant feature transform and is used for detecting and describing local features in an image, extreme points are searched in a space scale, and the positions, scales and rotation invariants of the extreme points are provided, wherein the SIFT algorithm comprises the following steps:
1) and detecting an extreme value in the scale space: introducing a parameter regarded as scale into an image information processing model, obtaining scale space representation sequences under the multi-scale through continuously changing the scale parameter, extracting main outlines of the sequences in the scale space, and taking the main outlines as a feature vector to realize edge and corner detection, feature extraction on different resolutions and the like;
2) key point positioning: extreme points of a discrete space can be obtained through the first-step scale space extreme point detection, and the positions and the scales of key points can be accurately determined through fitting a three-dimensional quadratic function;
3) direction determination: calculating the direction of a local structure by adopting an image gradient method;
4) description of key points: by analyzing the image blocks around the feature points, an intra-block gradient histogram is calculated, and a vector value capable of representing the image information of the region can be obtained.
In addition, the splicing algorithm is designed based on an SURF algorithm, the SURF algorithm is accelerated optimization of the SIFT algorithm, a Hessian matrix is the core of the SURF algorithm, and the position of the spot-shaped structure is marked by the maximum value of a determinant of the Hessian matrix.
Specifically, the SIFT algorithm continuously performs Gaussian smoothing processing on the original image when constructing a scale space, and the SIFT algorithm only changes the size of the image while the size of a Gaussian filter is unchanged when constructing a pyramid image layer; in contrast, in the SURF algorithm, the size of an image is unchanged, the size of a filter is changed, regarding the positioning of feature points, the SURF algorithm is used for implementing non-maximum suppression in the field of 3 x 3, when the feature points are described and matched, the description method adopted by the SURF algorithm is similar to SIFT and is based on the field distribution of the interest points, and in the specific implementation process, in order to accelerate calculation by means of an integral graph, Harr wavelet value distribution in the x and y directions is selected to be calculated instead of gradient value distribution.
When the panoramic cigarette two-dimensional code scanning system collects cigarette two-dimensional code images, the image data module is used for acquiring the image data of the photographed cigarette two-dimensional code, after the image data is read, the image data is converted into an IntPoint type array for storage through the image digital processing module, the geometric position of the image is corrected through the image correction processing module, the image to be spliced is subjected to spatial alignment and grayscale fusion through the image registration module, the image overlapping area is fused and spliced through the image fusion module, and finally the spliced image data is output through the image output module.
Example 3
As a third embodiment of the present invention, in order to facilitate the preprocessing of the acquired image data, the present invention is further provided with an image preprocessing module, as a preferred embodiment, as shown in fig. 6, the image preprocessing module includes an image graying processing module, an image smoothing processing module, and an image binarization processing module; the image graying processing module is used for removing colors in the image and carrying out image graying processing; the image smoothing processing module is used for optimizing the smoothness of the image; and the image binarization processing module is used for carrying out segmentation and edge detection on the grayed image.
In this embodiment, the image graying processing module uses an average value method to simply average the luminance of R, G, B three components in the color image, and outputs the obtained average value as a grayscale value to obtain a grayscale map, where the expression is shown in the following formula:
f(i,j)=(R(i,j)+G(i,j)+B(i,j))/3
the method comprises the steps of reading the size of an original image by using a size function, constructing an all-zero matrix by using the size to store a gray level image generated by the following method, adopting a uint8() to convert the image into an unsigned integer because the image is double-precision after previous sentences are created, then processing pixels in the original image point by point, firstly adopting an averaging method, namely averaging R, G and B components on each pixel point, outputting the processed average value as the gray level value of the pixel point, and realizing the gray level processing of the color image after all the pixel points are processed.
Further, the image smoothing module is designed based on a neighborhood averaging method, which is to take a neighborhood S for each pixel of the original image f (x, y) containing noise, calculate an average value of gray levels of all pixels in the neighborhood S, and use the average value as a pixel value of the image g (x, y) after the neighborhood averaging, that is:
Figure BDA0002277332560000091
where S is a predetermined neighborhood and M is the number of pixels in the neighborhood S.
The panoramic cigarette two-dimensional code scanning system of the embodiment preprocesses acquired image data, removes colors in an image through the image graying processing module, optimizes the smoothness of the image through the image smoothing processing module, and finally segments and detects edges of the grayed image through the image binarization processing module.
Example 4
As a fourth embodiment of the present invention, in order to facilitate processing of the acquired image data, the present invention is further provided with an image preprocessing module, as a preferred embodiment, as shown in fig. 7 to 9, the image processing module includes a two-dimensional code positioning module and a two-dimensional code correcting module; the two-dimensional code positioning module is used for determining an identification area of the two-dimensional code; the two-dimension code positioning module comprises a two-dimension code positioning module, a two-dimension code correction module and a two-dimension code edge information positioning module, wherein the two-dimension code correction module is used for correcting a distorted two-dimension code image; the positioning two-dimension code size module is used for positioning the whole size area of the two-dimension code; the two-dimension code effective area positioning module is used for positioning an effective area of the two-dimension code; the two-dimension code edge information positioning module is used for positioning the edge area of the two-dimension code, and the two-dimension code correction module comprises a two-dimension code translation module and a two-dimension code rotation module; the two-dimensional code translation module is used for correcting the position of the two-dimensional code image; the two-dimensional code rotation module is used for correcting the angle position of the two-dimensional code image.
In this embodiment, the two-dimensional code positioning module is a method for finding an exact position of a two-dimensional code image in an image, and obtaining information such as the size of the two-dimensional code, the covered area range, and the edge of the two-dimensional code, the two-dimensional code is generally a rectangle, and the positioning process of the two-dimensional code is actually a process of obtaining coordinate values of four vertices of the rectangle.
Specifically, the two-dimensional code positioning module utilizes the shape characteristics of the two-dimensional code to identify, the two-dimensional code is generally rectangular, the edge is tidy, the edge of the two-dimensional code is determined through an image identification technology, and then the accurate position of the two-dimensional code is calculated through the information of the edge.
Further, the algorithm of the two-dimensional code correction module is as follows:
Figure BDA0002277332560000101
when the panoramic cigarette two-dimensional code scanning system of this embodiment processes the image data of gathering, through the whole size area of two-dimensional code location two-dimensional code, the effective area of location two-dimensional code and the marginal area of location two-dimensional code, through the position of two-dimensional code image of two-dimensional code correction module correction and the angular position of correction two-dimensional code image.
Example 5
As a fifth embodiment of the present invention, in order to facilitate decoding of the two-dimensional code information, the present invention is further provided with an image decoding module, as shown in fig. 10, as a preferred embodiment, the image decoding module includes an extraction format information module, a mask removing module, an error correcting module, an information extracting module, and a decoding algorithm module; the format information extracting module is used for extracting format information of the two-dimensional code image; the mask removing module is used for removing a mask area in the two-dimensional code image; the error correction module is used for partitioning the code word sequence, adding error correction code words in front of the data code word sequence according to the error correction level and the partitioned code words, and forming a new sequence; the extraction information module is used for extracting information needing to be decoded; and the decoding algorithm module is used for decoding the two-dimensional code image.
In this embodiment, the error correction module includes a calculation correction substep, a calculation error step, and a calculation error value step.
Wherein, the syndrome algorithm formula is as follows:
Figure BDA0002277332560000111
wherein, assuming that the position of the error is α and the error value is m, the calculation error algorithm formula is as follows:
Figure BDA0002277332560000112
wherein, as known, the error mx1And mx2Position of αx1And αx2Then, the formula for calculating the error value is as follows:
Figure BDA0002277332560000113
further, the decoding algorithm module is designed based on a neural network dynamics model algorithm, the two-dimensional code image is converted into binary pixels (black is 0, white is 1), and each pixel X isiAssociated with a neuron ViThe connection weight between neurons is WijThe function formula is as follows:
Figure BDA0002277332560000114
the panoramic cigarette two-dimensional code scanning system of the embodiment decodes two-dimensional code information, format information of a two-dimensional code image is extracted through the format information extraction module, a mask code area in the two-dimensional code image is removed through the mask code removing module, a code word sequence is partitioned through the error correction module, the error correction code word is added in front of the data code word sequence according to the error correction level and the partitioned code word, the new sequence is formed, information needing decoding is extracted through the information extraction module, and finally the two-dimensional code image is decoded through the decoding algorithm module.
On the other hand, the invention also provides an operation method of the panoramic cigarette two-dimensional code scanning system, which comprises the following operation steps:
s1, adjusting the position of the detection camera 46: the telescopic electric cylinder 21 is powered on to work, the telescopic electric cylinder 21 drives the sliding plate 3 to slide in the outer sleeve plate 2, so that the height of the detection camera 46 is adjusted, when the proper height is reached, the driving motor 444 is powered on to work, the driving motor 444 drives the fluted disc 443 to rotate, the fluted disc 443 is meshed with the rack 43, and when the fluted disc 443 rotates, the fluted disc 443 moves along the rack 43, so that the moving plate 44 moves along the direction of the sliding rail 4, and the distance of the detection camera 46 is adjusted;
s2, acquiring a two-dimensional code image: acquiring the image data of the two-dimensional code of the cigarette strip by an image data acquisition module, converting the image data into an IntPoint type array for storage by an image digital processing module after reading the image data, correcting the geometric position of the image by an image correction processing module, performing spatial alignment and grayscale fusion on the images to be spliced by an image registration module, performing fusion and splicing on the image overlapping area by an image fusion module, and finally outputting the spliced image data by an image output module;
s3, preprocessing image data: removing colors in the image through an image graying processing module, optimizing the smoothness of the image through an image smoothing processing module, and finally segmenting and detecting the grayed image through an image binarization processing module;
s4, processing image data: positioning the whole size area of the two-dimensional code, positioning the effective area of the two-dimensional code and positioning the edge area of the two-dimensional code by a two-dimensional code positioning module, and correcting the position of the two-dimensional code image and the angle position of the two-dimensional code image by a two-dimensional code correcting module;
s5, decoding two-dimensional code information: the format information of the two-dimensional code image is extracted through the format information extraction module, a mask area in the two-dimensional code image is removed through the mask removal module, the code word sequence is partitioned through the error correction module, the error correction code word is added in front of the data code word sequence to form a new sequence according to the error correction level and the partitioned code word, then the information needing to be decoded is extracted through the information extraction module, and finally the two-dimensional code image is decoded through the decoding algorithm module.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and the preferred embodiments of the present invention are described in the above embodiments and the description, and are not intended to limit the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. The utility model provides a two-dimensional code scanning system is propped up to panorama formula, includes base (1), sets up outer sleeve plate (2), the setting at base (1) top are in slide (3) and the installation in outer sleeve plate (2) inside slide rail (4) at slide (3) top, its characterized in that: the utility model discloses a detection camera, including outer sheathing board (2), slide rail (4), slide rail (44), slide rail (4), detection camera (46), including image acquisition module, image preprocessing module, image processing module and image decoding module in the detection camera (46), the inside of outer sheathing board (2) is one end open-ended hollow structure, the internally mounted of outer sheathing board (2) has flexible electric jar (21), spout (22) have been seted up respectively to the inner wall both sides of outer sheathing board (2), slider (31) are installed respectively at the both ends of slide plate (3), the one end of slide rail (4) is provided with cardboard (41), spacing groove (42) have been seted up to the inside of slide rail (4), rack (43) are installed to the bottom of slide rail (4), sliding connection has movable plate (44) on slide rail (4), one side of movable plate (44) is provided with.
2. The panoramic cigarette two-dimensional code scanning system according to claim 1, characterized in that: the movable plate is characterized in that a groove (441) is formed in the movable plate (44), a limiting block (442) which is connected with the limiting groove (42) in a sliding mode is mounted at the top of the groove (441), a fluted disc (443) is further arranged in the groove (441), and a driving motor (444) used for driving the fluted disc (443) to rotate is mounted on the outer wall of the movable plate (44).
3. The panoramic cigarette two-dimensional code scanning system according to claim 2, characterized in that: the toothed plate (443) meshes with the toothed rack (43).
4. The panoramic cigarette two-dimensional code scanning system according to claim 1, characterized in that: the image acquisition module comprises an image data acquisition module, an image digital processing module, an image correction processing module, an image registration module, an image fusion module and an image output module; the image data acquisition module is used for acquiring the two-dimensional code image data of the photographed cigarette; the image digital processing module is used for converting image data into an IntPoint type array for storage after reading the image data; the image correction processing module is used for correcting the geometric position of the image; the image registration module is used for carrying out spatial alignment and gray level fusion on the images to be spliced; the image fusion module is used for fusing and splicing the image overlapping regions; and the image output module is used for outputting the spliced image data.
5. The panoramic cigarette two-dimensional code scanning system according to claim 1, characterized in that: the image preprocessing module comprises an image graying processing module, an image smoothing processing module and an image binaryzation processing module; the image graying processing module is used for removing colors in the image and carrying out image graying processing; the image smoothing processing module is used for optimizing the smoothness of the image; the image binarization processing module is used for carrying out segmentation and edge detection on the grayed image.
6. The panoramic cigarette two-dimensional code scanning system according to claim 1, characterized in that: the image processing module comprises a two-dimensional code positioning module and a two-dimensional code correcting module; the two-dimension code positioning module is used for determining an identification area of the two-dimension code; the two-dimensional code correction module is used for correcting the distorted two-dimensional code image.
7. The panoramic cigarette two-dimensional code scanning system of claim 6, characterized in that: the two-dimension code positioning module comprises a two-dimension code positioning size module, a two-dimension code positioning effective area module and a two-dimension code positioning edge information module; the positioning two-dimension code size module is used for positioning the whole size area of the two-dimension code; the two-dimension code positioning effective area module is used for positioning an effective area of a two-dimension code; the positioning two-dimensional code edge information module is used for positioning the edge area of the two-dimensional code.
8. The panoramic cigarette two-dimensional code scanning system of claim 6, characterized in that: the two-dimension code correction module comprises a two-dimension code translation module and a two-dimension code rotation module; the two-dimensional code translation module is used for correcting the position of the two-dimensional code image; the two-dimensional code rotation module is used for correcting the angle position of the two-dimensional code image.
9. The panoramic cigarette two-dimensional code scanning system according to claim 1, characterized in that: the image decoding module comprises an extraction format information module, a mask removing module, an error correction module, an information extraction module and a decoding algorithm module; the format information extracting module is used for extracting format information of the two-dimensional code image; the mask removing module is used for removing a mask area in the two-dimensional code image; the error correction module is used for partitioning the code word sequence, adding error correction code words in front of the data code word sequence according to the error correction level and partitioned code words, and forming a new sequence; the extraction information module is used for extracting information needing to be decoded; the decoding algorithm module is used for decoding the two-dimensional code image.
10. The panoramic cigarette two-dimensional code scanning system according to any one of claims 1 to 9, comprising the following operation steps:
s1, adjusting the position of the detection camera (46): the telescopic electric cylinder (21) works to drive the sliding plate (3) to slide in the outer sleeve plate (2), so that the height of the detection camera (46) is adjusted, when the proper height is reached, the driving motor (444) drives the fluted disc (443) to rotate, meanwhile, the fluted disc (443) is meshed with the rack (43), and when the fluted disc (443) rotates, the fluted disc (443) moves along the rack (43), so that the moving plate (44) moves along the direction of the sliding rail (4), and the distance adjustment of the detection camera (46) is realized;
s2, acquiring a two-dimensional code image: acquiring the image data of the two-dimensional code of the cigarette strip by an image data acquisition module, converting the image data into an IntPoint type array for storage by an image digital processing module after reading the image data, correcting the geometric position of the image by an image correction processing module, performing spatial alignment and grayscale fusion on the images to be spliced by an image registration module, performing fusion and splicing on the image overlapping area by an image fusion module, and finally outputting the spliced image data by an image output module;
s3, preprocessing image data: removing colors in the image through an image graying processing module, optimizing the smoothness of the image through an image smoothing processing module, and finally segmenting and detecting the grayed image through an image binarization processing module;
s4, processing image data: positioning the whole size area of the two-dimensional code, positioning the effective area of the two-dimensional code and positioning the edge area of the two-dimensional code by a two-dimensional code positioning module, and correcting the position of the two-dimensional code image and the angle position of the two-dimensional code image by a two-dimensional code correcting module;
s5, decoding two-dimensional code information: the format information of the two-dimensional code image is extracted through the format information extraction module, a mask area in the two-dimensional code image is removed through the mask removal module, the code word sequence is partitioned through the error correction module, the error correction code word is added in front of the data code word sequence to form a new sequence according to the error correction level and the partitioned code word, then the information needing to be decoded is extracted through the information extraction module, and finally the two-dimensional code image is decoded through the decoding algorithm module.
CN201911127566.XA 2019-11-18 2019-11-18 Panoramic cigarette two-dimensional code scanning system Active CN110929541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911127566.XA CN110929541B (en) 2019-11-18 2019-11-18 Panoramic cigarette two-dimensional code scanning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911127566.XA CN110929541B (en) 2019-11-18 2019-11-18 Panoramic cigarette two-dimensional code scanning system

Publications (2)

Publication Number Publication Date
CN110929541A true CN110929541A (en) 2020-03-27
CN110929541B CN110929541B (en) 2021-01-01

Family

ID=69854095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911127566.XA Active CN110929541B (en) 2019-11-18 2019-11-18 Panoramic cigarette two-dimensional code scanning system

Country Status (1)

Country Link
CN (1) CN110929541B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112066186A (en) * 2020-09-17 2020-12-11 广州古米科技有限公司 Portable intelligent anti-counterfeiting identification equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5272798A (en) * 1997-05-07 1998-08-13 Westinghouse Air Brake Company Wheel slip control parameter variation process
CN102680474A (en) * 2012-05-25 2012-09-19 浙江大学 Device and method for quickly pre-judging soil type with panorama girdle photograph process
US20130109316A1 (en) * 2011-07-06 2013-05-02 Koamtac, Inc. Connectivity Sled for Electronic Pairing and Physical Cooperation Between a Mobile Device and Associated Peripheral Devices
CN103310251A (en) * 2012-09-10 2013-09-18 成都菲普迪斯科技有限公司 CCQR (Colorful Coded Quick Response) code encoding method and decoding method
CN103729883A (en) * 2013-12-30 2014-04-16 浙江大学 Three-dimensional environmental information collection and reconstitution system and method
CN104036222A (en) * 2014-06-09 2014-09-10 阎文 Universal fully automatic code reading machine and scanning method of universal fully automatic code reading machine
CN104268499A (en) * 2014-10-10 2015-01-07 南京大树智能科技股份有限公司 Method for detecting barcode tags of commodities with barcodes
CN104535590A (en) * 2014-12-01 2015-04-22 四川祥益智能科技有限公司 Glass edge breakage detection machine
CN105404840A (en) * 2015-11-04 2016-03-16 成都汇智远景科技有限公司 Mobile equipment data processing method based on internet of things
CN107273777A (en) * 2017-04-26 2017-10-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of Quick Response Code identification of code type method matched based on slide unit
US9805296B2 (en) * 2016-02-23 2017-10-31 The Chinese University Of Hong Kong Method and apparatus for decoding or generating multi-layer color QR code, method for recommending setting parameters in generation of multi-layer QR code, and product comprising multi-layer color QR code
CN206795372U (en) * 2017-03-07 2017-12-26 本田金属技术(佛山)有限公司 A kind of automatic feed and identification device
CN108197521A (en) * 2017-12-31 2018-06-22 南京理工大学 A kind of leggy Quick Response Code obtains identification device and method
CN208758100U (en) * 2018-08-31 2019-04-19 厦门钜德电子科技有限公司 A kind of image detecting apparatus
CN208954123U (en) * 2017-11-28 2019-06-07 广州真知码信息科技有限公司 A kind of two dimensional code acquisition system based on formula

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5272798A (en) * 1997-05-07 1998-08-13 Westinghouse Air Brake Company Wheel slip control parameter variation process
US20130109316A1 (en) * 2011-07-06 2013-05-02 Koamtac, Inc. Connectivity Sled for Electronic Pairing and Physical Cooperation Between a Mobile Device and Associated Peripheral Devices
CN102680474A (en) * 2012-05-25 2012-09-19 浙江大学 Device and method for quickly pre-judging soil type with panorama girdle photograph process
CN103310251A (en) * 2012-09-10 2013-09-18 成都菲普迪斯科技有限公司 CCQR (Colorful Coded Quick Response) code encoding method and decoding method
CN103729883A (en) * 2013-12-30 2014-04-16 浙江大学 Three-dimensional environmental information collection and reconstitution system and method
CN104036222A (en) * 2014-06-09 2014-09-10 阎文 Universal fully automatic code reading machine and scanning method of universal fully automatic code reading machine
CN104268499A (en) * 2014-10-10 2015-01-07 南京大树智能科技股份有限公司 Method for detecting barcode tags of commodities with barcodes
CN104535590A (en) * 2014-12-01 2015-04-22 四川祥益智能科技有限公司 Glass edge breakage detection machine
CN105404840A (en) * 2015-11-04 2016-03-16 成都汇智远景科技有限公司 Mobile equipment data processing method based on internet of things
US9805296B2 (en) * 2016-02-23 2017-10-31 The Chinese University Of Hong Kong Method and apparatus for decoding or generating multi-layer color QR code, method for recommending setting parameters in generation of multi-layer QR code, and product comprising multi-layer color QR code
CN206795372U (en) * 2017-03-07 2017-12-26 本田金属技术(佛山)有限公司 A kind of automatic feed and identification device
CN107273777A (en) * 2017-04-26 2017-10-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of Quick Response Code identification of code type method matched based on slide unit
CN208954123U (en) * 2017-11-28 2019-06-07 广州真知码信息科技有限公司 A kind of two dimensional code acquisition system based on formula
CN108197521A (en) * 2017-12-31 2018-06-22 南京理工大学 A kind of leggy Quick Response Code obtains identification device and method
CN208758100U (en) * 2018-08-31 2019-04-19 厦门钜德电子科技有限公司 A kind of image detecting apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HIROO WAKAUMI: "A 2D Ternary Barcode Detection System with a Dual Threshold", 《SENSORS, 2006 IEEE》 *
刘张: "物流分拣线的智能控制系统设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112066186A (en) * 2020-09-17 2020-12-11 广州古米科技有限公司 Portable intelligent anti-counterfeiting identification equipment

Also Published As

Publication number Publication date
CN110929541B (en) 2021-01-01

Similar Documents

Publication Publication Date Title
JP5830546B2 (en) Determination of model parameters based on model transformation of objects
CN113177977B (en) Non-contact three-dimensional human body size measuring method
CN109615653B (en) Leakage water area detection and identification method based on deep learning and visual field projection model
EP3499414B1 (en) Lightweight 3d vision camera with intelligent segmentation engine for machine vision and auto identification
CN110569704A (en) Multi-strategy self-adaptive lane line detection method based on stereoscopic vision
US8798377B2 (en) Efficient scale-space extraction and description of interest points
CN110348263B (en) Two-dimensional random code image identification and extraction method based on image identification
CN110400278B (en) Full-automatic correction method, device and equipment for image color and geometric distortion
CN109376641B (en) Moving vehicle detection method based on unmanned aerial vehicle aerial video
Urban et al. Finding a good feature detector-descriptor combination for the 2D keypoint-based registration of TLS point clouds
CN113688846B (en) Object size recognition method, readable storage medium, and object size recognition system
CN108961262B (en) Bar code positioning method in complex scene
CN113469201A (en) Image acquisition equipment offset detection method, image matching method, system and equipment
CN113313659A (en) High-precision image splicing method under multi-machine cooperative constraint
CN110929541B (en) Panoramic cigarette two-dimensional code scanning system
CN116188943A (en) Solar radio spectrum burst information detection method and device
CN116740758A (en) Bird image recognition method and system for preventing misjudgment
CN109241981B (en) Feature detection method based on sparse coding
CN114742864A (en) Belt deviation detection method and device
CN113435370A (en) Method and device for obtaining vehicle queuing length based on image feature fusion
CN116883630A (en) Augmented reality three-dimensional registration method for complex illumination environment
CN114943770B (en) Visual positioning method and system based on artificial intelligence and building information
CN110956664A (en) Real-time camera position repositioning method for handheld three-dimensional scanning system
CN113344905B (en) Strip deviation amount detection method and system
CN116402685A (en) Microscopic image stitching method based on objective table motion information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant