CN108959998A - Two-dimensional code identification method, apparatus and system - Google Patents

Two-dimensional code identification method, apparatus and system Download PDF

Info

Publication number
CN108959998A
CN108959998A CN201810665147.0A CN201810665147A CN108959998A CN 108959998 A CN108959998 A CN 108959998A CN 201810665147 A CN201810665147 A CN 201810665147A CN 108959998 A CN108959998 A CN 108959998A
Authority
CN
China
Prior art keywords
code
image
identified
dimensional code
identification
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.)
Pending
Application number
CN201810665147.0A
Other languages
Chinese (zh)
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.)
Tianjin Emtronix Huizhi Automobile Technology Co Ltd
Original Assignee
Tianjin Emtronix Huizhi Automobile 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 Tianjin Emtronix Huizhi Automobile Technology Co Ltd filed Critical Tianjin Emtronix Huizhi Automobile Technology Co Ltd
Priority to CN201810665147.0A priority Critical patent/CN108959998A/en
Publication of CN108959998A publication Critical patent/CN108959998A/en
Pending legal-status Critical Current

Links

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
    • 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/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image

Landscapes

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

Abstract

The present invention provides a kind of two-dimensional code identification method, apparatus and system, is related to image identification technical field, two-dimensional code identification method, comprising: obtain image in 2 D code to be identified;Image in 2 D code to be identified is pre-processed;Pretreated image in 2 D code is positioned, target two-dimension code area is obtained;Feature extraction and identification are carried out to target two-dimension code area, obtain the recognition result of image in 2 D code to be identified.The two dimensional code Machine Vision Inspecting System that the present invention can be developed based on LabVIEW, quick, efficient and inexpensive two-dimensional barcode information recognition is realized by digital image processing method, it is imaged by common camera, is identified using soft decoding, fundamentally reduce barcode scanning cost.

Description

