Intelligent cigarette identification processing method

文档序号:1687260 发布日期:2020-01-03 浏览:10次 中文

阅读说明:本技术 条烟智能识别处理方法 (Intelligent cigarette identification processing method ) 是由 夏辉荣 夏赫 刘雁翔 于 2019-09-04 设计创作,主要内容包括:本发明揭示了一种条烟智能识别处理方法,包括如下步骤:将所述订单号和条烟码段发送至中继控制器;工控机解码出当前图像中存在的条烟的条码信息和分户盒的盒号信息,输出所述条烟的条码信息和分户盒的盒号信息至中继控制器;输出的所述条烟的条码信息和分户盒的盒号信息与所述订单号和条烟码段信息进行初步对比,确认格式是否正确;将所述条烟的条码信息和分户盒的盒号信息与所述条烟码段信息和订单号二次对比,确认信息是否正确。本发明适用于数据监控中继器,可对条烟进行条码识别,从而可精准的读取出条烟的顺序以及相应的型号,同时,分户盒可在条烟到达一定量或相应订单时,对其进行分隔,避免出错情况的发生,极大地提高良品率和精准度。(The invention discloses an intelligent identification processing method for a cigarette, which comprises the following steps: sending the order number and the cigarette code segment to a relay controller; the industrial personal computer decodes the bar code information of the cigarette and the box number information of the household box existing in the current image and outputs the bar code information of the cigarette and the box number information of the household box to the relay controller; the output bar code information of the cigarettes and the output box number information of the household boxes are preliminarily compared with the order number and the cigarette code segment information to determine whether the format is correct or not; and secondarily comparing the bar code information of the cigarette carton and the box number information of the household box with the code segment information of the cigarette carton and the order number to confirm whether the information is correct. The invention is suitable for the data monitoring repeater, can carry out bar code identification on the cigarettes, thereby accurately reading the sequence and the corresponding types of the cigarettes, and meanwhile, the individual box can separate the cigarettes when the cigarettes reach a certain amount or corresponding orders, thereby avoiding the occurrence of error conditions and greatly improving the yield and the accuracy.)

1. The intelligent cigarette carton identification processing method is characterized by comprising the following steps:

s1, the industrial personal computer receives the order number and the cigarette code segment, the order number and the cigarette code segment are imported into a local database, and meanwhile, the order number and the cigarette code segment are sent to the relay controller;

s2, acquiring images of cigarettes and household boxes in the target area by the image acquisition device and transmitting the images to the industrial personal computer, processing the current image by the industrial personal computer, identifying and decoding the bar code information of the cigarettes and the box number information of the household boxes in the current image, and outputting the bar code information of the cigarettes and the box number information of the household boxes to the relay controller after decoding is completed;

s3, the relay controller preliminarily compares the decoded bar code information of the cigarette and the box number information of the individual box with the order number and the cigarette code segment information imported into the local database to determine whether the format is correct, and if so, the method goes to step S4; if not, go to S6;

s4, secondarily comparing the bar code information of the cigarette with the bar code segment information of the cigarette, and confirming whether the information is correct, if so, entering S5; if not, go to S6; secondarily comparing the box number information of the household box with the order number to confirm whether the information is correct, if so, entering S5; if not, go to S6;

s5, coding the cigarette by the new bar code coding machine;

and S6, feeding back the feedback success information to the industrial personal computer, and sounding an alarm.

2. The intelligent cigarette carton recognition processing method according to claim 1, wherein the preliminary comparison in step S3 includes:

s31, judging whether the bar code information of the cigarette carton and the box number information of the individual box have recorded the information of filling the buffer area A/B on the relay controller, if so, entering S4; if not, the relay controller acquires whether at least one of the information of the current buffer area A/B is empty, if so, the step enters S32; if not, go to S6;

s32, filling the bar code information of the cigarette and the box number information of the individual box to a buffer area A/B on a relay controller, comparing the bar code information of the cigarette with the code segment information of the cigarette, and determining whether the format is correct, if so, entering S4; if not, go to S6; comparing the box number information of the household box with the order number to confirm whether the format is correct, if so, entering S4; if not, the process proceeds to S6.

3. The intelligent cigarette carton recognition processing method according to claim 1, wherein the secondary comparison in step S4 includes:

