A multi-channel image acquisition and control system and method

By designing a multi-channel image acquisition control system, the workflow of automatically generating and controlling the light source and camera is solved, and the problem of frequent adjustment of light source combination and control programs in frame detection in mobile phones is improved, and the workload of staff is reduced.

CN115460738BActive Publication Date: 2025-06-24ZHONGKE HUIYUAN VISUAL TECHNOLOGY (LUOYANG) CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211227220.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-09
Publication Date
2025-06-24
Estimated Expiration
2042-10-09

AI Technical Summary

Technical Problem

During the detection process of mobile phone frames, it is necessary to change the combination of light sources and adjust the trigger control program of the camera and light sources, resulting in an increase in workload and a decrease in detection efficiency.

Method used

A multi-channel image acquisition control system is designed, including an industrial control machine, an imaging unit, a trigger source controller and a light source controller. By obtaining the control parameters of the strobe control strategy, the light source control process and the trigger source and the camera unit control process are automatically generated to achieve automatic adjustment and control.

Benefits of technology

No need to re-change the light source combination external wiring connection and recompile the trigger control program of the camera and light source, significantly reducing the workload of the staff and improving detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115460738B_ABST
    Figure CN115460738B_ABST
Patent Text Reader

Abstract

The present application discloses a multi-channel image acquisition control system and method. The system includes an industrial control computer, a camera unit, a trigger source controller, a light source controller, and at least one light source facing the component to be detected; the light source controller includes a first trigger source, a second trigger source, at least one first light source output channel controlled by the first trigger source, and at least one second light source output channel controlled by the second trigger source; the trigger source output interfaces of the trigger source controller are electrically connected to the first trigger source and the second trigger source of the light source controller respectively; each light source is electrically connected to the corresponding first light source output channel or second light source output channel respectively, without the need to re-change the combined external wiring connection of the light sources and recompile the control programs for camera and light source triggering, thereby not only reducing the workload of the staff, but also improving the detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multi-channel image acquisition control, and particularly to a multi-channel image acquisition control system and method. Background Art

[0002] In this era of technological development, a mobile phone is assembled from many components during the manufacturing process, and the middle frame of the mobile phone is an important component among them. The middle frame of the mobile phone is the support of the mobile phone, used to support the entire mobile phone. After processes such as grinding, drilling, and CNC processing, it is adapted to various internal components. The quality of the middle frame directly affects the quality of the mobile phone, so the appearance requirements for the middle frame of the mobile phone are very high, requiring precise processing and accurate detection. In the past, there were various defects in the processing of the middle frame of the mobile phone, and the means of quality control mainly relied on manual inspection. Limited by these inevitable defects of the human body, it was extremely easy to cause missed inspection of defective products. With the development of intelligent detection, machine vision systems have been widely applied in various industries, and the inspection of the middle frame of the mobile phone has gradually transitioned from manual inspection to machine vision.

[0003] An important technical point in visual inspection is the acquisition of defective images. Currently, when adopting a multi-channel stroboscopic control scheme, when it is necessary to change the stroboscopic frequency, recombine the light sources of different channels, or change the brightness of the light sources within the stroboscopic channel for the detection of different products, it is necessary to re-change the external wiring connection of the light source combination, re-configure the brightness parameters of each output channel of the light source controller, and change the control program for camera and light source triggering. This not only increases the workload of the staff, but also reduces the detection efficiency, and may also lead to the difficulty of implementing the scheme. Summary of the Invention

[0004] In view of this, this application provides a multi-channel image acquisition control system and method to solve the problem that when it is necessary to change the stroboscopic frequency, recombine the light sources of different channels, or change the brightness of the light sources within the stroboscopic channel for the detection of different products, it is necessary to re-change the external wiring connection of the light source combination and recompile the control program for camera and light source triggering, which not only increases the workload of the staff, but also reduces the detection efficiency.

[0005] In a first aspect, this application provides a multi-channel image acquisition control system, including an industrial control computer, a camera unit, a trigger source controller, a light source controller, and at least one light source facing the component to be detected;

[0006] The light source controller includes a first trigger source, a second trigger source, at least one first light source output channel controlled by the first trigger source, and at least one second light source output channel controlled by the second trigger source;

[0007] The industrial control computer is electrically connected to the trigger source controller, the light source controller, and the imaging unit respectively; the trigger source output interfaces of the trigger source controller are electrically connected to the first trigger source and the second trigger source of the light source controller respectively; the trigger source controller is also electrically connected to the imaging unit; each light source is electrically connected to the corresponding first light source output channel or second light source output channel;

[0008] The light source controller is configured to obtain the control parameters of the stroboscopic control strategy and generate a light source control process based on the control parameters of the stroboscopic control strategy;

[0009] The trigger source controller is configured to obtain the control parameters of the stroboscopic control strategy, generate a trigger source and imaging unit control process based on the control parameters of the stroboscopic control strategy; and sequentially trigger the first trigger source and the second trigger source of the light source controller through the trigger source output interface according to the trigger source and imaging unit control process, and simultaneously control the imaging unit to take pictures;

[0010] The light source controller is configured to, while the first trigger source and the second trigger source are sequentially triggered according to the light source control process, control the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel;

[0011] The industrial control computer is configured to obtain the pictures taken by the imaging unit.

[0012] Optionally, the number of the light sources is five, namely a first light source, a second light source, a third light source, a fourth light source, and a fifth light source; the number of both the first light source output channel and the second light source output channel is five;

[0013] The first light source is located above the component to be detected, the second light source is located in the upper front of the component to be detected, the third light source is located in the upper rear of the component to be detected, the fourth light source is located obliquely above one side of the component to be detected, the fifth light source is located obliquely above the other side of the component to be detected, and the imaging unit is located above the first light source.

