A product defect detection device and product defect detection method based on machine vision
Through the product defect detection device based on machine vision, the camera and light source module are used to automatically detect product defects, which solves the problems of low detection efficiency and low accuracy in the existing technology, and achieves efficient and accurate product defect detection.
Patent Information
- Application Number
- CN202110620710.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-06-03
AI Technical Summary
The existing technology lacks automated equipment for product defect detection, resulting in low detection efficiency, heavy workload, high false detection rate and inconsistent product quality.
Design a product defect detection device based on machine vision, including a detection bracket, a camera module, a light source module and a detection host. It automatically detects product defects through the camera and uses the first and second light source modules to provide fill light to improve detection accuracy. and efficiency.
It realizes automated product defect detection, improves detection efficiency and accuracy, and reduces the influence of manual subjective factors. It is suitable for detecting whether products are missing, mislabeled, or have appearance defects on the assembly line.
Smart Images

Figure CN113376165B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mechanical equipment, and in particular to a product defect detection device and a product defect detection method based on machine vision. Background Art
[0002] During the manufacturing process or before a product leaves the factory, it is often necessary to inspect the surface of the processed product to determine whether there are any defects. For example, after cutting the borders of some products, it is necessary to inspect the surface defects of the cutting area; for another example, after the product is labeled, QR code or barcode is affixed, it is necessary to inspect it to determine whether there are defects such as missing or wrong affixed; for another example, before the product leaves the factory, it is necessary to inspect its appearance for defects. However, there is currently no ready-made equipment that can directly perform automated detection of product defects, and it all depends on the naked eye identification of the inspectors, which results in long detection time, heavy workload, low efficiency and easy misdetection. At the same time, the detection process is greatly affected by the subjective influence of the operators, resulting in different judgment standards and uneven product quality. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a product defect detection device based on machine vision with high detection efficiency and detection accuracy.
[0004] In order to achieve the above object, the solution of the present invention is:
[0005] A product defect detection device based on machine vision, comprising:
[0006] A testing bracket, comprising a testing platform and a support, wherein the support is vertically arranged on one side of the testing platform;
[0007] A camera module, comprising a camera, a mounting bracket, and a fixing mechanism, wherein the mounting bracket is arranged on a support column of the detection bracket, the fixing mechanism is connected to the mounting bracket, the camera is arranged on the fixing mechanism, and the lens of the camera faces the detection platform;
[0008] A first light source module is arranged above the detection platform and below the camera module; the first light source module includes a first light source and a first light source bracket, the first light source is arranged on the first light source bracket, and the first light source bracket is arranged on the pillar;
[0009] At least one second light source module, including a second light source, a light source swing arm, a light source clamp and a bracket clamp, the bracket clamp is arranged on the pillar, the second light source is arranged on the light source clamp, and the light source swing arm connects the light source clamp and the bracket clamp;
[0010] A detection host connected to the camera; and
[0011] A light source controller is connected to the camera. The light source controller is provided with a first channel and a second channel. The first channel is connected to the first light source, and the second channel is connected to the second light source.
[0012] Furthermore, the fixing mechanism includes a U-shaped frame, adjusting screws arranged on both sides of the U-shaped frame, and clamping plates arranged at opposite ends of the two adjusting screws.
[0013] Furthermore, an adjusting rod is provided between the mounting bracket and the fixing mechanism.
[0014] Furthermore, the first light source is an annular light source, and a lens hole larger than the camera lens is provided at the center of the annular light source.
[0015] Furthermore, the first light source bracket includes a mounting plate, a connecting plate and an adjusting frame. The mounting plate is slidably arranged on the pillar. One end of the connecting plate is connected to the mounting plate and the other end is connected to the adjusting frame. The first light source is arranged on the adjusting frame.
[0016] Furthermore, a through hole is provided on the mounting plate, one end of the connecting plate is fixed to the adjusting frame, and the other end is slidably arranged in the through hole of the mounting plate.
[0017] Furthermore, the adjustment frame includes an X-axis fixed plate and a Y-axis fixed plate connected to the connecting plate, the X-axis fixed plate is provided with an X-axis adjustment slide rail, the Y-axis fixed plate can be slidably arranged on the X-axis adjustment slide rail, and the Y-axis fixed plate is provided with a Y-axis adjustment slide rail.
[0018] Furthermore, the light source swing arm has a first joint and a second joint, and the first joint and the second joint are pivotally connected together.
[0019] Furthermore, at least one of the first joint and the second joint is a telescopic sleeve.
[0020] Furthermore, the light source swing arm and the light source clamping claw are connected as well as the light source swing arm and the bracket clamping claw through a universal ball head.
[0021] Furthermore, the light source clamp and the bracket clamp have the same structure, respectively including a left clamp, a right clamp, a connecting block and a lock, the left clamp and the right clamp are respectively pivoted at both ends of the connecting block, the connecting block is pivoted to the light source swing arm, and the lock connects the left clamp and the right clamp.
[0022] Another object of the present invention is to overcome the deficiencies of the prior art and to provide a product defect detection method based on a machine vision product defect detection device with high detection efficiency and detection accuracy.
[0023] In order to achieve the above object, the technical solution adopted by the present invention is:
[0024] A method for detecting product defects based on a product defect detection device of machine vision comprises the following steps:
[0025] Step A: Place the product on the inspection platform with the surface to be inspected facing upward and below the camera lens;
[0026] Step B: Start the detection host connected to the camera, the detection host triggers the camera, the camera detects the amount of light entering the lens, and determines whether fill light is needed according to the amount of light entering. If fill light is not needed, go to step C; if fill light is needed due to insufficient light entering, turn on the first light source and / or the second light source through the light source controller; the second light source is used to fill light in the local area with dark light;
[0027] Step C: The camera takes a photo of the product and transmits it back to the detection host for detection and analysis, and displays the detection results.
[0028] After adopting the above structure, the product defect detection device and detection method based on machine vision of the present invention adopts automatic detection by camera to replace manual detection of product defects, has a high degree of automation, and is suitable for being installed beside the production line to detect whether the product is missing, mislabeled, barcode, whether the appearance has defects, etc. Compared with the existing manual detection method, the use of camera connected to the detection host can greatly improve the detection efficiency, and machine detection can avoid the influence of human subjective factors, thereby improving the detection accuracy. The first light source module and the second light source module are installed on the detection table to improve the camera photography effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a three-dimensional schematic diagram of the present invention.
[0030] Figure 2 It is a structural schematic diagram of the camera module of the present invention.
[0031] Figure 3 It is a structural schematic diagram of the first light source module of the present invention.
[0032] Figure 4 It is a schematic structural diagram of the second light source module of the present invention. DETAILED DESCRIPTION
[0033] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.
[0034] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “X”, “Y”, “Z”, etc., indicating orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0035] 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, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0036] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be connected, detachably connected, or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0037] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0038] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms should not be understood as necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
[0039] like Figures 1 to 4 As shown, the present invention discloses a product defect detection device based on machine vision, which includes a detection bracket 1, a camera module 2, a first light source module 3, a second light source module 4, a detection host and a light source controller.
[0040] The detection bracket 1 includes a detection platform 11 and a support column 12 . The support column 12 is vertically arranged on one side of the detection platform 11 .
[0041] like Figure 2 As shown, the camera module 2 includes a camera 21, a mounting bracket 22, and a fixing mechanism 23. The mounting bracket 22 can be slid up and down on the pillar 12 of the detection bracket 1, and the mounting bracket 22 is connected to the fixing mechanism 23 on the side facing the detection platform 11. The camera 21 is installed on the fixing mechanism 23, and the lens of the camera 21 faces the detection platform 11. The camera 21 is connected to the light source controller and the detection host. The fixing mechanism 23 is used to fix the camera 21, and its structure can be various. The figure shows one structure of the fixing mechanism 23. In order to facilitate the installation of cameras 21 of various models and sizes, the fixing mechanism 23 includes a U-shaped frame 231 and an adjusting screw 232 arranged on both sides of the U-shaped frame 231 and a card plate 233 arranged at the opposite ends of the two adjusting screws 232. The camera 21 can be clamped by the two card plates 233. In order to further ensure that the camera 21 is installed firmly, mutually matching convex particles and grooves can be set between the two card plates 233 and the camera 21, or anti-slip pads can be set on the two opposing card plates 233. In order to facilitate adjustment of the position of the camera 21 , an adjustment rod 24 is further provided between the mounting bracket 22 and the fixing mechanism 23 .
[0042] like Figure 3As shown, the first light source module 3 is arranged above the detection platform 11 and below the camera module 2, and includes a first light source 31 and a first light source bracket 32. The first light source 31 is arranged on the first light source bracket 32 and is connected to the first channel of the light source controller. In this embodiment, the first light source 31 is an annular light source, and the center of the annular light source is provided with a lens hole 311 larger than the lens of the camera 21. One end of the first light source bracket 32 is arranged on the pillar 12, and the other end faces the detection platform 11. The structure of the first light source bracket 32 can be various. In this embodiment, the first light source bracket 32 includes a mounting plate 321, a connecting plate 322 and an adjusting frame 323. The mounting plate 321 is slidably arranged on the pillar 12, one end of the connecting plate 322 is connected to the mounting plate 321, and the other end is connected to the adjusting frame 323. The first light source 31 is arranged on the adjusting frame 323. In order to improve the lighting effect and facilitate the adjustment of the position of the first light source 32, a through hole is provided on the mounting plate 321, one end of the connecting plate 322 is fixed to the adjustment frame 323, and the other end is slidably arranged in the through hole of the mounting plate 321. In order to adapt to light sources of different sizes or different models, the adjustment frame 323 includes an X-axis fixing plate 324 and a Y-axis fixing plate 325 connected to the connecting plate 322, an X-axis adjustment slide rail 326 is provided on the X-axis fixing plate 324, the Y-axis fixing plate is slidably arranged on the X-axis adjustment slide rail 326, and a Y-axis adjustment slide rail 327 is provided on the Y-axis fixing plate.
[0043] like Figure 4As shown, at least one group of the second light source module 4 is provided, which can be used to supplement the light when the local light source of the product is insufficient. The second light source module 4 includes a second light source (not shown in the figure), a light source swing arm 41, a light source clamp 42 and a bracket clamp 43. The bracket clamp 43 is clamped on the pillar 12, the light source clamp 42 clamps the second light source, the second light source is connected to the second channel of the light source controller, one end of the light source swing arm 41 is connected to the light source clamp 42, and the other end is connected to the bracket clamp 43. In order to facilitate the adjustment of the direction and position of the second light source, the light source swing arm 41 has a first joint 411 and a second joint 412, and the first joint 411 and the second joint 412 are pivotally connected together. Furthermore, at least one of the first joint 411 and the second joint 412 is a telescopic sleeve. In order to further facilitate the adjustment of the direction, the light source swing arm 41 and the light source clamp 42 and the light source swing arm and the bracket clamp 43 are connected by a universal ball head 413. The structures of the light source clamp 42 and the bracket clamp 43 can be the same or different. In the embodiment shown in the figure, the light source clamp 42 and the bracket clamp 43 adopt the same structure, including left clamps 421, 431, right clamps 422, 432, connecting blocks 423, 433 and locks 424, 434. The left clamps 421, 431 and the right clamps 422, 432 are pivoted at both ends of the connecting blocks 423, 433 respectively, the connecting blocks 423, 433 are pivoted with the universal ball head 413 or the second joint 412 of the light source swing arm 41, and the locks 424, 434 connect the left clamps 421, 431 and the right clamps 422, 432 to control the opening and closing angles of the left clamps 421, 431 and the right clamps 422, 432.
[0044] The present invention also discloses a product defect detection method based on a product defect detection device of machine vision, which comprises the following steps:
[0045] Step A: placing the product on the inspection platform 11, with the surface of the product to be inspected facing upward and located below the lens of the camera 21;
[0046] Step B: Start the detection host connected to the camera 21, the detection host triggers the camera, the camera 21 detects the amount of light entering the lens, and determines whether fill light is needed according to the amount of light entering. If fill light is not needed, go to step C; if fill light is needed due to insufficient light entering, turn on the first light source 31 and / or the second light source through the light source controller; the second light source is used to fill light in the local area with dark light;
[0047] Step C: The camera takes a photo of the product and transmits it back to the detection host for detection and analysis, and displays the detection results.
[0048] The product defect detection device and detection method based on machine vision of the present invention adopts the detection host connected to the camera to automatically detect instead of manually detecting product defects. It has a high degree of automation and is suitable for being installed beside the assembly line to detect whether the product is missing, wrongly labeled, barcode, whether the appearance has defects, etc. Compared with the existing manual detection method, the use of a camera connected to the detection host can greatly improve the detection efficiency. At the same time, machine detection can avoid the influence of human subjective factors, thereby improving the detection accuracy. The first light source module and the second light source module are installed on the detection table to improve the camera's photography effect. Different products have different lighting methods. Different lights need to be emitted according to the current products to meet the detection requirements. According to the specific product requirements that need to be detected, the first light source module and / or the second light source module are selected to be turned on, which can better meet the detection requirements of various products.
[0049] The above embodiments and illustrations do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.
Claims
1. A product defect detection device based on machine vision, characterized in that: include: A testing bracket, comprising a testing platform and a support, wherein the support is vertically arranged on one side of the testing platform; A camera module, comprising a camera, a mounting bracket and a fixing mechanism, wherein the mounting bracket is arranged on a support column of the detection bracket, the fixing mechanism is connected to the mounting bracket, the camera is arranged on the fixing mechanism, and the lens of the camera faces the detection platform; A first light source module is arranged above the detection platform and below the camera module; the first light source module includes a first light source and a first light source bracket, the first light source is arranged on the first light source bracket, and the first light source bracket is arranged on the pillar; At least one second light source module, including a second light source, a light source swing arm, a light source clamp and a bracket clamp, the bracket clamp is arranged on the pillar, the second light source is arranged on the light source clamp, and the light source swing arm connects the light source clamp and the bracket clamp; A detection host connected to the camera; and A light source controller connected to the camera, the light source controller is provided with a first channel and a second channel, the first channel is connected to the first light source, and the second channel is connected to the second light source; The first light source bracket includes a mounting plate, a connecting plate and an adjusting frame, the mounting plate is slidably arranged on the pillar, one end of the connecting plate is connected to the mounting plate, and the other end is connected to the adjusting frame, and the first light source is arranged on the adjusting frame; The mounting plate is provided with a through hole, one end of the connecting plate is fixed to the adjustment frame, and the other end is slidably arranged in the through hole of the mounting plate; The adjustment frame includes an X-axis fixing plate and a Y-axis fixing plate connected to the connecting plate, the X-axis fixing plate is provided with an X-axis adjustment slide rail, the Y-axis fixing plate is slidably arranged on the X-axis adjustment slide rail, and the Y-axis fixing plate is provided with a Y-axis adjustment slide rail; The light source swing arm has a first joint and a second joint, the first joint and the second joint are pivotally connected together, and at least one of the first joint and the second joint is a telescopic sleeve; The light source swing arm and the light source clamping claw are connected with each other as well as the light source swing arm and the bracket clamping claw through a universal ball head; The light source clamp and the bracket clamp have the same structure, and respectively include a left clamp, a right clamp, a connecting block and a lock. The left clamp and the right clamp are respectively pivoted at both ends of the connecting block, the connecting block is pivoted to the light source swing arm, and the lock connects the left clamp and the right clamp.
2. A product defect detection device based on machine vision as claimed in claim 1, characterized in that: The fixing mechanism comprises a U-shaped frame, adjusting screws arranged on both sides of the U-shaped frame and clamping plates arranged at opposite ends of the two adjusting screws.
3. The product defect detection device based on machine vision according to claim 1, characterized in that: The first light source is an annular light source, and a lens hole larger than the camera lens is provided at the center of the annular light source.
4. A product defect detection method based on a product defect detection device based on machine vision according to any one of claims 1 to 3, comprising the following steps: Step A: Place the product on the inspection platform with the surface to be inspected facing upward and below the camera lens; Step B: Start the detection host connected to the camera, the detection host triggers the camera, the camera detects the amount of light entering the lens, and determines whether fill light is needed according to the amount of light entering. If fill light is not needed, proceed to step C; if fill light is needed due to insufficient light entering, the first light source and / or the second light source are turned on by the light source controller; the second light source is used to fill light in the local area with dark light before proceeding to step C; Step C: The camera takes a photo of the product and transmits it back to the detection host for detection and analysis, and displays the detection results.
Citation Information
Patent Citations
Product defect detection device based on machine vision
CN215768277U
