System and method for measuring outer contour and bottleneck size of PET empty bottle or glass empty bottle
Through the cooperation of the rotating rod and the reflector, the detection distance between the CCD camera and the large-sized bottle is shortened, the problem of expanding the system's area is solved, the design space utilization rate is improved, and the PET empty bottle or glass empty bottle is realized. Accurate measurement of profile and bottle mouth size.
Patent Information
- Application Number
- CN202411531804.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When facing large-size bottles, the existing PET empty bottles or glass empty bottles need to increase the distance between the CCD camera and the bottle, resulting in an expansion of the system's footprint and a reduction in the design space utilization.
Using rotating rod, rotating rod driving component, bottle mouth and bottle body detection light source, CCD camera, reflector and control module, the detection distance between the CCD camera and large-size bottle is shortened by the cooperation of the rotating rod and reflector, and the detection distance between the CCD camera and the large-sized bottle is achieved. Accurate measurement of large size bottles.
It effectively reduces the area occupied by the measurement system, improves the utilization rate of design space, and realizes dynamic or static measurement of the outer contour and bottle mouth size of PET empty bottles or glass empty bottles.
Smart Images

Figure CN119124035A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of measuring the outer contour and bottle mouth dimensions of an empty PET bottle or an empty glass bottle, and in particular to a system and method for measuring the outer contour and bottle mouth dimensions of an empty PET bottle or an empty glass bottle. Background Art
[0002] In the existing PET empty bottle or glass empty bottle outer contour dimension measurement system, CCD (charge coupled device) camera is widely used as the core device for image acquisition. The system captures the image information of PET empty bottles or glass empty bottles through CCD camera, and then uses specific image processing algorithm to process and analyze these images to accurately calculate the outer contour dimension of the bottle. This technical solution shows good measurement accuracy and efficiency when the bottle size is moderate. However, when facing large PET empty bottles or glass empty bottles, due to the imaging characteristics of CCD camera, in order to fully capture the image of the entire large-sized bottle in its direct view state, the relative distance between the CCD camera and the measured bottle must be significantly increased. This requirement not only leads to the expansion of the occupied area of the entire measurement system, but also directly affects the utilization rate of the design space. Summary of the invention
[0003] In view of the above-mentioned defects, the present invention proposes a system and method for measuring the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle, aiming to solve the problem that in the existing outer contour size measurement system for an empty PET bottle or an empty glass bottle, when facing a larger empty PET bottle or an empty glass bottle, the relative distance between the CCD camera and the measured bottle must be increased in order to capture the image of the entire large-sized bottle. This requirement not only leads to an increase in the occupied area of the entire measurement system, but also directly affects the utilization rate of the design space.
[0004] To achieve this object, the present invention adopts the following technical solutions:
[0005] A PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system, comprising a first mounting plate, a rotating rod, a rotating rod driving assembly, a bottle mouth positioning block, an L-shaped plate, a bottle mouth outer diameter detection light source, a bottle outer contour detection light source, a CCD bottle mouth outer diameter detection camera, a CCD bottle outer contour detection camera, a first lifting support, a first mounting seat, a second lifting support, a second mounting seat, an upper reflector, a lower reflector, a second mounting plate, a guide rail, a third lifting support, a third mounting seat, a fourth mounting seat, a control module and a display module, wherein the L-shaped plate comprises a first inner side surface and a second inner side surface;
[0006] The rotating rod is rotatably installed on the first mounting plate, the rotating rod driving assembly is arranged at the bottom of the first mounting plate, the rotating rod driving assembly is used to drive the rotating rod to rotate, the bottle mouth positioning block is fixed to the top of the rotating rod, and the bottle mouth positioning block is used to locate the bottle mouth of the PET empty bottle or glass empty bottle to be measured; the L-shaped plate, the first lifting support, the second lifting support and the second mounting plate are installed on the top of the first mounting plate, the first lifting support and the second lifting support are respectively located at the front and rear sides of the L-shaped plate, and the second mounting plate is located on the right side of the L-shaped plate; the bottle body outer contour detection light source is arranged on the first inner side surface, and the bottle mouth outer diameter detection light source is arranged on the second inner side surface;
[0007] The first mounting seat can be movably arranged on the first lifting support up and down, and the CCD bottle mouth outer diameter detection camera is installed on the first mounting seat; the second mounting seat can be movably arranged on the second lifting support up and down, and the CCD bottle body outer contour detection camera is installed on the second mounting seat; the guide rail is fixed to the top of the second mounting plate, and the guide rail is arranged along the left and right directions. The third lifting support and the fourth mounting seat can both be slidably arranged on the guide rail left and right, and the third mounting seat can be movably arranged on the third lifting support up and down, the upper reflector can be rotatably installed on the third mounting seat, and the lower reflector can be rotatably installed on the fourth mounting seat, and the upper reflector and the lower reflector are symmetrically arranged up and down, and the control module is used to process and analyze the collected bottle mouth image and bottle body outer contour image of the PET empty bottle or glass empty bottle to be tested through the CCD image processing algorithm to calculate the size of the bottle mouth and bottle body outer contour of the PET empty bottle or glass empty bottle; the display module is used to display the image of the PET empty bottle or glass empty bottle to be tested.
[0008] Preferably, the rotating rod driving assembly includes a motor mounting frame, a motor, a first gear, a second gear and a rack; the motor mounting frame is installed at the bottom of the first mounting plate, the motor is installed on the motor mounting frame, the first gear is installed at the driving end of the motor, the second gear is installed at the bottom of the rotating rod, one end of the rack is wound around the first gear, and the other end of the rack is wound around the second gear.
[0009] Preferably, it also includes a first slide rail, a second slide rail, a third slide rail and five adjustment components; the first slide rail is installed on the first lifting support, the first slide rail is arranged in the up-down direction, and the first mounting seat can be slidably installed on the first slide rail by the adjustment component; the second slide rail is installed on the second lifting support, the second slide rail is arranged in the up-down direction, and the second mounting seat can be slidably installed on the second slide rail by the adjustment component; the third slide rail is installed on the third lifting support, the third slide rail is arranged in the up-down direction, and the third mounting seat can be slidably installed on the third slide rail by the adjustment component; the third lifting support and the fourth mounting seat are respectively slidably installed on the guide rail left and right by their respective adjustment components.
[0010] Preferably, the adjustment assembly includes a slider and an adjustment knob; the adjustment knob is arranged on one side of the slider, and the adjustment knob is used to adjust the loosening and locking of the slider.
[0011] Preferably, it further comprises a plurality of support rods, and the tops of the plurality of support rods are fixed to the bottom of the first mounting plate.
[0012] Another aspect of the present application provides a method for measuring the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle, comprising the following steps:
[0013] Step S1: placing the tested empty PET bottle or empty glass bottle with its mouth facing downward on the bottle mouth positioning block;
[0014] Step S2: Turn on the bottle mouth outer diameter detection light source, the bottle body outer contour detection light source, the CCD bottle mouth outer diameter detection camera and the CCD bottle body outer contour detection camera;
[0015] Step S3: adjusting the rotation angles of the upper reflector and the lower reflector so that the upper reflector and the lower reflector are perpendicular to each other;
[0016] Step S4: adjusting the upper reflector to move up and down and left and right, and adjusting the lower reflector to move left and right, and adjusting the CCD bottle mouth outer diameter detection camera to move up and down, so that the lens of the CCD bottle mouth outer diameter detection camera faces the bottle mouth of the tested PET empty bottle or glass empty bottle, and adjusting the CCD bottle body contour detection camera to move up and down, so that the lens of the CCD bottle body contour detection camera faces the mirror surface of the upper reflector, when the display module can clearly present the image of the entire tested PET empty bottle or glass empty bottle, the positions of the CCD bottle mouth outer diameter detection camera, the CCD bottle body contour detection camera, the upper reflector and the lower reflector are adjusted;
[0017] Step S5: starting the rotating rod driving assembly to drive the rotating rod to rotate, so that the tested PET empty bottle or glass empty bottle rotates;
[0018] Step S6: the CCD bottle mouth outer diameter detection camera collects the bottle mouth image of the tested PET empty bottle or glass empty bottle and transmits it to the control module, and the CCD bottle body contour detection camera collects the bottle body contour image of the tested PET empty bottle or glass empty bottle and transmits it to the control module;
[0019] Step S7: The control module receives the bottle mouth image and the bottle outer contour image of the tested PET empty bottle or glass empty bottle, and uses a CCD image processing algorithm to process and analyze the bottle mouth image and the bottle outer contour image of the tested PET empty bottle or glass empty bottle to calculate the size of the bottle mouth and the bottle outer contour of the PET empty bottle or glass empty bottle.
[0020] Preferably, in step S7, a CCD image processing algorithm is used to process and analyze the bottle mouth image and the outer contour image of the tested empty PET bottle or empty glass bottle, which specifically includes the following sub-steps:
[0021] Step S71: performing a frame selection process with the structural element on each pixel in the mouth image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the maximum value thereof as the pixel value of the corresponding pixel in the mouth image of the tested PET empty bottle or glass empty bottle, so as to generate the mouth image after the maximum value expansion operation; and performing a frame selection process with the structural element on each pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the maximum value thereof as the pixel value of the corresponding pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, so as to generate the outer contour image of the tested PET empty bottle or glass empty bottle after the maximum value expansion operation;
[0022] Step S72: performing a frame selection process with the structural element on each pixel in the mouth image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the minimum value therein as the pixel value of the corresponding pixel in the mouth image of the tested PET empty bottle or glass empty bottle, so as to generate the mouth image after the minimum corrosion operation; and performing a frame selection process with the structural element on each pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the minimum value therein as the pixel value of the corresponding pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, so as to generate the outer contour image of the tested PET empty bottle or glass empty bottle after the minimum corrosion operation;
[0023] Step S73: Calculate the difference between the bottle mouth image after the maximum expansion operation and the bottle mouth image after the minimum erosion operation to obtain a first gradient image; and calculate the difference between the bottle outer contour image after the maximum expansion operation and the bottle outer contour image after the minimum erosion operation to obtain a second gradient image;
[0024] Step S74: extracting the outline boundary of the mouth of the tested PET empty bottle or glass empty bottle from the first gradient image, and extracting the outline boundary of the outer body of the tested PET empty bottle or glass empty bottle from the second gradient image;
[0025] Step S75: expanding the outline boundary of the mouth of the tested PET empty bottle or glass empty bottle and the outline boundary of the outer body of the tested PET empty bottle or glass empty bottle respectively;
[0026] Step S76: Perform threshold processing on the expanded bottle mouth contour boundary of the tested PET empty bottle or glass empty bottle and the bottle body outer contour boundary of the tested PET empty bottle or glass empty bottle, respectively, to obtain the bottle mouth contour boundary data of the tested PET empty bottle or glass empty bottle and the bottle body outer contour boundary data of the tested PET empty bottle or glass empty bottle.
[0027] The technical solution provided by the present invention may include the following beneficial effects:
[0028] 1. In this solution, the outer contour and bottle mouth size of a PET empty bottle or a glass empty bottle can be dynamically or statically measured by the cooperation of the rotating rod, the rotating rod driving assembly, the bottle mouth outer diameter detection light source, the bottle body outer contour detection light source, the CCD bottle mouth outer diameter detection camera, the CCD bottle body outer contour detection camera, the upper reflector, the lower reflector and the control module.
[0029] 2. This solution projects the PET empty bottle or glass empty bottle to be measured onto the mirror surface of the lower reflector, so that the PET empty bottle or glass empty bottle to be measured is firstly put far away, and then the imaged object in the lower reflector is projected onto the mirror surface of the upper reflector, so that the PET empty bottle or glass empty bottle to be measured is put far away again, and finally the imaged object on the upper reflector is photographed by the CCD bottle body contour detection camera, so as to produce the visual effect of the CCD bottle body contour detection camera photographing the PET empty bottle or glass empty bottle to be measured from a distance. When it is necessary to measure the outer contour size of a larger PET empty bottle or glass empty bottle, the detection distance between the CCD bottle body contour detection camera and the larger PET empty bottle or glass empty bottle can be greatly shortened, thereby reducing the occupied area of the entire measurement system and improving the utilization rate of the design space. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1The present invention is a schematic diagram of a system for measuring the outer contour and the size of the bottle mouth of an empty PET bottle or an empty glass bottle;
[0031] Figure 2 yes Figure 1 A partial enlarged view of the middle A area;
[0032] Figure 3 It is an enlarged view of a rotating rod driving assembly according to one embodiment of the present invention.
[0033] Among them, 1. the first mounting plate; 2. the rotating rod; 3. the rotating rod driving assembly; 4. the bottle mouth positioning block; 5. the L-shaped plate; 6. the bottle mouth outer diameter detection light source; 7. the bottle body outer contour detection light source; 8. the CCD bottle mouth outer diameter detection camera; 9. the CCD bottle body outer contour detection camera; 10. the first lifting support; 11. the first mounting seat; 12. the second lifting support; 13. the second mounting seat; 14. the upper reflector; 15. the lower reflector; 16. the second mounting plate; 17. the guide rail; 18. the third lifting support; 19. the third mounting seat; 20. the fourth mounting seat; 21. the first slide rail; 22. the second slide rail; 23. the third slide rail; 24. the adjustment assembly; 25. the support rod; 31. the motor mounting bracket; 32. the motor; 33. the first gear; 34. the second gear; 35. the rack; 51. the first inner side surface; 52. the second inner side surface; 241. the slider; 242. the adjustment knob. DETAILED DESCRIPTION
[0034] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0035] In the description of the present invention, it is necessary to understand that the terms "length", "middle", "upper", "lower", "left", "right", "top", "bottom", etc. indicate orientations or positional relationships 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, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0036] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means more than two.
[0037] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "splicing" and "connection" 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 direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0038] A PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system, comprising a first mounting plate 1, a rotating rod 2, a rotating rod driving assembly 3, a bottle mouth positioning block 4, an L-shaped plate 5, a bottle mouth outer diameter detection light source 6, a bottle body outer contour detection light source 7, a CCD bottle mouth outer diameter detection camera 8, a CCD bottle body outer contour detection camera 9, a first lifting support 10, a first mounting seat 11, a second lifting support 12, a second mounting seat 13, an upper reflector 14, a lower reflector 15, a second mounting plate 16, a guide rail 17, a third lifting support 18, a third mounting seat 19, a fourth mounting seat 20, a control module (not shown in the figure) and a display module (not shown in the figure), wherein the L-shaped plate 5 comprises a first inner side surface 51 and a second inner side surface 52;
[0039] The rotating rod 2 is rotatably inserted into the first mounting plate 1, the rotating rod driving assembly 3 is arranged at the bottom of the first mounting plate 1, the rotating rod driving assembly 3 is used to drive the rotating rod 2 to rotate, the bottle mouth positioning block 4 is fixed to the top of the rotating rod 2, and the bottle mouth positioning block 4 is used to locate the bottle mouth of the PET empty bottle or glass empty bottle to be measured; the L-shaped plate 5, the first lifting support 10, the second lifting support 12 and the second mounting plate 16 are installed on the top of the first mounting plate 1, the first lifting support 10 and the second lifting support 12 are respectively located at the front and rear sides of the L-shaped plate 5, and the second mounting plate 16 is located on the right side of the L-shaped plate 5; the bottle body outer contour detection light source 7 is arranged on the first inner side surface 51, and the bottle mouth outer diameter detection light source 6 is arranged on the second inner side surface 52;
[0040] The first mounting seat 11 is movably arranged on the first lifting support 10, and the CCD bottle mouth outer diameter detection camera 8 is installed on the first mounting seat 11; the second mounting seat 13 is movably arranged on the second lifting support 12, and the CCD bottle body contour detection camera 9 is installed on the second mounting seat 13; the guide rail 17 is fixed to the top of the second mounting plate 16, and the guide rail 17 is arranged in the left and right direction. The third lifting support 18 and the fourth mounting seat 20 can be slidably arranged on the guide rail 17, and the third mounting seat 19 can be moved up and down. The upper reflector 14 is rotatably mounted on the third mounting seat 19, and the lower reflector 15 is rotatably mounted on the fourth mounting seat 20. The upper reflector 14 and the lower reflector 15 are symmetrically arranged up and down. The control module is used to process and analyze the collected bottle mouth image and bottle body outer contour image of the tested PET empty bottle or glass empty bottle through the CCD image processing algorithm to calculate the size of the bottle mouth and bottle body outer contour of the PET empty bottle or glass empty bottle; the display module is used to display the image of the tested PET empty bottle or glass empty bottle.
[0041] This solution is a PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system, such as Figure 1As shown, when it is necessary to measure the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle, first, the measured empty PET bottle or empty glass bottle is placed with the bottle mouth facing downward on the bottle mouth positioning block 4; then, the bottle mouth outer diameter detection light source 6, the bottle outer contour detection light source 7, the CCD bottle mouth outer diameter detection camera 8 and the CCD bottle outer contour detection camera 9 are turned on, and then, since the upper reflector 14 is rotatably mounted on the third mounting seat 19 and the lower reflector 15 is rotatably mounted on the fourth mounting seat 20, the rotation angles of the upper reflector 14 and the lower reflector 15 are adjusted so that the upper reflector 14 and the lower reflector 15 are aligned with each other. The lower reflectors 15 are mutually perpendicular; the position of the third mounting seat 19 on the third lifting support 18 and the position of the third lifting support 18 on the guide rail 17 are adjusted to adjust the upper reflector 14 to move up and down and left and right, and the position of the fourth mounting seat 20 on the guide rail 17 is adjusted to adjust the lower reflector 15 to move left and right, and the position of the first mounting seat 11 on the first lifting support 10 is adjusted to adjust the CCD bottle mouth outer diameter detection camera 8 to move up and down, so that the lens of the CCD bottle mouth outer diameter detection camera 8 faces the bottle mouth of the PET empty bottle or glass empty bottle to be detected, and the second mounting seat 20 is ... second mounting seat 20 is adjusted to adjust the upper reflector 14 to move up and down and left and right, and the second reflector 14 is adjusted to adjust the upper reflector 14 to move up and down and left and right, and the second reflector 14 is adjusted to adjust the upper reflector 14 to move up and down and left and right, and the second reflector 14 is adjusted to adjust the upper reflector 14 to move up and down, and the upper reflector 14 is adjusted to move up and down, and the upper reflector 14 is adjusted to move up and down, and the upper reflector 14 is adjusted to move up and down, and the upper reflector 1 The position of the mounting seat 13 on the second lifting support 12 is used to adjust the CCD bottle outer contour detection camera 9 to move up and down, so that the lens of the CCD bottle outer contour detection camera 9 faces the mirror surface of the upper reflector 14. When the display module can clearly present the image of the entire PET empty bottle or glass empty bottle to be detected, the position adjustment of the CCD bottle mouth outer diameter detection camera 8, the CCD bottle outer contour detection camera 9, the upper reflector 14 and the lower reflector 15 is completed; then, the rotating rod driving component 3 is started, and the rotating rod driving component 3 drives the rotating rod 2 to rotate, thereby driving the PET to be detected The empty bottle or glass bottle rotates, thereby realizing dynamic detection of the outer contour and bottle mouth size of the PET empty bottle or glass empty bottle; finally, the CCD bottle mouth outer diameter detection camera 8 collects the bottle mouth image of the tested PET empty bottle or glass empty bottle and transmits it to the control module, and the CCD bottle body outer contour detection camera 9 collects the bottle body outer contour image of the tested PET empty bottle or glass empty bottle and transmits it to the control module, and the control module processes and analyzes the bottle mouth image and bottle body outer contour image of the tested PET empty bottle or glass empty bottle through the CCD image processing algorithm to calculate the size of the bottle mouth and bottle body outer contour of the PET empty bottle or glass empty bottle. Further explanation, the CCD image processing algorithm is an existing image processing algorithm.
[0042] In this solution, the outer contour and the size of the bottle mouth of a PET empty bottle or a glass empty bottle can be measured dynamically or statically by the cooperation of the rotating rod 2, the rotating rod driving assembly 3, the bottle mouth outer diameter detection light source 6, the bottle body outer contour detection light source 7, the CCD bottle mouth outer diameter detection camera 8, the CCD bottle body outer contour detection camera 9, the upper reflector 14, the lower reflector 15 and the control module. In this solution, the measured PET empty bottle or glass empty bottle is first projected into the mirror surface of the lower reflector 15, and then the imaged object in the lower reflector 15 is projected into the mirror surface of the upper reflector 14, so that the measured PET empty bottle or glass empty bottle is further away again, and finally the imaged object on the upper reflector 14 is photographed by the CCD bottle body outer contour detection camera 9, so as to produce the visual effect that the CCD bottle body outer contour detection camera 9 photographs the measured PET empty bottle or glass empty bottle from a long distance. When it is necessary to measure the outer contour dimensions of a larger PET empty bottle or glass empty bottle, the detection distance between the CCD bottle outer contour detection camera 9 and the larger PET empty bottle or glass empty bottle can be greatly shortened, thereby reducing the occupied area of the entire measurement system and improving the utilization rate of the design space.
[0043] Preferably, the rotating rod driving assembly 3 comprises a motor mounting frame 31, a motor 32, a first gear 33, a second gear 34 and a rack 35; the motor mounting frame 31 is mounted on the bottom of the first mounting plate 1, the motor 32 is mounted on the motor mounting frame 31, the first gear 33 is mounted on the driving end of the motor 32, the second gear 34 is mounted on the bottom of the rotating rod 2, one end of the rack 35 is wound around the first gear 33, and the other end of the rack 35 is wound around the second gear 34. In this embodiment, Figure 3 As shown, when the PET empty bottle or glass empty bottle to be tested needs to be rotated, the motor 32 is started, and the motor 32 drives the first gear 33 to rotate, thereby driving the rack 35 to transmit, thereby driving the second gear 34 to rotate, thereby driving the rotating rod 2 to rotate, thereby realizing the rotation of the PET empty bottle or glass empty bottle to be tested.
[0044] Preferably, it also includes a first slide rail 21, a second slide rail 22, a third slide rail 23 and five adjustment components 24; the first slide rail 21 is installed on the first lifting support 10, the first slide rail 21 is arranged in the up-down direction, and the first mounting seat 11 can be slidably installed on the first slide rail 21 by the adjustment component 24; the second slide rail 22 is installed on the second lifting support 12, the second slide rail 22 is arranged in the up-down direction, and the second mounting seat 13 can be slidably installed on the second slide rail 22 by the adjustment component 24; the third slide rail 23 is installed on the third lifting support 18, the third slide rail 23 is arranged in the up-down direction, and the third mounting seat 19 can be slidably installed on the third slide rail 23 by the adjustment component 24; the third lifting support 18 and the fourth mounting seat 20 can be slidably installed on the guide rail 17 left and right by their respective adjustment components 24. In this embodiment, Figure 1-2 As shown, when the positions of the CCD bottle mouth outer diameter detection camera 8 , the CCD bottle body outer contour detection camera 9 , the upper reflector 14 and the lower reflector 15 need to be adjusted, the corresponding adjustment components 24 can be adjusted.
[0045] Preferably, the adjustment component 24 includes a slider 241 and an adjustment knob 242; the adjustment knob 242 is disposed on one side of the slider 241, and the adjustment knob 242 is used to adjust the loosening and locking of the slider 241. Figure 1-2 As shown, when it is necessary to adjust the positions of the CCD bottle mouth outer diameter detection camera 8, the CCD bottle body outer contour detection camera 9, the upper reflector 14, and the lower reflector 15, the corresponding adjusting knob 242 is twisted to loosen the corresponding slider 241, thereby adjusting the positions of the CCD bottle mouth outer diameter detection camera 8, the CCD bottle body outer contour detection camera 9, the upper reflector 14, and the lower reflector 15. After the positions of the CCD bottle mouth outer diameter detection camera 8, the CCD bottle body outer contour detection camera 9, the upper reflector 14, and the lower reflector 15 are adjusted, the corresponding adjusting knob 242 is twisted again to lock the corresponding slider 241, thereby fixing the CCD bottle mouth outer diameter detection camera 8, the CCD bottle body outer contour detection camera 9, the upper reflector 14, and the lower reflector 15.
[0046] Preferably, it further comprises a plurality of support rods 25, the tops of the plurality of support rods 25 are fixed to the bottom of the first mounting plate 1. Figure 1 As shown, by providing a plurality of the support rods 25, it is beneficial to better support the first mounting plate 1, so that the structure of the entire measuring system is more stable.
[0047] Another aspect of the present application provides a method for measuring the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle, comprising the following steps:
[0048] Step S1: placing the tested empty PET bottle or empty glass bottle with its mouth facing downward on the bottle mouth positioning block 4;
[0049] Step S2: Turn on the bottle mouth outer diameter detection light source 6, the bottle body outer contour detection light source 7, the CCD bottle mouth outer diameter detection camera 8 and the CCD bottle body outer contour detection camera 9;
[0050] Step S3: adjusting the rotation angles of the upper reflector 14 and the lower reflector 15 so that the upper reflector 14 and the lower reflector 15 are perpendicular to each other;
[0051] Step S4: adjusting the upper reflector 14 to move up and down and left and right, adjusting the lower reflector 15 to move left and right, and adjusting the CCD bottle mouth outer diameter detection camera 8 to move up and down, so that the lens of the CCD bottle mouth outer diameter detection camera 8 faces the bottle mouth of the PET empty bottle or glass empty bottle to be detected, and adjusting the CCD bottle body outer contour detection camera 9 to move up and down, so that the lens of the CCD bottle body outer contour detection camera 9 faces the mirror surface of the upper reflector 14. When the display module can clearly present the image of the entire PET empty bottle or glass empty bottle to be detected, the positions of the CCD bottle mouth outer diameter detection camera 8, the CCD bottle body outer contour detection camera 9, the upper reflector 14 and the lower reflector 15 are adjusted;
[0052] Step S5: starting the rotating rod driving assembly 3 to drive the rotating rod 2 to rotate, so that the tested PET empty bottle or glass empty bottle rotates;
[0053] Step S6: the CCD bottle mouth outer diameter detection camera 8 collects the bottle mouth image of the tested PET empty bottle or glass empty bottle and transmits it to the control module, and the CCD bottle body contour detection camera 9 collects the bottle body contour image of the tested PET empty bottle or glass empty bottle and transmits it to the control module;
[0054] Step S7: The control module receives the bottle mouth image and the bottle outer contour image of the tested PET empty bottle or glass empty bottle, and uses a CCD image processing algorithm to process and analyze the bottle mouth image and the bottle outer contour image of the tested PET empty bottle or glass empty bottle to calculate the size of the bottle mouth and the bottle outer contour of the PET empty bottle or glass empty bottle.
[0055] The present invention provides a method for measuring the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle. By executing steps S1-S7, the dynamic or static measurement of the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle is achieved. The present invention projects the empty PET bottle or the empty glass bottle to be measured onto the mirror surface of the lower reflector 15, so that the empty PET bottle or the empty glass bottle to be measured is firstly put far away, and then projects the imaged object in the lower reflector 15 onto the mirror surface of the upper reflector 14, so that the empty PET bottle or the empty glass bottle to be measured is put far away again, and finally the imaged object on the upper reflector 14 is photographed by the CCD bottle outer contour detection camera 9, so as to produce the visual effect that the CCD bottle outer contour detection camera 9 photographs the empty PET bottle or the empty glass bottle to be measured at a long distance. When it is necessary to measure the outer contour size of an empty PET bottle or an empty glass bottle of a larger size, the detection distance between the CCD bottle outer contour detection camera 9 and the empty PET bottle or the empty glass bottle of a larger size can be greatly shortened, thereby reducing the occupied area of the entire measurement system and improving the utilization rate of the design space.
[0056] Preferably, in step S7, a CCD image processing algorithm is used to process and analyze the bottle mouth image and the outer contour image of the tested empty PET bottle or empty glass bottle, which specifically includes the following sub-steps:
[0057] Step S71: performing a frame selection process with the structural element on each pixel in the mouth image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the maximum value thereof as the pixel value of the corresponding pixel in the mouth image of the tested PET empty bottle or glass empty bottle, so as to generate the mouth image after the maximum value expansion operation; and performing a frame selection process with the structural element on each pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the maximum value thereof as the pixel value of the corresponding pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, so as to generate the outer contour image of the tested PET empty bottle or glass empty bottle after the maximum value expansion operation;
[0058] Step S72: performing a frame selection process with the structural element on each pixel in the mouth image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the minimum value therein as the pixel value of the corresponding pixel in the mouth image of the tested PET empty bottle or glass empty bottle, so as to generate the mouth image after the minimum corrosion operation; and performing a frame selection process with the structural element on each pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the minimum value therein as the pixel value of the corresponding pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, so as to generate the outer contour image of the tested PET empty bottle or glass empty bottle after the minimum corrosion operation;
[0059] Step S73: Calculate the difference between the bottle mouth image after the maximum expansion operation and the bottle mouth image after the minimum erosion operation to obtain a first gradient image; and calculate the difference between the bottle outer contour image after the maximum expansion operation and the bottle outer contour image after the minimum erosion operation to obtain a second gradient image;
[0060] Step S74: extracting the outline boundary of the mouth of the tested PET empty bottle or glass empty bottle from the first gradient image, and extracting the outline boundary of the outer body of the tested PET empty bottle or glass empty bottle from the second gradient image;
[0061] Step S75: expanding the outline boundary of the mouth of the tested PET empty bottle or glass empty bottle and the outline boundary of the outer body of the tested PET empty bottle or glass empty bottle respectively;
[0062] Step S76: Perform threshold processing on the expanded bottle mouth contour boundary of the tested PET empty bottle or glass empty bottle and the bottle body outer contour boundary of the tested PET empty bottle or glass empty bottle, respectively, to obtain the bottle mouth contour boundary data of the tested PET empty bottle or glass empty bottle and the bottle body outer contour boundary data of the tested PET empty bottle or glass empty bottle.
[0063] In this embodiment, in step S71, by performing a maximum expansion operation on the mouth image and the outer contour image of the PET empty bottle or glass empty bottle under test, the target area in the mouth image and the outer contour image of the PET empty bottle or glass empty bottle under test can be enhanced, and the edge of the target area can be expanded. In step S72, by performing a minimum corrosion operation on the mouth image and the outer contour image of the PET empty bottle or glass empty bottle under test, the fine noise and details in the mouth image and the outer contour image of the PET empty bottle or glass empty bottle under test can be removed, so that the edge of the target area in the mouth image and the outer contour image of the PET empty bottle or glass empty bottle under test is clearer and smoother. In step S73, by calculating the first gradient image and the second gradient image, it is beneficial to the subsequent detection and extraction of the mouth and outer contour edge of the PET empty bottle or glass empty bottle under test. In step S74, by respectively performing expansion processing on the mouth contour boundary of the tested PET empty bottle or glass empty bottle and the outer contour boundary of the tested PET empty bottle or glass empty bottle, it is helpful to ensure the integrity of the mouth contour boundary and the outer contour boundary of the tested PET empty bottle or glass empty bottle. In step S75, by respectively performing threshold processing on the expanded mouth contour boundary of the tested PET empty bottle or glass empty bottle and the outer contour boundary of the tested PET empty bottle or glass empty bottle, it is helpful to obtain the closed mouth contour boundary and the outer contour boundary data of the tested PET empty bottle or glass empty bottle, so as to facilitate the subsequent calculation of the size of the mouth contour and the outer contour of the tested PET empty bottle or glass empty bottle.
[0064] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without paying creative labor, and these methods will fall within the scope of protection of the present invention.
Claims
1. A system for measuring the outer contour and bottle mouth dimensions of an empty PET bottle or an empty glass bottle, characterized by: It includes a first mounting plate, a rotating rod, a rotating rod driving assembly, a bottle mouth positioning block, an L-shaped plate, a bottle mouth outer diameter detection light source, a bottle body outer contour detection light source, a CCD bottle mouth outer diameter detection camera, a CCD bottle body outer contour detection camera, a first lifting support, a first mounting seat, a second lifting support, a second mounting seat, an upper reflector, a lower reflector, a second mounting plate, a guide rail, a third lifting support, a third mounting seat, a fourth mounting seat, a control module and a display module, wherein the L-shaped plate includes a first inner side surface and a second inner side surface; The rotating rod is rotatably installed on the first mounting plate, the rotating rod driving assembly is arranged at the bottom of the first mounting plate, the rotating rod driving assembly is used to drive the rotating rod to rotate, the bottle mouth positioning block is fixed to the top of the rotating rod, and the bottle mouth positioning block is used to locate the bottle mouth of the PET empty bottle or glass empty bottle to be measured; the L-shaped plate, the first lifting support, the second lifting support and the second mounting plate are installed on the top of the first mounting plate, the first lifting support and the second lifting support are respectively located at the front and rear sides of the L-shaped plate, and the second mounting plate is located on the right side of the L-shaped plate; the bottle body outer contour detection light source is arranged on the first inner side surface, and the bottle mouth outer diameter detection light source is arranged on the second inner side surface; The first mounting seat can be movably arranged on the first lifting support up and down, and the CCD bottle mouth outer diameter detection camera is installed on the first mounting seat; the second mounting seat can be movably arranged on the second lifting support up and down, and the CCD bottle body outer contour detection camera is installed on the second mounting seat; the guide rail is fixed to the top of the second mounting plate, and the guide rail is arranged along the left and right directions. The third lifting support and the fourth mounting seat can both be slidably arranged on the guide rail left and right, and the third mounting seat can be movably arranged on the third lifting support up and down, the upper reflector can be rotatably installed on the third mounting seat, and the lower reflector can be rotatably installed on the fourth mounting seat, and the upper reflector and the lower reflector are symmetrically arranged up and down, and the control module is used to process and analyze the collected bottle mouth image and bottle body outer contour image of the PET empty bottle or glass empty bottle to be tested through the CCD image processing algorithm to calculate the size of the bottle mouth and bottle body outer contour of the PET empty bottle or glass empty bottle; the display module is used to display the image of the PET empty bottle or glass empty bottle to be tested.
2. A PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system according to claim 1, characterized in that: The rotating rod driving assembly includes a motor mounting frame, a motor, a first gear, a second gear and a rack; The motor mounting frame is installed at the bottom of the first mounting plate, the motor is installed on the motor mounting frame, the first gear is installed at the driving end of the motor, the second gear is installed at the bottom of the rotating rod, one end of the rack is wound around the first gear, and the other end of the rack is wound around the second gear.
3. A PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system according to claim 1, characterized in that: Also includes a first slide rail, a second slide rail, a third slide rail and five adjustment components; The first slide rail is installed on the first lifting support, the first slide rail is arranged in the up-down direction, and the first mounting seat is slidably installed on the first slide rail by the adjusting assembly; the second slide rail is installed on the second lifting support, the second slide rail is arranged in the up-down direction, and the second mounting seat is slidably installed on the second slide rail by the adjusting assembly; the third slide rail is installed on the third lifting support, the third slide rail is arranged in the up-down direction, and the third mounting seat is slidably installed on the third slide rail by the adjusting assembly; the third lifting support and the fourth mounting seat are respectively slidably installed on the guide rail leftward and rightward by their respective adjusting assemblies.
4. A PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system according to claim 3, characterized in that: The adjusting assembly comprises a slider and an adjusting knob; the adjusting knob is arranged on one side of the slider, and the adjusting knob is used to adjust the loosening and locking of the slider.
5. A PET empty bottle or glass empty bottle outer contour and bottle mouth size measurement system according to claim 1, characterized in that: It also includes a plurality of support rods, and the tops of the plurality of support rods are fixed to the bottom of the first mounting plate.
6. A method for measuring the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle, applied to the outer contour and bottle mouth size measuring system of an empty PET bottle or an empty glass bottle as claimed in any one of claims 1 to 5, characterized in that: The following steps are involved: Step S1: placing the tested empty PET bottle or empty glass bottle with its mouth facing downward on the bottle mouth positioning block; Step S2: Turn on the bottle mouth outer diameter detection light source, the bottle body outer contour detection light source, the CCD bottle mouth outer diameter detection camera and the CCD bottle body outer contour detection camera; Step S3: adjusting the rotation angles of the upper reflector and the lower reflector so that the upper reflector and the lower reflector are perpendicular to each other; Step S4: adjusting the upper reflector to move up and down and left and right, and adjusting the lower reflector to move left and right, and adjusting the CCD bottle mouth outer diameter detection camera to move up and down, so that the lens of the CCD bottle mouth outer diameter detection camera faces the bottle mouth of the tested PET empty bottle or glass empty bottle, and adjusting the CCD bottle body contour detection camera to move up and down, so that the lens of the CCD bottle body contour detection camera faces the mirror surface of the upper reflector, when the display module can clearly present the image of the entire tested PET empty bottle or glass empty bottle, the positions of the CCD bottle mouth outer diameter detection camera, the CCD bottle body contour detection camera, the upper reflector and the lower reflector are adjusted; Step S5: starting the rotating rod driving assembly to drive the rotating rod to rotate, so that the tested PET empty bottle or glass empty bottle rotates; Step S6: the CCD bottle mouth outer diameter detection camera collects the bottle mouth image of the tested PET empty bottle or glass empty bottle and transmits it to the control module, and the CCD bottle body contour detection camera collects the bottle body contour image of the tested PET empty bottle or glass empty bottle and transmits it to the control module; Step S7: The control module receives the bottle mouth image and the bottle outer contour image of the tested PET empty bottle or glass empty bottle, and uses a CCD image processing algorithm to process and analyze the bottle mouth image and the bottle outer contour image of the tested PET empty bottle or glass empty bottle to calculate the size of the bottle mouth and the bottle outer contour of the PET empty bottle or glass empty bottle.
7. A method for measuring the outer contour and bottle mouth size of an empty PET bottle or an empty glass bottle according to claim 6, characterized in that: In step S7, the CCD image processing algorithm is used to process and analyze the bottle mouth image and the outer contour image of the tested PET empty bottle or glass empty bottle, which specifically includes the following sub-steps: Step S71: performing a frame selection process with the structural element on each pixel in the mouth image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the maximum value thereof as the pixel value of the corresponding pixel in the mouth image of the tested PET empty bottle or glass empty bottle, so as to generate the mouth image after the maximum value expansion operation; and performing a frame selection process with the structural element on each pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the maximum value thereof as the pixel value of the corresponding pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, so as to generate the outer contour image of the tested PET empty bottle or glass empty bottle after the maximum value expansion operation; Step S72: performing a frame selection process with the structural element on each pixel in the mouth image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the minimum value therein as the pixel value of the corresponding pixel in the mouth image of the tested PET empty bottle or glass empty bottle, so as to generate the mouth image after the minimum corrosion operation; and performing a frame selection process with the structural element on each pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, and obtaining the pixel values of all pixels framed by the structural element, and taking the minimum value therein as the pixel value of the corresponding pixel in the outer contour image of the tested PET empty bottle or glass empty bottle, so as to generate the outer contour image of the tested PET empty bottle or glass empty bottle after the minimum corrosion operation; Step S73: Calculate the difference between the bottle mouth image after the maximum expansion operation and the bottle mouth image after the minimum erosion operation to obtain a first gradient image; and calculate the difference between the bottle outer contour image after the maximum expansion operation and the bottle outer contour image after the minimum erosion operation to obtain a second gradient image; Step S74: extracting the outline boundary of the mouth of the tested PET empty bottle or glass empty bottle from the first gradient image, and extracting the outline boundary of the outer body of the tested PET empty bottle or glass empty bottle from the second gradient image; Step S75: expanding the outline boundary of the mouth of the tested PET empty bottle or glass empty bottle and the outline boundary of the outer body of the tested PET empty bottle or glass empty bottle respectively; Step S76: Perform threshold processing on the expanded bottle mouth contour boundary of the tested PET empty bottle or glass empty bottle and the bottle body outer contour boundary of the tested PET empty bottle or glass empty bottle, respectively, to obtain the bottle mouth contour boundary data of the tested PET empty bottle or glass empty bottle and the bottle body outer contour boundary data of the tested PET empty bottle or glass empty bottle.
Citation Information
Patent Citations
Empty bottle mouth defect inspection method and device
CN101105459A
Measurement device for dimension of bottle preform
CN106441156A
Fast moving bottle pre-form size precision measuring device
CN106705839A
Bottle pre-form size fast measuring device
CN106705840A
White light interference three-dimensional shape measurement optical system
CN107796330A
Cited By
Multi-view vision three-dimensional measurement equipment for complex parts
CN120721022A
Empty wine bottle volume detection equipment and method
CN121453155A