Two-dimensional code identification method, apparatus and system
Technical field
The present invention relates to image identification technical fields, more particularly, to a kind of two-dimensional code identification method, apparatus and system.
Background technique
Technical grade barcode scanning equipment principle is usually in the market: scanner issues Ray Of Light by a laser diode, It being irradiated on the prism that one rotates or the mirror to swing back and forth, the light after reflection passes through reading window and is irradiated to bar code surface, Light returns to reader after bar code reflects, and is acquired, is focused by a mirror, is converted into telecommunications by photoelectric converter Number, which will be decoded by the decoding software on scanner or terminal.
The dust-proof drop resistant of existing industry barcode scanning equipment, recognition rate is also fast, and adjoint rigid disadvantage is also apparent from: price is high It is expensive.General average expert equipment price is at 1000 yuan or so, and then wanting for some famous brands is 6.7 thousand even up to ten thousand.
Summary of the invention
In view of this, can be based on the purpose of the present invention is to provide a kind of two-dimensional code identification method, apparatus and system The two dimensional code Machine Vision Inspecting System of LabVIEW exploitation, is realized quick, efficient and inexpensive by digital image processing method Two-dimensional barcode information recognition, imaged by common camera, using soft decoding identify, fundamentally reduction barcode scanning cost.
In a first aspect, the embodiment of the invention provides a kind of two-dimensional code identification methods, comprising:
Obtain image in 2 D code to be identified;
Image in 2 D code to be identified is pre-processed;
Pretreated image in 2 D code is positioned, target two-dimension code area is obtained;
Feature extraction and identification are carried out to target two-dimension code area, obtain the recognition result of image in 2 D code to be identified.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein obtains Image in 2 D code to be identified is taken, is specifically included:
The operational order of user is received, operational order is the instruction and serial ports selection instruction for enabling driving camera;
According to operational order, driving camera is called from LabVIEW program panel, corresponding serial ports is selected to connect, configuration File is driven, to acquire two-dimensional code graphical information;
And real-time display is carried out to two-dimensional code graphical information, using the graphical information of display as image in 2 D code to be identified.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein According to operational order, driving camera is called from LabVIEW program panel, selects corresponding serial ports to connect, configuration driven file Before, further includes:
Image pick-up card is initialized.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein also Include:
One group of memory space is established as buffer area by IMAQ Create.vi to store image in 2 D code to be identified.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein right Image in 2 D code to be identified is pre-processed, and is specifically included:
Receive the filter command of user;
According to filter command, median filtering is carried out using the MATLAB script node Calling MATLAB in LabVIEW.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein It is also wrapped before carrying out median filtering using the MATLAB script node Calling MATLAB in LabVIEW according to filter command It includes:
Gray processing processing is carried out to image in 2 D code to be identified.
With reference to first aspect, the embodiment of the invention provides the 6th kind of possible embodiments of first aspect, wherein After image in 2 D code to be identified progress gray processing processing, further includes:
Binary conversion treatment is carried out to gray processing treated image in 2 D code;The method of binary conversion treatment includes: histogram It is any in Two-peak method, P parametric method, maximum variance between clusters, maximum entropy threshold method and iterative method.
With reference to first aspect, the embodiment of the invention provides the 7th kind of possible embodiments of first aspect, wherein right Pretreated image in 2 D code is positioned, and is obtained target two-dimension code area, is specifically included:
Automatic coordinate setting is carried out using TransformROI VI function, obtains target two-dimension code area.
Second aspect, the embodiment of the present invention also provide a kind of two-dimension code recognition device, comprising:
Image capture module, for obtaining image in 2 D code to be identified;
Preprocessing module, for being pre-processed to image in 2 D code to be identified;
Locating module obtains target two-dimension code area for positioning to pretreated image in 2 D code;
Identification module obtains image in 2 D code to be identified for carrying out feature extraction and identification to target two-dimension code area Recognition result.
The third aspect, the embodiment of the present invention also provide a kind of two dimensional code identifying system, comprising: photographic device and server;
Installation is just like two-dimension code recognition device described in second aspect on server.
The embodiment of the present invention bring it is following the utility model has the advantages that
Two-dimensional code identification method provided in an embodiment of the present invention includes: to obtain image in 2 D code to be identified;To be identified two Dimension code image is pre-processed;Pretreated image in 2 D code is positioned, target two-dimension code area is obtained;To target two It ties up code region and carries out feature extraction and identification, obtain the recognition result of image in 2 D code to be identified.The embodiment of the present invention being capable of base In LabVIEW exploitation two dimensional code Machine Vision Inspecting System, by digital image processing method realize it is quick, efficient and it is low at This two-dimensional barcode information recognition, imaged by common camera, using soft decoding identify, fundamentally reduction barcode scanning at This.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of method flow diagram for two-dimensional code identification method that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram for another two-dimensional code identification method that the embodiment of the present invention one provides;
The schematic diagram of Image Acquisition in a kind of two-dimensional code identification method that Fig. 3 provides for the embodiment of the present invention one;
The schematic diagram of median filtering in a kind of two-dimensional code identification method that Fig. 4 provides for the embodiment of the present invention one;
Effect contrast figure in a kind of two-dimensional code identification method that Fig. 5 provides for the embodiment of the present invention one after median filtering;
Effect contrast figure in a kind of two-dimensional code identification method that Fig. 6 provides for the embodiment of the present invention one after binaryzation;
Schematic diagram is positioned in a kind of two-dimensional code identification method that Fig. 7 provides for the embodiment of the present invention one;
Fig. 8 is a kind of structural schematic diagram of two-dimension code recognition device provided by Embodiment 2 of the present invention;
Fig. 9 is a kind of structural schematic diagram for two dimensional code identifying system that the embodiment of the present invention three provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Existing industry barcode scanning equipment recognition rate is fast but expensive.Based on this, the embodiment of the present invention provides one kind two Code recognition methods, apparatus and system are tieed up, the two dimensional code Machine Vision Inspecting System that can be developed based on LabVIEW passes through number Image processing method realizes quick, efficient and inexpensive two-dimensional barcode information recognition, is imaged, is utilized by common camera Soft decoding identification, fundamentally reduces barcode scanning cost.
For convenient for understanding the present embodiment, first to a kind of two-dimensional code identification method disclosed in the embodiment of the present invention It describes in detail.
Embodiment one:
Shown in Figure 1 the embodiment of the invention provides a kind of two-dimensional code identification method, this method is based on LabVIEW What the two dimensional code Machine Vision Inspecting System of exploitation was realized, this method is performed in server end, before method execution, is needed The IMAQ Vision vision and motion module provided by LabVIEW, i.e. graphical programming language, finishing man-machine interaction interface, Port connection between the design of program chart algorithm and modules, guarantees that system operates normally.Two-dimensional code identification method is specific The following steps are included:
S11: image in 2 D code to be identified is obtained.
The step realizes that specific process includes following steps by the image capture module in server, ginseng As shown in Figure 2:
S111: receiving the operational order of user, and operational order is the instruction and serial ports selection instruction for enabling driving camera.
S112: according to operational order, driving camera is called from LabVIEW program panel, corresponding serial ports is selected to connect, Configuration driven file, to acquire two-dimensional code graphical information.
S113: real-time display is carried out to two-dimensional code graphical information, using the graphical information of display as two dimensional code figure to be identified Picture.
Above-mentioned according to operational order, driving camera is called from LabVIEW program panel, corresponding serial ports is selected to connect It connects, before configuration driven file, further includes step, image pick-up card is initialized.
When specific implementation, driving camera vi is called in LabVIEW program panel, corresponding serial ports is selected to connect, Configuration driven file.Image pick-up card initialization (img0) first is carried out before system operation, then carries out instruction triggers, acquisition figure letter Breath and real-time display image, finally close image pick-up card.One group of memory is established by IMAQ Create.vi in this course Space stores the graphical information of external acquirement as buffer area.Capture program structure is made of While circulation, therefore circulation is adopted The figure signal of collection can be covered in memory space by continually entering, and constitute the real-time display (Image Out) of figure.Image is adopted It is as shown in Figure 3 to collect program.
S12: image in 2 D code to be identified is pre-processed.
Can not there was only two dimensional code by the picture that camera is clapped, further comprise many other irrelevant informations, need at this time Image preprocessing eliminates in picture most garbage signals, the two dimensional code effective information that reservation system need to acquire.
Camera sensing device when acquiring image information using light as input/output signal, in this course without can It avoids that disturbance factor, such as noise, depth of exposure etc. can be generated.These disturbance factors will lead to image information and be mingled with coarse pixel, I.e. usually said noise.Typical salt-pepper noise would generally be generated during image in 2 D code acquisition, therefore acquires figure It needs to be filtered as after, to improve the precision of images.
Specifically, receiving the filter command of user;According to filter command, saved using the MATLAB script in LabVIEW Point Calling MATLAB carries out median filtering.
Median filter is a kind of Nonlinear Smoothing Filter, can eliminate in image isolate noise spot, and can produce compared with Few is fuzzy.Median filtering is carried out using the MATLAB script node Calling MATLAB in LabVIEW.Median filtering design As shown in Figure 4.
Median filtering function medfilt2 () is single channel filtering in Matlab, and the color image of system acquisition is threeway Road.Therefore it also needs that picture is first carried out gray processing processing I=rgb2gray (G) before Calling MATLAB is filtered.It is testing The salt-pepper noise that joined to original image 10% in program, Contrast on effect such as (a) in Fig. 5 after being handled with median filter, (b), (c), (d) are shown.
(a) it is original two dimensional code image, is (b) image in 2 D code of the salt-pepper noise of addition 10%, (c) for after gray processing Picture, be (d) image after median filtering, it is clear that from comparison diagram it can be seen that the figure after median filtering is more clear It is clear.
In order to further increase the clarity of image in 2 D code, reach the other requirement of technical grade, above-mentioned to two dimensional code figure After carrying out gray processing processing, then binary conversion treatment is carried out to it.
Binaryzation is image processing techniques more further than gray processing, and gray processing is will be in color image by processing The value of tri- pigment components of RGB is all equal, selects gray level in 256 (0~255) a palettes.And binaryzation is by image Upper pixel gray value is set as 0 or 255, that is, image is become to black and white tone completely.Because of image in 2 D code sheet Body is exactly to be made of a series of lattice of black and white, has respectively represented binary zero and 1 (0 represents white, and 1 represents black).Two Image in 2 D code can be become the bar code of only black and white in binaryzation by dimension code, then be converted into binary system according to analytic formula Information.This has just greatly saved memory space, and reduces the operand in later period.
Specific implementation process are as follows: IMAQ ImageToArray VI function is called in LabVIEW, function is after filtering The point of all pixels in figure is converted into two-dimensional array.The array is inputted into the double-deck FOR loop, cycle-index is by array Size determines, a threshold value is set in FOR loop, and the point greater than the threshold value exports 255, and the point less than the threshold value exports 0.This Sample can generate a new two-dimensional array, and element is only 0 or 255 in array.Finally recall IMAQ ArrayToImage VI function can convert binary image for two bit arrays.The key point of the process is the choosing of threshold value It takes, usually common method has in image binaryzation threshold value selection: 1. histogram Two-peak methods, 2.P parametric method, between 3. maximum kinds Variance method, 4. maximum entropy threshold methods, 5. iterative methods (are also best threshold method).
P parametric method be usually used in required target area in whole image proportion it is known that and acquisition image resolution ratio not The case where change.
1) it, finds out image histogram and is distributed P (t), t=0,1 ... 255.
2) threshold value, is calculated:
Fig. 6 is the figure that original gradation figure seeks threshold value binaryzation again by P parametric method, it can be seen that after binaryzation, is schemed Material particular is remarkably reinforced in shape, fundamentally improves visual quality, improves image definition.
After pre-processing by above-mentioned median filtering, gray processing and binaryzation, garbage can be effectively removed, is saved effective Signal simultaneously enhances effective information, improves the detection and reliability of system.Graphical information is maximally simplified, system is improved Operational efficiency and recognition speed.
S13: positioning pretreated image in 2 D code, obtains target two-dimension code area.
A most important ring to the positioning of two-dimension code area in whole figure, using be based on morphologic ROI positioning mode, In NI Vision vision module, calling IMAQ Construct ROI creation image is shown and corresponding tool, selects ROI work Tool.The content representative of ROI is a cluster data, the array formed including an integer array and a cluster.There are 4 in integer array Element, outlines the four edges coordinate of two dimensional code on the front panel, and each number of clusters group be by types of profiles, ROI type with And figure coordinate point composition.The region for needing to handle and position in entire picture is outlined with various figures, is referred to as felt emerging Interesting region ROI.In the present embodiment, two dimensional code region is area-of-interest, after image preprocessing, two dimensional code figure The gradient of picture, color become apparent with texture.Using TransformROI VI function can automatic coordinate setting, to complete The two dimensional code in target image is found by ROI positioning method, as shown in Figure 7.
S14: feature extraction and identification are carried out to target two-dimension code area, obtain the identification knot of image in 2 D code to be identified Fruit.
After obtaining target two-dimension code area, feature extraction is carried out to it, obtains final recognition result.
The embodiment of the present invention, by examining camera, image pick-up card, LabVIEW software and NI Vision machine vision Survey technology combines, and a kind of high-precision two-dimensional code identification method of technical grade is provided, using median filtering, gray processing, binaryzation Pretreated image is benchmark image, and the feature extraction of two dimensional code is determined with ROI positioning mode, and carries out final two dimensional code letter Breath identification.By test, this method scans bar code accuracy rate height, and recognition speed is fast, and low in cost, is using common camera Achievable profession barcode scanning functions of the equipments.Application value all with higher and dissemination in industrial application and social life.
Embodiment two:
The embodiment of the present invention also provides a kind of two-dimension code recognition device, shown in Figure 8, which includes: Image Acquisition Module 21, preprocessing module 22, locating module 23 and identification module 24.
Wherein, image capture module 21, for obtaining image in 2 D code to be identified;Preprocessing module 22 is known for treating Other image in 2 D code is pre-processed;Locating module 23 obtains target for positioning to pretreated image in 2 D code Two-dimension code area;Identification module 24 obtains two dimensional code to be identified for carrying out feature extraction and identification to target two-dimension code area The recognition result of image.
In two-dimension code recognition device provided by the embodiment of the present invention, including skill identical with aforementioned two-dimensional code identification method Therefore above-mentioned function equally may be implemented in art feature.The specific work process of modules is referring to above method reality in the present apparatus Example is applied, details are not described herein.
Embodiment three:
The embodiment of the present invention also provides a kind of two dimensional code identifying system, and shown in Figure 9, which includes: photographic device 31 and server 32.Two-dimension code recognition device 321 as described in embodiment two is installed on the server 32.The photographic device 31 It can be common camera, be also possible to more expensive industrial camera, be not specifically limited herein.
In two-dimension code recognition device provided by the embodiment of the present invention, including skill identical with aforementioned two-dimension code recognition device Therefore above-mentioned function equally may be implemented in art feature.The specific work process of modules is referring to above-mentioned apparatus reality in this system Example is applied, details are not described herein.
The computer program product of two-dimensional code identification method provided by the embodiment of the present invention, including storing processor can The computer readable storage medium of the non-volatile program code executed, before the instruction that said program code includes can be used for execution Method described in the embodiment of the method for face, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description And the specific work process of electronic equipment, it can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
The flow chart and block diagram in the drawings show multiple embodiment method and computer program products according to the present invention Architecture, function and operation in the cards.In this regard, each box in flowchart or block diagram can represent one A part of module, section or code, a part of the module, section or code include it is one or more for realizing The executable instruction of defined logic function.It should also be noted that in some implementations as replacements, function marked in the box It can also can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be substantially parallel Ground executes, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram And/or the combination of each box in flow chart and the box in block diagram and or flow chart, it can the function as defined in executing Can or the dedicated hardware based system of movement realize, or can come using a combination of dedicated hardware and computer instructions real It is existing.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of two-dimensional code identification method characterized by comprising
Obtain image in 2 D code to be identified;
The image in 2 D code to be identified is pre-processed;
The pretreated image in 2 D code is positioned, target two-dimension code area is obtained;
Feature extraction and identification are carried out to the target two-dimension code area, obtain the identification knot of the image in 2 D code to be identified Fruit.
2. being specifically included the method according to claim 1, wherein described obtain image in 2 D code to be identified:
The operational order of user is received, the operational order is the instruction and serial ports selection instruction for enabling driving camera;
According to the operational order, driving camera is called from LabVIEW program panel, corresponding serial ports is selected to connect, configuration File is driven, to acquire two-dimensional code graphical information;
And real-time display is carried out to the two-dimensional code graphical information, using the graphical information of the display as the two dimension to be identified Code image.
3. according to the method described in claim 2, it is characterized in that, described according to the operational order, from LabVIEW program Driving camera is called in panel, corresponding serial ports is selected to connect, before configuration driven file, further includes:
Image pick-up card is initialized.
4. according to the method in claim 2 or 3, which is characterized in that further include:
One group of memory space is established as buffer area by IMAQ Create.vi to store the image in 2 D code to be identified.
5. the method according to claim 1, wherein described locate the image in 2 D code to be identified in advance Reason, specifically includes:
Receive the filter command of user;
According to the filter command, median filtering is carried out using the MATLAB script node Calling MATLAB in LabVIEW.
6. according to the method described in claim 5, it is characterized in that, described according to the filter command, using in LabVIEW MATLAB script node Calling MATLAB carry out median filtering before, further includes:
Gray processing processing is carried out to the image in 2 D code to be identified.
7. according to the method described in claim 6, it is characterized in that, carrying out gray scale to the image in 2 D code to be identified described After change processing, further includes:
Binary conversion treatment is carried out to the gray processing treated image in 2 D code;The method of the binary conversion treatment includes: straight It is any in square figure Two-peak method, P parametric method, maximum variance between clusters, maximum entropy threshold method and iterative method.
8. the method according to claim 1, wherein described determine the pretreated image in 2 D code Position, obtains target two-dimension code area, specifically includes:
Automatic coordinate setting is carried out using TransformROI VI function, obtains the target two-dimension code area.
9. a kind of two-dimension code recognition device characterized by comprising
Image capture module, for obtaining image in 2 D code to be identified;
Preprocessing module, for being pre-processed to the image in 2 D code to be identified;
Locating module obtains target two-dimension code area for positioning to the pretreated image in 2 D code;
Identification module obtains the two dimensional code to be identified for carrying out feature extraction and identification to the target two-dimension code area The recognition result of image.
10. a kind of two dimensional code identifying system characterized by comprising photographic device and server;
Two-dimension code recognition device as claimed in claim 9 is installed on the server.
CN201810665147.0A 2018-06-25 2018-06-25 Two-dimensional code identification method, apparatus and system Pending CN108959998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810665147.0A CN108959998A (en) 2018-06-25 2018-06-25 Two-dimensional code identification method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810665147.0A CN108959998A (en) 2018-06-25 2018-06-25 Two-dimensional code identification method, apparatus and system