[0014] Optionally, the second light source and the third light source are arranged front and back.

[0015] Optionally, the first light source, the second light source, the third light source, the fourth light source, and the fifth light source are coaxial light sources, combined strip light sources, or LED light sources.

[0016] Optionally, the number of the first light source output channels is 4, namely the first light source output channel a, the first light source output channel b, the first light source output channel c and the first light source output channel d; the number of the second light source output channels is 4, namely the second light source output channel e, the second light source output channel f, the second light source output channel g and the second light source output channel h;

[0017] Among them, the first light source output channel a is electrically connected to the first light source, the first light source output channel b is electrically connected to the second light source, the first light source output channel c is electrically connected to the third light source, the second light source output channel e is electrically connected to the fourth light source, the second light source output channel f is electrically connected to the fifth light source, and the first light source output channel d, the second light source output channel g and the second light source output channel h are reserved light source output channels.

[0018] Optionally, the system further includes an input and display unit, which is electrically connected to the trigger source controller, and is used for inputting and displaying the control parameters of the stroboscopic control strategy.

[0019] Optionally, the control parameters include the working timings of each light source and the imaging unit and the corresponding brightness values.

[0020] Optionally, the trigger conditions of the first light source output channel, the second light source output channel, the first trigger source, the second trigger source and the imaging unit are all rising edge triggers.

[0021] Optionally, the input and display unit is a touch screen;

[0022] The imaging unit is an area array camera;

[0023] The industrial control computer is further used for storing the light source control process;

[0024] The trigger source controller is further used for resetting the light source controller, and after the light source controller is reset, the trigger source controller is also reset;

[0025] The industrial control computer, the light source controller and the trigger source controller are provided with wireless communication modules.

[0026] Optionally, the component to be detected is a middle frame of a mobile phone.

[0027] In a second aspect, the present application provides a multi-channel image acquisition control method, which is applied to the above system, and includes:

[0028] The light source controller obtains the control parameters of the stroboscopic control strategy;

[0029] The light source controller generates a light source control process based on the control parameters of the stroboscopic control strategy;

[0030] The trigger source controller obtains the control parameters of the stroboscopic control strategy;

[0031] The trigger source controller generates a trigger source and camera unit control process based on the control parameters of the stroboscopic control strategy;

[0032] The trigger source controller sequentially triggers the first trigger source and the second trigger source of the light source controller through the trigger source output interface according to the trigger source and camera unit control process, and simultaneously controls the camera unit to take pictures;

[0033] While the first trigger source and the second trigger source are sequentially triggered according to the light source control process, the light source controller controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channels;

[0034] The industrial control computer obtains the pictures taken by the camera unit.

[0035] Optionally, the control parameters include the working timings of each light source and the camera unit and the corresponding brightness values; the trigger source controller generating the trigger source and camera unit control process based on the control parameters of the stroboscopic control strategy includes:

[0036] The trigger source controller determines the working timings of each trigger source and the camera unit and the time intervals between the working timings based on the working timings of each light source and the camera unit and the corresponding brightness values;

[0037] According to the working timings of each trigger source and the camera unit and the time intervals between the working timings, the trigger source and camera unit control process is generated.

[0038] Optionally, the light source controller generating the light source control process based on the control parameters of the stroboscopic control strategy includes:

[0039] The light source controller determines the trigger timings of each light source output channel and the corresponding trigger sources, channel brightness values and channel pulse widths based on the working timings of each light source and the corresponding brightness values, so as to generate the light source control process.

[0040] Optionally, while the first trigger source and the second trigger source are sequentially triggered according to the light source control process, the light source controller controlling the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channels includes:

[0041] While the trigger source controller triggers the corresponding trigger source according to the working timings of the respective trigger sources through the trigger source output interface, the light source controller triggers the corresponding light source output channels by using the triggered trigger sources according to the trigger timings of the respective light source output channels and the corresponding trigger sources, and controls the corresponding light sources through the triggered light source output channels to reach the corresponding channel brightness values and maintain for a duration equal to the corresponding channel pulse width.

[0042] Optionally, the control parameters of the stroboscopic control strategy are directly input by the user to the trigger source controller and the light source controller, or are sent by the input and display unit to the trigger source controller and the light source controller.

[0043] Optionally, the trigger conditions of the first light source output channel, the second light source output channel, the first trigger source, the second trigger source, and the imaging unit are all rising edge triggers.

[0044] Optionally, after the industrial control computer acquires the pictures taken by the imaging unit, it further includes:

[0045] The trigger source controller resets the light source controller, and after the light source controller is reset, the trigger source controller is reset.

[0046] Optionally, after the light source controller generates the light source control process based on the control parameters of the stroboscopic control strategy, it further includes:

[0047] The industrial control computer stores the light source control process.

[0048] According to a multi-channel image acquisition control system and method provided by an embodiment of the present invention, a staff member only needs to adjust the control parameters of the stroboscopic control strategy to automatically obtain the corresponding light source control process, trigger source, and imaging unit control process, so as to achieve the purpose of changing the number of stroboscopies, recombining the light sources of different channels, or changing the light source brightness in the stroboscopic channel to meet different detection requirements, thereby eliminating the need to re-change the external wiring connection of the light source combination and re-compile the control programs for camera and light source triggering, and thus not only reducing the workload of the staff, but also improving the detection efficiency. Description of the Drawings

[0049] The following drawings of the present invention are used as part of the embodiments of the present invention to understand the present invention. The embodiments of the present invention are shown in the drawings and their descriptions are used to explain the principles of the present invention.

[0050] In the drawings:

