CN108805129A - Tobacco laser code assists in identifying method, apparatus and tobacco laser code identification equipment - Google Patents

Tobacco laser code assists in identifying method, apparatus and tobacco laser code identification equipment Download PDF

Info

Publication number
CN108805129A
CN108805129A CN201710736882.1A CN201710736882A CN108805129A CN 108805129 A CN108805129 A CN 108805129A CN 201710736882 A CN201710736882 A CN 201710736882A CN 108805129 A CN108805129 A CN 108805129A
Authority
CN
China
Prior art keywords
laser code
tobacco
self
code
sequence number
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
CN201710736882.1A
Other languages
Chinese (zh)
Other versions
CN108805129B (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.)
Shenzhen Phenomenon Technology Co Ltd
Guiyang Office of Guizhou Tobacco Corp
Original Assignee
Shenzhen Phenomenon Technology Co Ltd
Guiyang Office of Guizhou Tobacco Corp
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 Shenzhen Phenomenon Technology Co Ltd, Guiyang Office of Guizhou Tobacco Corp filed Critical Shenzhen Phenomenon Technology Co Ltd
Priority to CN201710736882.1A priority Critical patent/CN108805129B/en
Publication of CN108805129A publication Critical patent/CN108805129A/en
Application granted granted Critical
Publication of CN108805129B publication Critical patent/CN108805129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Discrimination (AREA)

Abstract

The present invention discloses the laser code that grows tobacco and assists in identifying method, apparatus and tobacco laser code identification equipment.The tobacco laser code assists in identifying method and includes the following steps:S10, cigarette tobacco laser code self-defining character and the numeric sequence number be located between the number after the self-defining character and add dividing mark;S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark;S30, it identifies the numeric sequence number in described image by preset order, when identification is to the self-defining character position, using the dividing mark as initial position, identifies the number being located in the numeric sequence number after the self-defining character.It is simple to the identification of tobacco laser code accurate that the tobacco laser code of the present invention assists in identifying method, apparatus and tobacco laser code identification equipment, data processing amount is simplified, to the requirement in terms of recognition efficiency and accuracy when can meet needs high-volume identification tobacco laser code.

Description

Tobacco laser code assists in identifying method, apparatus and tobacco laser code identification equipment
Technical field
It grows tobacco the laser code side of assisting in identifying the present invention relates to tobacco rods cigarette Visual identification technology field more particularly to one Method, device and tobacco laser code identification equipment.
Background technology
According to countries tobacco monopoly system, the cigarette of cigarette retailing market circulation, it should obtain tobacco batch from locality in accordance with the law The tobacco company to license buys, and possession tobacco monopoly bureau is responsible for market surpervision in accordance with the law.For safeguard state interests, safeguard normal Cigarette management order, convenient for possession, tobacco monopoly bureau administrates on laws, State Tobacco Monopoly Bureau require various regions tobacco company it is necessary Laser printing " 32 code sections " on every cigarette of sale, this yard of section is made of numeral and letter, and carries specific information source, can The help law enfrocement official that has a monopoly in finds the source of every cigarette, and plays the role of assisting in identifying true, false smoke, is convenient for law-enforcing supervision pipe Reason.
All the time base sale monopoly inspector be all that code section is made a copy of using manual mode, due to tobacco package design with Material used is different, and laser code can be limited by the influence of the soft or hard quality and coating material of material, and people are difficult in conventional lighting sources It is lower accurately to be recognized.Hand-held cigarette is usually required, or is recognized with magnifying glass, or by cigarette angle of inclination and utilizes live light source Auxiliary identification, or even smear dust directly in bar code and the modes such as show by bar code.Not only difficulty is big for these artificial identifications, work Amount is big, and extremely inefficient, is easy error.
Recently, with the progress of image recognition technology, the cumbersome of laser code is manually entered to reduce, occurs some and passes through The technology of image recognition tobacco laser code, such as documents 1 (CN103605982A) disclose the 32 bar code acquisitions of a kind of cigarette System, including workbench are equipped with the transmission crawler belt for transmitting tested cigarette, the work of the transmission crawler belt side on workbench Make to be fixed with video camera and position sensor on platform, the video camera is electrically connected with image pick-up card;Described image capture card with Visual services device is electrically connected;The video camera is electrically connected with the position sensor.It is further fixed on light source on the transmission crawler belt, The light source is electrically connected with described image capture card.In addition it is also disclosed a kind of based on above-mentioned acquisition system identification 32 bar codes of cigarette Method, include mainly:1) position sensor triggering video camera is taken pictures, and obtains a cigarette bar code image;2) to above-mentioned plume code Image carries out gray-level correction and histogram equalization enhancing processing, then carries out medium filtering, swollen to enhancing treated image Swollen and corrosion noise reduction process;3) binary conversion treatment is carried out to the image after noise reduction process, is extracted using gradient differential process method Image border obtains the bianry image of image border interior zone;4) above-mentioned bianry image carries out x-axis upright projection Image segmentation processing, extracts single character, obtains 32 bit words and accords with dot matrix image;5) 32 bit words are accorded with using thick meshed feature Each independent single binaryzation character is divided into the grid cell being made of N number of grid in length and breadth in dot matrix image, calculates each Character pixels account for the ratio of the grid cell pixel in grid, and all proportions value is formed a line, and form N-dimensional feature vector, And single character therefrom is isolated in N-dimensional feature vector, obtain single character picture;6) feature is carried out to single character picture to carry It takes, obtains the identification character feature vector of single character picture;7) to forming 26 letters and 10 numbers totally 36 of 32 codes A character carries out thick meshed feature extraction, the feature vector after being extracted, and is stored in data by obtained feature vector is extracted In library, using the database as standard feature library;8) identification character feature vector is compared with standard feature library, finds identification The highest character type of similarity is as recognition result in character feature.
A kind of mobile platform tobacco laser code intelligent recognition side based on deep learning of documents 2 (CN104573688A) Method includes the following steps:Step 1) obtains tobacco laser code image, removes the inactive area of image peripheral, retains picture centre Rectangular area finally removes laser code figure then using combining big law and local threshold technique to carry out binaryzation to image The miscellaneous point as present in;Step 2) is corrected laser code image so that laser code character zone is in one and is put down with screen Capable rectangular area;Step 3), the position according to rectangular area carry out longitudinal Character segmentation and lateral Character segmentation, from And be single character picture by laser code image segmentation, complete the segmentation of laser code image character;Step 4), structure depth convolution god Through network, and using the depth convolutional neural networks of the laser code character training structure after segmentation, by trained neural network It is transplanted to mobile platform (being based on Android) client, tobacco laser code is known using the depth convolutional neural networks into line character Not;The tobacco laser code character recognized is sent to the service for having tobacco coding rule and production and sales index by step 5) Device, server inquires database, and judges the tobacco true and false according to tobacco laser code coding rule, and query result is returned to shifting Moving platform (Android platform) client.
Documents 3 (CN103607524A) disclose the recognition methods of 32 codes of a kind of cigarette, including:1) infrared identification fills The one-dimension code on scan stripes cigarette cigarette case is set, one-dimension code character string is sent back to by server, server data inventory by 3G network The correspondence for having one-dimension code and cigarette background color feature obtains a cigarette background color characteristic information by data base querying, Back on smart mobile phone;2) smart mobile phone is by carrying image capturing unit pick-up slip cigarette cigarette case image;3) mobile phone OCR software Denoising, slant correction are carried out to the image of acquisition automatically according to background color characteristic information and are filtered, high quality is obtained Digital picture;4) it selects, to rotating the moment characteristics with invariance as pattern feature, 32 code institutes to be found out in digital picture In region, traversal detection is carried out to a cigarette cigarette case image first, when certain block diagram as region detection go out more than 7 or more number with When alphabetical, then it is assumed that the block region is coding position;The coding position is set to the initial ranging section of linear search, is passed through The region of search is gradually reduced, near-optimization point is obtained, i.e., when 80% part of image-region is number and primary and secondary, extracts shaping 32 code images of cigarette;5) printed page analyses are carried out to 32 code images of cigarette, using connected domain analysis method by 32 code figures of cigarette It, will be neighbouring by the laterally distance of swimming of the fusion with half of character pitch as being decomposed into many neighbouring connected domain external matrix set Connected domain be combined into text fragments, then according to the fixed height of 32 codes and length and width ratio characteristic, remerge laterally adjacent Text fragments and longitudinally adjacent line of text, to distinguish text filed and typographical sequences;6) the text filed image of cutting, Text filed image is cut into line of text or text column, then isolates single word from obtained line of text or text column Symbol, obtains single character picture;7) feature extraction is carried out to single character picture, the identification character for obtaining single character picture is special Sign vector;8) totally 36 characters carry out moment characteristics extraction for 26 letters to 32 codes of composition and 10 numbers, after obtaining extraction Feature vector, this feature vector is stored in database, and using the database as standard feature library;9) character feature will be identified Vector is compared with standard feature library, finds and identifies that the highest character type of similarity is as a result in character feature vector;10) The result that step 9) obtains is beamed back background data base by 3G network and carries out 32 code matchings of a cigarette by smart mobile phone, if matching, Then this carton cigarette is genuine piece;Otherwise it is false smoke.
In the hand-held cigarette recognizer of documents 4 (CN103440492A), the identification to security code (i.e. laser code) Method is summarized as follows:Text based on adaptive size detection window positions security code character area, to ensure that detection window includes whole A character;Uneven illumination is solved the problems, such as using neural network Local threshold segmentation Bernsen algorithms;Pass through the character cutting that drips Algorithm realizes the segmentation to cohesive anti-fake code character, including finds cutting starting point, next step addressing strategies;Pass through character Link position etc.;The characteristics of for anti-fake code character, completes compressive features and thick meshed feature to anti-fake code character;Then Pass through the test to a large amount of specific sample images, validity of the verification Bernsen algorithms to security code character recognition.Wherein, right Character segmentation includes row and column both direction, and whether the segmentation of single character is compared with database and matched using size change over etc.. It is unintelligible that extreme is finally also printed to security code, it is defeated by hand by operator when character recognition module being caused not identify correctly Enter security code.
Known whole nation circulation cigarette product advise at least 1500 kinds, and size is different.The cigarette of each product rule has oneself uniqueness Package design pack selected paper material and background had nothing in common with each other, such as and for the aesthetic feeling of design:1) completely radium-shine Reflective copper coin glued membrane packaging:The cigarette pack of this product rule, selects copper coin paperboard, is gold stamping reflective due to packing with cigarette logo Coating, therefore high retroreflective feature is fully present in surface.2) local laser is reflective and is packed with Z-Correct bump mapping Z-correct:The perfume (or spice) of this product rule Cigarette is packed, and 280g or more art papers or the higher material of hardness is selected to make.In cigarette pack design, there is dark line at most bottom, part There is reflective Gold stamping coating technique.3) minute surface is packed with Z-Correct bump mapping Z-correct:The cigarette pack of this product rule, selects 280g or more copperplates Paper, entire package all bright in mirror surface, partially with other color paints or the Gold stamping coating technique with other colors.4) dumb light Intensive shading packaging:The cigarette pack shading design of this product rule, the mostly design based on the intensive figure of regularity.Part Cigarette logo has Z-Correct bump mapping Z-correct, and has Gold stamping coating technique.5) word and Graphics overlay on stip cigarette packing, word and figure It is superimposed and is not easy to identify.
Above-mentioned documents 1,2,3 and 4 although identifying the laser code of a cigarette all by the way of Image Acquisition, Since cigarette product rule are more, paper material used in the packaging under various product rule, there are larger differences for background, and because of actual production The case where same code different shape of the generations such as middle transmission speed, stamp power, production line difference, these can all give image recognition band Carry out larger difficulty.In terms of although documents 1,2,3 and 4 can solve the problems, such as image recognition accuracy to a certain extent, However these documents feature is each character of tobacco laser code to be identified.Due to this 32 laser In code character, customized 4 characters in each department can be letter, number, and majority is alphabetical (custom code), letter here Either capitalization, can also be that lowercase, wherein capitalization have 26, lowercase 26, and in practice The form of various letters is also distinguished larger, this causes image recognition processing process extremely complex, and operand is huge, while holding very much Error-prone, error probability is very big in this 4 characters, often increases a wrong identification newly, may result in identification error accumulation, this is anti- It is that the comparison of subsequent image recognition is upper more difficult, it is difficult to meet in actually investigating and prosecuting cigarette illegal circulation case, take into account It laser code recognition accuracy and puts on record when handling a case to the requirement in terms of time efficiency.
Invention content
The practical simple accurately tobacco of the laser code identification the technical problem to be solved is that, offer one grows tobacco of the present invention swashs Light code assists in identifying method and device.
As one aspect of the present invention, the present invention provides the laser code that grows tobacco and assists in identifying method, including following step Suddenly:S10, cigarette tobacco laser code self-defining character and after the numeric sequence number is located at the self-defining character Dividing mark is added between number;S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark; S30, the numeric sequence number in described image is identified by preset order, when identification is to the self-defining character position, with The dividing mark is initial position, identifies the number being located in the numeric sequence number after the self-defining character.
As another aspect of the present invention, grow tobacco laser code auxiliary recognition device the present invention also provides one, including:Segmentation Add module is marked, is located at for the self-defining character of the tobacco laser code in cigarette and the numeric sequence number described self-defined Dividing mark is added between number after character;Image collection module, for obtain include described cigarette tobacco laser code And the image of the dividing mark;Laser code identification module, for by the number in preset order identification described image Sequence number, using the dividing mark as initial position, identifies the Serial No. when identification is to the self-defining character position The number being located in number after the self-defining character.
As another aspect of the invention, one grows tobacco laser code auxiliary recognition device, including:Control unit, image are clapped Unit, laser code cutting element are taken the photograph, described control unit controls described image shooting unit and the work of laser code cutting element, Numeric sequence number and self-defining character two part difference position of the described control unit according to the tobacco laser code of cigarette, It controls the laser code cutting element and adds dividing mark between the numeric sequence number and self-defining character, described image is clapped Take the photograph a cigarette described in unit photographs includes the image of the tobacco laser code and the dividing mark.
As another aspect of the present invention, one grows tobacco laser code auxiliary recognition device, which is characterized in that including:Image Shooting unit, processor and memory, the processor is separately connected described image shooting unit and the memory, described Memory stores one section of computer program instructions that can be executed by the processor, and the processor calls to be deposited in the memory The computer program instructions of storage realize following functions:
S10, cigarette tobacco laser code self-defining character and the numeric sequence number be located at the self-defining character Dividing mark is added between number later;
S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark;
S30, the numeric sequence number in described image is identified by preset order, when identification to the self-defining character position When setting, using the dividing mark as initial position, the number being located in the numeric sequence number after the self-defining character is identified Word.
As the other aspects of the present invention, grow tobacco laser code identification equipment the present invention also provides one, the tobacco laser Code identification equipment includes apparatus body and the tobacco laser code auxiliary recognition device on the apparatus body, and the tobacco swashs Light code auxiliary recognition device is previously described tobacco laser code auxiliary recognition device.
The tobacco laser code of the present invention assists in identifying method, apparatus and tobacco laser code identification equipment, by laser code Self-defining character and numeric sequence number between add dividing mark so that take the image for including tobacco laser code of a cigarette In number of the numeric sequence number after self-defining character can be identified since dividing mark, exclude shape in self-defining character State changes the identification of various letter, and only identifies the number left, has evaded and has needed a large amount of different product rule, shape in the prior art The acquisition of the different tobacco laser code data of state, when needing to identify custom code (specific code section) in especially putting into practice, to making by oneself A large amount of acquisitions of the data of adopted code, this in different paper material, the identification of the laser code of background and morphological differences becomes Simply, identification error caused by can evading specific code section is cumulative, improves recognition accuracy, does not have to a variety of changes for considering letter Change, simplify data processing amount, can meet certain special circumstances such as tobacco is put on record under mass disposal to timeliness and accuracy Requirement.
Description of the drawings
Fig. 1 is that the tobacco laser code of embodiment of the present invention one assists in identifying the flow diagram of method.
Fig. 2 (a) is the image schematic diagram added to tobacco laser code after dividing mark.
Fig. 2 (b) is to be added to first to tobacco laser code and assist in identifying frame and second to assist in identifying the signal of the image after frame Figure.
Fig. 3 (a) is the structural schematic diagram of the tobacco laser code auxiliary recognition device of embodiment of the present invention two.
Fig. 3 (b) is the electrical block diagram of the tobacco laser code auxiliary recognition device of embodiment of the present invention two.
Fig. 4 is the structural schematic diagram of the tobacco laser code auxiliary recognition device of embodiment of the present invention three.
Fig. 5 is the overall structure diagram of the tobacco laser code identification equipment with tobacco laser code auxiliary recognition device.
Fig. 6 is the structural schematic diagram of a preferred embodiment of the image acquisition unit in Fig. 5.
Fig. 7 is the structural schematic diagram of another preferred embodiment of the image acquisition unit in Fig. 5.
Fig. 8 is the configuration schematic diagram of the image taking module of the image acquisition unit in Fig. 5.
Fig. 9 is the structural schematic diagram of the light source controlling mechanism in Fig. 5.
Specific implementation mode
The present invention is described in detail with reference to the accompanying drawings and examples.It should be noted that if do not conflicted, this hair Each feature in bright embodiment and embodiment can be combined with each other, within protection scope of the present invention.
Embodiment one
Fig. 1,2 (a) and 2 (b) are referred to, tobacco laser code provided by the invention assists in identifying method, and the tobacco swashs Light code includes numeric sequence number and self-defining character, and it includes following step that the first tobacco laser code, which assists in identifying method, Suddenly:
S10, cigarette tobacco laser code self-defining character and the numeric sequence number be located at the self-defining character Dividing mark is added between number later;
S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark;
S30, the numeric sequence number in described image is identified by preset order, when identification to the self-defining character position When setting, using the dividing mark as initial position, the number being located in the numeric sequence number after the self-defining character is identified Word.
The present invention tobacco laser code assist in identifying method, by laser code self-defining character and numeric sequence number it Between add dividing mark so that knowledge can be proceeded by from dividing mark by taking in the image including tobacco laser code of a cigarette Not, the letter being difficult in self-defining character is excluded, and only identifies the number left, has evaded and having needed in the prior art greatly The acquisition for measuring different product rule, the tobacco laser code data to come in every shape, needs to identify custom code (specific code in especially putting into practice Section) when, a large amount of acquisitions to the data of custom code, this in different paper material, the laser of background and morphological differences The identification of code becomes simple, and identification error caused by can evading specific code section is cumulative, improves recognition accuracy, does not have to consider word Female a variety of variations, simplify data processing amount, can meet certain special circumstances such as tobacco is put on record under mass disposal to timeliness And the requirement of accuracy.
Preferably, above-mentioned steps S30 further comprises:
S31, abscissa value range, the ordinate value range for obtaining tobacco laser code described in described image;
S32, abscissa value range and ordinate value range according to the tobacco laser code, to the tobacco laser code into Row first is divided, and the tobacco laser code is divided into the first laser code section and second laser code section of same size, wherein institute First laser code section is stated to be located above the second laser code section;The second laser code section includes self-defining character and the number The number being located in word sequence number after the self-defining character.First laser code section include be located in numeric sequence number it is described from Number before definition character.
S33, the dividing mark is from left to right begun look for the second laser code section, is marked when recognizing the segmentation It clocks, excludes the self-defining character before dividing mark;
S34, to each laser code of the first laser code section and the second laser code section using the dividing mark as Identify that each laser code after being located at the self-defining character in the numeric sequence number of initial position carries out second and divides, Each laser code is split;
Each laser code that S35, identification are split, forms the numeric sequence number in order.
Preferably, above-mentioned steps S10 further comprises:
S11, frame is assisted in identifying to tobacco laser code addition;Here by assisting in identifying frame in the addition of tobacco laser code Convenient for the tobacco laser code to be distinguished with surrounding image, it is convenient for directly extracting whole tobaccos in image procossing The image of laser code.Meanwhile it is above-mentioned assist in identifying frame can according to tobacco laser code the arrangement mode on stip cigarette packing box into Row scaling and rotation, assist in identifying within frame so that tobacco laser code is located at, to have the tobacco laser code image in shooting In tell tobacco laser code in time, this is also convenient for the correction process after identifying tobacco laser code.Can be by optical Mode either artificial crossed or is added using modes such as frames in kind.It is above-mentioned to assist in identifying frame rectangular frame-shaped.
S12, the first laser code section and described will be divided into positioned at the tobacco laser code assisted in identifying in frame Second laser code section assists in identifying frame, to second laser code section addition second to first laser code section addition first Assist in identifying frame;Preferably, first laser code section assists in identifying positioned at described first in frame, and the second laser code section is located at institute It states second to assist in identifying in frame, certainly in the case where that can realize the invention original idea of the present invention, first assists in identifying frame and second Assist in identifying frame and is not necessarily to include first laser code section, second laser code section completely.By to the tobacco laser on cigarette Code is categorized into first and assists in identifying frame and second assist in identifying in frame, and when image recognition can be handled parallel, and first is auxiliary It helps identification frame directly to carry out digital identification, and assists in identifying second and tell self-defining character and numeric sequence number in frame, from And dividing mark is added, it also allows for subsequently finding dividing mark, be then identified from left to right using dividing mark as starting point.
S13, the self-defining character in the second laser code section and the numeric sequence number are located at the self-defined word Add the dividing mark in part after symbol.Preferably, the dividing mark is luminous ray, or for positioned at described in shooting Shelter between the image capturing unit and tobacco laser code of tobacco laser code image is shooting the tobacco laser code image When, the shelter is linear in one between the self-defining character and digital serial number image of tobacco laser code, or is direct The solid line being plotted between the self-defining character and numeric sequence number of the tobacco laser code.
Correspondingly, above-mentioned steps S20 further comprises:
S21, it obtains described cigarette and includes tobacco laser code, first assist in identifying frame, second assist in identifying frame and segmentation The image of label, as initial pictures.
Preferably, it is revolved according to the reflectance lightness of the tobacco laser code and tobacco laser code position form Turn described first and assist in identifying frame to arbitrary specified angle, tobacco is identified quickly in order to assist in identifying frame by first Laser code and dividing mark.Preferably, the specified angle is a kind of in 90 °, 180 °, 270 ° or 360 °.
Preferably, the tobacco laser code assists in identifying method and further includes before step S10:Scan the stip cigarette packing Bar code on box, the product for obtaining described cigarette advise information.Here product rule information is primarily referred to as product specification information, including product Specification title, product members inventory, the information such as product members price and its summation, characterisitic parameter, photo-document.
Preferably, the tobacco laser code assists in identifying method and further includes before step S10:Judge the tobacco laser Whether the code value of code is effective;If the code value of the tobacco laser code is effective, enter the step S10;If the tobacco laser The code value of code is invalid, then records the code value information of the tobacco laser code.It is above-mentioned to judge whether tobacco laser code code value is effective Can be according to artificial cognition, digit that also can be according to tobacco laser code etc. judges whether code value is effective.
Preferably, the tobacco laser code assists in identifying method and further includes after step S30:S40, aligning step, school The code value of the tobacco laser code of the just described acquisition;S50, storing step, by the code value of the tobacco laser code after correction Information storage.Here the code value of correction tobacco laser code is mainly the deck watch that is shown by display unit to realize, will be clapped The recognition result for the image and tobacco laser code including tobacco laser code taken the photograph is compared by turn, can pass through same display screen Both in curtain after arrangement, manual synchronizing, it is also possible to which machine corrects.
As shown in Fig. 2 (a), tobacco laser code of the invention assists in identifying method, by the self-defined of tobacco laser code The number of character (letter " HZYC " for being located at tobacco laser code second row in figure) and numeric sequence number after the self-defining character Dividing mark (the i.e. word of second row is added between word (number " 451102101728 " for being located at tobacco laser code second row in figure) White vertical line between female " C " and digital " 4 ") so that taking in the image including tobacco laser code of a cigarette can be from dividing It cuts label and proceeds by identification, exclude the various letter of metamorphosis in self-defining character, and leave behind in numeric sequence number The number " 451102101728 " of second row, the two are in the number " 6061411029831947 " and numeric sequence number of previous row It is configured to the numeric sequence number of tobacco laser code in the present invention, above-mentioned numeric sequence number is that countries tobacco administrative department assigns only One yard, accurate tobacco laser code numerical value can be equally obtained, has evaded and has needed a large amount of different product rule, form each in the prior art The acquisition of different tobacco laser code data has especially been evaded and has needed to identify self-defining character (specific code section, i.e., second in practice Preceding four letters " HZYC " of row) when, a large amount of acquisitions to the letter of self-defining character.This in different paper material, the back of the body The identification of the laser code of scape and morphological differences becomes simple, and identification error caused by can evading specific code section is cumulative, improves Recognition accuracy does not have to a variety of variations for considering letter, simplifies data processing amount, it is vertical to meet certain special circumstances such as tobacco To the requirement of timeliness and accuracy under case mass disposal.
As shown in Fig. 2 (b), in a specific embodiment, the tobacco laser code of described cigarette includes first laser code section (i.e. the tobacco laser code " 6061411029831947 " of first row) and second laser code section (the i.e. tobacco laser code of second row " HZYC451102101728 "), the laser yardage phase of the laser yardage of the first laser code section and the second laser code section Together, all it is 16 respectively herein, the first laser code section is located above the second laser code section.
In addition, in being embodied at one, following manner realization may be used in above-mentioned dividing mark:Launch light to be formed Assisting in identifying on frame to described cigarette for rectangular frame shape, the tobacco laser code is marked, described to assist in identifying frame Surrounding the tobacco laser code.Here laser is preferably used, naturally it is also possible to be other and tobacco laser code background contrast Spend apparent visible light.That is the tobacco laser code " 6061411029831947 " of first row and second row in Fig. 2 (b) Tobacco laser code " HZYC451102101728 " is all located at the assisting in identifying in frame of rectangular frame shape.
Embodiment two
Fig. 3 (a) is referred to, is grown tobacco laser code auxiliary recognition device the present invention also provides one, including:
Dividing mark add module 1, the self-defining character for the tobacco laser code in cigarette and the numeric sequence number Dividing mark is added between number after the self-defining character;
Image collection module 2 includes the tobacco laser code of described cigarette and the image of the dividing mark for obtaining;
Laser code identification module 3, for by preset order identification described image in the numeric sequence number, when identification extremely When the self-defining character position, using the dividing mark as initial position, identify described in being located in the numeric sequence number certainly Number after definition character.
Above-mentioned laser code identification module 3 further comprises:
Coordinate range value acquiring unit, for obtaining the abscissa value range of tobacco laser code described in described image, indulging Coordinate range value;
First cutting unit, for the abscissa value range and ordinate value range according to the tobacco laser code, to institute It states tobacco laser code and carries out the first segmentation, the tobacco laser code is divided into the first laser code section of same size and second and is swashed Light code section, wherein the first laser code section is located above the second laser code section;The second laser code section includes making by oneself The number being located in adopted character and the numeric sequence number after the self-defining character, first laser code section includes Serial No. The number being located in number before the self-defining character;
Self-defining character rejected unit is marked for from left to right beginning look for the segmentation to the second laser code section Note excludes the self-defining character before dividing mark when recognizing the dividing mark;
Second cutting unit is used for each laser code of the first laser code section and the second laser code section with described Dividing mark as identification initial position the numeric sequence number in be located at the self-defining character after each laser code into Second of segmentation of row, each laser code is split;
Laser code recognition unit, the whole laser code split for identification form the digital sequence in order Row number.
Preferably, above-mentioned dividing mark add module 1 further comprises:
Assist in identifying frame adding device, for assisting in identifying frame to tobacco laser code addition;Here by tobacco Laser code addition assists in identifying frame convenient for the tobacco laser code to be distinguished with surrounding image, just in image procossing In the image for directly extracting whole tobacco laser codes.Meanwhile the above-mentioned frame adding device that assists in identifying can be according to tobacco laser code The arrangement mode control on stip cigarette packing box assist in identifying frame and zoom in and out and rotate, to there is the tobacco to swash in shooting Tobacco laser code is told in time in light code image, this is also convenient for the correction process after identifying tobacco laser code.
Laser code section assists in identifying frame adding device, for that will be located at the tobacco laser code assisted in identifying in frame It is divided into the first laser code section and the second laser code section, frame is assisted in identifying to first laser code section addition first, Frame is assisted in identifying to second laser code section addition second;Known by being categorized into the first auxiliary to the tobacco laser code on cigarette Other frame and second assist in identifying in frame, when image recognition can be handled parallel, and first assists in identifying frame directly into line number Word identifies, while also allowing for assisting in identifying second and telling self-defining character and numeric sequence number in frame, to add segmentation Label, convenient for subsequently finding dividing mark, is then identified using dividing mark as starting point from left to right.
Dividing mark adding device is used for the self-defining character in the second laser code section and the numeric sequence number Add the dividing mark in part after the self-defining character.
Preferably, above-mentioned image collection module 2 further comprises:
Image acquisition unit, for obtain described cigarette include tobacco laser code, first assist in identifying frame, second auxiliary know The image of other frame and dividing mark.
Fig. 3 (b) is referred to, the present invention is on the basis of the tobacco laser code auxiliary recognition device of earlier figures 3 (a) into traveling one Step deformation, becomes corresponding hardware configuration to realize, provides one and grows tobacco laser code auxiliary recognition device, including:Control unit 102, image capturing unit 101, display unit 103, laser code cutting element 104, described control unit 102 control described image Shooting unit 101, display unit 103 and laser code cutting element 104 work.Cigarette of the described control unit 102 according to cigarette Numeric sequence number and self-defining character two parts difference position of careless laser code, control the laser code cutting element 104 add dividing mark between the numeric sequence number and self-defining character.Here preferably in the tobacco laser code of cigarette Self-defining character and the numeric sequence number be located between the number after the self-defining character and add dividing mark.This Outside, as extension, can also all add dividing mark in the both sides of self-defining character, so as in image recognition, can according to point The direct tripping self-defining character of label is cut, without knowing the coordinate range information of self-defining character, is come according to dividing mark position Realize the identification to numeric sequence number.What described image shooting unit 101 shot described cigarette includes the tobacco laser code with And the image of the dividing mark.The display unit 103 is shown including the tobacco laser code and the dividing mark Image.All it is number in addition to self-defining character in above-mentioned tobacco laser code, and these numbers are all that countries tobacco office system is united One assignment, it may be said that at being numeric sequence number, only self-defining character is voluntarily arranged by various regions tobacco office, can be letter (upper case or lower case) can also be number, can also be letter, number combination, and actual conditions various regions are typically all with letter, example Such as GYYC, indicate that Kweiyang tobacco, layc indicate six peace tobaccos.In current 32 tobacco laser codes, it is usually located at second row First 4 are above-mentioned self-defining character.
Continuing with referring to Fig. 2 (a), tobacco laser code auxiliary recognition device of the invention, by tobacco laser code from Definition character (letter " HZYC " for being located at tobacco laser code second row in figure) and number (are located at tobacco laser code second row in figure Number " 451102101728 ") between addition dividing mark (i.e. the letter " C " of second row and number " 4 " between white erect Line) so that identification can be proceeded by from dividing mark by taking in the image including tobacco laser code of a cigarette, exclude word Mother, and the number " 6061411029831947 " of previous row and the number " 451102101728 " of second row are left behind, the two is It is configured to the numeric sequence number of tobacco laser code in the present invention, has evaded and needed a large amount of different product rule, form each in the prior art The acquisition of different tobacco laser code data has especially been evaded and has needed to identify self-defining character (specific code section, i.e., second in practice Preceding four letters " HZYC " of row) when, a large amount of acquisitions to the data of self-defining character.This in different paper material, the back of the body The identification of the laser code of scape and morphological differences becomes simple, and identification error caused by can evading specific code section is cumulative, improves Recognition accuracy does not have to a variety of variations for considering letter, simplifies data processing amount, it is vertical to meet certain special circumstances such as tobacco To the requirement of timeliness and accuracy under case mass disposal.
In a specific embodiment, the tobacco laser code of described cigarette includes first laser code section (the i.e. cigarette of first row Careless laser code " 6061411029831947 ") and second laser code section (the i.e. tobacco laser code of second row " HZYC451102101728 "), the laser yardage phase of the laser yardage of the first laser code section and the second laser code section Together, all it is 16 respectively herein, the first laser code section is located above the second laser code section.
The tobacco laser code auxiliary recognition device includes assisting in identifying frame addition component 105, described control unit foundation Assist in identifying described in the tobacco laser code position control of described cigarette frame addition component 105 launch light formed it is rectangular Assisting in identifying on frame to described cigarette for frame shape, the tobacco laser code is marked, and the frame that assists in identifying is surrounding The tobacco laser code.Here laser is preferably used, naturally it is also possible to be other apparent with the background contrasts of tobacco laser code Visible light.That is the tobacco of the tobacco laser code " 6061411029831947 " of first row and second row swashs in Fig. 2 (b) Light code " HZYC451102101728 " is all located at the assisting in identifying in frame of rectangular frame shape.
Preferably, assist in identifying frame addition component 105 to be set in described image shooting unit 101.
Preferably, the frame addition component 105 that assists in identifying assists in identifying frame addition mechanism and the second auxiliary including first It identifies that frame adds mechanism, is divided into the camera both sides of described image shooting unit.
It is added in square for the first laser code section continuing with referring to Fig. 2 (b), described first assists in identifying frame addition mechanism The first of shape assists in identifying frame (the rectangular white box for surrounding " 6061411029831947 " in figure), and described second is auxiliary Help identification frame addition mechanism be the second laser code section add rectangular second assist in identifying frame (in figure will The rectangular white box that " HZYC451102101728 " is surrounded).Specifically, described first assists in identifying frame addition mechanism hair It projects laser and assists in identifying frame for the first laser code section adds rectangular frame-shaped first, described second, which assists in identifying frame, adds Add mechanism to launch laser and assists in identifying frame for the second laser code section adds rectangular frame-shaped second.Can certainly be The other and significantly other luminous rays of tobacco laser code background color difference.
Preferably, described second assist in identifying that frame addition mechanism further includes corresponding second laser code section setting second Slider box addition element launches laser and forms rectangular box-like slider box, and second slider box adds element along described second The first bit digital from left to right of laser code section starts, and each of the second laser code section is added to successively by certain sequential In bit digital.
Preferably, described first assist in identifying that frame addition mechanism further includes corresponding first laser code section setting first Slider box adds element, and first slider box addition element launches laser and forms rectangular box-like slider box, along described the The first bit digital from left to right of one laser code section starts, and the every of the first laser code section is added to successively by certain sequential On one-bit digital.Here rectangular frame shape size is adapted with Digital size.
Preferably, the tobacco laser code cutting element includes laser emission section, and the laser emission section transmitting is linear to swash Light forms the dividing mark between the numeric sequence number and self-defining character of the tobacco laser code.
In a specific embodiment, tobacco laser code auxiliary recognition device of the invention can assist in identifying frame with first With second assist in identifying collimation mark remember it is good after, assist in identifying the frame 1/4 position setting segmentation before second row from left to right according to second Label, in this way, self-defining character (four letters " HZYC " i.e. before second row) and post laser code section (i.e. second row can be separated Number " 451102101728 ").
In addition, the dividing mark of the present invention can also use manual setting, i.e., operator is after seeing a cigarette laser code, hand The dynamic laser code cutting element 104 that controls adds dividing mark between the numeric sequence number and self-defining character, pays attention to Here dividing mark can control the laser code cutting element 104 directly between numeric sequence number and self-defining character Physical identification is added, such as the laser code cutting element 104 directly draws a line or the laser code cutting element 104 spatially directly stretch out a shelter so that when image capturing unit shoots tobacco laser code image, in numeric sequence number It is formed between self-defining character there are one the apparent dividing mark of picture contrast, by numeric sequence number and self-defining character point It isolates, can also be that dividing mark is marked using light, numeric sequence number and self-defined is preferably radiated at using light Between character, the beauty of stip cigarette packing box is not interfered in this way, and after shooting is imaged, second row initial identification position is to divide Mark position, in this way, having evaded the inconvenient specific code section of sampling, namely the letter " HZYC " without identifying form of diverse;Only need Identify follow-up 12 bit digital character, identification error caused by so can also evading specific code section is cumulative, and it is accurate to improve identification True rate.
In the actual work for differentiating genuine-fake cigarette by tobacco laser code, head is found first by adding dividing mark Then character finds subsequent 12 bit digital character by slider box, is convenient for the identification to tobacco laser code in this way, is not only promoted Accuracy rate and tobacco laser code recognition efficiency is greatly improved, in being related to the case that the tobacco true and false is put on record, ensures to conclude a case The timeliness of part processing reduces market harm.
In addition, in compared to the prior art for the identification of each laser code character, the head of second row tobacco laser code The positioning of character is very crucial, thus sampling quantity is also very big, if self-defining character section sampling quantity is inadequate, initial character gets the wrong sow by the ear Difference, this error will be with sliding gradually accumulation, the final identifications for influencing successive character.
In other embodiments of the invention, the tobacco laser code auxiliary recognition device further includes apparatus body, described Image capturing unit 101, display unit 103, laser code cutting element 104 and assist in identifying frame addition component 105 be set to institute State on the plummer of apparatus body, can with pre-fixed laser code cutting element 104, image capturing unit 101, assist in identifying The position relationship that imaging is shot between frame addition 105 three of component can foundation when shooting the tobacco laser code image of a cigarette Shining and assisting in identifying frame addition the luminous of component 105 for laser code cutting element 104 is radiated in carrier-table surface, operator On mobile cigarette to carrier-table surface, by the way of manual-alignment or the mode of unartificial alignment, image such as may be used The mode of image procossing identifies that second assists in identifying frame from left to right before second row at 1/4 position after shooting unit shooting Add dividing mark so that cigarette is moved to the position of the luminous irradiation of laser code cutting element 104 and assists in identifying frame addition The position of the luminous irradiation of component 105 will manually be placed in tobacco laser code and assist in identifying in frame, while adjusting tobacco laser code The luminous position of cutting element and luminous intensity are by the number of the self-defining character and numeric sequence number of the tobacco laser code of second row Word separates.
Preferably, the tobacco laser code auxiliary recognition device further includes light supply apparatus, and the light supply apparatus is located at described Between image capturing unit and the plummer, the tobacco laser code figure for shooting described cigarette for described image shooting unit As providing floor light.
In addition, in other variant embodiments, whole tobacco laser codes can also be identified, at this moment of the invention swashs The dividing mark that light code cutting element 104 adds tobacco laser code also can act, by front self-defining character and number After number in sequence number is separated, before self-defining character letter (self-defining character it is all letter when) and acquisition Alphabet data library in letter be compared, in numeric sequence number number with acquisition numerical data base number compared It is right, it is not only more acurrate, and also data processing amount is also few.
Embodiment three
Fig. 4 is referred to, is grown tobacco laser code auxiliary recognition device the present invention also provides one, including:Image capturing unit 7, Processor 8 and memory 9, the processor 8 are separately connected described image shooting unit 7 and the memory 9, the storage Device 9 stores one section of computer program instructions that can be executed by the processor, and the processor 8 calls to be deposited in the memory 9 The computer program instructions of storage realize following functions:
S10, cigarette tobacco laser code self-defining character and the numeric sequence number be located at the self-defining character Dividing mark is added between number later;
S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark;
S30, the numeric sequence number in described image is identified by preset order, when identification to the self-defining character position When setting, using the dividing mark as initial position, the number being located in the numeric sequence number after the self-defining character is identified Word.
The present invention tobacco laser code auxiliary recognition device, by laser code self-defining character and numeric sequence number it Between add dividing mark so that knowledge can be proceeded by from dividing mark by taking in the image including tobacco laser code of a cigarette Not, the letter being difficult in self-defining character is excluded, and only identifies the number left, has evaded and having needed in the prior art greatly The acquisition for measuring different product rule, the tobacco laser code data to come in every shape, needs to identify custom code (specific code in especially putting into practice Section) when, a large amount of acquisitions to the data of custom code, this in different paper material, the laser of background and morphological differences The identification of code becomes simple, and identification error caused by can evading specific code section is cumulative, improves recognition accuracy, does not have to consider word Female a variety of variations, simplify data processing amount, can meet certain special circumstances such as tobacco is put on record under mass disposal to timeliness And the requirement of accuracy.
Preferably, above-mentioned steps S30 further comprises:
S31, abscissa value range, the ordinate value range for obtaining tobacco laser code described in described image;
S32, abscissa value range and ordinate value range according to the tobacco laser code, to the tobacco laser code into Row first is divided, and the tobacco laser code is divided into the first laser code section and second laser code section of same size, wherein institute First laser code section is stated to be located above the second laser code section;The second laser code section includes self-defining character and the number The number being located in word sequence number after the self-defining character, first laser code section include be located in numeric sequence number it is described from Number before definition character;
S33, the dividing mark is from left to right begun look for the second laser code section, is marked when recognizing the segmentation It clocks, excludes the self-defining character before dividing mark;
S34, to each laser code of the first laser code section and the second laser code section using the dividing mark as Identify that each laser code after being located at the self-defining character in the numeric sequence number of initial position carries out second and divides, Each laser code is split;
The whole laser code that S35, identification are split, forms the numeric sequence number in order.
Preferably, above-mentioned steps S10 further comprises:
S11, frame is assisted in identifying to tobacco laser code addition;
S12, the first laser code section and described will be divided into positioned at the tobacco laser code assisted in identifying in frame Second laser code section assists in identifying frame, to second laser code section addition second to first laser code section addition first Assist in identifying frame;
S13, the self-defining character in the second laser code section and the numeric sequence number are located at the self-defined word Add the dividing mark in part after symbol.
Preferably, above-mentioned steps S20 further comprises:
S21, it obtains described cigarette and includes tobacco laser code, first assist in identifying frame, second assist in identifying frame and segmentation The image of label.
Embodiment four
Fig. 5 to Fig. 9 is referred to, the present invention provides a kind of tobacco laser code auxiliary knowledge including the above embodiment two to three The tobacco laser code identification equipment of other device.The tobacco laser code identification equipment includes:Apparatus body 10 and be set to apparatus body 10 tobacco laser code auxiliary recognition device.Apparatus body 10 includes the cigarette plummer 11 at the top of apparatus body, described cigarette Plummer 11 is equipped with a cigarette storing apparatus 12, three axis control lever 15, operation panel 13 and light source adjusting key 14.Above-mentioned cigarette is held 11 top of microscope carrier is a flat surface, and the operation console for tilting specified angle is equipped in one side, is equipped in the operation panel 13 of operation console Three axes control bar 15 and light source adjusting key 14.Certainly it is easy to operate, the operation panel 13 or touch-control display panel, display Operation interface shows respective fictional button to realize that the relevant operation to tobacco laser identification equipment is controlled by operation interface. In addition, the processor 8 and memory 9 of tobacco laser code auxiliary recognition device are arranged inside apparatus body, which calls The program instruction stored in memory 9 works to control entire tobacco laser code identification equipment, including tobacco laser code auxiliary is known Other device.
Three different zones on cigarette plummer 11 are respectively used to setting cigarette storing apparatus 12, image acquisition unit 300 and display unit 20.Here cigarette storing apparatus 12 is used to accommodate the cigarette for holding up placement (at this point, cigarette is on vertical The distance of opposite end is more than the distance of remaining opposite end).It is obtained close to the position of cigarette storing apparatus 12 setting image Unit 300, the image taking module 323 of image acquisition unit 300 is taken to be located at the surface of a cigarette storing apparatus 12.It is held in a cigarette Place above-mentioned display unit 20 in other regions on microscope carrier 11.In a preferred embodiment, display unit 20 and operation panel 13 In the same side of apparatus body 10, the recognition result convenient for watching display unit 20 in operation is shown.
Above-mentioned image acquisition unit 300 specifically includes:First elevating mechanism 310 and the second elevating mechanism 320, image taking Module 323 and light source module group 312.Above-mentioned first elevating mechanism 310 includes first shell 314, in first shell 314 First Linear Driving module 311 and the first supporting part (refer specifically to loading plate 312b here.The light source module group 312 includes being set to Light source controlling mechanism, the first strip source 313 on loading plate 312b and the second strip source 313 '.In light source module group 312 Top is equipped with the second elevating mechanism 320, and 320 side of the second elevating mechanism, which is provided with image taking module 323, (or is image Shooting unit).Second elevating mechanism 320 is used to adjust image taking module 323 in the vertical upper phase between light source module group 312 It adjusts the distance, also includes second shell 324 and the second Linear Driving module 321 in second shell 324.Above-mentioned first lifting First Linear Driving module 311 of mechanism 310 includes that common lift drive mechanism, the drivings such as first motor 311a and lead screw are held Support plate 312b is moved up perpendicular, to make the light source module group, second elevating mechanism and described image shoot module 323 entirety move up preset distance perpendicular.The structure of the second Linear Driving module 321 and the first Linear Driving module 311 Structure it is similar, and including the common lift drive mechanism such as the second motor and lead screw.In light source module group 312 and the first elevator Structure 310 contacts side and is equipped with floor 312a, and floor 312a is similar in a rectangular trapezoid.
In addition, indoors or situations such as burning sun when shooting tobacco laser code image, to avoid indoor light or ambient light Line irradiation impacts the clarity for shooting tobacco laser code image, it will usually one be arranged above image taking module 323 A barn door 325, the barn door 325 is at least one equipped with adsorption magnet part 325a, when in use, only need to be directly placed at figure As shooting module 323 top, by magnetic absorption to image taking module 323, playing interception, be conducive to take compared with Good tobacco laser code image ensure that the effect of tobacco laser code identification.
In a specific embodiment, above-mentioned image taking module 323 specifically includes:Camera and protection shell 322 with And barn door 325.Protection shell 322 is connected with the second elevating mechanism 320.The camera is fixed at the protection shell 322 Interior, pick-up lens is downwards and opposite with cigarette storing apparatus 12.Protection shell 322 include:Cover board 322f, connecting plate 322a, after Riser 322b, camera carrying platform 322c, front vertical plate 322d, reinforcing strip 322e, slot 322g, camera fixing piece 323a with And guard circle 323b.Cover board 322f is covered in above camera, with camera carrying platform 322c, front vertical plate 322d, back vertical plate 322b forms confined space.Wherein, cover board 322f is inserted into back vertical plate 322b by slot 322g.Connecting plate 322a connections second Elevating mechanism 320.The front end of camera carrying platform 322c is equipped with camera mounting hole, fixing camera.Back vertical plate 322b is solid Determine onto connecting plate 322a.Barn door 325 is placed on cover board 322f.The present invention image taking module have it is easy to adjust, make Used time can shoot the distance of module according to the tobacco laser code range image of cigarette, integrally-regulated by the first elevating mechanism 310 Then the relative displacement of image taking module when image taking module shoots tobacco laser code image, swashs according to shooting tobacco The quality of light code image adjusts the relative displacement between image taking module and light source module group by the second elevating mechanism 320 Relationship, this compared to the prior art in, when acquiring tobacco laser code image, need respectively by adjust image taking module and Light source module group there are two variables for, it is simple many and more efficient.In addition, being adsorbed onto figure for ease of barn door 325 As shooting module 323, it can will protect shell can be by being made including iron, cobalt, nickel or its alloy material, this ensure that hiding The stability of tabula rasa 325, while also allowing for mounting and dismounting.
As shown in figure 9, in a specific embodiment, above-mentioned light source module group 312 includes fixed plate 312c, the first adjustment portion Part, the second regulating member, the first strip source 313, the second strip source 313 '.Wherein, fixed plate 312c, the first adjustment portion Part, the second regulating member constitute above-mentioned light source controlling mechanism.The light-emitting surface of first strip source 313 and second bar shaped The light-emitting surface of light source 313 ' is oppositely arranged.First strip source 313 is connected to described solid by first regulating member Fixed board 312c, second strip source 313 ' are connected to the fixed plate 312c by second regulating member.Described One regulating member adjusts first strip source 313 and rotates the first predetermined angular, and second regulating member adjusts described the Two strip sources 313 ' rotate the second predetermined angular.Here the first predetermined angular and the second predetermined angular can it is identical can not also It is identical, it in the present embodiment, ranging from 0 ° to 90 ° of the first predetermined angular and the second predetermined angular, certainly can also be according to real Border situation is arranged within the scope of 0 ° to 360 °.First regulating member includes:First driving mechanism 313a, the first coupling piece 313b, First switching fixing piece 313c, described one end first coupling piece 313b connect the first driving mechanism 313a, and described first The shaft member 313b other ends connection it is described first switching the one end fixing piece (313c, 313d), it is described first switching fixing piece it is another End connects the first strip source 313e.Second regulating member includes the second driving mechanism 313a ', the second coupling piece 313b ', the second switching fixing piece (313c ', 313d ').Described one end second coupling piece 313b ' connects second driving mechanism 313a ', the second coupling piece 313b ' other ends connection second switching fixing piece one end, the second switching fixing piece The other end connect the second strip source 313e '.In a preferred embodiment, above-mentioned first switching fixing piece includes point The first adapter 313c set and the first fixing piece 313d, first connector 313c connections the first coupling piece 313b are opened up, The first fixing piece 313d is for fixing the first strip source 313e;The second switching fixing piece includes the second switching Part 313c ' and the second fixing piece 313d ', second connector 313c ' connections the second coupling piece 313b ', the second fixing piece 313d ' is for fixing the second strip source 313e '.Wherein the first strip source and the second strip source respectively include being in battle array The plurality of LEDs lamp of column distribution.In addition, for ease of the power supply routing electric wires and tobacco of the first strip source and the second strip source The aesthetics of laser code identification equipment is respectively equipped with logical wire casing on the first switching fixing piece and the second switching fixing piece, powers Electric wire is connected to power supply by logical wire casing.Preferably, above-mentioned logical wire casing is U-lag.Also above-mentioned one end first coupling piece 313b With the driving axis connection of the first driving mechanism, the switching axis connection of the other end and first adapter, in the first driving mechanism Driving under, adjust the first strip source 313e and rotate a predetermined angular.Above-mentioned second coupling piece 313b ' is also similar, one The driving axis connection at end and the second driving mechanism, the switching axis connection of the other end and the second connector.
Preferably, the tobacco laser code identification equipment further includes LED coaxial light source (not shown)s, and the LED is same Axis light source (not shown) is set to above the apparatus body and positioned at described image shooting module 323 and the apparatus body Between.
Method and device is assisted in identifying to tobacco laser code provided by the present invention above, is described in detail, herein In apply specific case principle and implementation of the present invention are described, the explanation of above example is only intended to sides Assistant solves the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is only the present invention's Embodiment is not intended to limit the scope of the invention, every using made by description of the invention and accompanying drawing content etc. Structure or equivalent process transformation are imitated, is applied directly or indirectly in other relevant technical fields, and is similarly included in the present invention Scope of patent protection in.It should not be construed as limiting the invention.

Claims (13)

1. the laser code that grows tobacco assists in identifying method, which is characterized in that include the following steps:
S10, cigarette tobacco laser code self-defining character and after the numeric sequence number is located at the self-defining character Number between add dividing mark;
S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark;
S30, the numeric sequence number in described image is identified by preset order, when identification to the self-defining character position When, using the dividing mark as initial position, identify the number being located in the numeric sequence number after the self-defining character.
2. tobacco laser code according to claim 1 assists in identifying method, which is characterized in that above-mentioned steps S30 is further Including:
S31, abscissa value range, the ordinate value range for obtaining tobacco laser code described in described image;
S32, abscissa value range and ordinate value range according to the tobacco laser code carry out the to the tobacco laser code The tobacco laser code, is divided into the first laser code section and second laser code section of same size by one segmentation, wherein described the One laser code section is located above the second laser code section;The second laser code section includes self-defining character and the digital sequence The number being located in row number after the self-defining character, first laser code section include in numeric sequence number positioned at described self-defined Number before character;
S33, the dividing mark is from left to right begun look for the second laser code section, when recognizing the dividing mark When, exclude the self-defining character before dividing mark;
S34, to each laser code of the first laser code section and the second laser code section using the dividing mark as identification Second of the segmentation of each laser code progress being located in the numeric sequence number of initial position after the self-defining character, will be each Laser code is split;
The whole laser code that S35, identification are split, forms the numeric sequence number in order.
3. tobacco laser code according to claim 2 assists in identifying method, which is characterized in that above-mentioned steps S10 is further Including:
S11, frame is assisted in identifying to tobacco laser code addition;
S12, the first laser code section and described second will be divided into positioned at the tobacco laser code assisted in identifying in frame Laser code section assists in identifying frame to first laser code section addition first, to the second auxiliary of second laser code section addition Identify frame;
S13, the self-defining character in the second laser code section and the numeric sequence number be located at the self-defining character it Add the dividing mark in part afterwards.
4. tobacco laser code according to claim 3 assists in identifying method, which is characterized in that above-mentioned steps S20 is further Including:
S21, it obtains described cigarette and includes tobacco laser code, first assist in identifying frame, second assist in identifying frame and dividing mark Image.
5. tobacco laser code according to claim 1 assists in identifying method, which is characterized in that the dividing mark is visible Light, or shooting the cigarette between the image capturing unit and tobacco laser code for shooting the tobacco laser code image In linear shelter or to paint between the self-defining character and numeric sequence number of tobacco laser code when careless laser code image Make the solid line between self-defining character and numeric sequence number.
6. tobacco laser code according to claim 1 assists in identifying method, which is characterized in that the tobacco laser code auxiliary Recognition methods further includes before step S10:Judge whether the code value of the tobacco laser code is effective;If the tobacco laser code Code value it is effective, then enter the step S10;If the code value of the tobacco laser code is invalid, the tobacco laser is recorded The code value information of code.
7. tobacco laser code according to claim 1 assists in identifying method, which is characterized in that the tobacco laser code auxiliary Recognition methods further includes after step S30:S40, aligning step correct the code value of the tobacco laser code of the acquisition; S50, storing step, by the code value information storage of the tobacco laser code after correction.
8. the laser code that grows tobacco auxiliary recognition device, which is characterized in that including:
Dividing mark add module is located at institute for the self-defining character of the tobacco laser code in cigarette and the numeric sequence number It states and adds dividing mark between the number after self-defining character;
Image collection module includes the tobacco laser code of described cigarette and the image of the dividing mark for obtaining;
Laser code identification module, for by the numeric sequence number in preset order identification described image, when identification is to described When self-defining character position, using the dividing mark as initial position, identify in the numeric sequence number positioned at described self-defined Number after character.
9. tobacco laser code auxiliary recognition device according to claim 8, which is characterized in that the laser code identification module Including:
Coordinate range value acquiring unit, abscissa value range, ordinate for obtaining tobacco laser code described in described image Value range;
First cutting unit, for the abscissa value range and ordinate value range according to the tobacco laser code, to the cigarette Careless laser code carries out the first segmentation, and the tobacco laser code is divided into the first laser code section and second laser code of same size Section, wherein the first laser code section is located above the second laser code section;The second laser code section includes self-defined word The number being located in symbol and the numeric sequence number after the self-defining character, first laser code section includes in numeric sequence number Number before the self-defining character;
Self-defining character rejected unit, for from left to right beginning look for the dividing mark to the second laser code section, when When recognizing the dividing mark, the self-defining character before dividing mark is excluded;
Second cutting unit is used for each laser code of the first laser code section and the second laser code section with the segmentation Label is as each laser code progress the after being located at the self-defining character in the numeric sequence number of identification initial position Secondary splitting splits each laser code;
Laser code recognition unit, the whole laser code split for identification, forms the numeric sequence number in order.
10. tobacco laser code auxiliary recognition device according to claim 9, which is characterized in that
Assist in identifying frame adding device, for assisting in identifying frame to tobacco laser code addition;
Laser code section assists in identifying frame adding device, described assist in identifying the tobacco laser code in frame for will be located at and is divided into The first laser code section and the second laser code section assist in identifying frame, to institute to first laser code section addition first It states second laser code section addition second and assists in identifying frame;
Dividing mark adding device, in the second laser code section self-defining character and the numeric sequence number be located at Add the dividing mark in part after the self-defining character.
11. the laser code that grows tobacco auxiliary recognition device, which is characterized in that including:Control unit, image capturing unit, laser Code cutting element, described control unit controls described image shooting unit and the work of laser code cutting element, the control are single Numeric sequence number and self-defining character two part difference position of the member according to the tobacco laser code of cigarette, control is described to swash Light code cutting element adds dividing mark, the shooting of described image shooting unit between the numeric sequence number and self-defining character The image including the tobacco laser code and the dividing mark of described cigarette.
12. the laser code that grows tobacco auxiliary recognition device, which is characterized in that including:Image capturing unit, processor and storage Device, the processor are separately connected described image shooting unit and the memory, and the memory stores one section can be described The computer program instructions that processor executes, the processor call the computer program instructions stored in the memory to realize Following functions:
S10, cigarette tobacco laser code self-defining character and after the numeric sequence number is located at the self-defining character Number between add dividing mark;
S20, acquisition include the tobacco laser code of described cigarette and the image of the dividing mark;
S30, the numeric sequence number in described image is identified by preset order, when identification to the self-defining character position When, using the dividing mark as initial position, identify the number being located in the numeric sequence number after the self-defining character.
13. the laser code that grows tobacco identification equipment, which is characterized in that the tobacco laser code identification equipment include apparatus body and Tobacco laser code auxiliary recognition device on the apparatus body, the tobacco laser code auxiliary recognition device are wanted for right Seek 8 to 12 any one of them tobacco laser code auxiliary recognition devices.
CN201710736882.1A 2017-08-24 2017-08-24 Tobacco laser code auxiliary identification method and device and tobacco laser code identification equipment Active CN108805129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710736882.1A CN108805129B (en) 2017-08-24 2017-08-24 Tobacco laser code auxiliary identification method and device and tobacco laser code identification equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710736882.1A CN108805129B (en) 2017-08-24 2017-08-24 Tobacco laser code auxiliary identification method and device and tobacco laser code identification equipment

Publications (2)

Publication Number Publication Date
CN108805129A true CN108805129A (en) 2018-11-13
CN108805129B CN108805129B (en) 2020-03-13

Family

ID=64094492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710736882.1A Active CN108805129B (en) 2017-08-24 2017-08-24 Tobacco laser code auxiliary identification method and device and tobacco laser code identification equipment

Country Status (1)

Country Link
CN (1) CN108805129B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112836779A (en) * 2021-02-04 2021-05-25 北京戴纳实验科技有限公司 One-dimensional code format and printing device thereof
CN113051952A (en) * 2021-04-02 2021-06-29 浙江玖重科技有限公司 Tobacco identification and management platform

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605197A (en) * 2008-06-13 2009-12-16 王震 High-speed multi-lens scanner
CN101718522A (en) * 2009-12-25 2010-06-02 华南农业大学 Non-contact type nondestructive detecting device for plant growth and detecting method thereof
CN101923741A (en) * 2010-08-11 2010-12-22 西安理工大学 Paper currency number identification method based on currency detector
CN102024144A (en) * 2010-11-23 2011-04-20 上海海事大学 Container number identification method
CN102096807A (en) * 2010-12-24 2011-06-15 张忠义 License plate location method based on ternary image
CN102238323A (en) * 2010-04-30 2011-11-09 本田技研工业株式会社 Imaging apparatus, imaging method, and imaging program
CN103607524A (en) * 2013-10-18 2014-02-26 湖南省烟草公司长沙市公司 Cigarette case 32-bit code image acquisition and processing device and cigarette case 32-bit code identification method
CN104463157A (en) * 2014-11-07 2015-03-25 李宇 Electronic identification method for handwritten characters
CN105956510A (en) * 2016-04-29 2016-09-21 苏州佳世达光电有限公司 Bar code processing method and bar code scanning device
CN107003118A (en) * 2014-12-02 2017-08-01 三菱电机株式会社 Displacement transducer, displacement detector and displacement detecting method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605197A (en) * 2008-06-13 2009-12-16 王震 High-speed multi-lens scanner
CN101718522A (en) * 2009-12-25 2010-06-02 华南农业大学 Non-contact type nondestructive detecting device for plant growth and detecting method thereof
CN102238323A (en) * 2010-04-30 2011-11-09 本田技研工业株式会社 Imaging apparatus, imaging method, and imaging program
CN101923741A (en) * 2010-08-11 2010-12-22 西安理工大学 Paper currency number identification method based on currency detector
CN102024144A (en) * 2010-11-23 2011-04-20 上海海事大学 Container number identification method
CN102096807A (en) * 2010-12-24 2011-06-15 张忠义 License plate location method based on ternary image
CN103607524A (en) * 2013-10-18 2014-02-26 湖南省烟草公司长沙市公司 Cigarette case 32-bit code image acquisition and processing device and cigarette case 32-bit code identification method
CN104463157A (en) * 2014-11-07 2015-03-25 李宇 Electronic identification method for handwritten characters
CN107003118A (en) * 2014-12-02 2017-08-01 三菱电机株式会社 Displacement transducer, displacement detector and displacement detecting method
CN105956510A (en) * 2016-04-29 2016-09-21 苏州佳世达光电有限公司 Bar code processing method and bar code scanning device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程刚喜: "嵌入式32位激光防伪码识别系统的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112836779A (en) * 2021-02-04 2021-05-25 北京戴纳实验科技有限公司 One-dimensional code format and printing device thereof
CN112836779B (en) * 2021-02-04 2023-10-31 北京戴纳实验科技有限公司 Printing device of one-dimensional code format
CN113051952A (en) * 2021-04-02 2021-06-29 浙江玖重科技有限公司 Tobacco identification and management platform

Also Published As

Publication number Publication date
CN108805129B (en) 2020-03-13

Similar Documents

Publication Publication Date Title
CN110008944B (en) OCR recognition method and device based on template matching and storage medium
CN104145276B (en) Enhanced contrast for object detection and characterization by optical imaging
CN105874472B (en) Multiband bio-identification camera system with iris color identification
Gross Face databases
CN103221975B (en) Three-dimensional imaging system
CN109983501A (en) The method and relevant augmented reality method of a kind of hidden image or the object in video
CN106529512B (en) Living body faces verification method and device
JPH05501184A (en) Method and apparatus for changing the content of continuous images
CN101371272A (en) Makeup simulation system, makeup simulation device, makeup simulation method and makeup simulation program
US9286685B2 (en) System and method for creating a virtual backdrop
CA3026545C (en) Information search system and information search program
CN109919010A (en) Image processing method and device
HUE026753T2 (en) Method and portable device for recognising barcodes
CN107085737A (en) Coding/decoding system, generation method and the device of Quick Response Code, recognition methods and device
GB2378342A (en) Selecting images based upon the similarity between images
CN108805129A (en) Tobacco laser code assists in identifying method, apparatus and tobacco laser code identification equipment
CN109255282A (en) A kind of biometric discrimination method, device and system
CN110008943A (en) A kind of image processing method and device, a kind of calculating equipment and storage medium
JP2006309405A (en) Meter recognition system, meter recognition method, and meter recognition program
CN106599010B (en) Graph code searching method
WO2018185574A1 (en) Apparatus and method for documents and/or personal identities recognition and validation
CN116074618B (en) Intelligent photographing service method, system and storage medium for preventing portrait information leakage
CN112764530A (en) Ammunition identification method based on touch handle and augmented reality glasses
CN208654812U (en) Tobacco laser code assists in identifying equipment
CN108564072A (en) Iris image Enhancement Method, device, equipment and medium based on multi task process

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