CN115460738A - Multi-channel image acquisition control system and method - Google Patents

Multi-channel image acquisition control system and method Download PDF

Info

Publication number
CN115460738A
CN115460738A CN202211227220.9A CN202211227220A CN115460738A CN 115460738 A CN115460738 A CN 115460738A CN 202211227220 A CN202211227220 A CN 202211227220A CN 115460738 A CN115460738 A CN 115460738A
Authority
CN
China
Prior art keywords
light source
trigger
output channel
source
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211227220.9A
Other languages
Chinese (zh)
Inventor
陈晓龙
孙二东
张武杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Huiyuan Intelligent Equipment Guangdong Co ltd
Casi Vision Technology Luoyang Co Ltd
Casi Vision Technology Beijing Co Ltd
Original Assignee
Zhongke Huiyuan Intelligent Equipment Guangdong Co ltd
Casi Vision Technology Luoyang Co Ltd
Casi Vision Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Huiyuan Intelligent Equipment Guangdong Co ltd, Casi Vision Technology Luoyang Co Ltd, Casi Vision Technology Beijing Co Ltd filed Critical Zhongke Huiyuan Intelligent Equipment Guangdong Co ltd
Priority to CN202211227220.9A priority Critical patent/CN115460738A/en
Publication of CN115460738A publication Critical patent/CN115460738A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/03Combinations of cameras with lighting apparatus; Flash units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Image Input (AREA)

Abstract

The application discloses a multi-channel image acquisition control system and a method, wherein the system comprises an industrial personal computer, a camera part, a trigger source controller, a light source controller and at least one light source facing to a part to be detected; the light source controller comprises 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; a trigger source output interface of the trigger source controller is respectively and electrically connected with a first trigger source and a second trigger source of the light source controller; each light source is electrically connected with the corresponding first light source output channel or the corresponding second light source output channel, the combined external wiring connection of the light sources does not need to be changed again, and the control program triggered by the camera and the light sources does not need to be compiled again, so that the workload of workers is reduced, and the detection efficiency is improved.

Description