s41, judging the data type, determining that the information is the bar code information of the cigarette or the box number information of the household box, if the information is the bar code information of the cigarette, entering S42, and if the information is the box number information of the household box, entering S44;

s42, when the bar code information of the cigarette is the cigarette code segment information, adding 1 to the actual amount of the cigarette code segment information, and entering S43;

s43, storing the bar code information of the cigarette into a filling area, adding 1 to a pointer of the filling area, simultaneously feeding back successful feedback information to an industrial personal computer, and exiting the process;

s44, judging whether the box number information of the household box is the sending volume of the previous order or the sending volume of the current order, if so, entering S45, and if so, entering S48;

s45, judging whether the sending quantity of the last order is the same as the actual quantity received by the filling area, if so, entering S46; if not, go to S47;

s46, acquiring order information sequence number, sending amount and other information from the box number information of the household box, recording the information, and performing S43;

s47, returning the pointer of the filling area to the initial position of the previous order, feeding back error information to the industrial personal computer, requiring to resend all information of the order, and exiting the process;

s48, judging whether the sending quantity of the order is the same as the actual quantity received by the filling area, if so, entering S49; if not, go to S50;

s49, clearing the current order and the pointer of the filling area; storing the order into a filling area, feeding back success information to an industrial personal computer, and exiting the process;

and S50, the pointer of the filling area retreats to the initial position of the order, meanwhile, the industrial personal computer is fed back with error information, the industrial personal computer is required to resend all data information of the order, feed back the error information and quit the receiving process.

Technical Field

The invention relates to an intelligent cigarette identification processing method, in particular to an intelligent cigarette identification processing method.

Background

In the cigarette carton sorting link, errors can occur in the sorting process no matter a semi-automatic sorting line for manually feeding cigarettes or a full-automatic sorting line for automatically feeding cigarettes is adopted. Through statistical analysis, the sorting error of the cigarettes is mainly the following 3 conditions: the method comprises the following steps: the cigarette quantity on the sorting line is larger than the quantity ordered by the order; ② few: namely the number of cigarettes on the sorting line is less than the number ordered by the order; ③ staggered strips: the cigarette specification does not conform to the order requirement. When a plurality of problems and a few problems occur, the problems can be found only at the tail end of the sorting line, and the machine needs to be stopped for manual investigation after the problems are found, so that the sorting efficiency is seriously influenced; the wrong strip problem can not be found in the sorting and distribution links, and can only be found by retail customers after the wrong strip flows into the market, so that economic losses with different sizes are brought, and the customer satisfaction is influenced. These three errors are more likely to occur with systems that sort standard cigarettes inline with fine cigarettes.

Accurate coding is an important embodiment for meeting the requirements of the national bureau of documents. In 2013, the national tobacco monopoly issues a notice (national tobacco monopoly [ 2013 ] 281) about further strengthening the management and supervision of cigarette scanning codes by the national tobacco monopoly, and each provincial bureau is required to strengthen the management of the scanning codes, and the local bureau (company) is urged to strengthen the management and maintenance of the scanning codes and software and hardware, and a 32-bit cigarette code printing format is specified. The coding equipment is required to ensure accurate focusing, output power is reasonably adjusted according to factors such as packaging materials, sorting speed and the like, the whole coding operation mode is gradually eliminated, coding at two ends of cigarettes is avoided, the definition of cigarette carton codes is improved as much as possible, and coding errors are prevented. The quality of the code scanning is periodically checked in a spot mode, the identification rate of the cigarette bar code is listed as the evaluation content of a logistics distribution department, and the code scanning quality condition of the local and municipal bureau (company) is periodically reported.

At present, when the bar code is derived from a project, a cigarette piece is taken as a unit, the coding link does not know the order of the cigarette carton, so that the 32-bit code on the cigarette carton can only be accurately printed to a retail user, the cigarette carton cannot be accurately printed, the accurate matching between the cigarette carton and the code cannot be realized, and the coding accuracy of the cigarette carton is low.

Disclosure of Invention

The invention aims to overcome the defects in the prior art and provides an intelligent cigarette identification processing method.

The purpose of the invention is realized by the following technical scheme:

an intelligent identification processing method for a cigarette carton comprises the following steps:

s1, the industrial personal computer receives the order number and the cigarette code segment, the order number and the cigarette code segment are imported into a local database, and meanwhile, the order number and the cigarette code segment are sent to the relay controller;

s2, acquiring images of cigarettes and household boxes in the target area by the image acquisition device and transmitting the images to the industrial personal computer, processing the current image by the industrial personal computer, identifying and decoding the bar code information of the cigarettes and the box number information of the household boxes in the current image, and outputting the bar code information of the cigarettes and the box number information of the household boxes to the relay controller after decoding is completed;

s3, the relay controller preliminarily compares the decoded bar code information of the cigarette and the box number information of the individual box with the order number and the cigarette code segment information imported into the local database to determine whether the format is correct, and if so, the method goes to step S4; if not, go to S6;

s4, secondarily comparing the bar code information of the cigarette with the bar code segment information of the cigarette, and confirming whether the information is correct, if so, entering S5; if not, go to S6; secondarily comparing the box number information of the household box with the order number to confirm whether the information is correct, if so, entering S5; if not, go to S6;

s5, coding the cigarette by the new bar code coding machine;

and S6, feeding back the feedback success information to the industrial personal computer, and sounding an alarm.

Preferably, the preliminary comparison in step S3 includes:

s31, judging whether the bar code information of the cigarette carton and the box number information of the individual box have recorded the information of filling the buffer area A/B on the relay controller, if so, entering S4; if not, the relay controller acquires whether at least one of the information of the current buffer area A/B is empty, if so, the step enters S32; if not, go to S6;

s32, filling the bar code information of the cigarette and the box number information of the individual box to a buffer area A/B on a relay controller, comparing the bar code information of the cigarette with the code segment information of the cigarette, and determining whether the format is correct, if so, entering S4; if not, go to S6; comparing the box number information of the household box with the order number to confirm whether the format is correct, if so, entering S4; if not, the process proceeds to S6.

Preferably, the second comparison in step S4 includes:

s41, judging the data type, determining that the information is the bar code information of the cigarette or the box number information of the household box, if the information is the bar code information of the cigarette, entering S42, and if the information is the box number information of the household box, entering S44;

s42, when the bar code information of the cigarette is the cigarette code segment information, adding 1 to the actual amount of the cigarette code segment information, and entering S43;

s43, storing the bar code information of the cigarette into a filling area, adding 1 to a pointer of the filling area, simultaneously feeding back successful feedback information to an industrial personal computer, and exiting the process;

s44, judging whether the box number information of the household box is the sending volume of the previous order or the sending volume of the current order, if so, entering S45, and if so, entering S48;

s45, judging whether the sending quantity of the last order is the same as the actual quantity received by the filling area, if so, entering S46; if not, go to S47;

s46, acquiring order information sequence number, sending amount and other information from the box number information of the household box, recording the information, and performing S43;

s47, returning the pointer of the filling area to the initial position of the previous order, feeding back error information to the industrial personal computer, requiring to resend all information of the order, and exiting the process;

s48, judging whether the sending quantity of the order is the same as the actual quantity received by the filling area, if so, entering S49; if not, go to S50;

s49, clearing the current order and the pointer of the filling area; storing the order into a filling area, feeding back success information to an industrial personal computer, and exiting the process;

and S50, the pointer of the filling area retreats to the initial position of the order, meanwhile, the industrial personal computer is fed back with error information, the industrial personal computer is required to resend all data information of the order, feed back the error information and quit the receiving process.

The invention has the following beneficial effects: the cigarette carton sorting device is suitable for a data monitoring repeater and can perform bar code recognition on cigarette cartons, so that the sequence and the corresponding models of the cigarette cartons can be accurately read, meanwhile, the cigarette cartons can be separated when reaching a certain amount or corresponding orders, the error condition is avoided, and the yield and the precision are greatly improved.

Drawings

The technical scheme of the invention is further explained by combining the accompanying drawings as follows:

FIG. 1: the invention has a structure schematic diagram.

Detailed Description

The present invention will be described in detail below with reference to specific embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and structural, methodical, or functional changes that may be made by one of ordinary skill in the art in light of these embodiments are intended to be within the scope of the present invention.

