CN104309866B - Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule - Google Patents

Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule Download PDF

Info

Publication number
CN104309866B
CN104309866B CN201410548673.0A CN201410548673A CN104309866B CN 104309866 B CN104309866 B CN 104309866B CN 201410548673 A CN201410548673 A CN 201410548673A CN 104309866 B CN104309866 B CN 104309866B
Authority
CN
China
Prior art keywords
cigarette
projection
curve
crest
image
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.)
Active
Application number
CN201410548673.0A
Other languages
Chinese (zh)
Other versions
CN104309866A (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.)
CETC 41 Institute
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201410548673.0A priority Critical patent/CN104309866B/en
Publication of CN104309866A publication Critical patent/CN104309866A/en
Application granted granted Critical
Publication of CN104309866B publication Critical patent/CN104309866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65BMACHINES, APPARATUS OR DEVICES FOR, OR METHODS OF, PACKAGING ARTICLES OR MATERIALS; UNPACKING
    • B65B19/00Packaging rod-shaped or tubular articles susceptible to damage by abrasion or pressure, e.g. cigarettes, cigars, macaroni, spaghetti, drinking straws or welding electrodes
    • B65B19/28Control devices for cigarette or cigar packaging machines

Abstract

The invention discloses a kind of cigarette automatic positioning method for cigarette short detection process, is accurately positioned to the cigarette in cigarette-packaging machine diaphragm capsule, determines the detection zone of each cigarette, so as to ensure the accuracy of follow-up cigarette short detection.The method makes full use of pipe tobacco and the obvious feature of obbbin color contrast, employs orientation projection method and the small differences of local take statistics to form obvious characteristic by certain direction.Interference in drop shadow curve is removed by special filtering process, traversal is searched the particular location of each crest, finally determines each cigarette corresponding region, realize being automatically positioned for cigarette.

