CN117225733A - Waste rejecting method, storage medium and device for detecting defects of cigarette box pieces - Google Patents
Waste rejecting method, storage medium and device for detecting defects of cigarette box pieces Download PDFInfo
- Publication number
- CN117225733A CN117225733A CN202311345028.4A CN202311345028A CN117225733A CN 117225733 A CN117225733 A CN 117225733A CN 202311345028 A CN202311345028 A CN 202311345028A CN 117225733 A CN117225733 A CN 117225733A
- Authority
- CN
- China
- Prior art keywords
- defect
- detected
- value
- box
- reject
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000007547 defect Effects 0.000 title claims abstract description 233
- 238000000034 method Methods 0.000 title claims abstract description 36
- 235000019504 cigarettes Nutrition 0.000 title claims abstract description 29
- 239000002699 waste material Substances 0.000 title abstract description 11
- 238000012545 processing Methods 0.000 claims abstract description 39
- 238000001514 detection method Methods 0.000 claims abstract description 34
- 238000007664 blowing Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 7
- 238000007689 inspection Methods 0.000 claims 1
- 238000013135 deep learning Methods 0.000 abstract description 4
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000002950 deficient Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 238000002372 labelling Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
The application discloses a reject method, a storage medium and a device for detecting defects of cigarette box pieces, and relates to the field of deep learning target detection. Performing sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value; based on detection of the to-be-detected box piece, overflowing the defect array when the to-be-detected box piece passes through a subsequent photoelectric sensor to obtain an overflow value; and calculating to obtain a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve to reject and blow according to the calculated pulse value. The application can improve the waste removal treatment efficiency.
Description
Technical Field
The application relates to the field of deep learning target detection, in particular to a reject method, a storage medium and a device for detecting defects of cigarette box pieces.
Background
The existing YOLO network model is widely applied in industry due to its excellent balance between accuracy and speed, but there is still a short board for the application in high-speed cassette defect detection. When the cigarette box sheet is used for defect detection by a high-speed machine, the detection speed of 10 ten thousand per hour is required, meanwhile, when the high-definition camera is used for shooting, the pixel size of a picture is 4096 x 1600, the width of the picture is 4096 pixels, the height of the picture is 1600 pixels, the width of part of defects is less than 10 pixels, the aspect ratio of part of defects is large, for example, the defects of a knife wire type are 25 pixels, and the width of the defects is 1200 pixels.
The problems of low delay requirement and small target defect detection in the case of detecting the cigarette box sheet are solved by using the existing YOLOv5 target detection network model, and meanwhile, when the deep learning target detection method is used, because the data in the industrial application field is not disclosed by an open source and the data set with good marking effect is not provided, the subdivision field of detecting the cigarette box sheet defect needs manual marking, and the deep learning method often needs a large amount of marked data for training, and a large amount of labor cost is consumed in the link.
Disclosure of Invention
Aiming at the defects in the prior art, the application aims to provide a reject method, a storage medium and a device for detecting the defects of cigarette box pieces, which can improve the reject treatment efficiency.
In order to achieve the above purpose, the application provides a reject method for detecting defects of cigarette box pieces, which comprises the following steps:
based on photographing treatment of the box piece to be detected on the conveying line, and when the box piece to be detected has defects, sending a defect result to a CPU;
performing sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value;
based on detection of the to-be-detected box piece, overflowing the defect array when the to-be-detected box piece passes through a subsequent photoelectric sensor to obtain an overflow value;
and calculating to obtain a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve to reject and blow according to the calculated pulse value.
Based on the technical scheme, the photographing processing of the to-be-detected box piece on the conveying line is based, and when the to-be-detected box piece has a defect, a defect result is sent to the CPU, and the specific steps comprise:
triggering a camera at the conveying line to start when the to-be-detected box piece on the conveying line passes through the first photoelectric sensor, and photographing the to-be-detected box piece;
based on photographing the box piece to be detected, when the box piece to be detected has defects, a defect result is sent to the CPU.
On the basis of the technical scheme, the serial number processing is carried out on the defect result to obtain a defect value, and a defect array is established to store the defect value, and the specific steps comprise:
the CPU processes the sequence number of the defect result to obtain a defect value;
the CPU establishes a defect array to store the obtained defect value.
Based on the technical scheme, the detection of the to-be-detected box piece is based, and when the to-be-detected box piece passes through the follow-up photoelectric sensor, the overflow treatment is carried out on the defect array to obtain an overflow value, and the specific steps comprise:
and when the box piece to be detected passes through a second photoelectric sensor behind the first photoelectric sensor, overflowing the defect array to obtain an overflow value.
On the basis of the technical scheme, the pulse value of the box piece to be detected reaching the reject opening is calculated according to the obtained overflow value, and the specific steps comprise:
based on the judgment of the effective value of the overflow value, calculating to obtain a pulse value of the box piece to be detected reaching the reject opening;
and storing the calculated pulse value into the created array space.
On the basis of the technical scheme, the method for controlling the electromagnetic valve to reject and blow according to the calculated pulse value comprises the following specific steps of:
the CPU outputs a rejection signal according to the calculated pulse value;
based on the reject signal, the electromagnetic valve at the reject port performs reject blowing to realize reject of the box piece to be detected with the defect.
The application provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above described reject method of pack sheet defect detection.
The application provides a waste rejecting device for detecting defects of cigarette box pieces, which comprises the following components:
the detection module is used for photographing the box piece to be detected on the conveying line, and sending a defect result to the CPU when the box piece to be detected has a defect;
the storage module is used for carrying out sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value;
the processing module is used for detecting the to-be-detected box piece, and performing overflow processing on the defect array when the to-be-detected box piece passes through the subsequent photoelectric sensor to obtain an overflow value;
the execution module is used for calculating and obtaining a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve reject blowing according to the calculated pulse value.
Based on the technical scheme, the photographing processing of the to-be-detected box piece on the conveying line is based, and when the to-be-detected box piece has a defect, a defect result is sent to the CPU, and the specific steps comprise:
triggering a camera at the conveying line to start when the to-be-detected box piece on the conveying line passes through the first photoelectric sensor, and photographing the to-be-detected box piece;
based on photographing the box piece to be detected, when the box piece to be detected has defects, a defect result is sent to the CPU.
On the basis of the technical scheme, the serial number processing is carried out on the defect result to obtain a defect value, and a defect array is established to store the defect value, and the specific steps comprise:
the CPU processes the sequence number of the defect result to obtain a defect value;
the CPU establishes a defect array to store the obtained defect value.
Compared with the prior art, the application has the advantages that: the method comprises the steps of carrying out photographing treatment on a box piece to be detected on a conveying line, sending a defect result to a CPU (central processing unit) when the box piece to be detected has a defect, carrying out serial number treatment on the defect result to obtain a defect value, establishing a defect array to store the defect value, carrying out overflow treatment on the defect array based on detection of the box piece to be detected when the box piece to be detected passes through a follow-up photoelectric sensor to obtain an overflow value, finally calculating to obtain a pulse value of the box piece to be detected reaching a reject opening according to the obtained overflow value, controlling an electromagnetic valve to reject and blow air according to the calculated pulse value, and carrying out high-speed data acquisition and high-speed operation treatment on target detection to realize rapid-response reject treatment, reduce target defect reject leakage risk, improve reject treatment efficiency and avoid cost improvement brought by a manual labeling mode.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a reject method for detecting a defect of a cigarette pack sheet according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application.
The embodiment of the application provides a reject method for detecting defects of cigarette box pieces, which realizes fast response reject treatment by collecting data at a high speed and carrying out high-speed operation treatment on target detection, reduces the risk of missing target defects, can be suitable for reject treatment of other products, and has strong universality.
Referring to fig. 1, the method for rejecting defects of cigarette case pieces provided by the embodiment of the application specifically includes the following steps:
s1: based on photographing processing of the cassette to be detected on the conveying line, and when the cassette to be detected has defects, sending the defect results to a CPU (Central Processing Unit );
the application is based on photographing processing of a cassette to be detected on a conveying line, and when the cassette to be detected has a defect, the defect result is sent to a CPU, and the specific steps include:
s101: triggering a camera at the conveying line to start when the to-be-detected box piece on the conveying line passes through the first photoelectric sensor, and photographing the to-be-detected box piece;
s102: based on photographing the box piece to be detected, when the box piece to be detected has defects, a defect result is sent to the CPU.
The photoelectric signal is subjected to anti-shake processing, the processing time is 6.4ms, when the box piece to be detected passes through the first photoelectric sensor, the camera at the conveying line is triggered to start, the box piece to be detected is subjected to photographing processing, if the box piece to be detected is defective, a defect result is sent to the CPU, and 150ms is needed for the CPU to receive the defect result.
S2: performing sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value;
in the application, the serial number processing is carried out on the defect result to obtain the defect value, and a defect array is established to store the defect value, and the specific steps comprise:
s201: the CPU processes the sequence number of the defect result to obtain a defect value;
s202: the CPU establishes a defect array to store the obtained defect value.
The CPU processes the serial number of each defect result to obtain a defect value, and 200 defect arrays can be established to store the defect value. By comparing the received sequence numbers to be different, for example, when the defect value stored in the array is 0, the defect data is processed for 0.1ms.
S3: based on detection of the to-be-detected box piece, overflowing the defect array when the to-be-detected box piece passes through a subsequent photoelectric sensor to obtain an overflow value;
in the application, based on detection of the to-be-detected box piece, and when the to-be-detected box piece passes through a subsequent photoelectric sensor, overflow treatment is carried out on the defect array to obtain an overflow value, and the specific steps comprise:
and when the box piece to be detected passes through a second photoelectric sensor behind the first photoelectric sensor, overflowing the defect array to obtain an overflow value.
When the box piece to be detected passes through the second photoelectric sensor, overflow processing is carried out on 200 defect arrays to obtain an overflow value, and when the overflow value is not 0, the current array is emptied to ensure that the data in the array moves forward after the next box piece to be detected is triggered by the photoelectric sensor.
S4: and calculating to obtain a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve to reject and blow according to the calculated pulse value.
According to the application, a pulse value of a box piece to be detected reaching a reject opening is calculated according to the obtained overflow value, and the method specifically comprises the following steps:
s401: based on the judgment of the effective value of the overflow value, calculating to obtain a pulse value of the box piece to be detected reaching the reject opening;
s402: and storing the calculated pulse value into the created array space.
The method comprises the steps of synchronously judging the effective value of the overflow value, calculating to obtain the pulse value of the box piece to be detected reaching the reject opening, storing the calculated pulse value into the created 50 groups of spaces, wherein the calculation of each box piece to be detected is not interfered with each other, and the process uses a stack storage algorithm and a data shift register.
In the application, the electromagnetic valve waste removal blowing is controlled according to the calculated pulse value, and the specific steps comprise:
s411: the CPU outputs a rejection signal according to the calculated pulse value;
s412: based on the reject signal, the electromagnetic valve at the reject port performs reject blowing to realize reject of the box piece to be detected with the defect.
The anti-shake processing is carried out on the acquisition encoder, the processing time is 1 mu s, the pulse value calculated by the CPU is compared with the current pulse value, the eliminating signal is output when the pulse value is the same as the current pulse value, and the electromagnetic valve waste eliminating blowing is immediately executed. The time for a single defective box piece to be detected to reach the output response of the electromagnetic valve through the second photoelectric sensor is 105ms, the running speed of the box piece to be detected is 4.564mm/ms, the width of the box piece to be detected is 100mm, and the waste removal and blowing time of the electromagnetic valve is 20ms.
The method for rejecting the high-speed algorithm is based on a programmable controller, the box piece to be detected is synchronously counted with an upper computer through a first photoelectric sensor, the defect number is stored, and meanwhile, a CPU (central processing unit) provides continuous storage data in a storage space. The box pieces are conveyed to a second photoelectric sensor, the CPU controller performs reject screening on the box piece data, the box pieces accurately reach a reject opening through the algorithm of the CPU high-speed acquisition encoder, and a reject opening electromagnetic valve immediately executes reject action. The programmable controller establishes data connection with the upper computer, the industrial personal computer and the camera through the exchanger by the Ethernet TCP protocol, and the CPU receives the photographed defect value in real time. The pulse distributor module can realize the synchronization of high-speed photoelectric signals and encoder pulse signals and distributes the signals to the CPU controller and the camera acquisition card, supports multipath synchronous output and ensures that signals are not interfered and lost.
The following describes the implementation flow of the method for rejecting defects in cigarette case pieces according to the present application.
(1) The CPU receives the serial number and the defect value of the upper computer through TCP communication, and stores the serial number and the defect value in a temporary variable DB4 data block, and when a box piece to be detected passes through the first photoelectric sensor, the DB4 data block is updated every 150ms.
For example: serial number=1, defect value=2; serial number=2, defect value=2; serial number=4, defect value=3.
(2) The DB1 data block stores the CPU in an array sequence number [ 200 ] for the slice count, where the sequence number [0] =null, the cycle count, and the spot detection starts the next cycle sequence number value storage 201 times.
For example: sequence number [1] 1, sequence number [ 2 ] 2, sequence number [ 3 ] 3, sequence number [ 4 ] 4.
(3) When the value of each received DB4 data block is valid and greater than zero, each time the sequence number [1] in the sequence number of the array is searched, the sequence number is compared with the sequence number of the upper computer, if the sequence number is equal, the DB5 data block array stores defect values, the array is valid for 200, wherein the array defect [0] is not significant, if the sequence number is not equal, the array stores 0, the cycle detection is carried out, 200 comparisons are carried out in each cycle detection, and the 201 st time is started from the sequence number [1 ].
For example: defect value [1] 2, defect value [ 2 ] 2, defect value [ 3 ] 0, defect value [ 4 ] 3.
(4) When the to-be-detected box piece reaches the second photoelectric sensor each time, the DB10 data block and the DBD34 data block temporarily store the serial numbers in the array serial numbers 200, namely the values from the initial value, and simultaneously temporarily store the values from the initial value of the defect value array BD5 data block into the DB5 data block and the DBD0 data block each time. Each deposit is compared to the defective category 2 or 3 and the value of the current index number is cleared when the comparison is the same.
For example: the first overflow db10.db34=1, db5.dbd0=2, compare=2, db5 defect value [1] =0, at this time the value of defect value [ 2 ] advances to defect value [1] =2, defect value [ 3 ] advances=defect value [ 2 ] =0, defect value [ 4 ] advances=defect value [ 3 ] =3;
the second overflow db10.db34=2, db5.dbd0=2, compare=2, db5 defect values [1] after the value in the array is shifted forward by defect values [1] 0, defect values [ 2 ] 3;
the third overflow db10.db34=3, db5.dbd0=0, the comparison is not equal to 2, the value in the array of db5 defect values [1] is not=0, the value of defect values [1] after the value is shifted forward=3;
the fourth overflow db10.db34=4, db5.dbd0=3, compare=3, db5 defect values [1] after the value in the array is shifted forward by the value in the array=0 ] defect values [1] 2;
(5) The detection of the to-be-detected box piece is effective for 50 times in each detection period of the second photoelectric sensor, for example, the detection is started from 51 th time, and temporary values DB5, DBD0=2 or=3 of each time calculate that the target of the to-be-detected box piece moves to an A port or a B port to be stored in an array starting from a BD6.DBD0 reject array [0 ]. And the data source is equal to the current pulse value, so that the electromagnetic valve can be controlled to execute action blowing. Wherein encoder wheel diameter = 90, circumference = 90 x 3.14/3600r = 0.0785 mm per pulse walk, a port fixed length 481mm, b port fixed length 36051mm, current pulse values varying incrementally in real time.
For example: db5.dbd02 first overflow value=2, capturing the current pulse value +6175 pulse=bd6.dbd0 reject array [0], judging whether the current pulse value is equal to the current pulse value, db5.dbd02 second overflow value=2, capturing the current pulse value +6175 pulse=bd6.dbd0 reject array [1], judging whether the current pulse value is equal to the current pulse value, db5.dbd02 third overflow value=0, ending calculation, db5.dbd02 fourth overflow value=3, capturing the current pulse value +36051 pulse=bd6.dbd0 reject array [ 2 ], and executing the reject signal db6.dbx204.1 when the current pulse value is equal to the current pulse value, wherein the reject time is 20 milliseconds.
According to the method for rejecting the defects of the cigarette box pieces, provided by the embodiment of the application, the defects are obtained by carrying out photographing treatment on the box pieces to be detected on a conveying line, sending the defect results to a CPU (central processing unit), carrying out serial number treatment on the defect results to obtain the defect values, establishing a defect array to store the defect values, carrying out overflow treatment on the defect array based on the detection of the box pieces to be detected when the box pieces to be detected pass through a subsequent photoelectric sensor to obtain overflow values, finally, calculating the pulse values of the box pieces to be detected reaching a reject opening according to the obtained overflow values, controlling the reject blowing of an electromagnetic valve according to the calculated pulse values, carrying out high-speed data acquisition on target detection, carrying out high-speed operation treatment, realizing fast-response reject treatment, reducing the target defect omission reject risk, improving reject treatment efficiency, and avoiding the cost improvement caused by a manual labeling mode.
In a possible implementation manner, the embodiment of the application further provides a non-transitory computer readable storage medium, wherein the readable storage medium is located in a PLC (Programmable Logic Controller ) controller, and a computer program is stored on the readable storage medium, and when the program is executed by a processor, the steps of the reject method for detecting the defects of the cigarette case sheet are implemented as follows:
based on photographing treatment of the box piece to be detected on the conveying line, and when the box piece to be detected has defects, sending a defect result to a CPU;
performing sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value;
based on detection of the to-be-detected box piece, overflowing the defect array when the to-be-detected box piece passes through a subsequent photoelectric sensor to obtain an overflow value;
and calculating to obtain a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve to reject and blow according to the calculated pulse value.
The storage media may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The application provides a reject device for detecting defects of cigarette box pieces, which comprises a detection module, a storage module, a processing module and an execution module.
The detection module is used for photographing the box piece to be detected on the conveying line, and sending a defect result to the CPU when the box piece to be detected has a defect; the storage module is used for carrying out sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value; the processing module is used for detecting the box piece to be detected, and performing overflow processing on the defect array when the box piece to be detected passes through the subsequent photoelectric sensor to obtain an overflow value; the execution module is used for calculating and obtaining a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve reject blowing according to the calculated pulse value.
The application is based on photographing processing of a cassette to be detected on a conveying line, and when the cassette to be detected has a defect, the defect result is sent to a CPU, and the specific steps include:
triggering a camera at the conveying line to start when the to-be-detected box piece on the conveying line passes through the first photoelectric sensor, and photographing the to-be-detected box piece;
based on photographing the box piece to be detected, when the box piece to be detected has defects, a defect result is sent to the CPU.
In the application, the serial number processing is carried out on the defect result to obtain the defect value, and a defect array is established to store the defect value, and the specific steps comprise:
the CPU processes the sequence number of the defect result to obtain a defect value;
the CPU establishes a defect array to store the obtained defect value.
According to the waste removing device for detecting the defects of the cigarette box pieces, provided by the embodiment of the application, the defect result is sent to the CPU through photographing treatment of the box pieces to be detected on the conveying line, when the box pieces to be detected have defects, the sequence processing is carried out on the defect result to obtain the defect value, the defect array is established to store the defect value, the overflow value is obtained through detecting the box pieces to be detected and carrying out overflow treatment on the defect array when the box pieces to be detected pass through the follow-up photoelectric sensor, finally, the pulse value of the box pieces to be detected reaching the removing opening is obtained through calculation according to the obtained overflow value, the waste removing blowing of the electromagnetic valve is controlled according to the calculated pulse value, and the rapid response waste removing treatment is realized through carrying out high-speed data acquisition and high-speed operation treatment on target detection, so that the target defect missing removing risk is reduced, the waste removing treatment efficiency is improved, and the cost improvement caused by a manual labeling mode is avoided.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Claims (10)
1. The reject method for detecting the defects of the cigarette box sheets is characterized by comprising the following steps of:
based on photographing treatment of the box piece to be detected on the conveying line, and when the box piece to be detected has defects, sending a defect result to a CPU;
performing sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value;
based on detection of the to-be-detected box piece, overflowing the defect array when the to-be-detected box piece passes through a subsequent photoelectric sensor to obtain an overflow value;
and calculating to obtain a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve to reject and blow according to the calculated pulse value.
2. The method for rejecting defects of cigarette box pieces according to claim 1, wherein the steps of photographing the box pieces to be detected on the conveying line and sending the defect result to the CPU when the box pieces to be detected have defects are based on the photographing process, include:
triggering a camera at the conveying line to start when the to-be-detected box piece on the conveying line passes through the first photoelectric sensor, and photographing the to-be-detected box piece;
based on photographing the box piece to be detected, when the box piece to be detected has defects, a defect result is sent to the CPU.
3. The method for rejecting defects of cigarette case pieces according to claim 2, wherein the steps of performing serial number processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value comprise:
the CPU processes the sequence number of the defect result to obtain a defect value;
the CPU establishes a defect array to store the obtained defect value.
4. A method for rejecting defects in a cigarette case as defined in claim 3, wherein the steps of detecting the defects of the cigarette case based on detection of the case to be detected and overflowing the defect array to obtain an overflow value when the case to be detected passes through a subsequent photoelectric sensor include:
and when the box piece to be detected passes through a second photoelectric sensor behind the first photoelectric sensor, overflowing the defect array to obtain an overflow value.
5. The method for rejecting defects of cigarette case pieces according to claim 4, wherein the step of calculating a pulse value of the box pieces to be detected reaching the reject opening according to the obtained overflow value comprises the following specific steps:
based on the judgment of the effective value of the overflow value, calculating to obtain a pulse value of the box piece to be detected reaching the reject opening;
and storing the calculated pulse value into the created array space.
6. The method for detecting defects of cigarette box pieces according to claim 5, wherein the step of controlling the electromagnetic valve to reject and blow according to the calculated pulse value comprises the following specific steps:
the CPU outputs a rejection signal according to the calculated pulse value;
based on the reject signal, the electromagnetic valve at the reject port performs reject blowing to realize reject of the box piece to be detected with the defect.
7. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of a reject method of cigarette pack defect detection as claimed in any one of claims 1 to 6.
8. A reject apparatus for inspection of defects in a sheet of cigarettes, comprising:
the detection module is used for photographing the box piece to be detected on the conveying line, and sending a defect result to the CPU when the box piece to be detected has a defect;
the storage module is used for carrying out sequence processing on the defect result to obtain a defect value, and establishing a defect array to store the defect value;
the processing module is used for detecting the to-be-detected box piece, and performing overflow processing on the defect array when the to-be-detected box piece passes through the subsequent photoelectric sensor to obtain an overflow value;
the execution module is used for calculating and obtaining a pulse value of the box piece to be detected reaching the reject opening according to the obtained overflow value, and controlling the electromagnetic valve reject blowing according to the calculated pulse value.
9. The rejecting device for detecting defects of cigarette box pieces according to claim 8, wherein the rejecting device is based on photographing treatment of the box pieces to be detected on a conveying line, and when the box pieces to be detected have defects, the rejecting device sends defect results to a CPU, and the rejecting device specifically comprises:
triggering a camera at the conveying line to start when the to-be-detected box piece on the conveying line passes through the first photoelectric sensor, and photographing the to-be-detected box piece;
based on photographing the box piece to be detected, when the box piece to be detected has defects, a defect result is sent to the CPU.
10. The apparatus for rejecting defects of cigarette case sheet according to claim 9, wherein the steps of performing serial number processing on the defect result to obtain a defect value, and creating a defect array to store the defect value include:
the CPU processes the sequence number of the defect result to obtain a defect value;
the CPU establishes a defect array to store the obtained defect value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311345028.4A CN117225733A (en) | 2023-10-16 | 2023-10-16 | Waste rejecting method, storage medium and device for detecting defects of cigarette box pieces |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311345028.4A CN117225733A (en) | 2023-10-16 | 2023-10-16 | Waste rejecting method, storage medium and device for detecting defects of cigarette box pieces |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117225733A true CN117225733A (en) | 2023-12-15 |
Family
ID=89086049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311345028.4A Pending CN117225733A (en) | 2023-10-16 | 2023-10-16 | Waste rejecting method, storage medium and device for detecting defects of cigarette box pieces |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117225733A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118558621A (en) * | 2024-07-31 | 2024-08-30 | 钛玛科(北京)工业科技有限公司 | Method and device for eliminating defective products based on product images and electronic equipment |
-
2023
- 2023-10-16 CN CN202311345028.4A patent/CN117225733A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118558621A (en) * | 2024-07-31 | 2024-08-30 | 钛玛科(北京)工业科技有限公司 | Method and device for eliminating defective products based on product images and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117225733A (en) | Waste rejecting method, storage medium and device for detecting defects of cigarette box pieces | |
CN108529180B (en) | Irregular cigarette packet combined stacking system based on machine vision | |
CN107597606A (en) | The video traceability system and method for automatic sorting courier packages | |
CN111814850A (en) | Defect detection model training method, defect detection method and related device | |
CN103341454B (en) | Automatically sorting method for electric energy meter | |
CN109127445A (en) | Bar code read method and bar code reader system | |
CN104463124A (en) | Milk box spray-printed character recognition method | |
CN114372991B (en) | Method and device for collecting and matching X-ray pictures of articles in security inspection process | |
CN115065708B (en) | Industrial Internet of things system based on machine vision detection and control method thereof | |
CN104794480A (en) | Method for eliminating milk boxes with defective printed characters | |
CN112318485A (en) | Image processing method and device of object sorting system and object sorting system | |
CN111597857A (en) | Logistics package detection method, device and equipment and readable storage medium | |
CN106846294B (en) | Visual detection method, device and equipment | |
CN111862050A (en) | Material detection system, method and equipment | |
CN111126402B (en) | Image processing method and device, electronic equipment and storage medium | |
CN211292638U (en) | Quick automatic checkout device of pen tube printing | |
CN114904798B (en) | Automatic coal gangue sorting method, system and medium based on image recognition | |
CN116843645A (en) | Method and device for detecting defects of polypropylene film on product outer package | |
CN102023163B (en) | System and method for detecting connector based on digital signal processor (DSP) | |
CN111659633A (en) | Tooling product classification system and method | |
CN108957384A (en) | A kind of turnover box and electric energy measuring equipment discriminating direction method and apparatus | |
CN110694940A (en) | Control method and system for adjusting blowing of spray valve in real time based on dead pixel and size | |
CN109242874A (en) | A kind of quasi- woven bag logistics package method for quickly identifying and system | |
CN115082795A (en) | Virtual image generation method, device, equipment, medium and product | |
CN113762190A (en) | Neural network-based parcel stacking detection method and device |
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 |