A real-time metering device and method for cutting tobacco output from a tobacco factory
By installing a 3D vision camera, a meter wheel device and a photoelectric switch on the tobacco silk production line, combined with the point cloud processing and displacement measurement of the vision system, the problem of fluctuations in the discharge flow of the silk storage cabinet affecting the operation of the equipment was solved and high precision was achieved. The cut tobacco material is measured in real time.
Patent Information
- Application Number
- CN202211699637.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-12-28
AI Technical Summary
The discharge flow rate of the silk storage cabinet in the existing tobacco silk production line fluctuates greatly, causing frequent shutdowns of subsequent equipment and affecting product quality. Moreover, the three-dimensional scanning method of the existing visual system has low accuracy, making it difficult to achieve accurate measurement.
Design a real-time measurement device for cut tobacco discharging from the cigarette factory's silk production line, including installing two 3D vision cameras, a meter wheel device and a photoelectric switch on the silk storage cabinet. Through joint calibration and data splicing, the point cloud of cut tobacco is obtained, and the discharging volume and Weight, combined with photoelectric switch and meter wheel device, measures the displacement of the conveyor bottom belt to achieve real-time measurement.
It achieves high-precision real-time measurement of cut tobacco discharged from the storage cabinet. It is simple to install and debug, low in cost, improves measurement accuracy, and avoids equipment shutdown problems caused by fluctuations in discharge flow.
Smart Images