Description

Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule
Technical field
The present invention relates to cigarette localization method field, the cigarette side of being automatically positioned in specifically a kind of cigarette-packaging machine diaphragm capsule Method.
Background technology
During cigarette processes, in order to ensure the cigarette quality of final cigarette bag, need cigarette is installed on baling line Void-end detection device is propped up, for detecting that cigarette is with the presence or absence of defects such as bears in diaphragm capsule.With not being broken into for machine vision technique It is ripe, increasingly it is widely applied based on the cigarette short detection mode of machine vision technique.
In the cigarette short detection means based on machine vision technique, needs are detected respectively to each cigarette, and are examined The first step of survey is just to determine the detection zone of each cigarette in diaphragm capsule, i.e., the corresponding interest region of each cigarette.Conventional at present Method is the detection zone for manually determining each cigarette, i.e. the detection zone preset parameter of previously given each cigarette before detection.But It is, in actual detection, to be affected by factors such as machine vibrations, the position of each cigarette can not possibly unalterable, cigarette or many Or I haven't seen you for ages, and presence offsets, fixed detection zone can not meet needs.Additionally, the cigarette in diaphragm capsule has different arrangement modes, Main flow has 776 and 767 two kind of cigarette arrangement mode at present, if cigarette arrangement mode changes, then be accomplished by resetting Each cigarette detection zone, it is comparatively laborious.Therefore it is badly in need of a kind of intelligent, automatic cigarette localization method, accurately determines each cigarette Detection zone.
The content of the invention
It is an object of the invention to provide cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule, to solve prior art The problem of presence, it is ensured that the accuracy of each cigarette detection zone in cigarette short detection process.
In order to achieve the above object, the technical solution adopted in the present invention is:
Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule, it is characterised in that:First imageing sensor is gathered Cigarette pipe tobacco end view drawing picture to be checked carry out gray processing process, level is carried out as projection properties using image pixel gray value then Projection, obtains floor projection curve, and in floor projection curve, often the projection value of smoke evacuation boundary can relative other areas of surrounding Domain is larger, forms crest, carries out special filtering process to floor projection curve, obtain several section independences corresponding with cigarette row Waveform, searches the particular location for determining each section of waveform medium wave peak, carries out segmentation to gray level image according to crest location and be obtained often The corresponding image of smoke evacuation;
In the same manner, the often row cigarette image using image pixel gray value as projection properties respectively to being partitioned into carries out Vertical Square To projection, obtain upright projection curve, in upright projection curve, the projection value of every cigarette boundary can relative surrounding other Region is larger, forms crest, carries out special filtering process to upright projection curve, obtain several section independences corresponding with cigarette number Waveform, searches the particular location for determining each section of waveform medium wave peak, and carrying out segmentation to gray level image according to crest location can be somebody's turn to do The each cigarette included in smoke evacuation, the final accurate location for determining each cigarette in diaphragm capsule.
The invention has the beneficial effects as follows:
The utilization level of present invention innovation, vertical projection method and special filtering process are splitting each cigarette in cigarette bag diaphragm capsule , reach cigarette it is quick, be accurately automatically positioned, so as to ensure the accuracy of each cigarette detection zone setting, largely Improve the degree of accuracy of later stage cigarette short detection.The method is also extended to simultaneously in similar target positioning, with extensive Application space.
Description of the drawings
Fig. 1 is 767 arrangement cigarette pipe tobacco end face original images in the specific embodiment of the invention.
Fig. 2 is the cigarette pipe tobacco end view drawing picture after gray processing process in the specific embodiment of the invention.
Fig. 3 is to gray level image floor projection and to carry out the result figure of filtering process in the specific embodiment of the invention, its In:
Fig. 3 a are that floor projection filters pre-treatment effect figure;Fig. 3 b are floor projection filtering post processing design sketch.
Fig. 4 arranges the result figure split to press to cigarette according to floor projection result in the specific embodiment of the invention.
Fig. 5 be in the specific embodiment of the invention to most down smoke-discharging image upright projection and the result figure that is filtered, Wherein:
Fig. 5 a are that upright projection filters pre-treatment effect figure;Fig. 5 b are upright projection filtering post processing design sketch.
Fig. 6 is the result figure in the specific embodiment of the invention according to upright projection result to most down smoke-discharging segmentation.
Fig. 7 is the final segmentation result figure of all cigarettes in the specific embodiment of the invention.
Specific embodiment
Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule, first the cigarette cigarette to be checked to imageing sensor collection Silk end view drawing picture carries out gray processing process, then carries out floor projection as projection properties using image pixel gray value, obtains water Flat drop shadow curve, in floor projection curve, often relative other regions of surrounding of projection value meeting of smoke evacuation boundary are larger, formed Crest, carries out special filtering process to floor projection curve, obtains several section independent waveforms corresponding with cigarette row, searches true The particular location of fixed each section of waveform medium wave peak, segmentation is carried out to gray level image according to crest location, and that every smoke evacuation is obtained is corresponding Image;
In the same manner, the often row cigarette image using image pixel gray value as projection properties respectively to being partitioned into carries out Vertical Square To projection, obtain upright projection curve, in upright projection curve, the projection value of every cigarette boundary can relative surrounding other Region is larger, forms crest, carries out special filtering process to upright projection curve, obtain several section independences corresponding with cigarette number Waveform, searches the particular location for determining each section of waveform medium wave peak, and carrying out segmentation to gray level image according to crest location can be somebody's turn to do The each cigarette included in smoke evacuation, the final accurate location for determining each cigarette in diaphragm capsule.
Fig. 1 is 767 arrangement cigarette pipe tobacco end face original images of imageing sensor collection.It can be seen that cigarette The three rows arrangement in closely rule in the diaphragm capsule, substantially (pipe tobacco is brown, obbbin table for pipe tobacco and the contrast of cigarette obbbin surface color Face is white).In the boundary of each cigarette, can all there is the obbbin of sub-fraction white in the region.The present invention realizes cigarette certainly The detailed process of dynamic positioning is as follows:
1st, gray processing process is carried out to cigarette pipe tobacco end view drawing picture, the image after process is as shown in Figure 2.
2nd, the projection of horizontal direction, computing formula are carried out with the gray value of pixel in gray level image as projection properties to image It is as follows:
Wherein A [i] is drop shadow curve, gray values of the S (i, j) for the pixel on the i-th row, jth row coordinate on gray level image. Drop shadow curve can clearly find out that drop shadow curve presents four crest shapes, and each crest as shown in Figure 3 a, from figure Correspond to the boundary of every smoke evacuation.As long as every smoke evacuation is partitioned into by the position for determining these crests.
3rd, special filtering process is carried out to drop shadow curve, in order to search for and determine the particular location of each crest.Fig. 3 b It is that the result after processing is filtered to drop shadow curve, it can be seen that curve only remains four independent smooth waveforms.It is concrete to process Method is:The smothing filtering with COEFFICIENT K is carried out to drop shadow curve A [i], each data in drop shadow curve is traveled through, for index Number for n data, its smooth value computing formula is as follows:
Wherein Length is drop shadow curve's data amount check, using the smooth value calculating method of above-mentioned formula, to drop shadow curve A [i] carry out respectively slightly with severe smothing filtering, obtain slight filter curve B1 [i] and severe filter curve B2 [i].Wherein, The COEFFICIENT K value of slight filtering is less, and typically between 3~10, the COEFFICIENT K value of severe smothing filtering is larger, and 20~50 are not Deng occurrence can be set according to actual conditions.Slight smooth effect is that drop shadow curve is slightly filtered, its result and source Curve is more or less the same.The smooth effect of severe is averaged in local, drop shadow curve's local elongation can be obtained shallower.Finally will B1 [i] and B2 [i] subtracts each other and obtains curve C [i] to negative value clearing, includes four independent smooth waveforms, such as scheme in the curve Shown in 3b.
4th, in the drop shadow curve after special filtering process, determine the particular location of each crest.Method is as follows:
A) curve C [i] is traveled through, obtains its maximum C_Max, the value is highest crest value on curve, record maximum Corresponding call numbers C_index of C_Max
B) determine starting and the final position of C_Max correspondence waveforms, increase toward call number by initial position of C_index respectively Greatly with the direction traversal for reducing, both of which terminates when condition C [i]=0 is met, and record meets the corresponding ropes of C [i]=0 respectively Quotation marks C_End and C_Start, respectively terminate and original position.
C) operation is zeroed out to the corresponding waveforms of C_Max.I.e.:
C [i]=0, i ∈ [C_Start, C_End]
After above-mentioned steps, the accurate location of upper first crest of curve C [i] is obtained, and the crest is corresponded to into ripple Shape is removed from curve C [i].A)-c above-mentioned to C [i] repetitions) step, you can obtain the accurate position of second crest on curve Put.The like, so that it may obtain the position of upper four crests of curve C [i], i.e. corresponding call number C_index of each crest.Root It is divided into the result of three rows as shown in Figure 4 cigarette according to each crest location.
5th, the often row cigarette image using image pixel gray value as projection properties respectively to being partitioned into carries out vertical direction Projection, Fig. 5 a are most down smoke-discharging corresponding upright projection curve.In upright projection curve, the projection of every cigarette boundary Relative other regions of surrounding of value meeting are larger, form crest.
6th, with the 3rd step and the 4th step, special filtering process is carried out to the result of upright projection, is obtained comprising eight independences The new curve of smooth waveform, as shown in Figure 5 b.It is then determined that the particular location of each crest, according to each crest location to gray scale Image carries out segmentation and can obtain the corresponding image of each cigarette in the row, as shown in Figure 6.
7th, above-mentioned steps are completed, you can determine the corresponding region of each cigarette, realizes being automatically positioned for cigarette, it is final to imitate Fruit is as shown in Figure 7.