Multi-channel image acquisition control system and method
Technical Field
The application relates to the field of multi-channel image acquisition control, in particular to a multi-channel image acquisition control system and method.
Background
In the modern era of technological development, the mobile phone is assembled by a plurality of parts in the manufacturing process, and the middle frame of the mobile phone is an important part. The cell-phone center is the support of cell-phone for prop up whole cell-phone, through processing such as polishing, drilling, CNC processing, the various internal component of adaptation. The quality of the middle frame directly affects the quality of the mobile phone, so the appearance requirement of the middle frame of the mobile phone is very high, and precise processing and precise detection are required. Various flaws exist in the processing process of the traditional mobile phone middle frame, the quality control means mainly adopts manual inspection, and the defects which are difficult to avoid by a human body are limited, so that the missed inspection of bad products is easily caused. With the development of intelligent detection, machine vision systems are widely applied to various industries, and the inspection of the middle frame of the mobile phone is gradually transited from manual inspection to machine vision.
An important technical point of visual inspection is acquisition of defect images, at present, when a multi-channel stroboscopic control scheme is adopted, when stroboscopic times need to be changed for different product detection, light sources of different channels need to be recombined, or the brightness of the light sources in the stroboscopic channels needs to be changed, the combined external wiring connection of the light sources needs to be changed again, the brightness parameters of each output channel of the light source controller are reconfigured, and control programs triggered by a camera and the light sources are changed, so that the workload of workers is increased, the detection efficiency is reduced, and the scheme is difficult to implement.
Disclosure of Invention
In view of this, the present application provides a multi-channel image acquisition control system and method, so as to solve the problem that when the number of strobes needs to be changed, the light sources in different channels need to be recombined, or the brightness of the light sources in the strobing channels needs to be changed, the combined external wiring connection of the light sources needs to be changed again, and the control program triggered by the camera and the light sources needs to be recompiled, which not only increases the workload of the workers, but also reduces the detection efficiency.
In a first aspect, the application provides a multi-channel image acquisition control system, which comprises an industrial personal computer, a camera part, a trigger source controller, a light source controller and at least one light source facing a part to be detected;
the light source controller comprises 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 personal computer is respectively and electrically connected with the trigger source controller, the light source controller and the camera shooting part; a trigger source output interface of the trigger source controller is electrically connected with a first trigger source and a second trigger source of the light source controller respectively; the trigger source controller is also electrically connected with the camera part; each light source is electrically connected with the corresponding first light source output channel or the corresponding second light source output channel;
the light source controller is used for acquiring control parameters of a stroboscopic control strategy and generating a light source control flow based on the control parameters of the stroboscopic control strategy;
the trigger source controller is used for acquiring control parameters of a stroboscopic control strategy and generating a trigger source and a control flow of the camera part based on the control parameters of the stroboscopic control strategy; sequentially triggering a first trigger source and a second trigger source of the light source controller through a trigger source output interface according to the trigger source and the control flow of the camera shooting part, and simultaneously controlling the camera shooting part to shoot;
the light source controller is used for controlling the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow;
the industrial personal computer is used for acquiring the pictures shot by the shooting part.
Optionally, the number of the light sources is five, and the light sources are respectively a first light source, a second light source, a third light source, a fourth light source and a fifth light source; the number of the first light source output channels and the number of the second light source output channels are five;
the first light source is located above the part to be detected, the second light source is located above the front portion of the part to be detected, the third light source is located above the rear portion of the part to be detected, the fourth light source is located above one side of the part to be detected, the fifth light source is located above the other side of the part to be detected, and the camera shooting portion is located above the first light source.
Optionally, the second light source and the third light source are arranged in front of and behind each other.
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 stripe light sources, or LED light sources.
Optionally, the number of the first light source output channels is 4, which are respectively 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, and the second light source output channels are a second light source output channel e, a second light source output channel f, a second light source output channel g and a second light source output channel h respectively;
the first light source output channel a is electrically connected with the first light source, the first light source output channel b is electrically connected with the second light source, the first light source output channel c is electrically connected with the third light source, the second light source output channel e is electrically connected with the fourth light source, the second light source output channel f is electrically connected with 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.
Optionally, the system further includes an input and display unit, the input and display unit is electrically connected to the trigger source controller, and the input and display unit is configured to input and display control parameters of the strobe control strategy.
Optionally, the control parameters include operation timings and corresponding brightness values of the light sources and the image capturing unit.
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 image pickup unit are all rising edge triggers.
Optionally, the input and display part is a touch screen;
the camera shooting part is an area-array camera;
the industrial personal computer is also used for storing the light source control flow;
the trigger source controller is also used for resetting the light source controller, and after the light source controller is reset, the trigger source controller is also reset;
the industrial personal computer, the light source controller and the trigger source controller are provided with wireless communication modules.
Optionally, the component to be detected is a middle frame of a mobile phone.
In a second aspect, the present application provides a multi-channel image acquisition control method, which is applied to the above system, and includes:
a light source controller acquires control parameters of a stroboscopic control strategy;
the light source controller generates a light source control flow 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 a trigger source and a control flow of the camera part based on the control parameters of the stroboscopic control strategy;
the trigger source controller sequentially triggers a first trigger source and a second trigger source of the light source controller through a trigger source output interface according to the trigger source and the control flow of the camera shooting part, and simultaneously controls the camera shooting part to shoot;
the light source controller controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow;
the industrial personal computer obtains the pictures shot by the shooting part.
Optionally, the control parameters include working timings and corresponding brightness values of the light sources and the camera part; the trigger source controller generates the trigger source and the control flow of the camera part based on the control parameters of the stroboscopic control strategy, and the trigger source and the control flow of the camera part comprise:
the trigger source controller determines the working time sequences of the light sources and the camera shooting part and the time intervals among the working time sequences based on the working time sequences and the corresponding brightness values of the light sources and the camera shooting part;
and generating a control flow of the trigger source and the image pickup part according to the working time sequence of each trigger source and the image pickup part and the time interval between the working time sequences.
Optionally, the generating, by the light source controller, the light source control flow based on the control parameter of the strobe control strategy includes:
and the light source controller determines the trigger time sequence of each light source output channel and the corresponding trigger source, channel brightness value and channel pulse width based on the working time sequence and the corresponding brightness value of each light source so as to generate the light source control flow.
Optionally, when the first trigger source and the second trigger source are sequentially triggered according to the light source control flow, the light source controller controls the corresponding light source to operate according to the corresponding operating parameter through the corresponding light source output channel, including:
and when the trigger source controller triggers the corresponding trigger source through the trigger source output interface according to the working time sequence of each trigger source, the light source controller triggers the corresponding light source output channel according to the trigger time sequence of each light source output channel and the corresponding trigger source by using the triggered trigger source, and controls the corresponding light source to reach the corresponding channel brightness value through the triggered light source output channel and keep the same duration as the pulse width of the corresponding channel.
Optionally, the control parameters of the strobe control strategy are directly input into the trigger source controller and the light source controller by a user, or are sent to the trigger source controller and the light source controller by an input and display part.
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 image capturing unit are all rising edge triggers.
Optionally, the industrial personal computer further includes, after acquiring the picture taken by the camera shooting unit:
the trigger source controller resets the light source controller, and after the light source controller resets, the trigger source controller resets.
Optionally, the generating, by the light source controller, a light source control flow based on the control parameter of the strobe control strategy further includes:
and the industrial personal computer stores the light source control flow.
According to the multichannel image acquisition control system and the multichannel image acquisition control method provided by the embodiment of the invention, a worker can automatically obtain the corresponding light source control flow, trigger source and camera shooting part control flow only by adjusting the control parameters of the stroboscopic control strategy, so that the purposes of changing the stroboscopic frequency, recombining light sources of different channels or changing the brightness of the light source in the stroboscopic channel to meet different detection requirements can be realized, the combined external wiring connection of the light source does not need to be changed again, and the control program triggered by the camera and the light source does not need to be compiled again, thereby not only reducing the workload of the worker, but also improving the detection efficiency.
Drawings
The following drawings of the invention are included to provide a further understanding of the invention as a part of the examples. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
In the drawings:
FIG. 1 is a schematic diagram of a multi-channel image acquisition control system according to an alternative embodiment of the present invention;
FIG. 2 is a flow chart of a multi-channel image acquisition control method according to an alternative embodiment of the invention;
FIG. 3 is a flowchart of trigger source and camera control according to an alternative embodiment of the present invention;
fig. 4 is a flow chart of light source control according to an alternative embodiment of the present invention.
Description of reference numerals:
the mobile phone comprises a touch screen 1, a trigger source controller 2, an industrial personal computer 3, a camera shooting part 4, a light source controller 5, a first light source 6, a second light source 7, a third light source 8, a fourth light source 9, a fifth light source 10 and a mobile phone middle frame 11.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art, that the present invention may be practiced without one or more of these specific details. In other instances, well-known features have not been described in order to avoid obscuring the invention.
It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention. As used herein, the singular is intended to include the plural unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Exemplary embodiments according to the present invention will now be described in more detail with reference to the accompanying drawings. These exemplary embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. It is to be understood that these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of these exemplary embodiments to those skilled in the art.
In a first aspect, as shown in fig. 1, an embodiment of the present application provides a multi-channel image acquisition control system, which includes an industrial personal computer 3, a camera 4, a trigger source controller 2, a light source controller 5, and at least one light source facing a component to be detected; the light source controller 5 comprises 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 personal computer 3 is respectively and electrically connected with the trigger source controller 2, the light source controller 5 and the camera part 4; a trigger source output interface of the trigger source controller 2 is respectively and electrically connected with a first trigger source and a second trigger source of the light source controller 5; the trigger source controller 2 is also electrically connected with the camera part 4; each light source is electrically connected with the corresponding first light source output channel or the corresponding second light source output channel;
the light source controller 5 is used for acquiring control parameters of a stroboscopic control strategy and generating a light source control flow based on the control parameters of the stroboscopic control strategy;
the trigger source controller 2 is used for acquiring control parameters of a stroboscopic control strategy and generating a trigger source and a camera part control flow based on the control parameters of the stroboscopic control strategy; sequentially triggering a first trigger source and a second trigger source of the light source controller 5 through a trigger source output interface according to a trigger source and camera shooting part control flow, and simultaneously controlling the camera shooting part 4 to shoot;
the light source controller 5 is used for controlling the corresponding light sources to work according to the corresponding working parameters through the corresponding light source output channels while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow;
and the industrial personal computer 3 is used for acquiring the pictures shot by the shooting part 4.
The trigger source controller 2 may adopt a PLC (programmable logic device), and the trigger source output interface of the trigger source controller 5 is an IO output interface of the PLC. The part to be detected may be the middle frame 11 of the mobile phone, and may also be other products, and this embodiment is not strictly limited.
And the control parameters of the stroboscopic control strategy are set by a worker according to the detection requirement. Specifically, the control parameters of the strobe control strategy include, but are not limited to, the operating timing of each light source, the corresponding brightness value, and the like. The light source control process includes triggered time sequences of a first trigger source and a second trigger source corresponding to the light source working time sequences and corresponding first working parameters, wherein the first working parameters include but are not limited to triggered trigger sources, corresponding light source output channels, trigger conditions triggered by the light source output channels, trigger interval duration, trigger pulse width, brightness values and the like. The control flow of the trigger source and the image capturing unit 4 includes the time sequences of the first trigger source and the second trigger source corresponding to the working time sequences of the light sources and the corresponding second working parameters, wherein the second working parameters include, but are not limited to, the trigger source triggered through the trigger source output interface, the trigger condition of the trigger source and the corresponding working parameters of the image capturing unit 4, and the working parameters of the image capturing unit 4 include the trigger condition of the image capturing unit 4, the trigger pulse width and the trigger interval duration of the image capturing unit 4.
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 camera part 4 are all rising edge trigger.
It can be understood that the trigger condition of the light source output channel trigger, the trigger condition of the trigger source, and the trigger condition of the image capturing unit 4 are the same, for example, the trigger condition of the light source output channel trigger, the trigger condition of the trigger source, and the trigger condition of the image capturing unit 4 are all rising edge triggers, and the trigger pulse width and the trigger time length of the triggered light source output channel are the same as the trigger pulse width and the trigger interval time length of the image capturing unit 4 triggered at the same time, so as to ensure the synchronization between the shooting and the light source light emission of the image capturing unit 4.
In specific application, the light source controller 5 acquires control parameters of a stroboscopic control strategy and generates a light source control flow based on the control parameters of the stroboscopic control strategy; then the trigger source controller 2 acquires the control parameters of the stroboscopic control strategy, and generates a trigger source and a control flow of the camera shooting part based on the control parameters of the stroboscopic control strategy; sequentially triggering a first trigger source and a second trigger source of the light source controller 5 through a trigger source output interface according to a trigger source and a camera shooting part control flow, and simultaneously controlling the camera shooting part 4 to work according to corresponding working parameters of the camera shooting part 4; and the light source controller 5 controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow, then the industrial personal computer 3 obtains the picture shot by the camera part 4, and then the picture shot by the camera part 4 is analyzed to judge whether the part to be detected has defects.
From this embodiment provides a multichannel image acquisition control system, the staff only needs the control parameter of adjustment stroboscopic control strategy, just can obtain corresponding light source control flow automatically, trigger source and the portion control flow of making a video recording, just so can realize the change stroboscopic number of times, the light source of different passageways of reconfiguration, or change stroboscopic passageway internal light source luminance, with the purpose to satisfying different detection demands, thereby need not to change the outside wiring connection of combination of light source again and recompile camera and light source triggered control program, and then not only reduce staff's work load, detection efficiency has also been improved.
Specifically, in one embodiment, as shown in fig. 1, the number of the light sources is five, which are 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 the first light source output channels and the number of the second light source output channels are five; the first light source 6 is located above the part to be detected, the second light source 7 is located above the front of the part to be detected, the third light source 8 is located above the rear of the part to be detected, the fourth light source 9 is located obliquely above one side of the part to be detected, the fifth light source 10 is located obliquely above the other side of the part to be detected, and the camera part 4 is located above the first light source 6.
In the embodiment, five light sources are arranged to illuminate the part to be detected in different directions, so that the defect detection is carried out on each part of the surface of the part to be detected. Specifically, the part to be detected is the cell phone center, first light source 6 is used for detecting weak scratch (shallower scratch), strong scratch (deeper scratch) and heterochromatic defect on the cell phone center 11 back cover, second light source 7 and third light source 8 are used for detecting weak bruise (shallower bruise) and strong bruise (deeper bruise) defect of the front and back stupefied surface of cell phone center 11, and fourth light source 9 and fifth light source 10 are used for detecting weak bruise (shallower bruise) and strong bruise (deeper bruise) defect of the left and right stupefied surface of cell phone center 11.
In a particular application, each light source is connected to a different light source output channel to facilitate individual control of each light source. Specifically, the number of the first light source output channels controlled by the first trigger source is 4, which are respectively a first light source output channel a, a first light source output channel b, a first light source output channel c and a first light source output channel d; the number of the second light source output channels controlled by the second trigger source is 4, and the second light source output channels are a second light source output channel e, a second light source output channel f, a second light source output channel g and a second light source output channel h. The first light source output channel a is electrically connected with the first light source 6, the first light source output channel b is electrically connected with the second light source 7, the first light source output channel c is electrically connected with the third light source 8, the second light source output channel e is electrically connected with the fourth light source 9, the second light source output channel f is electrically connected with 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 and are used when the first light source output passes through a-c or the second light source output channels e and f and fails or new light sources are added.
The control parameters include the working time sequence and the corresponding brightness value of each light source and the camera part 4, and exemplarily, when a component to be detected is detected, the control parameters for the staff to input the strobe control strategy are as follows: the first stroboscopic process is stroboscopic by the first light source 6, the brightness value of the first light source 6 is 150, and meanwhile, the camera part 4 shoots to detect weak scratches and heterochromatic defects of the back cover of the middle frame 11 of the mobile phone; in the second stroboscopic process, the first light source 6 stroboscopic, and the brightness value of the light source is 60, and meanwhile, the camera part 4 shoots to detect the strong scratch defect of the back cover of the middle frame 11 of the mobile phone; the third stroboscopic process is stroboscopic by the second light source 7 and the third light source 8, the brightness values of the third light source 8 and the second light source 7 are 150, and the camera part 4 shoots simultaneously to detect the weak bruising defect of the front and back edge surfaces of the middle frame 11 of the mobile phone; the fourth stroboscopic process is stroboscopic by the second light source 7 and the third light source 8, the brightness values of the third light source 8 and the second light source 7 are 60, and the camera part 4 shoots at the same time to detect the strong bruising defect of the front and back edge surfaces of the middle frame 11 of the mobile phone; the fifth stroboscopic process is stroboscopic by the fourth light source 9 and the fifth light source 10, the brightness values of the fourth light source 9 and the fifth light source 10 are both 150, and the camera part 4 shoots at the same time to detect the weak bruising defect of the left and right edge surfaces of the middle frame 11 of the mobile phone; the sixth stroboscopic process is stroboscopic by the fourth light source 9 and the fifth light source 10, the brightness values of the fourth light source 9 and the fifth light source 10 are both 60, and the camera shooting part 4 shoots at the same time to detect the strong bruising defect of the edge surfaces of the left and right edges of the middle frame 11 of the mobile phone.
As shown in fig. 4, the light source controller 5 generates a light source control flow based on the control parameters as follows:
step 1: triggering a first light source output channel a through a first trigger source, wherein the channel brightness of the first light source output channel a is set to be 150, the channel pulse width is set to be 50ms, and the trigger interval is set to be 20ms; and 2, step: triggering a first light source output channel a through a first trigger source, wherein the channel brightness of the first light source output channel a is set to be 60, the channel pulse width is set to be 50ms, and the trigger interval is set to be 20ms; and step 3: triggering a first light source output channel b and a first light source output channel c through a first trigger source, wherein the brightness of the first light source output channel b and the brightness of the first light source output channel c are both set to be 150, the channel pulse width is set to be 50ms, and the trigger interval is set to be 20ms; and 4, step 4: triggering a first light source output channel b and a first light source output channel c through a first trigger source, wherein the brightness of the first light source output channel b and the brightness of the first light source output channel c are both set to be 60, the channel pulse width is set to be 50ms, and the trigger interval is set to be 20ms; and 5: triggering a second light source output channel e and a second light source output channel f through a second trigger source, wherein the brightness of the second light source output channel e and the brightness of the second light source output channel f are both 150, the channel pulse width is set to be 50ms, and the trigger interval is set to be 20ms; step 6: and triggering a second light source output channel e and a second light source output channel f through a second trigger source, wherein the brightness of the first light source output channel b and the brightness of the first light source output channel c are both set to be 60, the channel pulse width is set to be 50ms, and the trigger interval is set to be 20ms.
The trigger source controller 2 generates a trigger source and image pickup unit control flow based on the control parameters as follows:
step 1: triggering a first triggering source through a triggering source output interface, setting the triggering pulse width to be 50ms and the triggering interval to be 20ms, and controlling the camera part 4 to shoot; step 2: triggering a first triggering source through a triggering source output interface, setting the triggering pulse width to be 50ms and the triggering interval to be 20ms, and controlling the camera part 4 to shoot; and step 3: triggering a first triggering source through a triggering source output interface, setting the triggering pulse width to be 50ms and the triggering interval to be 20ms, and controlling the camera part 4 to shoot; and 4, step 4: triggering a first triggering source through a triggering source output interface, setting the triggering pulse width to be 50ms and the triggering interval to be 20ms, and controlling the camera part 4 to shoot; and 5: triggering a second trigger source through a trigger source output interface, setting the trigger pulse width to be 50ms and the trigger interval to be 20ms, and controlling the camera part 4 to shoot; step 6: and triggering a second trigger source through a trigger source output interface, setting the trigger pulse width to be 50ms and the trigger interval to be 20ms, and controlling the camera part 4 to shoot. Specifically, referring to fig. 3, the black portion is the trigger source that is not triggered, and the white portion is the trigger source and the image capturing unit that are triggered.
The trigger source controller 2 executes step 1 in a trigger source and camera part control flow, namely, a first trigger source is triggered through a trigger source output interface and the camera part 4 is controlled to shoot, after the first trigger source is triggered, the light source controller 5 executes step 1 in a light source control flow, namely, a first light source output channel a is triggered through the first trigger source, the channel brightness of the first light source output channel a reaches 150, the channel pulse width reaches 50ms, so that the brightness of the first light source 6 in 50ms reaches 150, high-brightness irradiation is carried out on the back cover of the mobile phone middle frame 11, shooting is carried out through the camera part 4, the shot pictures are identified subsequently, and whether the back cover of the mobile phone middle frame 11 has weak scratches and different color defects or not is judged.
Then, at an interval of 20ms, the trigger source controller 2 executes step 2 in the control flow of the trigger source and the camera shooting part, namely, the first trigger source is triggered through the trigger source output interface, and the camera shooting part 4 is controlled to shoot, after the first trigger source is triggered, the light source controller 5 executes step 2 in the light source control flow, namely, the first light source output channel a is triggered through the first trigger source, the channel brightness of the first light source output channel a reaches 60, the channel pulse width reaches 50ms, so that the brightness of the first light source 6 within 50ms reaches 60, low-brightness irradiation is carried out on the back cover of the mobile phone middle frame 11, shooting is carried out through the camera shooting part 4, the shot pictures are identified subsequently, and whether the back cover of the mobile phone middle frame 11 has a strong scratch defect or not is judged.
Then, at an interval of 20ms, the trigger source controller 2 executes step 3 in the control flow of the trigger source and the camera shooting part, namely, the first trigger source is triggered through the trigger source output interface, the camera shooting part 4 is controlled to shoot, after the first trigger source is triggered, the light source controller 5 executes step 3 in the light source control flow, namely, the first light source output channel b and the first light source output channel c are triggered through the first trigger source, the channel brightness of the first light source output channel b and the first light source output channel c reaches 150, and the channel pulse width reaches 50ms, so that the brightness of the second light source 7 and the third light source 8 in 50ms reaches 150, high-brightness irradiation is carried out on the mobile phone middle frame 11, the camera shooting part 4 is used for shooting, the shot pictures are subsequently identified, and whether weak collision defects exist on the front edge facet and the back edge facet of the mobile phone middle frame 11 is judged.
Then, at an interval of 20ms, the trigger source controller 2 executes step 4 in the control flow of the trigger source and the camera part, namely, the first trigger source is triggered through the trigger source output interface, and the camera part 4 is controlled to shoot, after the first trigger source is triggered, the light source controller 5 executes step 4 in the light source control flow, namely, the first light source output channel b and the first light source output channel c are triggered through the first trigger source, the channel brightness of the first light source output channel b and the first light source output channel c reaches 60, and the channel pulse width reaches 50ms, so that the brightness of the second light source 7 and the third light source 8 in 50ms reaches 60, the mobile phone middle frame 11 is irradiated with high brightness, the camera part 4 shoots the picture, the shot picture is subsequently identified, and whether strong collision defects exist on the front edge facet and the back edge facet of the mobile phone middle frame 11 is judged.
Then, at an interval of 20ms, the trigger source controller 2 executes step 5 in the trigger source and camera control process, namely, the second trigger source is triggered through the trigger source output interface, the camera 4 is controlled to shoot, after the second trigger source is triggered, the light source controller 5 executes step 5 in the light source control process, namely, the second trigger source triggers the second light source output channel e and the second light source output channel f, the channel brightness of the second light source output channel e and the second light source output channel f reaches 150, and the channel pulse width reaches 50ms, so that the brightness of the fourth light source 9 and the fifth light source in 50ms reaches 150, high-brightness irradiation is carried out on the mobile phone middle frame 11, the camera 4 is used for shooting, the shot pictures are subsequently identified, and whether weak collision defects exist on the left and right edge facets of the mobile phone middle frame 11 is judged.
Then, at an interval of 20ms, the trigger source controller 2 executes step 6 in the control flow of the trigger source and the camera shooting part, namely, the second trigger source is triggered through the trigger source output interface, the camera shooting part 4 is controlled to shoot, after the second trigger source is triggered, the light source controller 5 executes step 6 in the light source control flow, namely, the second light source output channel e and the second light source output channel f are triggered through the second trigger source, the channel brightness of the second light source output channel e and the second light source output channel f reaches 60, the channel pulse width reaches 50ms, so that the brightness of the fourth light source 9 and the fifth light source reaches 60 within 50ms, the mobile phone middle frame 11 is irradiated with high brightness, the camera shooting part 4 is used for shooting, the shot pictures are subsequently identified, and whether strong collision defects exist on the left back edge face and the right edge face of the mobile phone middle frame 11 is judged.
Specifically, the trigger source controller 2 is also 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.
After all the steps are completed, one period of the whole image acquisition is completed, the trigger source controller 2 resets the light source controller 5, and after the light source controller 5 is reset, the trigger source controller 2 is also reset, so that the steps are repeated to enter the next period.
Further, as shown in fig. 1, the second light source 7 and the third light source 8 are arranged in front of and behind each other, so that whether a strong or weak impact defect exists on the front and back edge surfaces of the middle frame 11 of the mobile phone can be detected.
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, so that various types of light sources can be adopted by all the light sources, and the applicability and the flexibility of all the light sources are improved.
Further, the system also comprises an input and display part, wherein the input and display part is electrically connected with the trigger source controller 2 and is used for inputting and displaying the control parameters of the stroboscopic control strategy.
The input and display part can facilitate the staff to set the control parameters and visually see the control parameters, thereby enabling the staff to know whether the control parameters are input correctly.
Specifically, as shown in fig. 1, the input and display portion is a touch panel 1, so that input components such as a keyboard can be omitted, thereby saving space and making the entire system structure more compact.
Further, the image pickup unit 4 is an area-array camera, which can acquire two-dimensional image information, and the image is more intuitive, thereby improving the accuracy of detection.
Further, the industrial personal computer 3 is also used for storing a light source control flow.
Furthermore, the industrial personal computer 3, the light source controller 5 and the trigger source controller 2 are provided with wireless communication modules, so that data interaction can be performed in a wireless communication (such as wifi, bluetooth and the like).
The light source control flow is stored, so that the light source control flow can be called when the same light source control flow is used.
In a second aspect, as shown in fig. 2, an embodiment of the present invention provides a multi-channel image acquisition control method, which is applied to the above system, and includes:
step S101: the light source controller 5 acquires control parameters of a stroboscopic control strategy;
step S102: the light source controller 5 generates a light source control flow based on the control parameters of the strobe control strategy;
step S103: the trigger source controller 2 acquires control parameters of a stroboscopic control strategy;
step S104: the trigger source controller 2 generates a trigger source and a control flow of the camera part based on the control parameters of the stroboscopic control strategy;
step S105: the trigger source controller 2 sequentially triggers a first trigger source and a second trigger source of the light source controller 5 through a trigger source output interface according to a trigger source and camera shooting part control flow, and simultaneously controls the camera shooting part 4 to shoot;
step S106: the light source controller 5 controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow;
step S107: the industrial personal computer 3 acquires a picture taken by the image pickup unit 4.
For specific limitations of the multi-channel image acquisition control method, reference may be made to the above limitations of the multi-channel image acquisition control system, which are not described herein again.
According to the multichannel image acquisition control method provided by the embodiment of the invention, a worker can automatically obtain the corresponding light source control flow, trigger source and camera shooting part control flow only by adjusting the control parameters of the stroboscopic control strategy, so that the purposes of changing the stroboscopic frequency, recombining light sources of different channels or changing the brightness of the light source in the stroboscopic channel to meet different detection requirements can be realized, the combined external wiring connection of the light source does not need to be changed again, and the control program triggered by the camera and the light source does not need to be compiled again, thereby not only reducing the workload of the worker, but also improving the detection efficiency.
Specifically, in the above embodiment, the control parameters of the strobe control strategy are directly input to the trigger source controller 2 and the light source controller 5 by the user, or are sent to the trigger source controller and the light source controller by the input and display part. The user inputs control parameters through the input and display part, and the control parameters are sent to the trigger source controller and the light source controller through the input and display part, so that the operation of the user is facilitated.
Wherein, the control parameters of the strobe control strategy include the working timing sequence and the corresponding brightness value of each light source and the image pickup unit 4, and the step S104 includes:
step S1041: the trigger source controller 2 determines the operation timings of the respective trigger sources and the image pickup section 4 and the time intervals between the respective operation timings based on the operation timings and the corresponding luminance values of the respective light sources and the image pickup section 4.
Step S1042: the trigger source and imaging unit control flow is generated based on the operation timing of each trigger source and imaging unit 4 and the time interval between the operation timings.
For specific description of the above steps, reference may be made to the control parameters of the strobe control strategy input by the staff and specific contents of the trigger source generated by the trigger source controller 2 and the control flow of the camera shooting part in the above embodiments, which are not described herein again.
Further, in the above embodiment, step S102 specifically includes:
the light source controller 5 determines the trigger timing of each light source output channel, and the corresponding trigger source, channel brightness value and channel pulse width based on the working timing and the corresponding brightness value of each light source to generate a light source control flow.
For specific description of the above steps, reference may be made to specific contents of the control parameter of the strobe control strategy input by the staff and the light source control flow generated by the light source controller 5 in the above embodiments, and details are not described herein again.
Further, in the above embodiment, the step S106 includes:
and when the trigger source controller 2 triggers the corresponding trigger source according to the working time sequence of each trigger source through the trigger source output interface, the light source controller 5 triggers the corresponding light source output channel according to the trigger time sequence of each light source output channel and the corresponding trigger source by using the triggered trigger source, and controls the corresponding light source to reach the corresponding channel brightness value through the triggered light source output channel and last for the same time as the pulse width of the corresponding channel.
The specific content of this step can be referred to the control process of the multi-channel image acquisition control system, and is not described herein again.
Furthermore, 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 camera part are all rising edge triggers.
Further, in the above embodiment, after step S107, the method further includes:
the trigger source controller resets the light source controller, and after the light source controller resets, the trigger source controller resets.
After the steps S101 to S107 are completed, that is, one period of the whole image acquisition is completed, the trigger source controller 2 resets the light source controller 5, and after the light source controller 5 is reset, the trigger source controller 2 is also reset, so that the steps S101 to S107 are repeated to enter the next period.
Further, in the above embodiment, after step S107, the method further includes:
the industrial personal computer 3 stores a light source control flow.
The light source control flow is stored, so that the light source control flow can be called when the same light source control flow is used.
The present invention has been illustrated by the above embodiments, but it should be understood that the above embodiments are for illustrative and descriptive purposes only and are not intended to limit the invention to the scope of the described embodiments. Furthermore, it will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that many variations and modifications may be made in accordance with the teachings of the present invention, which variations and modifications are within the scope of the present invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. A multi-channel image acquisition control system is characterized by comprising an industrial personal computer, a camera shooting part, a trigger source controller, a light source controller and at least one light source facing to a part to be detected;
the light source controller comprises 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 personal computer is respectively and electrically connected with the trigger source controller, the light source controller and the camera shooting part; a trigger source output interface of the trigger source controller is electrically connected with a first trigger source and a second trigger source of the light source controller respectively; the trigger source controller is also electrically connected with the camera shooting part; each light source is electrically connected with the corresponding first light source output channel or the corresponding second light source output channel;
the light source controller is used for acquiring control parameters of a stroboscopic control strategy and generating a light source control flow based on the control parameters of the stroboscopic control strategy;
the trigger source controller is used for acquiring control parameters of a stroboscopic control strategy and generating a trigger source and a control flow of the camera part based on the control parameters of the stroboscopic control strategy; sequentially triggering a first trigger source and a second trigger source of the light source controller through a trigger source output interface according to the trigger source and the control flow of the camera shooting part, and simultaneously controlling the camera shooting part to shoot;
the light source controller is used for controlling the corresponding light sources to work according to corresponding working parameters through corresponding light source output channels while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow;
the industrial personal computer is used for acquiring the pictures shot by the shooting part.
2. The system of claim 1, wherein the number of the light sources is five, which are a first light source, a second light source, a third light source, a fourth light source and a fifth light source; the number of the first light source output channels and the number of the second light source output channels are five;
the first light source is located above the part to be detected, the second light source is located above the front portion of the part to be detected, the third light source is located above the rear portion of the part to be detected, the fourth light source is located above one side of the part to be detected, the fifth light source is located above the other side of the part to be detected, and the camera shooting portion is located above the first light source.
3. The system of claim 2, wherein the second light source is positioned behind the third light source.
4. The system of 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, combination bar light sources, or LED light sources.
5. The system of claim 2, wherein the number of the first light source output channels is 4, which are a first light source output channel a, a first light source output channel b, a first light source output channel c, and a first light source output channel d; the number of the second light source output channels is 4, and the second light source output channels are a second light source output channel e, a second light source output channel f, a second light source output channel g and a second light source output channel h respectively;
the first light source output channel a is electrically connected with the first light source, the first light source output channel b is electrically connected with the second light source, the first light source output channel c is electrically connected with the third light source, the second light source output channel e is electrically connected with the fourth light source, the second light source output channel f is electrically connected with 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. A multi-channel image acquisition control method applied to the system of any one of claims 1 to 5, comprising:
the light source controller acquires control parameters of a stroboscopic control strategy;
the light source controller generates the light source control flow based on the control parameters of the stroboscopic control strategy;
the trigger source controller acquires control parameters of the stroboscopic control strategy;
the trigger source controller generates the trigger source and a control flow of the camera part based on the control parameters of the stroboscopic control strategy;
the trigger source controller sequentially triggers a first trigger source and a second trigger source of the light source controller through the trigger source output interface according to the trigger source and the control flow of the camera shooting part, and simultaneously controls the camera shooting part to shoot;
the light source controller controls the corresponding light source to work according to the corresponding working parameters through the corresponding light source output channel while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow;
the industrial personal computer obtains the pictures shot by the shooting part.
7. The method according to claim 6, wherein the control parameters include operation timings and corresponding brightness values of the respective light sources and the image pickup section; the trigger source controller generates the trigger source and the control flow of the image pickup part based on the control parameter of the strobe control strategy, and further comprises:
the trigger source controller determines the working time sequences of the light sources and the camera shooting part and the time intervals among the working time sequences based on the working time sequences and the corresponding brightness values of the light sources and the camera shooting part; and
and generating a control flow of the trigger source and the image pickup part according to the working time sequence of each trigger source and the image pickup part and the time interval between the working time sequences.
8. The method of claim 6, wherein the light source controller generates the light source control flow based on control parameters of the strobe control strategy, further comprising:
and the light source controller determines the trigger time sequence of each light source output channel, the corresponding trigger source, the channel brightness value and the channel pulse width based on the working time sequence and the corresponding brightness value of each light source so as to generate the light source control flow.
9. The method of claim 6, wherein the light source controller controls the corresponding light source to operate according to the corresponding operating parameter through the corresponding light source output channel while the first trigger source and the second trigger source are sequentially triggered according to the light source control flow, further comprising:
and when the trigger source controller triggers the corresponding trigger source through the trigger source output interface according to the working time sequence of each trigger source, the light source controller triggers the corresponding light source output channel according to the trigger time sequence of each light source output channel and the corresponding trigger source by using the triggered trigger source, and controls the corresponding light source to reach the corresponding channel brightness value through the triggered light source output channel and keep the same duration as the pulse width of the corresponding channel.
10. The method of claim 6, 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 image capture portion are all rising edge triggers.
CN202211227220.9A 2022-10-09 2022-10-09 Multi-channel image acquisition control system and method Pending CN115460738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211227220.9A CN115460738A (en) 2022-10-09 2022-10-09 Multi-channel image acquisition control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211227220.9A CN115460738A (en) 2022-10-09 2022-10-09 Multi-channel image acquisition control system and method