Publications (1)

Publication Number Publication Date
CN108959998A true CN108959998A (en) 2018-12-07

Family

ID=64486762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810665147.0A Pending CN108959998A (en) 2018-06-25 2018-06-25 Two-dimensional code identification method, apparatus and system

Country Status (1)

Country Link
CN (1) CN108959998A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109711223A (en) * 2018-12-28 2019-05-03 福州符号信息科技有限公司 A kind of promotion QR code decoding rate method and apparatus
CN109753838A (en) * 2018-12-12 2019-05-14 深圳市三宝创新智能有限公司 Two-dimensional code identification method, device, computer equipment and storage medium
CN109815763A (en) * 2019-01-04 2019-05-28 广州广电研究院有限公司 Detection method, device and the storage medium of two dimensional code
CN111242536A (en) * 2020-01-07 2020-06-05 中国民航大学 Intelligent management system and method for aircraft maintenance tool
CN111604909A (en) * 2020-06-24 2020-09-01 辽宁工业大学 Visual system of four-axis industrial stacking robot
CN112052702A (en) * 2020-08-10 2020-12-08 北京智通云联科技有限公司 Method and device for identifying two-dimensional code
CN116167394A (en) * 2023-02-21 2023-05-26 深圳牛图科技有限公司 Bar code recognition method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059524A1 (en) * 2012-08-23 2014-02-27 Hojin Kee Compile Time Execution
CN104809422A (en) * 2015-04-27 2015-07-29 江苏中科贯微自动化科技有限公司 QR code recognizing method based on image processing
CN104966101A (en) * 2015-06-17 2015-10-07 镇江苏仪德科技有限公司 Solar cell classification method based on LabVIEW
CN105046186A (en) * 2015-08-27 2015-11-11 北京恒华伟业科技股份有限公司 Two-dimensional code recognition method and device
CN105930854A (en) * 2016-04-19 2016-09-07 东华大学 Manipulator visual system
CN106597353A (en) * 2016-11-23 2017-04-26 中国计量大学 Machine vision-based automatic verification system for multipath hand-held digital multimeters
CN107545207A (en) * 2017-09-28 2018-01-05 云南电网有限责任公司电力科学研究院 DM two-dimensional code identification methods and device based on image procossing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059524A1 (en) * 2012-08-23 2014-02-27 Hojin Kee Compile Time Execution
CN104809422A (en) * 2015-04-27 2015-07-29 江苏中科贯微自动化科技有限公司 QR code recognizing method based on image processing
CN104966101A (en) * 2015-06-17 2015-10-07 镇江苏仪德科技有限公司 Solar cell classification method based on LabVIEW
CN105046186A (en) * 2015-08-27 2015-11-11 北京恒华伟业科技股份有限公司 Two-dimensional code recognition method and device
CN105930854A (en) * 2016-04-19 2016-09-07 东华大学 Manipulator visual system
CN106597353A (en) * 2016-11-23 2017-04-26 中国计量大学 Machine vision-based automatic verification system for multipath hand-held digital multimeters
CN107545207A (en) * 2017-09-28 2018-01-05 云南电网有限责任公司电力科学研究院 DM two-dimensional code identification methods and device based on image procossing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷振山: "《LabVIEW高级编程与虚拟仪器工程应用》", 31 December 2013, 中国铁道出版社 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753838A (en) * 2018-12-12 2019-05-14 深圳市三宝创新智能有限公司 Two-dimensional code identification method, device, computer equipment and storage medium
CN109711223A (en) * 2018-12-28 2019-05-03 福州符号信息科技有限公司 A kind of promotion QR code decoding rate method and apparatus
CN109815763A (en) * 2019-01-04 2019-05-28 广州广电研究院有限公司 Detection method, device and the storage medium of two dimensional code
CN111242536A (en) * 2020-01-07 2020-06-05 中国民航大学 Intelligent management system and method for aircraft maintenance tool
CN111604909A (en) * 2020-06-24 2020-09-01 辽宁工业大学 Visual system of four-axis industrial stacking robot
CN112052702A (en) * 2020-08-10 2020-12-08 北京智通云联科技有限公司 Method and device for identifying two-dimensional code
CN112052702B (en) * 2020-08-10 2023-12-19 北京智通云联科技有限公司 Method and device for identifying two-dimensional code
CN116167394A (en) * 2023-02-21 2023-05-26 深圳牛图科技有限公司 Bar code recognition method and system

Similar Documents

Publication Publication Date Title
CN108959998A (en) Two-dimensional code identification method, apparatus and system
Wang et al. UNFusion: A unified multi-scale densely connected network for infrared and visible image fusion
KR102220174B1 (en) Learning-data enhancement device for machine learning model and method for learning-data enhancement
CN108154105B (en) Underwater biological detection and identification method and device, server and terminal equipment
US6826311B2 (en) Hough transform supporting methods and arrangements
CN103946866A (en) Text detection using multi-layer connected components with histograms
CN104794479B (en) This Chinese detection method of natural scene picture based on the transformation of local stroke width
US9535928B2 (en) Combining information of different levels for content-based retrieval of digital pathology images
Sidhwa et al. Text extraction from bills and invoices
US20140056519A1 (en) Method, apparatus and system for segmenting an image in an image sequence
CN110598566A (en) Image processing method, device, terminal and computer readable storage medium
CN110176002A (en) A kind of the lesion detection method and terminal device of radioscopic image
CN111784675A (en) Method and device for processing article texture information, storage medium and electronic equipment
CN113011403B (en) Gesture recognition method, system, medium and device
CN113283431A (en) Intelligent method and system integrating deep learning and logic judgment
CN111507119B (en) Identification code recognition method, identification code recognition device, electronic equipment and computer readable storage medium
JP6630341B2 (en) Optical detection of symbols
WO2001008098A1 (en) Object extraction in images
CN113689412A (en) Thyroid image processing method and device, electronic equipment and storage medium
CN116306731A (en) Method and device for identifying bar codes, electronic equipment and storage medium
CN112861843A (en) Method and device for analyzing selection frame based on feature image recognition
Liu et al. Bar code recognition in complex scenes by camera phones
Arsirii et al. Architectural objects recognition technique in augmented reality technologies based on creating a specialized markers base
KR102557912B1 (en) Apparatus for Extracting Region of Interest Image and Robot Process Automation System Including The Same
CN107704819B (en) Action identification method and system and terminal equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207