The present invention is not limited to the above embodiments, and structural, methodological, or functional changes made by those skilled in the art according to the embodiments are included in the scope of the present invention.

In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.

In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.

The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.

As shown in fig. 1, the invention discloses an intelligent cigarette identification processing method, which comprises the following steps:

s1, the industrial personal computer receives the order number and the cigarette code segment, the order number and the cigarette code segment are imported into a local database, and meanwhile, the order number and the cigarette code segment are sent to the relay controller;

s2, acquiring images of cigarettes and household boxes in the target area by the image acquisition device and transmitting the images to the industrial personal computer, processing the current image by the industrial personal computer, identifying and decoding the bar code information of the cigarettes and the box number information of the household boxes in the current image, and outputting the bar code information of the cigarettes and the box number information of the household boxes to the relay controller after decoding is completed;

s3, the relay controller preliminarily compares the decoded bar code information of the cigarette and the box number information of the individual box with the order number and the cigarette code segment information imported into the local database to determine whether the format is correct, and if so, the method goes to step S4; if not, go to S6;

specifically, the preliminary comparison in step S3 includes:

s31, judging whether the bar code information of the cigarette carton and the box number information of the individual box have recorded the information of filling the buffer area A/B on the relay controller, if so, entering S4; if not, the relay controller acquires whether at least one of the information of the current buffer area A/B is empty, if so, the step enters S32; if not, go to S6;

s32, filling the bar code information of the cigarette and the box number information of the individual box to a buffer area A/B on a relay controller, comparing the bar code information of the cigarette with the code segment information of the cigarette, and determining whether the format is correct, if so, entering S4; if not, go to S6; comparing the box number information of the household box with the order number to confirm whether the format is correct, if so, entering S4; if not, the process proceeds to S6.

S4, secondarily comparing the bar code information of the cigarette with the bar code segment information of the cigarette, and confirming whether the information is correct, if so, entering S5; if not, go to S6; secondarily comparing the box number information of the household box with the order number to confirm whether the information is correct, if so, entering S5; if not, go to S6;

specifically, the secondary comparison in step S4 includes the following steps:

s41, judging the data type, determining that the information is the bar code information of the cigarette or the box number information of the household box, if the information is the bar code information of the cigarette, entering S42, and if the information is the box number information of the household box, entering S44;

s42, when the bar code information of the cigarette is the cigarette code segment information, adding 1 to the actual amount of the cigarette code segment information, and entering S43;

s43, storing the bar code information of the cigarette into a filling area, adding 1 to a pointer of the filling area, simultaneously feeding back successful feedback information to an industrial personal computer, and exiting the process;

s44, judging whether the box number information of the household box is the sending volume of the previous order or the sending volume of the current order, if so, entering S45, and if so, entering S48;

s45, judging whether the sending quantity of the last order is the same as the actual quantity received by the filling area, if so, entering S46; if not, go to S47;

s46, acquiring order information sequence number, sending amount and other information from the box number information of the household box, recording the information, and performing S43;

s47, returning the pointer of the filling area to the initial position of the previous order, feeding back error information to the industrial personal computer, requiring to resend all information of the order, and exiting the process;

s48, judging whether the sending quantity of the order is the same as the actual quantity received by the filling area, if so, entering S49; if not, go to S50;

s49, clearing the current order and the pointer of the filling area; storing the order into a filling area, feeding back success information to an industrial personal computer, and exiting the process;

and S50, the pointer of the filling area retreats to the initial position of the order, meanwhile, the industrial personal computer is fed back with error information, the industrial personal computer is required to resend all data information of the order, feed back the error information and quit the receiving process.

S5, coding the cigarette by the new bar code coding machine;

and S6, feeding back the feedback success information to the industrial personal computer, and sounding an alarm.

The invention is suitable for the data monitoring repeater, can carry out bar code identification on the cigarettes, thereby accurately reading the sequence and the corresponding types of the cigarettes, and meanwhile, the individual box can separate the cigarettes when the cigarettes reach a certain amount or corresponding orders, thereby avoiding the occurrence of error conditions and greatly improving the yield and the accuracy.

It should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should make the description as a whole, and the technical solutions in the embodiments can also be combined appropriately to form other embodiments understood by those skilled in the art.

The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种具有角度调节功能的防护型扫码器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!