Claims (1)

1. cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule, it is characterised in that:First to imageing sensor collection Cigarette pipe tobacco end view drawing picture to be checked carries out gray processing process, then carries out level throwing as projection properties using image pixel gray value Shadow, obtains floor projection curve, and in floor projection curve, often the projection value of smoke evacuation boundary can relative other regions of surrounding It is larger, crest is formed, the disposal of gentle filter for slightly being combined with severe is carried out to floor projection curve, is obtained and cigarette row phase Corresponding several sections of independent waveforms, search the particular location for determining each section of waveform medium wave peak, gray level image are entered according to crest location Row segmentation is obtained the corresponding image of every smoke evacuation;
In the same manner, the cigarette image of often arranging using image pixel gray value as projection properties respectively to being partitioned into carries out vertical direction Projection, obtains upright projection curve, and in upright projection curve, the projection value of every cigarette boundary can relative other regions of surrounding It is larger, crest is formed, the disposal of gentle filter for slightly being combined with severe is carried out to upright projection curve, is obtained relative with cigarette number Several sections of independent waveforms answered, search the particular location for determining each section of waveform medium wave peak, gray level image are carried out according to crest location Each cigarette that segmentation is included in can obtaining the smoke evacuation, the final accurate location for determining each cigarette in diaphragm capsule.
CN201410548673.0A 2014-10-16 2014-10-16 Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule Active CN104309866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410548673.0A CN104309866B (en) 2014-10-16 2014-10-16 Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410548673.0A CN104309866B (en) 2014-10-16 2014-10-16 Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule

Publications (2)

Publication Number Publication Date
CN104309866A CN104309866A (en) 2015-01-28
CN104309866B true CN104309866B (en) 2017-03-29

Family

ID=52365230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410548673.0A Active CN104309866B (en) 2014-10-16 2014-10-16 Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule

Country Status (1)

Country Link
CN (1) CN104309866B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105181722B (en) * 2015-10-20 2018-11-16 无锡日联科技股份有限公司 A kind of tobacco defect inspection method based on X-Ray image
CN115049713B (en) * 2022-08-11 2022-11-25 武汉中导光电设备有限公司 Image registration method, device, equipment and readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4108220B2 (en) * 1999-04-07 2008-06-25 株式会社イシダ Packaging inspection system
JP2010058829A (en) * 2008-09-05 2010-03-18 Dainippon Printing Co Ltd Horizontal pillow packaging machine equipped with bite prevention function
CN202919021U (en) * 2012-09-20 2013-05-08 南京金梁科技有限公司 Laser-type online circumference detection control device
CN102967278B (en) * 2012-12-11 2015-05-20 浙江中烟工业有限责任公司 Cigarette stain area measurement device and method as well as data acquisition device
CN103217110B (en) * 2013-04-09 2017-02-15 深圳市鸿捷源自动化系统有限公司 Off-line cigarette or filter stick detection device based on three-dimensional visual technology
CN103385539B (en) * 2013-08-02 2015-04-15 南京文采科技有限责任公司 Single cigarette empty head detection method based on machine vision and special equipment
CN103529164B (en) * 2013-11-02 2015-04-22 中国烟草总公司郑州烟草研究院 Automatic cigarette marking device for cigarette ignition tendency testing
CN103557807B (en) * 2013-11-08 2016-01-06 湖南中烟工业有限责任公司 The method of cigarette filter rod end surface shape quality testing and device thereof

Also Published As

Publication number Publication date
CN104309866A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN106846344A (en) A kind of image segmentation optimal identification method based on the complete degree in edge
CN106951905A (en) Apple identification and localization method on a kind of tree based on TOF camera
CN102974551A (en) Machine vision-based method for detecting and sorting polycrystalline silicon solar energy
CN103808265B (en) Method, device and system for measuring oilseed rape laminae and forms of sclerotium scabs synchronously
CN104537671A (en) Cigarette filter online counting and quality detecting method based on machine vision
CN104268853A (en) Infrared image and visible image registering method
CN106157323A (en) The insulator division and extracting method that a kind of dynamic division threshold value and block search combine
CN105547602A (en) Subway tunnel segment leakage water remote measurement method
CN103942816A (en) Method for identifying number and size of wood veneer knots based on image processing
CN104089586A (en) Image detection device and method of engine crankshaft journal shape errors
CN103245296A (en) Screw thread parameter measurement method based on image measurement and processing
CN108648184A (en) A kind of detection method of remote sensing images high-altitude cirrus
CN105865329A (en) Vision-based acquisition system for end surface center coordinates of bundles of round steel and acquisition method thereof
CN107610092B (en) Pavement crack dynamic detection method based on video stream
CN104309866B (en) Cigarette automatic positioning method in a kind of cigarette-packaging machine diaphragm capsule
CN108196729A (en) A kind of finger tip point rapid detection method based on infrared video
CN106683098B (en) A kind of dividing method of overlapped blades image
CN109087295A (en) Bridge based on gray value sciagraphy reveals muscle visible detection method
CN108961331A (en) A kind of measurement method and device of twisted string pitch
CN104764407A (en) Method for measuring thickness of cable protecting bush accurately
CN106595496A (en) Man-machine interaction part size flexibility vision measurement method
CN109584250A (en) A kind of method that the visual zone of robust divides mark automatically
CN108520260A (en) The recognition methods of visible foreign matters in bottled oral solution
CN102640622B (en) Cotton picker navigation information image detection method and system
CN109387524A (en) Thread defect detection method and device based on linearly polarized photon

Legal Events

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