CN-121994807-A - Defect detection system, method and device, electronic equipment and storage medium
Abstract
The embodiment of the application provides a defect detection system, a method, a device, electronic equipment and a storage medium, which comprise a surface light source and a camera, wherein the surface light source is positioned above a detection area and used for emitting light to the direction of the detection area, the camera is positioned on a light path of appointed reflected light, the appointed reflected light is light reflected by an object to be detected in the detection area after the light emitted by the surface light source irradiates, the object to be detected comprises an object body and a heat shrinkage film externally packed by the object body, an incident angle corresponding to the appointed reflected light is larger than or equal to a Brewster angle of the heat shrinkage film, and the camera is used for collecting images of the object to be detected and obtaining defect detection results of the object to be detected. The scheme can improve the efficiency and accuracy of defect detection of thermal shrinkage film breakage and improve the production efficiency of products.
Inventors
- QIAO JUNJIE
- DU KAIFENG
- CHEN YUNSHUI
- LI KUI
Assignees
- 杭州海康机器人股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241106
Claims (16)
- 1. A defect detecting system, characterized by comprising a surface light source and a camera; The surface light source is positioned above the detection area and is used for emitting light to the direction of the detection area; The camera is positioned on a light path of appointed reflected light, the appointed reflected light is light reflected after the surface light source irradiates the detected object in the detection area, the detected object comprises an object body and a heat shrinkage film externally packed by the object body, an incident angle corresponding to the appointed reflected light is larger than or equal to a Brewster angle of the heat shrinkage film, the camera is used for collecting images of the detected object, and the images are used for obtaining defect detection results of the detected object.
- 2. The system of claim 1, wherein the defect detection system further comprises a transmission mechanism; The transmission mechanism is used for conveying the detected object to pass through the detection area.
- 3. The system of claim 1, wherein the detection zone is an upper zone of the drive mechanism; The transmission mechanism comprises a first conveyor belt and a second conveyor belt, the conveying direction of the first conveyor belt is the same as that of the second conveyor belt, and the first conveyor belt and the second conveyor belt are in butt joint; The width of the first conveyor belt is smaller than the width of a first surface in the conveying direction perpendicular to the first conveyor belt, and the first surface is the surface of the object to be detected, which is contacted with the first conveyor belt; The distance between the adjacent surfaces of the two sub-conveyor belts is smaller than the width of the second surface in the conveying direction perpendicular to the second conveyor belt, the second surface is the surface of the object to be measured, which is in contact with the two sub-conveyor belts, and the distance between the adjacent surfaces of the two sub-conveyor belts is larger than or equal to the width of the field of view range of the second camera; The first conveyor belt comprises a first conveyor belt, at least one first camera arranged on each side of the first conveyor belt in a conveying direction perpendicular to the first conveyor belt, the plurality of second cameras comprise at least one second camera oriented in the conveying direction of the second conveyor belt and at least one second camera oriented in the conveying opposite direction of the second conveyor belt, and projections of connecting lines of the plurality of second cameras on the second conveyor belt coincide with central lines of the second conveyor belt.
- 4. The system of claim 3, wherein the transmission mechanism further comprises a first receiving mechanism; The first receiving mechanism is arranged between the first conveyor belt and the second conveyor belt and is used for translating the object to be measured from the first conveyor belt to the second conveyor belt or translating the object to be measured from the second conveyor belt to the first conveyor belt.
- 5. The system of claim 1, wherein the detection zone is an upper zone of the drive mechanism; the transmission mechanism comprises a third conveyor belt and a fourth conveyor belt, the conveying direction of the third conveyor belt is perpendicular to the conveying direction of the fourth conveyor belt, and the third conveyor belt is in butt joint with the fourth conveyor belt; The third conveyor belt and the fourth conveyor belt are respectively single conveyor belts; the width of the third conveyor belt is smaller than the width of the surface of the object to be measured, which is in contact with the third conveyor belt, in the conveying direction perpendicular to the third conveyor belt; The cameras comprise a plurality of third cameras and a plurality of fourth cameras, at least one third camera is disposed on each side of the third conveyor belt in a conveying direction perpendicular to the third conveyor belt, and at least one fourth camera is disposed on each side of the fourth conveyor belt in a conveying direction perpendicular to the fourth conveyor belt.
- 6. The system of claim 5, wherein the transmission mechanism further comprises a second receiving mechanism; the second bearing mechanism is arranged between the third conveyor belt and the fourth conveyor belt and is used for translating the object to be measured from the third conveyor belt to the fourth conveyor belt or translating the object to be measured from the fourth conveyor belt to the third conveyor belt.
- 7. The system of claim 1, wherein the detection zone is an upper zone of the drive mechanism; The transmission mechanism comprises a fifth conveying belt, a sixth conveying belt and a rotating assembly, the conveying direction of the fifth conveying belt is the same as that of the sixth conveying belt, the rotating assembly is arranged between the fifth conveying belt and the sixth conveying belt, the fifth conveying belt is in butt joint with the rotating assembly, and the sixth conveying belt is in butt joint with the rotating assembly; the fifth conveyor belt and the sixth conveyor belt are respectively single conveyor belts; the width of the fifth conveyor belt is smaller than the width of the surface of the object to be measured, which is in contact with the fifth conveyor belt, in the conveying direction perpendicular to the fifth conveyor belt; the rotating assembly rotates according to a preset angle and a preset frequency; the cameras include a plurality of fifth cameras, and the rotating assembly each side disposes at least one fifth camera in a conveying direction perpendicular to the fifth conveyor belt.
- 8. The system of claim 7, wherein the transmission mechanism further comprises a third receiving mechanism; The third bearing mechanism is used for translating the object to be measured from the fifth conveyor belt to the rotating assembly and translating the object to be measured from the rotating assembly to the sixth conveyor belt, or translating the object to be measured from the sixth conveyor belt to the rotating assembly and translating the object to be measured from the rotating assembly to the fifth conveyor belt.
- 9. The system of any of claims 1-8, wherein the camera is positioned in an illumination direction of the surface light source.
- 10. The system of any of claims 1-8, wherein the distance between the surface light source and the object under test is a preset distance when the object under test is within the detection zone.
- 11. The system according to any one of claims 1 to 8, wherein a minimum incident angle of light of the surface light source outermost lamp bead irradiated on the object to be measured is smaller than or equal to a minimum incident angle corresponding to the specified reflected light on a plane parallel to the specified reflected light and the incident light corresponding to the specified reflected light.
- 12. The system of any of claims 1-8, wherein the defect detection system further comprises an electronic device communicatively coupled to the camera; The electronic equipment is used for detecting the gray value of the area of the detected object in the image to obtain a defect area with the gray value lower than a preset gray threshold value, and the defect area is used as a defect detection result.
- 13. A defect detection method, applied to an electronic device, comprising: Acquiring an image acquired by a camera in the system of any one of claims 1-12; detecting the region of the detected object in the image to obtain a defect detection result.
- 14. A defect detection apparatus, characterized by being applied to an electronic device, comprising: An acquisition module for acquiring images acquired by a camera in the system of any one of claims 1-12; and the detection module is used for detecting the region of the detected object in the image to obtain a defect detection result.
- 15. An electronic device, comprising: A memory for storing a computer program; A processor for implementing the method of claim 13 when executing a program stored on a memory.
- 16. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of claim 13.
Description
Defect detection system, method and device, electronic equipment and storage medium Technical Field The present application relates to the field of machine vision, and in particular, to a defect detection system, method, apparatus, electronic device, and storage medium. Background Because the heat-shrinkable film has the advantages of freshness preservation, attractive appearance, moisture resistance, dust prevention, pollution prevention, ultraviolet resistance and the like, the heat-shrinkable film is widely applied to product packaging in a plurality of fields such as foods, medicines, sterilized tableware, cosmetics and the like. With the wide application of heat shrink films, defect detection of breakage of heat shrink films has become a focus of attention. At present, the defect detection of the damage of the heat shrinkage film is mainly realized by adopting a manual mode. However, because the production line has a high production speed, the heat shrinkage film is thin and transparent, the heat shrinkage film package and the product are difficult to distinguish visually, the manual detection accuracy is low, and the production efficiency requirement cannot be met. Disclosure of Invention The embodiment of the application aims to provide a defect detection system, a defect detection method, a defect detection device, electronic equipment and a storage medium, so that the defect detection efficiency and accuracy of heat shrinkage film breakage are improved, and the production efficiency of products is improved. The specific technical scheme is as follows: In a first aspect, an embodiment of the present application provides a defect detection system, including a surface light source and a camera; The surface light source is positioned above the detection area and is used for emitting light to the direction of the detection area; The camera is positioned on a light path of appointed reflected light, the appointed reflected light is light reflected after the surface light source irradiates the detected object in the detection area, the detected object comprises an object body and a heat shrinkage film externally packed by the object body, an incident angle corresponding to the appointed reflected light is larger than or equal to a Brewster angle of the heat shrinkage film, the camera is used for collecting images of the detected object, and the images are used for obtaining defect detection results of the detected object. In some embodiments, the defect detection system further comprises a transmission mechanism; The transmission mechanism is used for conveying the detected object to pass through the detection area. In some embodiments, the detection zone is an upper zone of a drive mechanism, the drive mechanism comprises a first conveyor belt and a second conveyor belt, the first conveyor belt and the second conveyor belt are in the same conveying direction, the first conveyor belt and the second conveyor belt are in butt joint, the camera comprises a plurality of first cameras and a plurality of second cameras; The width of the first conveyor belt is smaller than the width of a first surface in the conveying direction perpendicular to the first conveyor belt, and the first surface is the surface of the object to be detected, which is contacted with the first conveyor belt; The distance between the adjacent surfaces of the two sub-conveyor belts is smaller than the width of the second surface in the conveying direction perpendicular to the second conveyor belt, the second surface is the surface of the object to be measured, which is in contact with the two sub-conveyor belts, and the distance between the adjacent surfaces of the two sub-conveyor belts is larger than or equal to the width of the field of view range of the second camera; The first conveyor belt comprises a first conveyor belt, at least one first camera arranged on each side of the first conveyor belt in a conveying direction perpendicular to the first conveyor belt, the plurality of second cameras comprise at least one second camera oriented in the conveying direction of the second conveyor belt and at least one second camera oriented in the conveying opposite direction of the second conveyor belt, and projections of connecting lines of the plurality of second cameras on the second conveyor belt coincide with central lines of the second conveyor belt. In some embodiments, the transmission further comprises a first receiving mechanism; The first receiving mechanism is arranged between the first conveyor belt and the second conveyor belt and is used for translating the object to be measured from the first conveyor belt to the second conveyor belt or translating the object to be measured from the second conveyor belt to the first conveyor belt. In some embodiments, the detection area is an upper area of a transmission mechanism, the transmission mechanism comprises a third conveyor belt and a fourth conveyor belt, the conveying direction of