Mobile phone cover plate lighting imaging structure and method
Through the mobile phone cover, two images of the workpiece are collected using the camera lens assembly and the alternately lit first and second light sources to remove dirty areas, solving the problem of detection misjudgment and improving the accuracy of detection .
Patent Information
- Application Number
- CN202411219336.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In the prior art, when detecting mobile phone covers, there are misjudgment problems caused by dirt, which affects the accuracy of the detection results.
The mobile phone cover light imaging structure is adopted, and the workpiece is moved through the mobile platform. The camera lens assembly cooperates with the first light source and the second light source to collect two images of the workpiece, and uses image comparison to remove dirty areas to reduce misjudgment.
It improves the accuracy of the dirty location of image acquisition, reduces misjudgment of detection equipment, and enhances the accuracy of workpiece detection.
Smart Images

Figure CN119322062A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of appearance inspection of mobile phone covers, and specifically relates to a lighting imaging structure and method for mobile phone covers. Background Art
[0002] The camera and light source are installed at specified angles and distances. The product to be inspected is placed on the transmission device and moves with the conveyor at a specified speed. When the product to be inspected moves to the camera's photographing area, the camera captures an image, and the automatic inspection equipment inspects the product based on the image captured by the camera. However, when there is dirt on the product to be inspected, automatic inspection is prone to misjudgment, which will affect the final inspection result. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, the first aspect of the present application provides a mobile phone cover lighting imaging structure.
[0005] A second aspect of the present application provides a method for lighting and imaging a mobile phone cover.
[0006] In view of this, according to a first aspect of an embodiment of the present application, a mobile phone cover lighting imaging structure is proposed, comprising:
[0007] A mobile platform, on which the workpiece is placed;
[0008] A camera lens assembly is arranged above the moving platform, and the moving platform drives the workpiece to move so that the workpiece passes through the photographing position of the camera lens assembly;
[0009] A first light source, the first light source is disposed between the camera lens assembly and the moving platform, and a first light beam emitted by the first light source extends in a direction perpendicular to a first path of the workpiece;
[0010] a second light source, the second light source being disposed between the first light source and the moving platform, and when the workpiece passes through the second light source, a second light emitted by the second light source passes through the workpiece along a direction perpendicular to the first path of the workpiece;
[0011] The first path is the moving path of the workpiece when it passes through the camera lens assembly.
[0012] In a feasible implementation, the camera lens assembly includes a line scan camera and a line scan lens, and the first light source extends along a scanning direction of the line scan camera.
[0013] In a feasible implementation manner, the central illuminated area of the first light source is the scanning area of the line scan camera.
[0014] In a feasible implementation manner, the first light source and the second light source are alternately lit in a stroboscopic manner.
[0015] In a feasible implementation manner, the camera lens assembly takes a line each time it receives a high-level signal, and the first light source and the second light source light up alternately each time they receive a high-level signal.
[0016] In a feasible implementation manner, the second light source and the first light source are arranged on the first plane, and the second light source is located to the side of the photographing position.
[0017] In a feasible implementation manner, the first plane is a vertical plane.
[0018] In a possible implementation, the camera lens assembly is disposed at an angle to the first plane.
[0019] In a feasible implementation, the second light source includes two point light sources, the two point light sources are concentrically radiated to each other, and the two point light sources are symmetrically arranged on both sides of the photographing position.
[0020] In a feasible implementation manner, the first light source is disposed perpendicular to the moving platform, and the first light source extends along a direction perpendicular to the first path of the workpiece.
[0021] In a feasible implementation, the first light source is a high-brightness line light source.
[0022] According to a second aspect of the embodiment of the present application, a mobile phone cover plate lighting imaging method is proposed, wherein a mobile phone cover plate lighting imaging structure according to any of the above technical solutions is used to perform lighting imaging on a workpiece, including:
[0023] Mounting the workpiece on a mobile platform;
[0024] lighting up the first light source and the second light source;
[0025] Acquire a first image and a second image of a workpiece;
[0026] The region information of the first image is eliminated according to the second image.
[0027] In a feasible implementation manner, the first light source and the second light source are alternately lit with a strobing manner.
[0028] In a feasible implementation, when the workpiece passes through the photographing position of the camera lens assembly, the first light source and the second light source are alternately lit with a strobe light, and the camera lens assembly collects the first image and the second image of the workpiece.
[0029] In a feasible implementation, when the first light source and the second light source are alternately lit with strobing, the camera lens assembly shoots a line each time it receives a high-level signal, the first light source lights up once when it receives a high-level signal, and the second light source lights up once when it receives a high-level signal.
[0030] In a feasible implementation manner, the time intervals when the first light source and the second light source are alternately lit are consistent.
[0031] In a feasible implementation, the camera lens assembly cooperates with the first light source to illuminate and photograph a first image of the workpiece, and the camera lens assembly cooperates with the second light source to illuminate and photograph a second image of the workpiece.
[0032] In a feasible implementation manner, the first image captures the defects and the dirt of the hair, dust and spots on the workpiece; the second image captures the dirt of the hair, dust and spots on the workpiece.
[0033] In a feasible implementation, image processing is performed on the second image to extract the hair and dust spot region information in the second image, and the region information in the first image corresponding to the hair and dust spot region information in the second image is removed.
[0034] In a feasible implementation manner, after eliminating the area information of the first image according to the second image, the method includes: obtaining a third image, and performing defect detection on the workpiece according to the third image.
[0035] In a feasible implementation, the mobile phone cover lighting imaging method also includes: making the first light emitted by the first light source parallel to the scanning direction of the camera lens assembly, so that the central illuminated area of the first light source coincides with the scanning area scanned by the camera lens assembly.
[0036] In a feasible implementation, the mobile phone cover lighting imaging method further includes: making the second light emitted by the second light source parallel to the scanning direction of the camera lens assembly, so that the illuminated area of the second light is located above the workpiece.
[0037] Compared with the prior art, the mobile phone cover lighting imaging structure and method of the present application have the following beneficial effects:
[0038] The workpiece is fixed on a mobile platform, and the mobile platform drives the workpiece to move. When the mobile platform drives the workpiece to pass through the photographing position of the camera lens assembly, the camera lens assembly cooperates with the first light source and the second light source to respectively collect two images of the workpiece. The same camera lens assembly is used to collect the two images of the workpiece, and there is no need to reposition the workpiece, thereby ensuring that the dirty areas in the two images do not change, thereby improving the accuracy of the dirty positions of the two images. Furthermore, by comparing the two images of the workpiece, the interference of dirt on the automatic detection equipment during detection is effectively reduced, the misjudgment of the detection equipment is reduced, and the accuracy of workpiece detection is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0040] Figure 1 A schematic structural diagram of a mobile phone cover lighting imaging structure at a first angle according to an embodiment of the present application;
[0041] Figure 2 A schematic structural diagram of a mobile phone cover lighting imaging structure from a second angle according to an embodiment of the present application;
[0042] Figure 3 A schematic structural diagram of the pulse signal frequency of the mobile phone cover lighting imaging structure of an embodiment provided in the present application;
[0043] Figure 4 A schematic flowchart of the steps of a mobile phone cover lighting imaging method according to an embodiment of the present application;
[0044] Figure 5 This is the detection effect before the hair and dust spot area information of the workpiece is removed;
[0045] Figure 6 An image obtained by removing the first image from the second image in a mobile phone cover lighting imaging method according to an embodiment of the present application;
[0046] Figure 7 This is the detection effect after the hair and dust spot area information of the workpiece is removed;
[0047] in, Figure 1 and Figure 2 The corresponding relationship between the reference numerals and component names in the figure is:
[0048] 11. Mobile platform; 12. Workpiece; 13. Camera lens assembly; 14. First light source; 15. Second light source. DETAILED DESCRIPTION
[0049] In the description of the present application, it should 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" and the like 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 application 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 a limitation on the present application.
[0050] 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. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0051] In this application, 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 a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be 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 this application can be understood according to specific circumstances.
[0052] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.
[0053] like Figure 1 and Figure 2 As shown, according to the first aspect of the embodiment of the present application, a mobile phone cover lighting imaging structure is proposed, including: a moving platform 11, a camera lens assembly 13, a first light source 14 and a second light source 15; a workpiece 12 is placed on the moving platform 11; the camera lens assembly 13 is arranged above the moving platform 11, and the moving platform 11 drives the workpiece 12 to move so that the workpiece 12 passes through the shooting position of the camera lens assembly 13; the first light source 14 is arranged between the camera lens assembly 13 and the moving platform 11, and the first light source 14 emits a first light extending in a direction perpendicular to a first path of the workpiece 12; the second light source 15 is arranged between the first light source 14 and the moving platform 11, and when the workpiece 12 passes through the second light source 15, the second light source 15 emits a second light through the workpiece 12 in a direction perpendicular to the first path of the workpiece 12; wherein the first path is the moving path of the workpiece 12 when it passes through the camera lens assembly 13.
[0054] The mobile phone cover lighting imaging structure provided in the embodiment of the present application includes a mobile platform 11, a camera lens assembly 13, a first light source 14 and a second light source 15. The workpiece 12 is fixed on the mobile platform 11, and the mobile platform 11 drives the workpiece 12 to move. When the mobile platform 11 drives the workpiece 12 to pass through the shooting position of the camera lens assembly 13, the camera lens assembly 13 cooperates with the first light source 14 and the second light source 15 to respectively collect two images of the workpiece 12; the same camera lens assembly 13 is used to collect two images of the workpiece 12, and there is no need to reposition the workpiece 12, ensuring that the dirty areas in the two images do not change, thereby improving the accuracy of the dirty positions of the two images, and then by comparing the two images of the workpiece 12, the interference of dirt on the automatic detection equipment during detection is effectively reduced, the misjudgment of the detection equipment is reduced, and the accuracy of the detection of the workpiece 12 is improved.
[0055] Furthermore, two images of the workpiece 12 are collected, wherein one image includes defects and lint dust spots of the workpiece 12, and the other image only includes lint dust spots of the workpiece 12. Then, by comparing the two images of the same workpiece 12, the defective area information of the workpiece 12 is located, thereby improving the accuracy of defect detection of the workpiece 12.
[0056] In a feasible implementation, the camera lens assembly 13 includes a line scan camera and a line scan lens, and the first light source 14 extends along the scanning direction of the line scan camera.
[0057] In this technical solution, the first light source 14 extends along the scanning direction of the line scan camera, ensuring uniform illumination within the field of view of the line scan camera during the scanning process, avoiding degradation of image quality due to uneven illumination, and optimizing the distribution of the first light source 14 to reduce the influence of shadows and glare, and cooperate with the camera lens assembly 13 to achieve effective imaging of the non-planar workpiece 12, while enabling the first light emitted by the first light source 14 to cover a larger field of view and capture more image information.
[0058] It can be understood that the camera lens assembly 13 is electrically connected to the image processing system, the line scan lens captures a linear image of the workpiece 12, and then transmits the image to the sensor of the line scan camera. The sensor of the line scan camera reads the image data line by line and converts the image data into electrical signals, which are finally processed and analyzed by the image processing system.
[0059] In a feasible implementation manner, the central illuminated area of the first light source 14 is the scanning area of the line scan camera.
[0060] In this technical solution, the central brightened area of the first light source 14 is the scanning area of the line scan camera, so as to reduce the shadow caused by the angle between the surface of the workpiece 12 and the first light source 14, and further improve the imaging quality and effect of the camera lens assembly 13 for the non-planar workpiece 12.
[0061] like Figure 3 As shown, in a feasible implementation manner, the first light source 14 and the second light source 15 are alternately lit in a stroboscopic manner.
[0062] In this technical solution, the first light source 14 and the second light source 15 are alternately lit with strobing to enhance image features, highlight defects in the image and specific features such as the edges, textures or shapes of objects with hair, dust and dirt, which helps to improve the accuracy of subsequent image analysis and recognition; by controlling the frequency and duration of the strobing of the first light source 14 and the second light source 15, the exposure time of the camera lens assembly 13 can be controlled, and the glare and reflection caused by excessive or uneven light sources can be reduced, thereby improving the imaging quality, thereby adapting to different imaging conditions and improving the imaging quality of defects in the workpiece 12 and hair, dust and dirt.
[0063] It can be understood that the workpiece 12 is a glass cover plate, which has a high reflectivity, so that the first light source 14 and the second light source 15 are alternately lit in a stroboscopic manner, which can improve the imaging effect.
[0064] like Figure 3 As shown, in a feasible implementation manner, the camera lens assembly 13 takes a line each time it receives a high-level signal, and the first light source 14 and the second light source 15 receive a high-level signal and light up alternately.
[0065] In this technical solution, the stroboscopic frequencies of the first light source 14 and the second light source 15 are superimposed and consistent with the shutter frequency of the camera lens assembly 13, ensuring that the workpiece 12 can be illuminated each time the camera lens assembly 13 captures an image, so that the camera lens assembly 13 can capture an image of the workpiece 12.
[0066] like Figure 1 and Figure 2 As shown, in a feasible implementation manner, the second light source 15 and the first light source 14 are arranged on a first plane, and the second light source 15 is located to the side of the photographing position.
[0067] In this technical solution, the second light source 15 illuminates the workpiece 12 from the side of the workpiece 12 at the photographing position, and cooperates with the camera lens assembly 13 to collect regional information of hair and dust spots on the workpiece 12; the second light source 15 is located above the first light source 14, and cooperates with the camera lens assembly 13 to collect regional information of defects and hair and dust spots on the workpiece 12. The second light source 15 and the first light source 14 are located on the first plane, so that the mobile platform 11 can drive the workpiece 12 to pass directly between the first light source 14 and the second light source 15. The lighting and imaging structure is integrated with the conveying device, occupies a small space, and does not affect the original working efficiency of the conveying device.
[0068] like Figure 1 As shown, in a possible implementation manner, the first plane is a vertical plane.
[0069] In this technical solution, the first light emitted by the first light source 14 and the second light emitted by the second light source 15 are located on a vertical first plane, so that the area illuminated by the first light and the second light is perpendicular to the upper surface of the workpiece 12, thereby reducing the shadow area produced by the lighting, which is beneficial to improving the accuracy of collecting information on defects and hair dust spots.
[0070] like Figure 2 As shown, in a possible implementation, the camera lens assembly 13 is arranged at an angle to the first plane.
[0071] In this technical solution, the camera lens assembly 13 is set at an angle to the first plane to reduce the light directly reflected to the camera lens assembly 13, reduce reflections and glare in the image, and at the same time better highlight the texture and features of the surface of defects and hair dust spots, which helps to improve the accuracy of subsequent image analysis and recognition.
[0072] As a preferred solution, the angle between the camera lens assembly 13 and the first plane is 10-15°, and the working distance between the camera lens assembly 13 and the workpiece 12 is 290-310 mm. Preferably, the angle between the camera lens assembly 13 and the first plane is 10°, and the working distance between the camera lens assembly 13 and the workpiece 12 is 300 mm.
[0073] like Figure 1 As shown, in a feasible implementation manner, the second light source 15 includes two point light sources, the two point light sources are concentrically radiated to each other, and the two point light sources are symmetrically arranged on both sides of the photographing position.
[0074] In this technical solution, the second light source 15 includes two point light sources, which are concentrically radiated to illuminate the workpiece 12 from both sides of the photographing position. The two point light sources are located on both sides of the mobile platform 11, and the mobile platform 11 moves along the trajectory of the conveying device. The workpiece 12 is illuminated during the normal conveying process of the workpiece 12. The camera lens assembly 13 cooperates with the two point light sources to illuminate and take pictures to collect images of the imaging hair dust spots, which does not interfere with the normal operation of the conveying device. The lighting and imaging structure is effectively integrated with the conveying device to save space.
[0075] Furthermore, the relative distance between the two point light sources is 140 to 160 mm. Preferably, the relative distance between the two point light sources is 150 mm.
[0076] like Figure 2 As shown, in a feasible implementation manner, the first light source 14 is disposed perpendicular to the moving platform 11 , and the first light source 14 extends along a direction perpendicular to a first path of the workpiece 12 .
[0077] In this technical solution, the first light source 14 is a linear light source. The first light source 14 extends in a direction perpendicular to a first path of the workpiece 12. The mobile platform 11 moves along the trajectory of the conveying device. The first light source 14 is vertically arranged above the conveying device. The workpiece 12 is illuminated during the normal conveying of the workpiece 12. The camera lens assembly 13 cooperates with the linear light source to light up and take pictures to collect images of imaging defects and hair, dust and dirt, without interfering with the normal operation of the conveying device. The lighting and imaging structure is effectively integrated with the conveying device to save space.
[0078] In a feasible implementation, the first light source 14 is a high-brightness line light source.
[0079] In this technical solution, the use of a high-brightness line light source in combination with a line scan camera helps to enhance the accuracy of identifying detailed features such as the edges, textures or shapes of defects on the workpiece 12 and objects with hair, dust and dirt. At the same time, the strong light provided by the high-brightness line light source can improve the signal-to-noise ratio of the image captured by the camera lens assembly 13, making the image clearer and the details more obvious, so as to further improve the accuracy of imaging interference from defects and hair, dust and dirt.
[0080] like Figure 4 As shown, according to the second aspect of the present application, a mobile phone cover plate lighting imaging method is proposed, using a mobile phone cover plate lighting imaging structure as any one of the above technical solutions to perform lighting imaging on a workpiece 12, including:
[0081] Step 100: Mounting the workpiece 12 on the mobile platform 11;
[0082] Step 200, lighting up the first light source 14 and the second light source 15;
[0083] Step 300, capturing a first image and a second image of the workpiece 12;
[0084] Step 400: Remove the region information of the first image according to the second image.
[0085] Through the mobile phone cover lighting imaging method provided by the embodiment of the present application, the workpiece 12 is installed on the mobile platform 11. When the mobile platform 11 drives the workpiece 12 to move to the shooting position of the camera lens module, the camera lens assembly 13 cooperates with the illuminated first light source 14 to collect the first image of the workpiece 12, and the camera lens assembly 13 cooperates with the illuminated second light source 15 to collect the second image of the workpiece 12. The camera lens assembly 13 collects the first image and the second image in sequence to ensure that the dirty area in the first image and the second image does not change, thereby improving the accuracy of the dirty position of the two image acquisitions; and then by comparing the second image of the workpiece 12, the interference area information in the first image is eliminated to reduce the interference of dirt on the automatic detection equipment during detection, reduce the misjudgment of the detection equipment, and improve the accuracy of the detection of the workpiece 12.
[0086] In a feasible implementation manner, the first light source 14 and the second light source 15 are alternately lit with a stroboscopic manner.
[0087] In this technical solution, the first light source 14 and the second light source 15 are alternately lit in a strobe manner to enhance the features of the first image and the second image captured by the camera lens assembly 13, highlighting the defects in the image and specific features such as the edges, textures or shapes of hair, dust spots and dirty objects, and can effectively shape the highly reflective and transparent glass cover, thereby effectively reducing misjudgments caused by the surface characteristics of the glass cover.
[0088] It is understandable that when the camera lens assembly 13 starts collecting data, the first light source 14 is lit first and then the second light source 15 is lit; the second light source 15 can also be lit first and then the first light source 14, as long as the first light source 14 and the second light source 15 are regularly alternately lit.
[0089] In a feasible implementation, when the workpiece 12 passes through the photographing position of the camera lens assembly 13 , the first light source 14 and the second light source 15 are alternately lit with a strobe light, and the camera lens assembly 13 captures the first image and the second image of the workpiece 12 .
[0090] In this technical solution, when the mobile platform 11 drives the workpiece 12 to the photographing position of the camera lens assembly 13, the first light source 14 and the second light source 15 are alternately lit in a strobe manner, and the camera lens assembly 13 collects the first image and the second image of the workpiece 12 to ensure that a clear image is obtained when the workpiece 12 passes the photographing position.
[0091] Furthermore, by controlling the frequency and duration of the flashing of the first light source 14 and the second light source 15, the exposure time of the camera lens assembly 13 can be controlled, and the glare and reflection caused by excessive brightness or uneven light source can be reduced, thereby improving the imaging quality, thereby adapting to different imaging conditions and improving the imaging quality of defects on the workpiece 12 and hair, dust spots and dirt.
[0092] In a feasible implementation, when the first light source 14 and the second light source 15 are alternately lit with strobing, the camera lens assembly 13 takes a line each time it receives a high-level signal, the first light source 14 lights up once when it receives a high-level signal, and the second light source 15 lights up once when it receives a high-level signal.
[0093] In this technical solution, the camera lens assembly 13 takes a line each time it receives a high-level signal, and the second light source 15 lights up once it receives a high-level signal. The stroboscopic frequencies of the first light source 14 and the second light source 15 are superimposed and consistent with the shutter frequency of the camera lens assembly 13, ensuring that the workpiece 12 can be illuminated each time the camera lens assembly 13 captures an image, so as to quickly obtain two consecutive images of the workpiece 12, which is beneficial to improving the acquisition efficiency of the first image and the second image.
[0094] Furthermore, the lighting frequency of the first light source 14 is equal to the lighting frequency of the second light source 15 which is equal to 0.5 times the shutter frequency of the camera lens assembly 13 .
[0095] It can be understood that, when the camera lens assembly 13 receives a high-level signal to shoot a line, the first light source 14 is first lit once, and then the camera lens assembly 13 receives a high-level signal again to shoot a line, and the second light source 15 is lit once; or, when the camera lens assembly 13 receives a high-level signal to shoot a line, the second light source 15 is first lit once, and then the camera lens assembly 13 receives a high-level signal again to shoot a line, and the first light source 14 is lit once. It is only necessary to ensure that the first light source 14 and the second light source 15 are alternately lit when the camera lens assembly 13 is shooting.
[0096] In a feasible implementation manner, the time intervals when the first light source 14 and the second light source 15 are alternately lit are consistent.
[0097] In this technical solution, the lighting time of the first light source 14 and the second light source 15 and the triggering time of the line scan camera shutter need to be precisely synchronized. On the one hand, the consistency of the time intervals when the first light source 14 and the second light source 15 are alternately lit helps to keep the various parts of the lighting imaging system synchronized, thereby helping to improve the final detection accuracy; on the other hand, when processing the first image and the second image, the consistency of the time intervals when the first light source 14 and the second light source 15 are alternately lit can simplify the algorithm design, and there is no need to consider the impact of lighting changes.
[0098] In a feasible implementation, the camera lens assembly 13 cooperates with the first light source 14 to illuminate and photograph the first image of the workpiece 12 , and the camera lens assembly 13 cooperates with the second light source 15 to illuminate and photograph the second image of the workpiece 12 .
[0099] In this technical solution, the camera lens assembly 13 cooperates with the first light source 14 to light up and take pictures to collect the first image of the workpiece 12, and the camera lens assembly 13 cooperates with the second light source 15 to light up and take pictures to collect the second image of the workpiece 12. The same camera lens assembly 13 cooperates with the first light source 14 and the second light source 15 that are alternately flashed to respectively collect two images of the workpiece 12, and the image positioning is accurate to improve the accuracy of subsequent elimination of the second image area information.
[0100] In a feasible implementation manner, the first image captures the defects and the dirt of the hair and dust spots of the workpiece 12 ; the second image captures the dirt of the hair and dust spots of the workpiece 12 .
[0101] In this technical solution, the first image captures the defects and hairy dust spots of the workpiece 12, and the second image captures the hairy dust spots of the workpiece 12. The same camera lens assembly 13 cooperates with the first light source 14 and the second light source 15 that are alternately illuminated with strobe light to respectively capture images of the workpiece 12 containing defects and hairy dust spots and dirt, and images of the workpiece 12 containing only hairy dust spots and dirt, so that the hairy dust spots and dirt areas of the first image and the second image are accurately located, thereby preventing the interference information from being offset and affecting the accuracy of the first image removal.
[0102] In a feasible implementation, image processing is performed on the second image to extract the hair and dust spot region information in the second image, and the region information in the first image corresponding to the hair and dust spot region information in the second image is removed.
[0103] In this technical solution, the second image is processed to extract the hair dust spot area information in the second image, and the first image is eliminated based on the hair dust spot dirty area information in the second image. The remaining area that is not eliminated is the area where the defect of the workpiece 12 is located.
[0104] In a feasible implementation manner, after eliminating the area information of the first image according to the second image, the following steps include: obtaining a third image, and performing defect detection on the workpiece 12 according to the third image.
[0105] In this technical solution, the first image is eliminated based on the information of the dirty areas of the lint and dust spots in the second image to obtain a third image that only includes the area where the defects of the workpiece 12 are located. Defect detection of the workpiece 12 is performed based on the third image. This can effectively reduce the misjudgment caused by the lint and dust spots on the workpiece 12, reduce the over-inspection caused by the lint and dust spots during detection, and improve the accuracy of defect detection of the workpiece 12.
[0106] It should be noted that Figure 5 The diagram shows the inspection effect of the workpiece 12 before the hair and dust spots are removed. The hair and dust spots have a great interference on the inspection equipment, and the defects are seriously over-inspected. Figure 6 The third image is obtained by processing the first image obtained by removing the first image according to the hair, dust and dirty area information in the second image. Figure 7 It shows the detection effect of the detection equipment after the hair and dust spots are removed, and the defective inspection situation disappears.
[0107] In a feasible implementation, the mobile phone cover lighting imaging method also includes: making the first light emitted by the first light source 14 parallel to the scanning direction of the camera lens assembly 13, so that the central bright area of the first light source 14 coincides with the scanning area scanned by the camera lens assembly 13.
[0108] In this technical solution, the first light is parallel to the scanning direction of the camera lens assembly 13, which helps to enhance the accuracy of identifying detailed features such as defects of the workpiece 12 and the edges, textures or shapes of lint, dust spots and dirty objects; by making the central brightened area of the first light source 14 the scanning area of the line scan camera, the shadow caused by the angle between the surface of the workpiece 12 and the first light source 14 can be reduced, further improving the imaging quality and effect of the camera lens assembly 13 for non-planar workpieces 12.
[0109] In a feasible implementation, the mobile phone cover lighting imaging method further includes: making the second light emitted by the second light source 15 parallel to the scanning direction of the camera lens assembly 13 so that the illuminated area of the second light is located above the workpiece 12.
[0110] In this technical solution, the second light emitted by the second light source 15 illuminates the upper surface of the workpiece 12 at the side of the workpiece 12, distinguishes hair dust spots from defects, reduces the inaccuracy of the second image acquisition caused by hair dust spots covering defects, and thus ensures the accuracy of the second image acquisition of hair dust spot area information, thereby reducing misjudgment and over-inspection caused by hair dust spot interference.
[0111] It can be understood that the mobile phone cover lighting and imaging method provided in the embodiment of the present application is applied to the mobile phone cover lighting and imaging structure of any of the above-mentioned technical solutions, so the mobile phone cover lighting and imaging method has all the beneficial effects of the mobile phone cover lighting and imaging structure of the above-mentioned technical solutions.
[0112] It is easy for those skilled in the art to understand that, under the premise of no conflict, the above-mentioned advantageous methods can be freely combined and superimposed.
[0113] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application. The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and variations can be made without departing from the technical principles of the present application, and these improvements and variations should also be regarded as the protection scope of the present application.
Claims
1. A mobile phone cover lighting imaging structure, characterized in that: The mobile phone cover lighting imaging structure comprises: a mobile platform on which the workpiece is placed; A camera lens assembly, wherein the camera lens assembly is arranged above the moving platform, and the moving platform drives the workpiece to move so that the workpiece passes through a photographing position of the camera lens assembly; a first light source, the first light source being disposed between the camera lens assembly and the moving platform, the first light source emitting a first light beam extending in a direction perpendicular to a first path of the workpiece; a second light source, wherein the second light source is disposed between the first light source and the moving platform, and when the workpiece passes through the second light source, a second light emitted by the second light source passes through the workpiece along a direction perpendicular to the first path of the workpiece; Wherein, the first path is the moving path of the workpiece when passing through the camera lens assembly.
2. A mobile phone cover lighting imaging structure according to claim 1, characterized in that: The camera lens assembly includes a line scan camera and a line scan lens, and the first light source extends along a scanning direction of the line scan camera.
3. A mobile phone cover lighting imaging structure according to claim 2, characterized in that: The central illuminated area of the first light source is the scanning area of the line scan camera.
4. The mobile phone cover lighting imaging structure according to claim 1, characterized in that: The first light source and the second light source are alternately lit with a strobe light.
5. The mobile phone cover lighting imaging structure according to claim 4, characterized in that: The camera lens assembly takes a line each time it receives a high-level signal, and the first light source and the second light source light up alternately each time they receive a high-level signal.
6. The mobile phone cover lighting imaging structure according to claim 1, characterized in that: The second light source and the first light source are arranged on a first plane, and the second light source is located to the side of the photographing position.
7. The mobile phone cover lighting imaging structure according to claim 6, characterized in that: The first plane is a vertical plane.
8. The mobile phone cover lighting imaging structure according to claim 7, characterized in that: The camera lens assembly is disposed at an angle to the first plane.
9. The mobile phone cover lighting imaging structure according to claim 7, characterized in that: The second light source includes two point light sources, the two point light sources are concentrically radiated to each other, and the two point light sources are symmetrically arranged on both sides of the photographing position.
10. A method for lighting and imaging a mobile phone cover, characterized in that: The mobile phone cover plate lighting imaging structure according to any one of claims 1 to 9 is used to perform lighting imaging on a workpiece, comprising: Mounting the workpiece on a mobile platform; lighting up the first light source and the second light source; Acquiring a first image and a second image of the workpiece; The region information of the first image is eliminated according to the second image.
Citation Information
Patent Citations
Semi-automatic multi-angle machine vision detector
CN105865333A
Hard disk part detection device and detection method
CN112345553A
Image processing method and device, electronic equipment and storage medium
CN112837327A
Apparatus, and method for defect detection in work pieces
CN112858319A
Appearance detection device and detection method for lens cover plate of electronic equipment
CN115326820A