[0051] Figure 1 It is a schematic structural diagram of a multi-channel image acquisition control system according to an optional embodiment of the present invention;

[0052] Figure 2 Flow chart of a multi-channel image acquisition control method according to an alternative embodiment of the present invention;

[0053] Figure 3 Flow chart of a trigger source and camera unit control according to an alternative embodiment of the present invention;

[0054] Figure 4 Flow chart of a light source control according to an alternative embodiment of the present invention.

[0055] Explanation of reference numerals:

[0056] 1 - Touch screen, 2 - Trigger source controller, 3 - Industrial control computer, 4 - Camera unit, 5 - Light source controller, 6 - First light source, 7 - Second light source, 8 - Third light source, 9 - Fourth light source, 10 - Fifth light source, 11 - Mobile phone middle frame. Detailed implementation manners

[0057] In the following description, numerous specific details are given to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention may be practiced without one or more of these details. In other instances, well-known technical features are not described to avoid obscuring the present invention.

[0058] It should be noted that the terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly dictates otherwise, the singular forms are also intended to include the plural forms. In addition, it should be understood that when the terms "comprises" and / or "comprising" are used in this specification, they specify the presence of the stated features, wholes, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or combinations thereof.

[0059] Now, exemplary embodiments according to the present invention will be described in more detail with reference to the accompanying drawings. However, these exemplary embodiments may be implemented in many different forms and should not be construed as limited to the embodiments set forth herein. It should be understood that these embodiments are provided so that the present disclosure is thorough and complete, and the concept of these exemplary embodiments is fully conveyed to those of ordinary skill in the art.

[0060] First aspect, as Figure 1As shown in the figure, an embodiment of the present application provides a multi-channel image acquisition control system, including an industrial control computer 3, a camera unit 4, a trigger source controller 2, a light source controller 5, and at least one light source facing the component to be detected; the light source controller 5 includes a first trigger source, a second trigger source, at least one first light source output channel controlled by the first trigger source, and at least one second light source output channel controlled by the second trigger source;

[0061] The industrial control computer 3 is electrically connected to the trigger source controller 2, the light source controller 5, and the camera unit 4 respectively; the trigger source output interfaces of the trigger source controller 2 are electrically connected to the first trigger source and the second trigger source of the light source controller 5 respectively; the trigger source controller 2 is also electrically connected to the camera unit 4; each light source is electrically connected to the corresponding first light source output channel or the second light source output channel respectively;

[0062] The light source controller 5 is configured to obtain the control parameters of the stroboscopic control strategy, and generate a light source control process based on the control parameters of the stroboscopic control strategy;

[0063] The trigger source controller 2 is configured to obtain the control parameters of the stroboscopic control strategy, and generate a trigger source and camera unit control process based on the control parameters of the stroboscopic control strategy; and sequentially trigger the first trigger source and the second trigger source of the light source controller 5 according to the trigger source and camera unit control process through the trigger source output interface, and simultaneously control the camera unit 4 to take pictures;

[0064] The light source controller 5 is configured to, while the first trigger source and the second trigger source are sequentially triggered according to the light source control process, control the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel;

[0065] The industrial control computer 3 is configured to obtain the pictures taken by the camera unit 4.

[0066] Among them, the trigger source controller 2 can adopt a PLC (programmable logic device), and the trigger source output interface of the trigger source controller 5 is the IO output interface of the PLC. The component to be detected can be the middle frame 11 of a mobile phone, and of course it can also be other products, and this embodiment does not make strict limitations.

[0067] The control parameters of the stroboscopic control strategy are set by the staff according to the detection requirements. Specifically, the control parameters of the stroboscopic control strategy include, but are not limited to, the working timings of each light source, the corresponding brightness values, etc. The light source control process includes the triggered timings of the first trigger source and the second trigger source corresponding to the working timings of each light source and the corresponding first working parameters, where the first working parameters include, but are not limited to, the triggered trigger source, the corresponding light source output channel, and the trigger conditions, trigger interval durations, trigger pulse widths, brightness values, etc. of the light source output channel triggered. The control process of the trigger source and the imaging unit 4 includes the timings of the first trigger source and the second trigger source corresponding to the working timings of each light source and the corresponding second working parameters, where the second working parameters include, but are not limited to, the trigger source triggered through the trigger source output interface, the trigger conditions of the trigger source, and the corresponding working parameters of the imaging unit 4. The working parameters of the imaging unit 4 include the trigger conditions of the imaging unit 4, the trigger pulse width of the imaging unit 4, and the trigger interval duration.

[0068] The trigger conditions of the first light source output channel, the second light source output channel, the first trigger source, the second trigger source, and the imaging unit 4 are all rising edge triggers.

[0069] It can be understood that the trigger conditions of the light source output channel triggered, the trigger conditions of the trigger source, and the trigger conditions of the imaging unit 4 are the same. For example, the trigger conditions of the light source output channel triggered, the trigger conditions of the trigger source, and the trigger conditions of the imaging unit 4 are all rising edge triggers, and the trigger pulse width and trigger duration of the triggered light source output channel are the same as the trigger pulse width and trigger interval duration of the simultaneously triggered imaging unit 4, so as to ensure the synchronization of the shooting of the imaging unit 4 and the light emission of the light source.

[0070] In a specific application, the light source controller 5 obtains the control parameters of the stroboscopic control strategy and generates a light source control process based on the control parameters of the stroboscopic control strategy; then the trigger source controller 2 obtains the control parameters of the stroboscopic control strategy and generates a control process for the trigger source and the imaging unit based on the control parameters of the stroboscopic control strategy; and sequentially triggers the first trigger source and the second trigger source of the light source controller 5 through the trigger source output interface according to the control process for the trigger source and the imaging unit, while controlling the imaging unit 4 to work according to the corresponding working parameters of the imaging unit 4; and while the first trigger source and the second trigger source are sequentially triggered according to the light source control process by the light source controller 5, the corresponding light sources are controlled to work through the corresponding light source output channels according to the corresponding working parameters. Then the industrial control computer 3 obtains the pictures taken by the imaging unit 4 and analyzes the pictures taken by the imaging unit 4 to determine whether there are defects in the component to be detected.

[0071] Thus, for a multi-channel image acquisition control system provided by this embodiment, the staff only need to adjust the control parameters of the stroboscopic control strategy to automatically obtain the corresponding light source control process, trigger source, and camera control process. In this way, it is possible to change the number of stroboscopes, recombine the light sources of different channels, or change the brightness of the light sources in the stroboscopic channel to meet different detection requirements, without having to re-change the external wiring connection of the light source combination and re-compile the control programs for camera and light source triggering. This not only reduces the workload of the staff but also improves the detection efficiency.

[0072] Specifically, in one embodiment, as Figure 1 shown, the number of light sources is five, namely the first light source 6, the second light source 7, the third light source 8, the fourth light source 9, and the fifth light source 10. The number of output channels of the first light source and the second light source is five each. The first light source 6 is located above the component to be detected, the second light source 7 is located in the upper front of the component to be detected, the third light source 8 is located in the upper rear of the component to be detected, the fourth light source 9 is located obliquely above one side of the component to be detected, the fifth light source 10 is located obliquely above the other side of the component to be detected, and the camera unit 4 is located above the first light source 6.

[0073] In this embodiment, by setting five light sources to illuminate the component to be detected from different directions, defect detection is performed on each part of the surface of the component to be detected. Specifically, the component to be detected is the middle frame of a mobile phone. The first light source 6 is used to detect weak scratches (shallower scratches), strong scratches (deeper scratches), and different-color defects on the back cover of the mobile phone middle frame 11. The second light source 7 and the third light source 8 are used to detect weak bruises (shallower bruises) and strong bruises (deeper bruises) on the front and rear edge surfaces of the mobile phone middle frame 11. The fourth light source 9 and the fifth light source 10 are used to detect weak bruises (shallower bruises) and strong bruises (deeper bruises) on the left and right edge surfaces of the mobile phone middle frame 11.

[0074] In specific applications, each light source is connected to a different light source output channel to facilitate independent control of each light source. Specifically, the number of the first light source output channels controlled by the first trigger source is 4, namely the first light source output channel a, the first light source output channel b, the first light source output channel c, and the first light source output channel d; the number of the second light source output channels controlled by the second trigger source is 4, namely the second light source output channel e, the second light source output channel f, the second light source output channel g, and the second light source output channel h. Among them, the first light source output channel a is electrically connected to the first light source 6, the first light source output channel b is electrically connected to the second light source 7, the first light source output channel c is electrically connected to the third light source 8, the second light source output channel e is electrically connected to the fourth light source 9, the second light source output channel f is electrically connected to the fifth light source 10, and the first light source output channel d, the second light source output channel g, and the second light source output channel h are reserved light source output channels, which are enabled when a failure occurs in the first light source output through a-c or the second light source output channels e, f, or used when adding new light sources.

[0075] The control parameters include the working timings of each light source and the imaging unit 4 and the corresponding brightness values. Exemplarily, when detecting the component to be detected, the control parameters of the stroboscopic control strategy input by the staff are as follows: in the first stroboscopic process, the first light source 6 stroboscopically flashes, and the brightness value of the first light source 6 is 150, and at the same time the imaging unit 4 takes pictures to detect the weak scratches and different-color defects on the back cover of the mobile phone middle frame 11; in the second stroboscopic process, the first light source 6 stroboscopically flashes, and the brightness value of the light source is 60, and at the same time the imaging unit 4 takes pictures to detect the strong scratch defects on the back cover of the mobile phone middle frame 11; in the third stroboscopic process, the second light source 7 and the third light source 8 stroboscopically flash, and the brightness values of the third light source 8 and the second light source 7 are 150, and at the same time the imaging unit 4 takes pictures to detect the weak collision damage defects on the front and rear two edge surfaces of the mobile phone middle frame 11; in the fourth stroboscopic process, the second light source 7 and the third light source 8 stroboscopically flash, and the brightness values of the third light source 8 and the second light source 7 are 60, and at the same time the imaging unit 4 takes pictures to detect the strong collision damage defects on the front and rear two edge surfaces of the mobile phone middle frame 11; in the fifth stroboscopic process, the fourth light source 9 and the fifth light source 10 stroboscopically flash, and the brightness values of the fourth light source 9 and the fifth light source 10 are both 150, and at the same time the imaging unit 4 takes pictures to detect the weak collision damage defects on the left and right two edge surfaces of the mobile phone middle frame 11; in the sixth stroboscopic process, the fourth light source 9 and the fifth light source 10 stroboscopically flash, and the brightness values of the fourth light source 9 and the fifth light source 10 are both 60, and at the same time the imaging unit 4 takes pictures to detect the strong collision damage defects on the left and right two edge surfaces of the mobile phone middle frame 11.

[0076] As Figure 4 shown, based on the above control parameters, the light source controller 5 generates the following light source control process:

[0077] Step 1: Trigger the first light source to output channel a through the first trigger source. The channel brightness of the first light source output channel a is set to 150, the channel pulse width is set to 50 ms, and the trigger interval is set to 20 ms; Step 2: Trigger the first light source to output channel a through the first trigger source. The channel brightness of the first light source output channel a is set to 60, the channel pulse width is set to 50 ms, and the trigger interval is set to 20 ms; Step 3: Trigger the first light source output channels b and c through the first trigger source. The brightness settings of the first light source output channels b and c are both 150, the channel pulse width is set to 50 ms, and the trigger interval is set to 20 ms; Step 4: Trigger the first light source output channels b and c through the first trigger source. The brightness settings of the first light source output channels b and c are both 60, the channel pulse width is set to 50 ms, and the trigger interval is set to 20 ms; Step 5: Trigger the second light source output channels e and f through the second trigger source. The brightness settings of the second light source output channels e and f are both 150, the channel pulse width is set to 50 ms, and the trigger interval is set to 20 ms; Step 6: Trigger the second light source output channels e and f through the second trigger source. The brightness settings of the first light source output channels b and c are both 60, the channel pulse width is set to 50 ms, and the trigger interval is set to 20 ms.

[0078] Based on the above control parameters, the trigger source controller 2 generates the trigger source and the control process of the imaging unit as follows:

[0079] Step 1: Trigger the first trigger source through the trigger source output interface. The trigger pulse width is set to 50 ms, the trigger interval is set to 20 ms, and control the imaging unit 4 to take pictures; Step 2: Trigger the first trigger source through the trigger source output interface. The trigger pulse width is set to 50 ms, the trigger interval is set to 20 ms, and control the imaging unit 4 to take pictures; Step 3: Trigger the first trigger source through the trigger source output interface. The trigger pulse width is set to 50 ms, the trigger interval is set to 20 ms, and control the imaging unit 4 to take pictures; Step 4: Trigger the first trigger source through the trigger source output interface. The trigger pulse width is set to 50 ms, the trigger interval is set to 20 ms, and control the imaging unit 4 to take pictures; Step 5: Trigger the second trigger source through the trigger source output interface. The trigger pulse width is set to 50 ms, the trigger interval is set to 20 ms, and control the imaging unit 4 to take pictures; Step 6: Trigger the second trigger source through the trigger source output interface. The trigger pulse width is set to 50 ms, the trigger interval is set to 20 ms, and control the imaging unit 4 to take pictures. For details, see Figure 3 , where the black part is the untriggered trigger source, and the white part is the triggered trigger source and the imaging unit.

[0080] The trigger source controller 2 executes step 1 in the trigger source and camera control process, that is, triggers the first trigger source through the trigger source output interface and controls the camera unit 4 to take pictures. After the first trigger source is triggered, the light source controller 5 executes step 1 in the light source control process, that is, triggers the first light source output channel a through the first trigger source, and makes the channel brightness of the first light source output channel a reach 150 and the channel pulse width reach 50 ms, so that the brightness of the first light source 6 reaches 150 within 50 ms to perform high-brightness irradiation on the back cover of the mobile phone middle frame 11, and takes pictures through the camera unit 4 for subsequent identification of the pictures taken to determine whether there are weak scratches and different-color defects on the back cover of the mobile phone middle frame 11.

[0081] Then, after an interval of 20 ms, the trigger source controller 2 executes step 2 in the trigger source and camera control process, that is, triggers the first trigger source through the trigger source output interface and controls the camera unit 4 to take pictures. After the first trigger source is triggered, the light source controller 5 executes step 2 in the light source control process, that is, triggers the first light source output channel a through the first trigger source, and makes the channel brightness of the first light source output channel a reach 60 and the channel pulse width reach 50 ms, so that the brightness of the first light source 6 reaches 60 within 50 ms to perform low-brightness irradiation on the back cover of the mobile phone middle frame 11, and takes pictures through the camera unit 4 for subsequent identification of the pictures taken to determine whether there are strong scratch defects on the back cover of the mobile phone middle frame 11.

[0082] Then, after an interval of 20 ms, the trigger source controller 2 executes step 3 in the trigger source and camera control process, that is, triggers the first trigger source through the trigger source output interface and controls the camera unit 4 to take pictures. After the first trigger source is triggered, the light source controller 5 executes step 3 in the light source control process, that is, triggers the first light source output channel b and the first light source output channel c through the first trigger source, and makes the channel brightness of the first light source output channel b and the first light source output channel c reach 150 and the channel pulse width reach 50 ms, so that the brightness of the second light source 7 and the third light source 8 reaches 150 within 50 ms to perform high-brightness irradiation on the mobile phone middle frame 11, and takes pictures through the camera unit 4 for subsequent identification of the pictures taken to determine whether there are weak collision defects on the front and rear edge surfaces of the mobile phone middle frame 11.

[0083] Then, after an interval of 20 ms, the trigger source controller 2 executes step 4 in the trigger source and camera unit control process, that is, triggers the first trigger source through the trigger source output interface and controls the camera unit 4 to take a picture. After the first trigger source is triggered, the light source controller 5 executes step 4 in the light source control process, that is, triggers the first light source output channel b and the first light source output channel c through the first trigger source, and makes the channel brightness of the first light source output channel b and the first light source output channel c reach 60, and the channel pulse width reach 50 ms, so that the brightness of the second light source 7 and the third light source 8 reaches 60 within 50 ms to perform high-brightness illumination on the middle frame 11 of the mobile phone, and takes a picture through the camera unit 4, and then identifies the pictures taken to determine whether there are strong collision damage defects on the front and rear edge surfaces of the middle frame 11 of the mobile phone.