Figure CN116172239B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of tobacco equipment, and in particular to a real-time metering device and method for shredded tobacco output in a tobacco factory. Background Art
[0002] The silo cabinet is the main equipment on the tobacco silk production line. It is mainly used for tobacco flow buffering and scheduling regulation, and plays a role in adjusting production time, changing production varieties, and improving equipment operation efficiency. Most of the main equipment on the existing tobacco silk production line is produced by different manufacturers. For cost and compatibility considerations, generally there is no electronic belt scale between the silo cabinet and downstream equipment to control the discharge flow of the silo cabinet. When the discharge flow of the silo cabinet fluctuates greatly, it will cause the subsequent equipment to shut down frequently due to excessive feeding flow of the silo cabinet, which directly affects the quality of the product.
[0003] At present, there are some studies on using visual systems to monitor the discharge of wire storage cabinets in real time. By fixing a binocular camera at the discharge port, the volume of the discharged material is calculated through the camera's image collection, and then the discharge weight and residual weight are calculated. However, there are still the following problems in practical applications:
[0004] The three-dimensional scanning method of pure binocular cameras is greatly affected by the environment. When the ambient light changes, the measurement accuracy will be significantly reduced. Based on this, the binocular plus speckle method has emerged. Although this solution can better eliminate the impact of the environment, it uses very sparse speckle structured light, so in principle it cannot achieve high accuracy.
[0005] Since the tobacco storage cabinet is tens of meters long, a binocular camera is needed to collect three-dimensional data of tobacco multiple times for stitching in order to obtain the real-time change of the tobacco. However, due to the characteristics of tobacco distribution, accurate stitching is difficult to achieve in actual work. Therefore, there will be large errors in volume calculation using only a binocular camera.
[0006] Therefore, there is an urgent need to design a real-time metering device and method for discharging that is simple to install and debug, low in cost, and can achieve high precision. Summary of the invention
[0007] The object of the present invention is to provide a real-time metering device and method for the discharge of shredded tobacco from a tobacco factory, which is easy to install, low in cost, and can accurately meter the discharge of shredded tobacco from a shredded tobacco storage cabinet.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is:
[0009] A real-time metering device for tobacco thread production in a tobacco factory, comprising a tobacco storage cabinet and an industrial computer control box: the tobacco storage cabinet is provided with a conveyor belt for conveying tobacco and a conveyor chain for driving the conveyor belt to rotate, a photoelectric switch is provided on the tobacco storage cabinet corresponding to the conveyor chain, a meter wheel device is provided at the bottom of the conveyor belt for obtaining the displacement of the conveyor belt together with the photoelectric switch, and two 3D visual cameras are provided on the tobacco storage cabinet and are distributed laterally along the tobacco storage cabinet for obtaining tobacco point clouds;
[0010] The industrial computer control box is used to obtain the meter wheel device, the photoelectric switch signal and the tobacco point cloud information obtained by the 3D visual camera.
[0011] As a preferred solution of the present invention, the meter wheel device includes a polyurethane wheel arranged at the bottom of the conveyor belt, a clamping support plate for adjusting the degree of abutment and compression between the polyurethane wheel and the conveyor belt, and an encoder connected to the polyurethane wheel.
[0012] As a preferred solution of the present invention, the 3D camera is any one of a binocular line laser 3D camera, a binocular grating structured light 3D camera or a monocular grating structured light 3D camera.
[0013] A method for real-time metering of the output of shredded tobacco in a tobacco factory, using the above-mentioned real-time metering device for measuring the output of shredded tobacco in a tobacco factory, comprises the following steps:
[0014] S1, jointly calibrate the wire storage cabinet and the 3D camera, calibrate the 3D camera coordinate system to the wire storage cabinet world coordinate system, and calibrate the calculation coefficient of the meter wheel device;
[0015] S2. When unloading begins, the meter wheel device is cleared. During the unloading process of tobacco, the displacement data of the conveyor belt is recorded in real time through the combination of the meter wheel device and the photoelectric switch;
[0016] S3. When unloading is paused or exceeds a preset displacement threshold, the 3D camera is controlled to obtain the tobacco point cloud, which is converted to the world coordinate system after splicing, added to the overall point cloud as the tobacco point cloud of the time, and the current displacement value is recorded;
[0017] S4, taking out the displacement point cloud of this time from the overall point cloud according to the displacement values when the point cloud is obtained twice before and after, and calculating the volume of the point cloud;
[0018] S5. Calculate the weight of a single batch of tobacco cuttings based on the density of the tobacco cuttings and the volume of the point cloud obtained in S4, and calculate the total weight of multiple batches of tobacco cuttings based on the weight of the single batch of tobacco cuttings.
[0019] As a preferred solution of the present invention, the joint calibration of the 3D camera and the world coordinate system in S1 includes the following sub-steps:
[0020] S101, setting the world coordinate system of the wire storage cabinet: when the wire storage cabinet is empty, place the calibration plate on the bottom plane of the wire storage cabinet, horizontally located at the center of both sides of the wire storage cabinet, and vertically located at the center of the field of view of the 3D camera, and the left and right sides of the calibration plate are parallel to the left and right sides of the wire storage cabinet;
[0021] S102, joint calibration of two 3D cameras: two 3D cameras simultaneously shoot the calibration plate described in S101, and use Zhang's calibration method to calculate the transformation matrix of the calibration plate in the coordinate system of each camera, and use the 3D camera on the right as the main camera to obtain the transformation relationship from the left 3D camera to the right camera.
[0022] S103, calibrating the 3D camera to the world coordinate system of the wire storage cabinet: the 3D camera on the right shoots the calibration plate mentioned in S101, and uses Zhang's calibration method to calculate the conversion relationship between the 3D camera coordinate system and the calibration plate coordinate system
[0023] S104, determine the initial parameter y of the wire storage cabinet silo according to the set world coordinate system m i n ,y max and x m i n ,in:
[0024] y m i n and max The left and right limits of the width of the tobacco silo;
[0025] x min It is the initial position for scanning tobacco.
[0026] As a preferred solution of the present invention, the calculation coefficient calibration process of the meter wheel device in S1 is as follows: after the meter wheel device is installed, the conveyor belt is run empty for a certain distance, and the conversion coefficient is calculated according to the change in the value of the meter wheel device.
[0027] As a preferred solution of the present invention, the process of combining the meter wheel device and the photoelectric switch in S2 to measure the displacement data of the conveyor bottom belt is as follows:
[0028] S201, the protruding tooth plate of the conveyor chain is detected by a photoelectric switch, and counting is started from the discharge of the wire storage cabinet;
[0029] S202, the meter wheel device detects the displacement distance of the conveyor bottom belt, and when the photoelectric switch detects a signal, the meter wheel device counts are reset;
[0030] S203, calculate the displacement distance of the conveyor bottom belt by the following formula:
[0031] xcal =m0+k·Length+m
[0032] in:
[0033] x cal is the total displacement value of the conveyor bottom belt;
[0034] m0 is the measured value from system startup to the first detection of the tooth plate;
[0035] k is the count value detected by the photoelectric switch;
[0036] Length is the distance between the two protruding tooth plates of the conveyor chain;
[0037] m is the measurement value of the meter wheel.
[0038] As a preferred solution of the present invention, the process of calculating the volume of the tobacco point cloud in S4 is as follows:
[0039] S401, according to the known y m i n ,y max 、x m i n and x ca l, use equation 1 and equation 2 to calculate the number of rows and columns of the grid, and use straight-through filtering to obtain the point cloud area used to calculate the volume.
[0040]
[0041] Where s is the length of the grid edge;
[0042] S402, according to the row and column row and col calculated in S401, traverse all point cloud data, calculate the grid belonging of each point cloud data according to equation 3 and equation 4 and add the corresponding grid area to obtain the point cloud data after two-dimensional gridding,
[0043]
[0044]
[0045] Among them, x i and i The x-axis and y-axis coordinates of a point cloud data;
[0046] S403, according to the grid division, calculating the average value of the point cloud data in the z direction in a single grid as the height value z of the current grid;
[0047] S404, using a filter of size 9*9 to traverse the two-dimensional grid, when the height of the center grid of the filter is empty, the average height of the surrounding eight adjacent non-empty grids is used as the height value of the center grid, and this operation is repeated so that all the two-dimensional grid heights are filled;
[0048] S405. Based on the two-dimensional grid data obtained in S404, a single grid is used as the smallest unit to calculate the volume of a small cube with the grid height and the grid length and width as the side lengths, and the volume corresponding to the two-dimensional grid is obtained by integrating the small cube, that is, the volume corresponding to the scanned tobacco point cloud.
[0049] As a preferred embodiment of the present invention, in S5, the method for calculating the weight of a single tobacco discharge is:
[0050] M n =ρ·ΔV
[0051] Among them, ρ is the density of tobacco;
[0052] ΔV is the single discharge volume of tobacco;
[0053] M n is the discharge weight calculated for the nth time;
[0054] The calculation method of the total tobacco cutting weight is:
[0055]
[0056] Where M is the total weight of the current material being unloaded, and t is the single volume quantity currently measured.
[0057] Beneficial effects:
[0058] 1. The present invention builds two 3D cameras above the tobacco storage cabinet and installs a meter wheel device and a photoelectric switch combination at the bottom of the conveyor belt to form a displacement odometer. The 3D camera is used to obtain the three-dimensional point cloud of tobacco, and the displacement odometer is used to obtain the real-time displacement value of the conveyor belt when discharging the material. The volume and weight of the tobacco are calculated in a visual way to achieve the acquisition of the overall point cloud of the tobacco storage cabinet and the real-time weight measurement of the discharging material during the discharging process. The installation and debugging are simple and the cost is low.
[0059] 2. The present invention obtains the tobacco point cloud, calculates the tobacco volume through void completion and two-dimensional network processing, and the three-dimensional data is more accurate, thereby improving the measurement accuracy.
[0060] 3. The present invention adopts a photoelectric switch in combination with a meter wheel device to measure the displacement of the conveyor bottom belt, which also fundamentally further improves the measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1It is a schematic diagram of the overall structure from one perspective of a real-time metering device for producing shredded tobacco in a tobacco factory;
[0062] Figure 2 It is a schematic diagram of the overall structure of a real-time metering device for producing shredded tobacco in a tobacco factory from another perspective;
[0063] Figure 3 This is a schematic diagram of the installation structure of a 3D vision camera;
[0064] Figure 4 It is a schematic diagram of the installation structure of the meter wheel device;
[0065] Figure 5 It is a flow chart of a method for real-time metering of shredded tobacco output in a tobacco factory;
[0066] Figure 6 A schematic diagram of point cloud specification attribution discrimination in a method for real-time metering of tobacco thread output in a tobacco factory;
[0067] Figure 7 A schematic diagram of a method for filling data of a hollow grid in a real-time metering method of shredded tobacco output in a tobacco factory;
[0068] Figure 8 It is a schematic diagram of the integral calculation of the volume corresponding to the two-dimensional grid in a real-time metering method for the output of shredded tobacco in a tobacco factory.
[0069] Figure numerals: 1. Wire storage cabinet, 101. Box body, 102. Conveyor bottom belt, 103. Conveyor chain, 2. 3D vision camera, 3. Camera support frame, 4. Camera adjustment seat, 5. Industrial computer control box, 6. Meter wheel device, 601. Polyurethane wheel, 602. Encoder, 603. Clamping support plate, 604. Fixed seat, 7. Photoelectric switch. DETAILED DESCRIPTION
[0070] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. In the description of the present invention, it should be noted that, unless otherwise specified, "plurality" means two or more; the orientations or positional relationships indicated by terms such as "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head" and "tail" are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation to the present invention.
[0071] like Figures 1 to 4 As shown, the present invention provides a real-time metering device for the discharge of shredded tobacco in a tobacco factory, the device comprises a shredded tobacco storage cabinet 1 and an industrial computer control box 5. The shredded tobacco storage cabinet 1 can be an existing shredded tobacco storage cabinet in a tobacco factory, combined with Figure 1 and Figure 2 As shown, the tobacco storage cabinet includes a box body 101, and a conveyor belt 102 for conveying tobacco and a conveyor chain 103 for driving the conveyor belt 102 to rotate are provided at the bottom of the box body 101. When the conveyor chain 103 is working, the conveyor belt 102 drives the tobacco in the box body 101 to move, and a camera support frame 3 is fixed to the inner wall of the box body 101 with screws. The camera support frame 3 is provided with two 3D vision cameras 2 distributed laterally along the tobacco storage cabinet 1. The 3D vision cameras 2 are used to obtain the point cloud of tobacco on the conveyor belt 102.
[0072] The 3D vision camera 2 can be fixed on the camera support frame 3 through the camera adjustment seat 4, and the installation angle of the 3D vision camera can be adjusted according to different material storage heights.
[0073] A photoelectric switch 7 is provided on the silk storage cabinet 1 corresponding to the conveyor chain 103. A plurality of photoelectric switches 7 can be arranged side by side. The plurality of photoelectric switches 7 rows detect the protruding tooth plates of the conveyor chain 103. The distance traveled by the conveyor bottom belt can be calculated by the number of detected signals and the pitch of the chain. A meter wheel device 6 for obtaining the precise displacement of the conveyor bottom belt 102 together with the photoelectric switch 7 is provided at the bottom of the conveyor bottom belt 102. The meter wheel device 6 is arranged at the lower part of the conveyor bottom belt, including a polyurethane wheel 601 provided at the bottom of the conveyor bottom belt 102, a clamping support plate 603 for adjusting the degree of clamping between the polyurethane wheel 601 and the conveyor bottom belt 102, and an encoder 602 connected to the polyurethane wheel 601. When the polyurethane wheel 601 rotates, the shaft transmitted to the encoder 602 detects the distance data. The clamping support plate 603 is used to adjust the degree of clamping between the polyurethane wheel and the belt. A fixing seat 604 can be installed at the bottom of the silk storage cabinet 1, and the clamping support plate 603 can be rotatably installed on the fixing seat 604.
[0074] The industrial computer control box 5 is arranged on the outer wall of the tobacco storage cabinet 1 , and is used to obtain the signals of the meter wheel device 6 , the photoelectric switch 7 , and the tobacco point cloud information obtained by the 3D visual camera 2 .
[0075] In this embodiment, the 3D camera 2 is any one of a binocular line laser 3D camera, a binocular grating structured light 3D camera or a monocular grating structured light 3D camera.
[0076] The present invention also provides a method for real-time metering of the output of shredded tobacco in a tobacco factory, which is performed using the real-time metering device for measuring the output of shredded tobacco in a tobacco factory provided by the present invention, and comprises the following steps:
[0077] S1. Jointly calibrate the wire storage cabinet and the 3D camera, calibrate the 3D camera coordinate system to the wire storage cabinet world coordinate system, and calibrate the calculation coefficient of the meter wheel device.
[0078] The joint calibration of the wire storage cabinet and the 3D camera includes the following sub-steps:
[0079] S101. Setting the world coordinate system of the wire storage cabinet: When the wire storage cabinet is empty, place the calibration plate on the bottom plane of the wire storage cabinet, horizontally at the center of both sides of the wire storage cabinet, and vertically at the center of the 3D camera field of view, and the left and right sides of the calibration plate are parallel to the left and right sides of the wire storage cabinet.
[0080] S102, joint calibration of two 3D cameras: two 3D cameras simultaneously shoot the calibration plate described in S101, and use Zhang's calibration method to calculate the transformation matrix of the calibration plate in the coordinate system of each camera, and use the 3D camera on the right as the main camera to obtain the transformation relationship from the left 3D camera to the right camera.
[0081] S103, calibrating the 3D camera to the world coordinate system of the wire storage cabinet: the 3D camera on the right shoots the calibration plate mentioned in S101, and uses Zhang's calibration method to calculate the conversion relationship between the 3D camera coordinate system and the calibration plate coordinate system
[0082] S104, determine the initial parameter y of the wire storage cabinet silo according to the set world coordinate system min ,y max and x min ,in:
[0083] y min and max The left and right limits of the width of the tobacco silo;
[0084] x min It is the initial position for scanning tobacco.
[0085] The calibration process of the calculation coefficient of the meter wheel device is as follows: after the meter wheel device is installed, run the conveyor belt empty for a certain distance, and calculate the conversion coefficient based on the change in the value of the meter wheel device. During implementation, this process can be performed 10 times and the average value can be taken to improve the calibration accuracy.
[0086] S2. When unloading begins, the meter wheel device is cleared. During the unloading process of tobacco, the displacement data of the conveyor bottom belt is recorded in real time through the combination of the meter wheel device and the photoelectric switch.
[0087] The specific calculation process is:
[0088] S201, the protruding tooth plate of the conveyor chain is detected by a photoelectric switch, and counting is started from the discharge of the wire storage cabinet.
[0089] S202, the displacement distance of the conveyor bottom belt is detected by the meter wheel device, and when the photoelectric switch detects a signal, the count of the meter wheel device is reset.
[0090] S203, calculate the displacement distance of the conveyor bottom belt by the following formula:
[0091] x cal =m0+k·Length+m
[0092] in:
[0093] x cal is the total displacement value of the conveyor bottom belt;
[0094] m0 is the measured value from system startup to the first detection of the tooth plate;
[0095] k is the count value detected by the photoelectric switch;
[0096] Length is the distance between the two protruding tooth plates of the conveyor chain;
[0097] m is the measurement value of the meter wheel.
[0098] S3. When unloading is paused or exceeds the preset displacement threshold (that is, when the displacement of the conveyor belt reaches the target set during production, the displacement threshold is set to 400mm in this embodiment), the 3D camera is controlled to obtain the tobacco point cloud, which is converted to the world coordinate system after splicing, added to the overall point cloud as the tobacco point cloud at that time, and the current displacement value is recorded.
[0099] S4. Take the displacement point cloud of this time from the overall point cloud according to the displacement values when the point cloud is obtained twice before and after, and calculate the volume of the point cloud.
[0100] The volume calculation process of tobacco point cloud is as follows:
[0101] S401, according to the known y m i n ,y max 、x m i n and x ca l , use equation 1 and equation 2 to calculate the number of rows and columns of the grid, and use straight-through filtering to obtain the point cloud area used to calculate the volume.
[0102]
[0103]
[0104] Wherein s is the side length of the grid, and in this embodiment, s is set to 5 mm.
[0105] S402, such as Figure 6As shown, according to the rows and columns row and col calculated in S401, all point cloud data are traversed, and the grid attribution of each point cloud data is calculated according to equations 3 and 4 and added to the corresponding grid area to obtain the point cloud data after two-dimensional gridding.
[0106]
[0107]
[0108] Among them, x i and i The x-axis and y-axis coordinates of a point cloud data.
[0109] S403. According to the grid division, the average value of the point cloud data in the single grid in the z direction is calculated as the height value z of the current grid.
[0110] S404: Since the current scan point cloud has holes, it is necessary to fill the holes with grid data. Figure 7 As shown, a 9*9 filter is used to traverse the two-dimensional grid, where the triangle and five-pointed star area distribution represents the grid area with non-empty height and empty height. When the center grid of the filter is empty in height, the average height of the eight adjacent non-empty grids is used as the center grid height value. This operation is repeated so that all two-dimensional grid heights are filled.
[0111] S405, such as Figure 8 As shown, based on the two-dimensional grid data obtained in S404, a single grid is used as the smallest unit to calculate the volume of a small cube with the grid height and the grid length and width as the side lengths, and the volume corresponding to the two-dimensional grid, that is, the volume corresponding to the scanned tobacco point cloud, is obtained by integrating the small cube.
[0112] S5. Calculate the weight of a single batch of tobacco cuttings based on the density of the tobacco cuttings and the volume of the point cloud obtained in S4, and calculate the total weight of multiple batches of tobacco cuttings based on the weight of the single batch of tobacco cuttings.
[0113] , the calculation method for the weight of a single tobacco discharge is:
[0114] M n =ρ·ΔV
[0115] Among them, ρ is the density of tobacco;
[0116] ΔV is the single discharge volume of tobacco;
[0117] M n The discharge weight calculated for the nth time.
[0118] The calculation method of the total tobacco cutting weight is:
[0119]
[0120] Where M is the total weight of the current material being unloaded, and t is the single volume quantity currently measured.
[0121] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A real-time metering device for cutting tobacco in a tobacco factory, characterized in that: The invention comprises a tobacco storage cabinet (1) and an industrial computer control box (5); the tobacco storage cabinet (1) is provided with a conveyor belt (102) for conveying tobacco shreds and a conveyor chain (103) for driving the conveyor belt (102) to rotate; a photoelectric switch (7) is provided on the tobacco storage cabinet (1) corresponding to the conveyor chain (103); a meter wheel device (6) is provided at the bottom of the conveyor belt (102) for obtaining the displacement of the conveyor belt (102) together with the photoelectric switch (7); and two 3D visual cameras (2) are provided on the tobacco storage cabinet (1) and are distributed laterally along the tobacco storage cabinet (1) and are used to obtain tobacco shreds point clouds; The industrial computer control box (5) is used to obtain signals from a meter wheel device (6), a photoelectric switch (7), and tobacco point cloud information obtained by a 3D visual camera (2); the meter wheel device (6) comprises a polyurethane wheel (601) arranged at the bottom of a conveyor belt (102), a pressing support plate (603) used to adjust the degree of abutment and pressing between the polyurethane wheel (601) and the conveyor belt (102), and an encoder (602) connected to the polyurethane wheel (601); The metering method using the metering device comprises the following steps: S1, jointly calibrate the wire storage cabinet and the 3D camera, calibrate the 3D camera coordinate system to the wire storage cabinet world coordinate system, and calibrate the calculation coefficient of the meter wheel device; S2. When unloading begins, the meter wheel device is cleared. During the unloading process of tobacco, the displacement data of the conveyor belt is recorded in real time through the combination of the meter wheel device and the photoelectric switch; S3. When unloading is paused or exceeds a preset displacement threshold, the 3D camera is controlled to obtain the tobacco point cloud, which is converted to the world coordinate system after splicing, added to the overall point cloud as the tobacco point cloud of the time, and the current displacement value is recorded; S4, taking out the displacement point cloud of this time from the overall point cloud according to the displacement values when the point cloud is obtained twice before and after, and calculating the volume of the point cloud; S5, calculating the weight of a single batch of tobacco cuttings according to the density of the tobacco cuttings and the volume of the point cloud obtained in S4, and calculating the total weight of multiple batches of tobacco cuttings according to the weight of the single batch of tobacco cuttings; The joint calibration of 3D camera and world coordinate system in S1 includes the following sub-steps: S101, setting the world coordinate system of the wire storage cabinet: when the wire storage cabinet is empty, place the calibration plate on the bottom plane of the wire storage cabinet, horizontally located at the center of both sides of the wire storage cabinet, and vertically located at the center of the field of view of the 3D camera, and the left and right sides of the calibration plate are parallel to the left and right sides of the wire storage cabinet; S102, joint calibration of two 3D cameras: two 3D cameras simultaneously shoot the calibration plate described in S101, and use Zhang's calibration method to calculate the transformation matrix of the calibration plate in the coordinate system of each camera, and use the 3D camera on the right as the main camera to obtain the transformation relationship from the left 3D camera to the right camera. S103, calibrating the 3D camera to the world coordinate system of the wire storage cabinet: the 3D camera on the right shoots the calibration plate mentioned in S101, and uses Zhang's calibration method to calculate the conversion relationship between the 3D camera coordinate system and the calibration plate coordinate system S104, determine the initial parameter y of the wire storage cabinet silo according to the set world coordinate system min ,y max and x min ,in: y min and max The left and right limits of the width of the tobacco silo; x min The initial position for scanning tobacco; The calculation coefficient calibration process of the meter wheel device in S1 is as follows: after the meter wheel device is installed, the conveyor belt is run empty for a certain distance, and the conversion coefficient is calculated according to the change in the value of the meter wheel device; The process of combining the meter wheel device and the photoelectric switch in S2 to measure the displacement data of the conveyor bottom belt is as follows: S201, the protruding tooth plate of the conveyor chain is detected by a photoelectric switch, and counting is started from the discharge of the wire storage cabinet; S202, the meter wheel device detects the displacement distance of the conveyor bottom belt, and when the photoelectric switch detects a signal, the meter wheel device counts are reset; S203, calculate the displacement distance of the conveyor bottom belt by the following formula: x cal =m0+k·Length+m in: x cal is the total displacement value of the conveyor bottom belt; m0 is the measured value from system startup to the first detection of the tooth plate; k is the count value detected by the photoelectric switch; Length is the distance between the two protruding tooth plates of the conveyor chain; m is the measurement value of the meter wheel; The volume calculation process of tobacco point cloud in S4 is as follows: S401, according to the known y min ,y max 、x min and x cal , use equation 1 and equation 2 to calculate the number of rows and columns of the grid, and use straight-through filtering to obtain the point cloud area used to calculate the volume. Where s is the length of the grid edge; S402, according to the row and column row and col calculated in S401, traverse all point cloud data, calculate the grid belonging of each point cloud data according to equation 3 and equation 4 and add the corresponding grid area to obtain the point cloud data after two-dimensional gridding, Among them, x i and i The x-axis and y-axis coordinates of a point cloud data; S403, according to the grid division, calculating the average value of the point cloud data in the z direction in a single grid as the height value z of the current grid; S404, using a filter of size 9*9 to traverse the two-dimensional grid, when the height of the center grid of the filter is empty, the average height of the surrounding eight adjacent non-empty grids is used as the height value of the center grid, and this operation is repeated so that all the two-dimensional grid heights are filled; S405, based on the two-dimensional grid data obtained in S404, a single grid is used as the smallest unit to calculate the volume of a small cube with the grid height and the grid length and width as the side length, and the volume corresponding to the two-dimensional grid is obtained by integrating the small cube, that is, the volume corresponding to the scanned tobacco point cloud; In S5, the weight of a single tobacco discharge is calculated as follows: M n =ρ·ΔV Among them, ρ is the density of tobacco; ΔV is the single discharge volume of tobacco; M n is the discharge weight calculated for the nth time; The calculation method for the total tobacco cutting weight is: Where M is the total weight of the current material being unloaded, and t is the single volume quantity currently measured.
2. A real-time metering device for cutting tobacco in a tobacco factory as claimed in claim 1, characterized in that: The 3D camera (2) is any one of a binocular line laser 3D camera, a binocular grating structured light 3D camera or a monocular grating structured light 3D camera.
