A multi-camera and multi-light source online image acquisition and detection system for capsule defect detection
Through the adjustment of the multi-camera multi-light source system combined with the central control processor, a single light source cannot meet the problem of capsule shape, surface and color detection at the same time, achieving efficient and accurate capsule defect detection.
Patent Information
- Application Number
- CN202010913865.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-03
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2040-09-03
AI Technical Summary
The existing capsule image acquisition device uses only a single light source, which cannot meet the detection requirements for the shape, surface and color of the capsule at the same time, resulting in unbalanced detection accuracy and affecting the detection efficiency.
Using a system with multiple cameras and light sources, the central control processor adjusts the brightness of each light source according to the size of the capsule and the movement speed of the conveyor belt, and selects corresponding detection standards and photo intervals according to the capsules of different sizes to ensure that each camera clearly collects images.
It improves the detection accuracy and efficiency of capsule defect detection, ensures that the detection of capsule shape, surface and color can achieve high accuracy at the same time, and reduces the detection cost.
Smart Images

Figure CN112129769B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of capsule detection, and in particular to an online image acquisition and detection system for capsule defect detection with multiple cameras and multiple light sources. Background Art
[0002] Hollow capsules must be inspected for quality before and after canning. For capsule surface defect detection, such as surface scratches, dents, bulges and other defects, traditional manual inspection methods are inefficient and costly, and there are individual differences in the subjective judgment of inspectors, etc., which are not conducive to large-scale production in modern industry. On the one hand, the production cost of manufacturers is too high, and on the other hand, the quality of capsules is difficult to be stably guaranteed. Therefore, it is meaningful to adopt automated online defect detection technology for capsules. It is necessary to propose an online image acquisition device for capsule defect detection with a multi-camera and multi-light source system.
[0003] The capsule image acquisition device in the prior art only uses a single light source. When acquiring the image of the capsule, the single light source cannot simultaneously meet the detection requirements of the capsule shape, surface and color. As a result, when detecting the capsule, the use of a single light source improves the detection accuracy of a certain parameter of the capsule, while affecting the detection accuracy of the other two detection parameters. At the same time, when detecting capsules of different sizes, the different brightness of the selected light source will also affect the detection results, reducing the image acquisition accuracy of the device, thereby reducing the detection efficiency of the online image acquisition detection system. Summary of the invention
[0004] To this end, the present invention provides a multi-camera and multi-light source capsule defect detection online image acquisition and detection system to overcome the problem of low detection efficiency caused by the inability to flexibly adjust the light source according to the capsule in the prior art.
[0005] To achieve the above object, the present invention provides a multi-camera and multi-light source capsule defect detection online image acquisition and detection system, comprising:
[0006] A box body is used to load the components in the online image acquisition and detection system, including a detection inlet and a detection outlet. The box body is arranged at a designated position of the capsule conveying device. The conveyor belt in the conveying device conveys the capsule into the box body through the detection inlet so that the image acquisition unit can perform image acquisition on the capsule. After the acquisition is completed, the conveyor belt conveys the capsule to the outside of the box body through the detection outlet. A speed detector is arranged in the box body to detect the moving speed of the conveyor belt.
[0007] A lighting unit, which is disposed in the box and is used to provide corresponding light sources for different cameras;
[0008] An image acquisition unit, comprising a plurality of cameras disposed in the box and located on the top wall of the box, for acquiring image information of the capsule;
[0009] A plurality of partitions, which are respectively arranged at designated positions in the box body, and are used to separate corresponding cameras in the image acquisition unit and light sources corresponding to the cameras;
[0010] A central control processor is respectively connected to the speed detector, each light source in the lighting unit and each camera in the image acquisition unit, and is used to determine the brightness of each light source according to the moving speed of the conveyor belt and determine the photographing interval of each camera according to the moving speed of the conveyor belt and the size of the capsule transported by the conveyor belt; a preset speed matrix, a preset size matrix, a preset detection standard matrix group, a preset brightness matrix group and a preset photographing interval matrix group are provided in the central control processor, and the central control processor will compare the moving speed value of the conveyor belt detected by the speed detector with each parameter in the preset speed matrix and select the parameters in the preset brightness matrix group according to the comparison result to adjust the brightness of each light source, compare the size of the capsule with each parameter in the preset size matrix and select the corresponding detection standard from the preset detection standard matrix group according to the comparison result; the central control processor will also select the corresponding parameters from the preset photographing interval matrix group according to the comparison result of the moving speed value of the conveyor belt with each parameter in the preset speed matrix and the comparison result of the capsule size with each parameter in the preset size matrix to sequentially set the photographing interval of each camera in the image acquisition unit.
[0011] Furthermore, the image acquisition unit comprises:
[0012] A first camera, which is arranged on the top wall of the box body and is located in the middle of a side close to the detection entrance, and the first camera is a black and white camera, and is used to detect the shape of the capsule on the conveyor belt;
[0013] A second camera, which is arranged on the top wall of the box body and is located on a side of the first camera away from the detection entrance, and the second camera is a black and white camera, used to detect the surface of the capsule on the conveyor belt;
[0014] A third camera, which is arranged on the top wall of the box body and is located on a side of the second camera that is far away from the first camera, and the third camera is a black and white camera, and is used to detect the surface of the capsule on the conveyor belt;
[0015] The fourth camera is arranged on the top wall of the box body and is located on a side of the third camera away from the second camera. The fourth camera is a color camera for detecting the color of the capsule surface.
[0016] Furthermore, the partition includes:
[0017] a first partition disposed in the box and between the first camera and the second camera;
[0018] a second partition plate, which is disposed in the box and located between the third camera and the fourth camera;
[0019] A third partition is arranged in the box and located between the fourth camera and the box detection outlet.
[0020] Furthermore, the lighting unit comprises:
[0021] A first light source is located between the detection entrance and the first partition, and includes parallel light sources arranged on both side walls of the box body, and the first light source illuminates the capsule so that the first camera can clearly capture the outer contour of the capsule so that the first camera can capture the shape of the capsule;
[0022] A second light source is located between the first partition and the second partition, and includes an LED infrared light source disposed at the bottom of the conveyor belt, and the second light source irradiates the capsule so that the second camera and the third camera can clearly capture the surface of the capsule;
[0023] The third light source is located between the second partition and the third partition, and includes an LED ordinary array light source arranged on the third partition, the fourth partition and the two side walls of the chassis. The LED ordinary array light source illuminates the capsule so that the fourth camera can capture the true color of the capsule.
[0024] Further, the central control processor is provided with a preset speed matrix V0 and a preset brightness matrix L0; for the preset speed matrix V0, V0 (V1, V2, V3, V4), wherein V1 is the first preset moving speed, V2 is the second preset moving speed, V3 is the third preset moving speed, V4 is the fourth preset moving speed, and each preset moving speed gradually increases in sequence; for the preset brightness matrix group L0, L0 (L1, L2, L3, L4), wherein L1 is the first preset brightness matrix, L2 is the second preset brightness matrix, L3 is the third preset brightness matrix, and L4 is the fourth preset brightness matrix;
[0025] When the conveyor belt conveys capsules into the box, the speed detector detects the moving speed V of the conveyor belt and transmits the detection value to the central control processor, which compares V with the parameters in the V0 matrix:
[0026] When V≤V1, the central control processor selects a first preset brightness matrix L1 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L1 matrix;
[0027] When V1<V≤V2, the central control processor selects a second preset brightness matrix L2 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L2 matrix;
[0028] When V2<V≤V3, the central control processor selects a third preset brightness matrix L3 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L3 matrix;
[0029] When V3<V≤V4, the central control processor selects a fourth preset brightness matrix L4 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L4 matrix;
[0030] When the brightness adjustment of each light source is completed, the conveyor belt starts to transport the capsule.
[0031] Further, for the i-th preset brightness matrix Li, i=1, 2, 3, 4, Li(Lia, Lib, Lic), wherein Lia is the i-th preset brightness of the first light source, Lib is the i-th preset brightness of the second light source, and Lic is the i-th preset brightness of the third light source;
[0032] When the central control processor selects the parameters in the i-th preset brightness matrix Li to adjust the brightness of each light source in the lighting unit in turn, the central control processor adjusts the brightness of the first light source to Lia, the brightness of the second light source to Lib, and the brightness of the third light source to Lic.
[0033] Further, the central control processor is also provided with a preset size matrix C0 and a preset detection standard matrix group S0; for the preset size matrix C0, C0 (C1, C2, C3, C4), wherein C1 is the first preset capsule size, C2 is the second preset capsule size, C3 is the third preset capsule size, C4 is the fourth preset capsule size, and each preset size increases gradually in sequence; for the preset detection standard matrix group S0, S0 (S1, S2, S3, S4), wherein S1 is the first preset detection standard matrix, S2 is the second preset detection standard matrix, S3 is the third preset detection standard matrix, and S4 is the fourth preset detection standard matrix;
[0034] When the conveyor belt transports capsules, the first camera captures the image of the capsule and transmits the image information to the central control processor, which detects the capsule size C in the image information and compares C with the parameters in the C0 matrix:
[0035] When C≤C1, the central control processor selects the first preset detection standard matrix S1 from the S0 matrix group and sets the parameters in the S1 matrix as the detection standard for this detection;
[0036] When C1<C≤C2, the central control processor selects the second preset detection standard matrix S2 from the S0 matrix group and sets the parameters in the S2 matrix as the detection standard for this detection;
[0037] When C2<C≤C3, the central control processor selects the third preset detection standard matrix S3 from the S0 matrix group and sets the parameters in the S3 matrix as the detection standard for this detection;
[0038] When C3<C≤C4, the central control processor selects the fourth preset detection standard matrix S4 from the S0 matrix group and sets the parameters in the S4 matrix as the detection standard for this detection.
[0039] Further, for the i-th preset detection standard matrix Si, Si(ci, li, ni, ri), wherein ci is the i-th preset shape maximum deviation value, li is the i-th preset maximum scratch length, ni is the i-th preset maximum scratch number, and ri is the i-th preset color maximum deviation value;
[0040] When the central control processor selects the parameters in the Si matrix as the detection standard for this detection, the central control processor controls the first camera to detect the shape of the capsule, controls the second camera and the third camera to detect the maximum scratch length l and the number of scratches n on the capsule surface, and controls the fourth camera to detect the color of the capsule. The central control processor sequentially calculates the deviation value c between the actual shape of the capsule and the preset property, and the deviation value r between the actual color and the preset color, and compares the above parameters with the corresponding parameters in the Si matrix:
[0041] When c>ci, the central control processor determines that the capsule does not meet the standard;
[0042] When l>li, the central control processor determines that the capsule does not meet the standard;
[0043] When n>ni, the central control processor determines that the capsule does not meet the standard;
[0044] When r>ri, the central control processor determines that the capsule does not meet the standard;
[0045] When c≤ci, l≤li, n≤ni and r≤ri, the central control processor determines that the capsule meets the standards.
[0046] Furthermore, the central control processor is also provided with a preset photographing interval matrix group F0 (F1, F2, F3, F4), wherein F1 is a first preset photographing interval matrix, F2 is a second preset photographing interval matrix, F3 is a third preset photographing interval matrix, and F4 is a fourth preset photographing interval matrix;
[0047] When the conveyor belt transports capsules, the central control processor selects the corresponding preset photo interval matrix according to the comparison results of the parameters in the V and V0 matrices:
[0048] When V≤V1, the central control processor selects the first preset photographing interval matrix F1 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F1 matrix;
[0049] When V1<V≤V2, the central control processor selects a second preset photographing interval matrix F2 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F2 matrix;
[0050] When V2<V≤V3, the central control processor selects a third preset photographing interval matrix F3 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F3 matrix;
[0051] When V3<V≤V4, the central control processor selects the fourth preset photographing interval matrix F4 from the F0 matrix group and adjusts the photographing interval of each camera in turn according to the parameters in the F4 matrix.
[0052] Further, for the i-th preset photographing interval matrix Fi, Fi(Fi1, Fi2, Fi3, Fi4), wherein Fi1 is the first interval duration of the i-th preset photographing interval matrix, Fi2 is the second interval duration of the i-th preset photographing interval matrix, Fi3 is the third interval duration of the i-th preset photographing interval matrix, and Fi4 is the fourth interval duration of the i-th preset photographing interval matrix, and the values of the interval durations gradually increase in sequence;
[0053] When the central control processor adjusts the photographing interval of each camera in turn according to the parameters in the i-th preset photographing interval matrix Fi, the central control processor selects the corresponding photographing interval duration from the Fi matrix according to the comparison result between the capsule size C and each parameter in the C0 matrix:
[0054] When C≤C1, the central control processor selects the first interval duration Fi 1 of the i-th preset photographing interval matrix from the Fi matrix and sets the photographing time interval duration of each camera to Fi 1;
[0055] When C1<C≤C2, the central control processor selects the second interval length Fi2 of the i-th preset photo interval matrix from the Fi matrix and sets the photo interval length of each camera to Fi2;
[0056] When C2<C≤C3, the central control processor selects the third interval length Fi3 of the i-th preset photo interval matrix from the Fi matrix and sets the photo interval length of each camera to Fi3;
[0057] When C3<C≤C4, the central control processor selects the fourth interval duration Fi4 of the i-th preset photographing interval matrix from the Fi matrix and sets the photographing time interval duration of each camera to Fi4.
[0058] Compared with the prior art, the beneficial effect of the present invention lies in that, by providing a central control processor and a plurality of different types of light sources, and connecting each light source to the central control processor, the central control processor can flexibly adjust the brightness of each light source according to the size of the capsule, so that each camera can clearly capture the shape, surface and color parameters of the capsule when capturing images, so that the central control processor can more accurately complete the judgment of each capsule when detecting the capsule, thereby improving the detection efficiency of the detection system.
[0059] Furthermore, the system is also provided with a plurality of partitions. By using the partitions to separate the light sources, it is possible to effectively prevent the light sources from simultaneously irradiating the same capsule and causing the light sources to affect the clarity of the image captured by the camera. While ensuring the clarity of the image captured by each camera, the detection efficiency of the detection system is further improved.
[0060] Furthermore, a speed detector is also provided in the box, and the central control processor can adjust the brightness of each of the light sources according to the detected moving speed of the conveyor belt, which can effectively prevent the image captured by the camera from being blurred due to the mismatch between the moving speed of the conveyor belt and the brightness of the light source. While ensuring the clarity of the image captured by each camera, the detection efficiency of the detection system is further improved.
[0061] Furthermore, the image acquisition unit includes three black-and-white cameras and one color camera. By setting up the black-and-white cameras and the color cameras, the image acquisition accuracy can be guaranteed while effectively saving costs, thereby further improving the detection efficiency of the detection system.
[0062] Furthermore, a preset speed matrix V0 (V1, V2, V3, V4) and a preset brightness matrix L0 (L1, L2, L3, L4) are provided in the central control processor. When the conveyor belt transports capsules into the box, the speed detector detects the moving speed V of the conveyor belt and transmits the detection value to the central control processor. The central control processor compares V with the various parameters in the V0 matrix and adjusts the brightness of each light source to a corresponding value according to the comparison result. By matching the single transmission speed and the brightness of each light source, the mismatch between the light source and the moving speed can be further eliminated, thereby further improving the detection efficiency of the detection system.
[0063] Furthermore, for the i-th preset brightness matrix Li, i=1, 2, 3, 4, Li (Lia, Lib, Lic), when the central control processor selects the parameters in the i-th preset brightness matrix Li to adjust the brightness of each light source in the lighting unit in turn, it can make targeted adjustments to the brightness of each light source in turn, thereby preventing the uniform adjustment of the light source brightness from causing deviations in the accuracy of the collected image, thereby further improving the detection efficiency of the detection system.
[0064] Furthermore, the central control processor is also provided with a preset size matrix C0 (C1, C2, C3, C4) and a preset detection standard matrix group S0 (S1, S2, S3, S4). When the conveyor belt transports capsules, the first camera captures the image of the capsule and transmits the image information to the central control processor. The central control processor detects the capsule size C in the image information and compares C with the various parameters in the C0 matrix and selects the corresponding preset detection standard matrix from the S0 matrix group according to the comparison result. By selecting the corresponding detection standard according to capsules of different sizes, it is possible to effectively prevent the deviation caused by using a unified standard to detect capsules of different sizes, thereby further improving the detection efficiency of the detection system.
[0065] Furthermore, for the i-th preset detection standard matrix Si, Si(ci, li, ni, ri), by sequentially detecting multiple parameters of a single capsule, the system can ensure the quality of the output qualified capsules, thereby further improving the detection efficiency of the detection system.
[0066] Furthermore, a preset photographing interval matrix group F0 (F1, F2, F3, F4) is also provided in the central control processor. When the conveyor belt transports capsules, the central control processor selects the corresponding preset photographing interval matrix according to the comparison results of the parameters in the V and V0 matrices. By selecting different photographing interval matrices according to different moving speeds, each camera can complete the full-angle shooting of a single capsule with the least number of photographs, thereby further improving the detection efficiency of the detection system.
[0067] Furthermore, for the i-th preset photographing interval matrix Fi, Fi (Fi 1, Fi2, Fi3, Fi4), when the central control processor adjusts the photographing intervals of each camera in turn according to the parameters in the i-th preset photographing interval matrix Fi, the central control processor selects the corresponding photographing interval duration from the Fi matrix according to the comparison result of the capsule size C with the parameters in the C0 matrix. By further adjusting the photographing time of each camera according to the capsule size, the problem of deviation in the image collected by the camera due to different rotation speeds of capsules of different diameters at the same moving speed can be effectively avoided, thereby further improving the detection efficiency of the detection system. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a cross-sectional view of the online image acquisition and detection system for capsule defect detection with multiple cameras and multiple light sources according to the present invention at the detection entrance and the detection exit;
[0069] Figure 2 The structure diagram of the capsule defect detection online image acquisition and detection system with multiple cameras and multiple light sources according to the present invention is arranged on the capsule conveying device. DETAILED DESCRIPTION
[0070] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0071] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0072] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. This is only for the convenience of description and does not indicate or imply that the online image acquisition and detection system or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0073] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0074] See also Figure 1 and Figure 2 As shown, they are respectively a cross-sectional view of the online image acquisition and detection system for capsule defect detection with multiple cameras and multiple light sources at the detection entrance and the detection exit of the present invention and a structural schematic diagram of the online image acquisition and detection system for capsule defect detection with multiple cameras and multiple light sources arranged on the capsule conveying device. The online image acquisition and detection system for capsule defect detection with multiple cameras and multiple light sources of the present invention comprises:
[0075] The box 1 is used to load the components in the online image acquisition and detection system, including a detection inlet 11 and a detection outlet 12. The box 1 is set at a specified position of the capsule conveying device. The conveyor belt in the conveying device conveys the capsule into the box 1 through the detection inlet 11 so that the image acquisition unit 3 can collect images of the capsule. After the collection is completed, the conveyor belt conveys the capsule to the outside of the box 1 through the detection outlet 12; a speed detector (not shown in the figure) is provided in the box 1 to detect the moving speed of the conveyor belt;
[0076] A lighting unit, which is arranged in the box 1 and is used to provide corresponding light sources for different cameras;
[0077] An image acquisition unit 3, comprising a plurality of cameras arranged in the box body 1 and located on the top wall of the box body 1, for acquiring image information of the capsule;
[0078] A plurality of partitions, which are respectively arranged at designated positions in the box body 1, for separating corresponding cameras in the image acquisition unit 3 and light sources corresponding to the cameras;
[0079] The central control processor (not shown in the figure) is respectively connected to the speed detector, each light source in the lighting unit and each camera in the image acquisition unit 3, and is used to determine the brightness of each light source according to the moving speed of the conveyor belt and determine the shooting interval of each camera according to the moving speed of the conveyor belt and the size of the capsule transported by the conveyor belt; a preset speed matrix, a preset size matrix, a preset detection standard matrix group, a preset brightness matrix group and a preset shooting interval matrix group are provided in the central control processor. The central control processor will compare the moving speed value of the conveyor belt detected by the speed detector with each parameter in the preset speed matrix and select the parameters in the preset brightness matrix group according to the comparison result to adjust the brightness of each light source, compare the size of the capsule with each parameter in the preset size matrix and select the corresponding detection standard from the preset detection standard matrix group according to the comparison result; the central control processor will also select the corresponding parameters from the preset shooting interval matrix group according to the comparison result of the moving speed value of the conveyor belt with each parameter in the preset speed matrix and the comparison result of the capsule size with each parameter in the preset size matrix to sequentially set the shooting interval of each camera in the image acquisition unit 3.
[0080] Specifically, the image acquisition unit 3 of the present invention includes:
[0081] A first camera 31 is disposed on the top wall of the box 1 and is located in the middle of a side close to the detection entrance 11. The first camera 31 is a black and white camera and is used to detect the shape of the capsule on the conveyor belt;
[0082] A second camera 32, which is arranged on the top wall of the box body 1 and is located on a side of the first camera 31 away from the detection entrance 11. The second camera 32 is a black and white camera, which is used to detect the surface of the capsule on the conveyor belt;
[0083] A third camera 33, which is arranged on the top wall of the box body 1 and is located on the side of the second camera 32 away from the first camera 31, and the third camera 33 is a black and white camera, used to detect the surface of the capsule on the conveyor belt;
[0084] The fourth camera 34 is disposed on the top wall of the box body 1 and is located on a side of the third camera 33 away from the second camera 32. The fourth camera 34 is a color camera for detecting the color of the capsule surface.
[0085] Specifically, the separator of the present invention comprises:
[0086] A first partition 41, which is disposed in the box 1 and located between the first camera 31 and the second camera 32;
[0087] A second partition 42, which is disposed in the box 1 and located between the third camera 33 and the fourth camera 34;
[0088] The third partition plate 43 is disposed in the box body 1 and is located between the fourth camera 34 and the detection outlet 12 of the box body 1 .
[0089] Specifically, the lighting unit of the present invention includes:
[0090] A first light source 21, which is located between the detection entrance 11 and the first partition 41, includes parallel light sources arranged on the two side walls of the box body 1, and the first light source 21 illuminates the capsule so that the first camera 31 can clearly capture the outer contour of the capsule so that the first camera 31 can capture the shape of the capsule;
[0091] A second light source 22, which is located between the first baffle 41 and the second baffle 42, comprises an LED infrared light source arranged at the bottom of the conveyor belt, and the second light source 22 irradiates the capsule so that the second camera 32 and the third camera 33 can clearly capture the surface of the capsule;
[0092] The third light source 23 is located between the second partition 42 and the third partition 43, and includes an LED ordinary array light source arranged on the third partition 43, the fourth partition and the two side walls of the chassis. The LED ordinary array light source illuminates the capsule so that the fourth camera 34 can capture the true color of the capsule.
[0093] Please continue reading Figure 1As shown, the central control processor of the present invention is provided with a preset speed matrix V0 and a preset brightness matrix L0; for the preset speed matrix V0, V0 (V1, V2, V3, V4), wherein V1 is the first preset moving speed, V2 is the second preset moving speed, V3 is the third preset moving speed, V4 is the fourth preset moving speed, and each preset moving speed increases gradually in sequence; for the preset brightness matrix group L0, L0 (L1, L2, L3, L4), wherein L1 is the first preset brightness matrix, L2 is the second preset brightness matrix, L3 is the third preset brightness matrix, and L4 is the fourth preset brightness matrix;
[0094] When the conveyor belt conveys capsules into the box 1, the speed detector detects the moving speed V of the conveyor belt and transmits the detection value to the central control processor, which compares V with the parameters in the V0 matrix:
[0095] When V≤V1, the central control processor selects a first preset brightness matrix L1 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L1 matrix;
[0096] When V1<V≤V2, the central control processor selects a second preset brightness matrix L2 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L2 matrix;
[0097] When V2<V≤V3, the central control processor selects a third preset brightness matrix L3 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L3 matrix;
[0098] When V3<V≤V4, the central control processor selects a fourth preset brightness matrix L4 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L4 matrix;
[0099] When the brightness adjustment of each light source is completed, the conveyor belt starts to transport the capsule.
[0100] Specifically, for the i-th preset brightness matrix Li, i=1, 2, 3, 4, Li (Lia, Lib, Lic), where Lia is the i-th preset brightness of the first light source 21, Lib is the i-th preset brightness of the second light source 22, and Lic is the i-th preset brightness of the third light source 23;
[0101] When the central control processor selects the parameters in the i-th preset brightness matrix Li to adjust the brightness of each light source in the lighting unit in turn, the central control processor adjusts the brightness of the first light source 21 to Lia, the brightness of the second light source 22 to Lib, and the brightness of the third light source 23 to Lic.
[0102] Specifically, the central control processor is further provided with a preset size matrix C0 and a preset detection standard matrix group S0; for the preset size matrix C0, C0 (C1, C2, C3, C4), wherein C1 is a first preset capsule size, C2 is a second preset capsule size, C3 is a third preset capsule size, C4 is a fourth preset capsule size, and each preset size increases gradually in sequence; for the preset detection standard matrix group S0, S0 (S1, S2, S3, S4), wherein S1 is a first preset detection standard matrix, S2 is a second preset detection standard matrix, S3 is a third preset detection standard matrix, and S4 is a fourth preset detection standard matrix;
[0103] When the conveyor belt conveys capsules, the first camera 31 captures images of the capsules and transmits the image information to the central control processor, which detects the capsule size C in the image information and compares C with the parameters in the C0 matrix:
[0104] When C≤C1, the central control processor selects the first preset detection standard matrix S1 from the S0 matrix group and sets the parameters in the S1 matrix as the detection standard for this detection;
[0105] When C1<C≤C2, the central control processor selects the second preset detection standard matrix S2 from the S0 matrix group and sets the parameters in the S2 matrix as the detection standard for this detection;
[0106] When C2<C≤C3, the central control processor selects the third preset detection standard matrix S3 from the S0 matrix group and sets the parameters in the S3 matrix as the detection standard for this detection;
[0107] When C3<C≤C4, the central control processor selects the fourth preset detection standard matrix S4 from the S0 matrix group and sets the parameters in the S4 matrix as the detection standard for this detection.
[0108] Specifically, for the i-th preset detection standard matrix Si, Si(ci, li, ni, ri), wherein ci is the i-th preset shape maximum deviation value, li is the i-th preset maximum scratch length, ni is the i-th preset maximum scratch number, and ri is the i-th preset color maximum deviation value;
[0109] When the central control processor selects the parameters in the Si matrix as the detection standard for this detection, the central control processor controls the first camera 31 to detect the shape of the capsule, controls the second camera 32 and the third camera 33 to detect the maximum scratch length l and the number of scratches n on the capsule surface, and controls the fourth camera 34 to detect the color of the capsule. The central control processor sequentially calculates the deviation value c between the actual shape of the capsule and the preset property, and the deviation value r between the actual color and the preset color, and compares the above parameters with the corresponding parameters in the Si matrix:
[0110] When c>ci, the central control processor determines that the capsule does not meet the standard;
[0111] When l>li, the central control processor determines that the capsule does not meet the standard;
[0112] When n>ni, the central control processor determines that the capsule does not meet the standard;
[0113] When r>ri, the central control processor determines that the capsule does not meet the standard;
[0114] When c≤ci, l≤li, n≤ni and r≤ri, the central control processor determines that the capsule meets the standards.
[0115] Specifically, the central control processor is also provided with a preset photographing interval matrix group F0 (F1, F2, F3, F4), wherein F1 is a first preset photographing interval matrix, F2 is a second preset photographing interval matrix, F3 is a third preset photographing interval matrix, and F4 is a fourth preset photographing interval matrix;
[0116] When the conveyor belt transports capsules, the central control processor selects the corresponding preset photo interval matrix according to the comparison results of the parameters in the V and V0 matrices:
[0117] When V≤V1, the central control processor selects the first preset photographing interval matrix F1 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F1 matrix;
[0118] When V1<V≤V2, the central control processor selects a second preset photographing interval matrix F2 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F2 matrix;
[0119] When V2<V≤V3, the central control processor selects a third preset photographing interval matrix F3 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F3 matrix;
[0120] When V3<V≤V4, the central control processor selects the fourth preset photographing interval matrix F4 from the F0 matrix group and adjusts the photographing interval of each camera in turn according to the parameters in the F4 matrix.
[0121] Specifically, for the i-th preset photographing interval matrix Fi, Fi(Fi 1, Fi2, Fi3, Fi4), Fi 1 is the first interval duration of the i-th preset photographing interval matrix, Fi2 is the second interval duration of the i-th preset photographing interval matrix, Fi3 is the third interval duration of the i-th preset photographing interval matrix, Fi4 is the fourth interval duration of the i-th preset photographing interval matrix, and the values of the interval durations gradually increase in sequence;
[0122] When the central control processor adjusts the photographing interval of each camera in turn according to the parameters in the i-th preset photographing interval matrix Fi, the central control processor selects the corresponding photographing interval duration from the Fi matrix according to the comparison result between the capsule size C and each parameter in the C0 matrix:
[0123] When C≤C1, the central control processor selects the first interval duration Fi 1 of the i-th preset photographing interval matrix from the Fi matrix and sets the photographing time interval duration of each camera to Fi 1;
[0124] When C1<C≤C2, the central control processor selects the second interval length Fi2 of the i-th preset photo interval matrix from the Fi matrix and sets the photo interval length of each camera to Fi2;
[0125] When C2<C≤C3, the central control processor selects the third interval length Fi3 of the i-th preset photo interval matrix from the Fi matrix and sets the photo interval length of each camera to Fi3;
[0126] When C3<C≤C4, the central control processor selects the fourth interval duration Fi4 of the i-th preset photographing interval matrix from the Fi matrix and sets the photographing time interval duration of each camera to Fi4.
[0127] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-camera and multi-light source capsule defect detection online image acquisition and detection system, characterized in that: include: A box body is used to load the components in the online image acquisition and detection system, including a detection inlet and a detection outlet. The box body is arranged at a designated position of the capsule conveying device. The conveyor belt in the conveying device conveys the capsule into the box body through the detection inlet so that the image acquisition unit can perform image acquisition on the capsule. After the acquisition is completed, the conveyor belt conveys the capsule to the outside of the box body through the detection outlet. A speed detector is arranged in the box body to detect the moving speed of the conveyor belt. A lighting unit, which is disposed in the box and is used to provide corresponding light sources for different cameras; The lighting unit includes: a first light source, a second light source and a third light source; An image acquisition unit, comprising a plurality of cameras arranged in the box and located on the top wall of the box, for acquiring image information of the capsule; the image acquisition unit comprises: a first camera, a second camera, a third camera and a fourth camera; A plurality of partitions are respectively arranged at designated positions in the box body to separate the corresponding cameras in the image acquisition unit and the light sources corresponding to the cameras; the partitions include: a first partition, a second partition and a third partition; A central control processor is respectively connected to the speed detector, each light source in the lighting unit and each camera in the image acquisition unit, and is used to determine the brightness of each light source according to the moving speed of the conveyor belt and determine the photographing interval of each camera according to the moving speed of the conveyor belt and the size of the capsule transported by the conveyor belt; a preset speed matrix, a preset size matrix, a preset detection standard matrix group, a preset brightness matrix group and a preset photographing interval matrix group are provided in the central control processor, and the central control processor will compare the moving speed value of the conveyor belt detected by the speed detector with each parameter in the preset speed matrix and select the parameters in the preset brightness matrix group according to the comparison result to adjust the brightness of each light source, compare the size of the capsule with each parameter in the preset size matrix and select the corresponding detection standard from the preset detection standard matrix group according to the comparison result; the central control processor will also select the corresponding parameters from the preset photographing interval matrix group according to the comparison result of the moving speed value of the conveyor belt with each parameter in the preset speed matrix and the comparison result of the capsule size with each parameter in the preset size matrix to sequentially set the photographing interval of each camera in the image acquisition unit.
2. The multi-camera and multi-light source capsule defect detection online image acquisition and detection system according to claim 1 is characterized in that: The central control processor is provided with a preset speed matrix V0 and a preset brightness matrix L0; for the preset speed matrix V0, V0 (V1, V2, V3, V4), wherein V1 is the first preset moving speed, V2 is the second preset moving speed, V3 is the third preset moving speed, V4 is the fourth preset moving speed, and each preset moving speed increases gradually in sequence; for the preset brightness matrix group L0, L0 (L1, L2, L3, L4), wherein L1 is the first preset brightness matrix, L2 is the second preset brightness matrix, L3 is the third preset brightness matrix, and L4 is the fourth preset brightness matrix; When the conveyor belt conveys capsules into the box, the speed detector detects the moving speed V of the conveyor belt and transmits the detection value to the central control processor, which compares V with the parameters in the V0 matrix: When V≤V1, the central control processor selects a first preset brightness matrix L1 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L1 matrix; When V1<V≤V2, the central control processor selects a second preset brightness matrix L2 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L2 matrix; When V2<V≤V3, the central control processor selects a third preset brightness matrix L3 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L3 matrix; When V3<V≤V4, the central control processor selects a fourth preset brightness matrix L4 from the L0 matrix group and sequentially adjusts the brightness of each light source in the lighting unit according to the parameters in the L4 matrix; When the brightness adjustment of each light source is completed, the conveyor belt starts to transport the capsule.
3. The multi-camera and multi-light source capsule defect detection online image acquisition and detection system according to claim 2 is characterized in that: For the i-th preset brightness matrix Li, i=1, 2, 3, 4, Li(Lia, Lib, Lic), where Lia is the i-th preset brightness of the first light source, Lib is the i-th preset brightness of the second light source, and Lic is the i-th preset brightness of the third light source; When the central control processor selects the parameters in the i-th preset brightness matrix Li to adjust the brightness of each light source in the lighting unit in turn, the central control processor adjusts the brightness of the first light source to Lia, the brightness of the second light source to Lib, and the brightness of the third light source to Lic.
4. The multi-camera and multi-light source capsule defect detection online image acquisition and detection system according to claim 3 is characterized in that: The central control processor is also provided with a preset size matrix C0 and a preset detection standard matrix group S0; for the preset size matrix C0, C0 (C1, C2, C3, C4), wherein C1 is the first preset capsule size, C2 is the second preset capsule size, C3 is the third preset capsule size, C4 is the fourth preset capsule size, and each preset size increases gradually in sequence; for the preset detection standard matrix group S0, S0 (S1, S2, S3, S4), wherein S1 is the first preset detection standard matrix, S2 is the second preset detection standard matrix, S3 is the third preset detection standard matrix, and S4 is the fourth preset detection standard matrix; When the conveyor belt transports capsules, the first camera captures the image of the capsule and transmits the image information to the central control processor, which detects the capsule size C in the image information and compares C with the parameters in the C0 matrix: When C≤C1, the central control processor selects the first preset detection standard matrix S1 from the S0 matrix group and sets the parameters in the S1 matrix as the detection standard for this detection; When C1<C≤C2, the central control processor selects the second preset detection standard matrix S2 from the S0 matrix group and sets the parameters in the S2 matrix as the detection standard for this detection; When C2<C≤C3, the central control processor selects the third preset detection standard matrix S3 from the S0 matrix group and sets the parameters in the S3 matrix as the detection standard for this detection; When C3<C≤C4, the central control processor selects the fourth preset detection standard matrix S4 from the S0 matrix group and sets the parameters in the S4 matrix as the detection standard for this detection.
5. The multi-camera and multi-light source capsule defect detection online image acquisition and detection system according to claim 4 is characterized in that: For the i-th preset detection standard matrix Si, Si(ci, li, ni, ri), ci is the i-th preset shape maximum deviation value, li is the i-th preset maximum scratch length, ni is the i-th preset maximum scratch number, and ri is the i-th preset color maximum deviation value; When the central control processor selects the parameters in the Si matrix as the detection standard for this detection, the central control processor controls the first camera to detect the shape of the capsule, controls the second camera and the third camera to detect the maximum scratch length l and the number of scratches n on the capsule surface, and controls the fourth camera to detect the color of the capsule. The central control processor sequentially calculates the deviation value c between the actual shape of the capsule and the preset property, and the deviation value r between the actual color and the preset color, and compares the above parameters with the corresponding parameters in the Si matrix: When c>ci, the central control processor determines that the capsule does not meet the standard; When l>li, the central control processor determines that the capsule does not meet the standard; When n>ni, the central control processor determines that the capsule does not meet the standard; When r>ri, the central control processor determines that the capsule does not meet the standard; When c≤ci, l≤li, n≤ni and r≤ri, the central control processor determines that the capsule meets the standards.
6. The multi-camera and multi-light source capsule defect detection online image acquisition and detection system according to claim 5, characterized in that: The central control processor is also provided with a preset photographing interval matrix group F0 (F1, F2, F3, F4), wherein F1 is a first preset photographing interval matrix, F2 is a second preset photographing interval matrix, F3 is a third preset photographing interval matrix, and F4 is a fourth preset photographing interval matrix; When the conveyor belt transports capsules, the central control processor selects the corresponding preset photo interval matrix according to the comparison results of the parameters in the V and V0 matrices: When V≤V1, the central control processor selects the first preset photographing interval matrix F1 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F1 matrix; When V1<V≤V2, the central control processor selects a second preset photographing interval matrix F2 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F2 matrix; When V2<V≤V3, the central control processor selects a third preset photographing interval matrix F3 from the F0 matrix group and sequentially adjusts the photographing interval of each camera according to the parameters in the F3 matrix; When V3<V≤V4, the central control processor selects the fourth preset photographing interval matrix F4 from the F0 matrix group and adjusts the photographing interval of each camera in turn according to the parameters in the F4 matrix.
7. The multi-camera and multi-light source capsule defect detection online image acquisition and detection system according to claim 6, characterized in that: For the i-th preset photographing interval matrix Fi, Fi(Fi1, Fi2, Fi3, Fi4), Fi1 is the first interval duration of the i-th preset photographing interval matrix, Fi2 is the second interval duration of the i-th preset photographing interval matrix, Fi3 is the third interval duration of the i-th preset photographing interval matrix, and Fi4 is the fourth interval duration of the i-th preset photographing interval matrix, and the values of the interval durations gradually increase in sequence; When the central control processor adjusts the photographing interval of each camera in turn according to the parameters in the i-th preset photographing interval matrix Fi, the central control processor selects the corresponding photographing interval duration from the Fi matrix according to the comparison result between the capsule size C and each parameter in the C0 matrix: When C≤C1, the central control processor selects the first interval duration Fi 1 of the i-th preset photographing interval matrix from the Fi matrix and sets the photographing time interval duration of each camera to Fi 1; When C1<C≤C2, the central control processor selects the second interval length Fi2 of the i-th preset photo interval matrix from the Fi matrix and sets the photo interval length of each camera to Fi2; When C2<C≤C3, the central control processor selects the third interval length Fi3 of the i-th preset photo interval matrix from the Fi matrix and sets the photo interval length of each camera to Fi3; When C3<C≤C4, the central control processor selects the fourth interval duration Fi4 of the i-th preset photographing interval matrix from the Fi matrix and sets the photographing time interval duration of each camera to Fi4.
Citation Information
Patent Citations
Multi-camera multi-light-source online image acquisition and detection system for capsule defect detection
CN212989193U