[0084] Then, after an interval of 20 ms, the trigger source controller 2 executes step 5 in the trigger source and camera unit control process, that is, triggers the second trigger source through the trigger source output interface and controls the camera unit 4 to take a picture. After the second trigger source is triggered, the light source controller 5 executes step 5 in the light source control process, that is, triggers the second light source output channel e and the second light source output channel f through the second trigger source, and makes the channel brightness of the second light source output channel e and the second light source output channel f reach 150, and the channel pulse width reach 50 ms, so that the brightness of the fourth light source 9 and the fifth light source reaches 150 within 50 ms to perform high-brightness illumination on the middle frame 11 of the mobile phone, and takes a picture through the camera unit 4, and then identifies the pictures taken to determine whether there are weak collision damage defects on the left and right edge surfaces of the middle frame 11 of the mobile phone.

[0085] Then, after an interval of 20 ms, the trigger source controller 2 executes step 6 in the trigger source and camera unit control process, that is, triggers the second trigger source through the trigger source output interface and controls the camera unit 4 to take a picture. After the second trigger source is triggered, the light source controller 5 executes step 6 in the light source control process, that is, triggers the second light source output channel e and the second light source output channel f through the second trigger source, and makes the channel brightness of the second light source output channel e and the second light source output channel f reach 60, and the channel pulse width reach 50 ms, so that the brightness of the fourth light source 9 and the fifth light source reaches 60 within 50 ms to perform high-brightness illumination on the middle frame 11 of the mobile phone, and takes a picture through the camera unit 4, and then identifies the pictures taken to determine whether there are strong collision damage defects on the back left and right edge surfaces of the middle frame 11 of the mobile phone.

[0086] Specifically, the trigger source controller 2 is further configured to reset the light source controller 5, and after the light source controller 5 is reset, the trigger source controller 2 is also reset.

[0087] After completing all the above steps, a cycle of the entire image acquisition is completed, and the trigger source controller 2 triggers the light source controller 5 to reset. After the light source controller 5 is reset, the trigger source controller 2 is also reset, thereby repeating the above steps to enter the next cycle.

[0088] Further, as Figure 1 shown, the second light source 7 and the third light source 8 are arranged front and back, so as to be able to detect whether there are strong collision damage defects or weak collision damage defects on the front and back edge surfaces of the middle frame 11 of the mobile phone.

[0089] The first light source, the second light source, the third light source, the fourth light source and the fifth light source are coaxial light sources, combined strip light sources or LED light sources. Thus, various types of light sources can be adopted for each light source, thereby improving the applicability and flexibility of each light source.

[0090] Further, the system further includes an input and display unit, which is electrically connected to the trigger source controller 2, and the input and display unit is used to input and display the control parameters of the stroboscopic control strategy.

[0091] The input and display unit can facilitate the staff to set the control parameters and intuitively view the control parameters, so that the staff can know whether the control parameters are input correctly.

[0092] Specifically, as Figure 1 shown, the input and display unit is a touch screen 1, so that input components such as keyboards can be omitted, thereby saving space and making the structure of the entire system more compact.

[0093] Further, the imaging unit 4 is a area array camera, and the area array camera can obtain two-dimensional image information, and the image is more intuitive, thereby improving the accuracy of detection.

[0094] Further, the industrial control computer 3 is also used to store the light source control process.

[0095] Further, wireless communication modules are provided on the industrial control computer 3, the light source controller 5, and the trigger source controller 2, so that data interaction can be performed through wireless communication (such as wifi, Bluetooth, etc.).

[0096] The light source control process is stored, so that when the same light source control process is used, the light source control process can be called.

[0097] In a second aspect, as Figure 2 shown, an embodiment of the present invention provides a multi-channel image acquisition control method, which is applied to the above system and includes:

[0098] Step S101: The light source controller 5 obtains the control parameters of the stroboscopic control strategy;

[0099] Step S102: The light source controller 5 generates a light source control process based on the control parameters of the stroboscopic control strategy;

[0100] Step S103: The trigger source controller 2 obtains the control parameters of the stroboscopic control strategy;

[0101] Step S104: The trigger source controller 2 generates a trigger source and camera unit control process based on the control parameters of the stroboscopic control strategy;

[0102] Step S105: The trigger source controller 2 sequentially triggers the first trigger source and the second trigger source of the light source controller 5 according to the trigger source and camera unit control process through the trigger source output interface, and simultaneously controls the camera unit 4 to take pictures;

[0103] Step S106: While the first trigger source and the second trigger source are sequentially triggered according to the light source control process, the light source controller 5 controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channels;

[0104] Step S107: The industrial control computer 3 obtains the pictures taken by the camera unit 4.

[0105] For the specific limitations of the multi-channel image acquisition control method, reference can be made to the limitations of the multi-channel image acquisition control system in the above text, which will not be elaborated here.

[0106] According to a multi-channel image acquisition control method provided by an embodiment of the present invention, the staff only needs to adjust the control parameters of the stroboscopic control strategy to automatically obtain the corresponding light source control process, trigger source and camera unit control process, so as to be able to change the number of stroboscopic times, recombine the light sources of different channels, or change the brightness of the light sources in the stroboscopic channel, so as to meet different detection requirements, thereby eliminating the need to re-change the external wiring connection of the light source combination and recompile the control programs for camera and light source triggering, which not only reduces the workload of the staff, but also improves the detection efficiency.

[0107] Specifically, in the above embodiment, the control parameters of the stroboscopic control strategy are directly input by the user to the trigger source controller 2 and the light source controller 5, or sent by the input and display unit to the trigger source controller and the light source controller. Among them, the user enters the control parameters through the input and display unit, and then the input and display unit sends them to the trigger source controller and the light source controller, which is more convenient for the user to operate.

[0108] Among them, the control parameters of the stroboscopic control strategy include the working timings of each light source and the camera unit 4 and the corresponding brightness values. Step S104 includes:

[0109] Step S1041: The trigger source controller 2 determines the working timings of each trigger source and the imaging unit 4 and the time intervals between the working timings based on the working timings of each light source and the imaging unit 4 and the corresponding brightness values.

[0110] Step S1042: Generate the control flow of the trigger source and the imaging unit according to the working timings of each trigger source and the imaging unit 4 and the time intervals between the working timings.

[0111] For the specific elaboration of the above steps, reference can be made to the specific content of the control parameters of the stroboscopic control strategy input by the staff and the control flow of the trigger source and the imaging unit generated by the trigger source controller 2 in the above embodiments, which will not be elaborated here.

[0112] Further, in the above embodiment, step S102 specifically includes:

[0113] The light source controller 5 determines the trigger timings of each light source output channel and the corresponding trigger sources, channel brightness values, and channel pulse widths based on the working timings of each light source and the corresponding brightness values, so as to generate the light source control flow.

[0114] For the specific elaboration of the above steps, reference can be made to the specific content of the control parameters of the stroboscopic control strategy input by the staff and the control flow of the light source generated by the light source controller 5 in the above embodiments, which will not be elaborated here.

[0115] Further, in the above embodiment, step S106 includes:

[0116] While the trigger source controller 2 triggers the corresponding trigger sources according to the working timings of each trigger source through the trigger source output interface, the light source controller 5 triggers the corresponding light source output channels by using the triggered trigger sources according to the trigger timings of each light source output channel and the corresponding trigger sources, and controls the corresponding light sources to reach the corresponding channel brightness values through the triggered light source output channels and maintain for a duration equal to the corresponding channel pulse width.

[0117] For the specific content of this step, reference can be made to the control process of the multi-channel image acquisition control system, which will not be elaborated here.

[0118] Further, the trigger conditions of the first light source output channel, the second light source output channel, the first trigger source, the second trigger source, and the imaging unit are all rising edge triggers.

[0119] Further, after step S107 in the above embodiment, the following steps are also included:

[0120] The trigger source controller resets the light source controller, and after the light source controller is reset, the trigger source controller is reset.

[0121] After completing steps S101 - S107, a cycle of the entire image acquisition is completed, triggering the source controller 2 to reset the light source controller 5. After the light source controller 5 is reset, the source controller 2 is also reset, thereby repeating steps S101 - S107 to enter the next cycle.

[0122] Furthermore, in the above embodiment, after step S107, it further includes:

[0123] The industrial control computer 3 stores the light source control process.

[0124] By storing the light source control process, when using the same light source control process, the light source control process can be called.

[0125] The present invention has been described through the above embodiments. However, it should be understood that the above embodiments are only for the purpose of exemplification and illustration, and are not intended to limit the present invention to the scope of the described embodiments. In addition, those skilled in the art can understand that the present invention is not limited to the above embodiments, and more variations and modifications can be made according to the teachings of the present invention, and these variations and modifications all fall within the scope of protection required by the present invention. The scope of protection of the present invention is defined by the appended claims and their equivalent scope.

Claims

1. A multi-channel image acquisition and control system, characterized in that, It includes an industrial control computer, a camera unit, a trigger source controller, a light source controller, and at least one light source facing the component to be detected; The light source controller includes a first trigger source, a second trigger source, at least one first light source output channel controlled by the first trigger source, and at least one second light source output channel controlled by the second trigger source; The industrial control computer is electrically connected to the trigger source controller, the light source controller, and the camera unit respectively; the trigger source output interfaces of the trigger source controller are electrically connected to the first trigger source and the second trigger source of the light source controller respectively; the trigger source controller is also electrically connected to the camera unit; each light source is electrically connected to the corresponding first light source output channel or second light source output channel; The light source controller is configured to obtain the control parameters of the stroboscopic control strategy and generate a light source control process based on the control parameters of the stroboscopic control strategy; The trigger source controller is configured to obtain the control parameters of the stroboscopic control strategy and generate a trigger source and camera unit control process based on the control parameters of the stroboscopic control strategy; And sequentially trigger the first trigger source and the second trigger source of the light source controller through the trigger source output interface according to the trigger source and camera unit control process, and simultaneously control the camera unit to take pictures; the control process of the trigger source and the camera unit includes the timings of the first trigger source and the second trigger source corresponding to the working timings of each light source and the corresponding second working parameters, wherein the second working parameters include the trigger source triggered through the trigger source output interface, the trigger conditions of the trigger source, and the working parameters of the corresponding camera unit, and the working parameters of the camera unit include the trigger conditions of the camera unit, the trigger pulse width, and the trigger interval duration of the camera unit; the control parameters of the stroboscopic control strategy include the working timings of each light source and the corresponding brightness values, and the light source control process includes the triggered timings of the first trigger source and the second trigger source corresponding to the working timings of each light source and the corresponding first working parameters, wherein the first working parameters include the triggered trigger source, the corresponding light source output channel, and the trigger conditions, trigger interval duration, trigger pulse width, and brightness value triggered by the light source output channel; The light source controller is configured to, while the first trigger source and the second trigger source are sequentially triggered according to the light source control process, control the corresponding light source to work through the corresponding light source output channel according to the corresponding working parameters; The industrial control computer is configured to obtain the pictures taken by the camera unit.

2. The system according to claim 1, wherein The number of the light sources is five, namely a first light source, a second light source, a third light source, a fourth light source, and a fifth light source; the number of both the first light source output channel and the second light source output channel is five; The first light source is located above the component to be detected, the second light source is located in the upper front of the component to be detected, the third light source is located in the upper rear of the component to be detected, the fourth light source is located in the upper oblique side of one side of the component to be detected, the fifth light source is located in the upper oblique side of the other side of the component to be detected, and the camera unit is located above the first light source.

3. The system according to claim 2, wherein The second light source and the third light source are arranged front and back.

4. The system according to claim 3, wherein The first light source, the second light source, the third light source, the fourth light source, and the fifth light source are coaxial light sources, combined strip light sources, or LED light sources.

5. The system according to claim 2, wherein The number of output channels of the first light source is 4, namely the first light source output channel a, the first light source output channel b, the first light source output channel c, and the first light source output channel d; the number of output channels of the second light source is 4, namely the second light source output channel e, the second light source output channel f, the second light source output channel g, and the second light source output channel h; Among them, the first light source output channel a is electrically connected to the first light source, the first light source output channel b is electrically connected to the second light source, the first light source output channel c is electrically connected to the third light source, the second light source output channel e is electrically connected to the fourth light source, the second light source output channel f is electrically connected to the fifth light source, and the first light source output channel d, the second light source output channel g, and the second light source output channel h are reserved light source output channels.

6. The system according to claim 1, wherein The system further includes an input and display unit, which is electrically connected to the trigger source controller and is used for inputting and displaying the control parameters of the stroboscopic control strategy.

7. The system according to claim 1, characterized in that, The control parameters include the working timings of each light source and the imaging unit and the corresponding brightness values.

8. The system according to claim 1, wherein The trigger conditions of the first light source output channel, the second light source output channel, the first trigger source, the second trigger source, and the imaging unit are all rising edge triggers.

9. The system according to claim 6, characterized in that, The input and display unit is a touch screen; The imaging unit is an area array camera; The industrial control computer is further used for storing the light source control process; The trigger source controller is further used for resetting the light source controller, and after the light source controller is reset, the trigger source controller is also reset; The industrial control computer, the light source controller, and the trigger source controller are provided with wireless communication modules.

10. The system according to any one of claims 1-9, characterized in that, The component to be detected is the middle frame of a mobile phone.

11. A multi-channel image acquisition control method, applied to the system according to any one of claims 1-10, characterized in that, Including: The light source controller obtains the control parameters of the stroboscopic control strategy; The light source controller generates the light source control process based on the control parameters of the stroboscopic control strategy; The trigger source controller obtains the control parameters of the stroboscopic control strategy; The trigger source controller generates the control processes of the trigger source and the imaging unit based on the control parameters of the stroboscopic control strategy; The trigger source controller triggers the first trigger source and the second trigger source of the light source controller in sequence according to the trigger source and the camera unit control process through the trigger source output interface, and simultaneously controls the camera unit to take pictures; the control process of the trigger source and the camera unit includes the timings of the first trigger source and the second trigger source corresponding to the working timings of each light source and the corresponding second working parameters, where the second working parameters include the trigger source triggered through the trigger source output interface, the trigger condition of the trigger source, and the working parameters of the corresponding camera unit, and the working parameters of the camera unit include the trigger condition of the camera unit, the trigger pulse width of the camera unit, and the trigger interval duration; the control parameters of the stroboscopic control strategy include the working timings of each light source and the corresponding brightness values, and the light source control process includes the triggered timings of the first trigger source and the second trigger source corresponding to the working timings of each light source and the corresponding first working parameters, where the first working parameters include the triggered trigger source, the corresponding light source output channel, and the trigger condition, trigger interval duration, trigger pulse width, and brightness value triggered by the light source output channel; While the first trigger source and the second trigger source of the light source controller are triggered in sequence according to the light source control process, the light source controller controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channels; The industrial control computer acquires the pictures taken by the camera unit.

12. The method according to claim 11, wherein The control parameters include the working timings of each light source and the camera unit and the corresponding brightness values; The trigger source controller generates the control process of the trigger source and the camera unit based on the control parameters of the stroboscopic control strategy, and further includes: The trigger source controller determines the working timings of each trigger source and the camera unit and the time intervals between the working timings based on the working timings of each light source and the camera unit and the corresponding brightness values; And Generates the control process of the trigger source and the camera unit according to the working timings of each trigger source and the camera unit and the time intervals between the working timings.

13. The method according to claim 11, wherein The light source controller generates the light source control process based on the control parameters of the stroboscopic control strategy, and further includes: The light source controller determines the trigger timings of each light source output channel and the corresponding trigger source, channel brightness value, and channel pulse width based on the working timings of each light source and the corresponding brightness values to generate the light source control process.

14. The method according to claim 11, wherein While the first trigger source and the second trigger source of the light source controller are triggered in sequence according to the light source control process, the light source controller controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channels, and further includes: While the trigger source controller triggers the corresponding trigger source according to the working timings of each trigger source through the trigger source output interface, the light source controller triggers the corresponding light source output channel by using the triggered trigger source according to the trigger timings of each light source output channel and the corresponding trigger source, and controls the corresponding light source to reach the corresponding channel brightness value through the triggered light source output channel and maintain it for a duration equal to the corresponding channel pulse width.

15. The method according to claim 11, wherein The triggering conditions of the first light source output channel, the second light source output channel, the first trigger source, the second trigger source, and the imaging unit are all rising edge triggers.

16. The method according to claim 11, wherein After the industrial control computer acquires the pictures taken by the imaging unit, it further includes: The trigger source controller resets the light source controller, and after the light source controller is reset, the trigger source controller is reset.

17. The method according to claim 11, wherein The control parameters of the stroboscopic control strategy are directly input by the user to the trigger source controller and the light source controller, or sent by the input and display unit to the trigger source controller and the light source controller.

18. The method according to any one of claims 11-17, characterized in that, After the light source controller generates a light source control process based on the control parameters of the stroboscopic control strategy, it further includes: The industrial control computer stores the light source control process.

Citation Information

Patent Citations

  • Machine vision system, light source control stroboflash implementation method and readable storage medium

    CN115145093A

  • Optical inspection system

    TWM619521U