CN-121999422-A - Cargo detection system and method based on linear scattering light source
Abstract
The invention relates to the field of cargo detection, in particular to a cargo detection system and a cargo detection method based on linear scattering light sources, which are technically characterized in that when a photoelectric detection technology is adopted for identification statistics, only one or a plurality of light sources can cause identification errors due to electric signal interference or position change of a receiving device, and when an image identification technology is adopted, the detection result is influenced because the influence on the effect of image acquisition is large when the environment is bad or the change of the overall dimension of passing cargo is extremely small.
Inventors
- SONG ZHENG
- Zheng chuxiong
- ZHENG CHAN
- XU XUEJUN
Assignees
- 武汉市雄牛科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20240413
Claims (10)
- 1. A cargo detection system based on a linear scattering light source is characterized by comprising the following components: the linear light source emission module is used for generating a plurality of groups of scattered light rays which are linearly distributed; the image acquisition module is used for collecting the images of the light rays generated by the linear light source emission module; the image processing module is used for processing the image acquired by the image acquisition module and simplifying the contrast flow of the image; The image comparison module is used for comparing the image processed by the image processing module with the standard image and judging whether goods pass through according to the difference degree; And the counting module is used for counting and counting the results of the image comparison module.
- 2. The cargo detection system based on linear scattering light sources according to claim 1, wherein the linear light source emitting module comprises scattering light sources, wherein the scattering light sources are arranged in m groups, m is greater than or equal to 1, any one group is arranged at any angle, each group of scattering light sources is arranged in a straight line, any one group of the m groups of linear scattering light sources consists of nc and nk light sources, the length direction is nc, nc is formed by a plurality of scattering light sources in a straight line equidistant arrangement, nc is greater than or equal to 2, the width direction is nk, nk is formed by a plurality of nc side by side, nk is greater than or equal to 1, n scattering light sources in a straight line equidistant arrangement are one group of linear light sources, the linear light source emitting module comprises m groups of linear light sources, m is greater than or equal to 1, and the angle range between the m groups of linear light sources is 0-180 degrees.
- 3. The system for detecting the linear scattering light source-based cargo according to claim 2, wherein the image acquisition module comprises a high-definition camera, the linear light source emission module and the image acquisition module are both arranged in the structure of the cargo conveying device, the cargo conveying device is one of a belt conveying structure, a roller conveying structure, a chain plate conveying structure and other conveying structures, the high-definition camera and the linear light source are respectively arranged at the top end of the cargo conveying device and in a structural groove, and the high-definition camera is used for acquiring characteristic images of the linear light source.
- 4. The cargo detection system based on a linear scattering light source as defined in claim 3, wherein the image processing module processes the image acquired by the image acquisition module, and simplifies the contrast flow of the image, and comprises the following steps: s11, calling out the video stream of the video image acquired by the image acquisition module; s12, sequentially framing video streams in the video images acquired by the image acquisition module and cutting the peripheral invalid parts; and S13, carrying out image graying treatment on each frame of image after cutting, wherein the principle formula of graying is Y=0.299×R+0.587× G+0.144×B, wherein Y is the brightness of the converted gray image, namely a gray value, and R, G and B are the values of three primary colors of the color image before conversion.
- 5. The cargo detection system based on the linear scattering light source according to claim 4, wherein when the image processing module cuts the image acquired by the image processing module, an artificial model setting mode is adopted first, the effective area and the ineffective area are divided in the image acquired by the image acquisition module, the images of the n linear light sources are all positioned in the effective area, and when the image processing module cuts, the image divided into the peripheral ineffective area is cut and removed, and the effective area is numbered according to the model to obtain the processing image of the corresponding serial number area.
- 6. The cargo detection system based on the linear scattering light source of claim 5, wherein when the image comparison module compares each serial number picture processed by the image processing module with a corresponding standard image, and judges whether cargo passes or not according to the degree of difference of color, shape and the like, the cargo detection system comprises the following steps: S21, carrying out binarization processing on each frame of image subjected to the grey level processing to obtain multi-frame binarized images ordered according to a time sequence; S22, performing similarity calculation on each frame of binarized image and an original image, wherein the original image is an image obtained by performing gray level treatment and binarization treatment on an effective area in an image acquired by a high-definition camera when no goods are blocked between the high-definition camera and a linear light source; S23, judging whether goods pass through or not according to the calculated similarity between the binarized image and the original image.
- 7. The cargo detection system based on a linear scattered light source according to claim 6, wherein the method comprises the steps of: s31, scaling the binarized image and the original image of each frame to the same size; s32, ordering the binarized image of each frame and all pixel points in the original image according to the same rule; S33, comparing the gray values of the pixel points with the same serial numbers, and judging that the pixel points are dissimilar if the gray values are different; S34, calculating the similarity between the binarized image and the original image of each frame according to the gray value comparison results of all the pixel points, wherein if the similarity is smaller than a threshold value, the condition that goods pass through at the moment of shooting the frame image is judged.
- 8. The system for detecting cargo based on linear scattering light source according to claim 7, wherein the image comparing module compares the image processed by the image processing module with a standard image, and judges the final time of cargo transportation passing according to the difference, wherein the system comprises the following steps: s41, predicting the passing time of cargoes according to the running speed of the cargo conveying equipment; and S42, judging the shooting moment of the frame image as the moment when the goods completely pass through after the similarity between the image of the frame and the original image is recognized to be larger than the threshold value. And S43, judging the size of the cargoes by the time length of the cargoes, and controlling the distance between the cargoes conveniently.
- 9. The system of claim 8, further comprising an archive module for storing the photo or video image of the cargo during transportation and associating the stored photo or video image of the cargo during transportation with the counting label in the counting module.
- 10. The method for detecting cargo based on linear scattering light source according to claim 9, comprising the steps of: s51, starting a linear light source emission module to emit a plurality of groups of linear scattering light sources which are linearly distributed; s52, an image acquisition module acquires an image of the linear light source emission module; s53, the image processing module processes the video image acquired by the image acquisition module; S54, the image comparison module compares the image processed by the image processing module with the original image, and judges whether goods pass through according to the similarity; s55, when goods pass through, judging the time of the goods passing through completely through the step S54; and S56, the counting module counts, and the archiving module archives the image acquired by the image acquisition module.
Description
Cargo detection system and method based on linear scattering light source Technical Field The invention relates to the field of cargo detection, in particular to a cargo detection system and a cargo detection method based on a linear scattering light source. Background The system is widely applied to the fields of storage, logistics, production and the like, can help to improve the working efficiency, reduce errors and save manpower resources, can be integrated with other equipment to realize the functions of an automatic production line or a warehouse management system, is an effective technology, can help various industries to better manage and control the transportation and quantity of cargoes, can realize identification statistics by adopting a photoelectric detection technology when the cargo detection system is used for counting the quantity of the cargoes transported on the cargo transportation equipment, can possibly cause the identification error of a photoelectric sensing module when electromagnetic interference or the position of the detection equipment changes due to vibration, and has little influence on the image acquisition result when the image identification technology is adopted and the environment is bad or the shape of the cargoes changes. Disclosure of Invention In order to overcome the defect that when the cargo detection system is used for counting the cargo tracking and cargo transportation quantity on cargo transportation equipment, the photoelectric detection technology is adopted for identification statistics, when the detection system is subjected to electromagnetic interference or the detection device is subjected to vibration, the position change possibly causes the identification error of the photoelectric sensing module, and when the image identification technology is adopted, when the use environment is bad or the cargo shape change is extremely small, the effect judgment influence on the image acquisition is larger, so that the problem that the influence on the detection result is larger exists. The technical scheme of the invention is that the cargo detection system based on the linear scattering light source comprises: the linear light source emission module is used for generating a plurality of groups of scattered light rays which are linearly distributed; the image acquisition module is used for collecting the images of the light rays generated by the linear light source emission module; the image processing module is used for processing the image acquired by the image acquisition module and simplifying the contrast flow of the image; The image comparison module is used for comparing the image processed by the image processing module with the standard image and judging whether goods pass through according to the difference degree; And the counting module is used for counting and counting the results of the image comparison module. Preferably, the linear light source emission module emits a plurality of groups of scattered light rays which are linearly distributed, the image acquisition module acquires images of the light rays emitted by the linear light source emission module, the image processing module processes the images acquired by the image acquisition module, the image comparison module compares and identifies the images, when goods pass through, the light rays emitted by the linear light source emission module are shielded, the image comparison module identifies differences, and then identifies the goods to pass through, and the counting module counts the goods when the goods pass through. The linear light source emitting module comprises scattering light sources, wherein the scattering light sources are arranged in m groups, m is larger than or equal to 1, any one group is arranged at any angle, each group of the scattering light sources is in linear arrangement, any one group of the m groups of the linear scattering light sources consists of nc and nk light sources, the length direction nc is nc, nc is formed by a plurality of scattering light sources in linear equidistant arrangement, nc is larger than or equal to 2, the width direction nk consists of a plurality of nc side by side, nk is larger than or equal to 1, n scattering light sources in linear equidistant arrangement are one group of the linear light sources, the linear light source emitting module comprises m groups of the linear light sources, m is larger than or equal to 1, and the angle range between the m groups of the linear light sources is 0-180 degrees. Preferably, a group of linear light sources are formed by setting n scattering light sources, and meanwhile, a linear light source emitting module is formed by a plurality of groups of linear light sources, so that a plurality of comparison points which can be used for detecting cargoes can be formed, and when cargoes are detected, the condition of missed detection or multiple detection cannot occur when the light changes greatly, the cargo vo