Publications (1)

Publication Number Publication Date
CN115460738A true CN115460738A (en) 2022-12-09

Family

ID=84308833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211227220.9A Pending CN115460738A (en) 2022-10-09 2022-10-09 Multi-channel image acquisition control system and method

Country Status (1)

Country Link
CN (1) CN115460738A (en)

Similar Documents

Publication Publication Date Title
US10416086B2 (en) Image inspection device
US8248519B2 (en) Brightness adjusting system and method thereof and electronic device using same
CN105744175B (en) A kind of screen light compensation method, device and mobile terminal
CN100594534C (en) Lightness data obtaining method and device for gamma correction of LED
CN108604046B (en) Photography supporting device and method of operating the same
CN105009195B (en) Liquid crystal display device
CN107087150B (en) A kind of three-dimensional camera shooting method, system and device based on binocular solid and photometric stereo
US20110249116A1 (en) Color measuring apparatus and color measuring method
CN104184954B (en) Optical detection apparatus and its synchronization adjustment method
JPH06176115A (en) Method and apparatus for monitoring image processing operation
CN111385447B (en) Image pickup apparatus and driving method thereof
CN111443509A (en) Method for detecting L CD liquid crystal screen black and white spots and flicker defects
CN115460738A (en) Multi-channel image acquisition control system and method
CN104184952B (en) Optical detection apparatus and its synchronization adjustment method
JP2013036796A (en) Image processor
CN107004132A (en) Eye tracking device and its auxiliary light source control method and relevant apparatus
US6771804B1 (en) Method and apparatus for signal segmentation
CN110455811B (en) Device capable of detecting back surface field defects of battery piece and debugging method thereof
JP6501868B2 (en) Imaging device, signal processing device, and skin diagnosis system
KR100774991B1 (en) remocon external inspect system and method of using machine vision
JP2003216930A (en) Method and apparatus for inspecting discoloration
CN106353288A (en) Finished product chemical residue detection device and method based on fluorescent analysis
US9336586B2 (en) Image processing apparatus and image processing method using compressed image data or partial image data
JP6602162B2 (en) Image processing apparatus, image processing method, and program
CN111757002B (en) Image processing method, output control method, image acquisition device and display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination