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

By introducing the position recording module and light source controller into the machine vision system, the light source stroboscopic mode is realized, which solves the problem of continuous heat generation and reduced service life of the light source and improves product quality.

CN115145093BActive Publication Date: 2025-01-10YISHI ZHITONG TECH SHENZHEN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210867364.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2025-01-10
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

When the existing light source controller realizes the brightness adjustment of the light source, the constant-light mode causes the light source to continue to heat up and is in a high temperature state for a long time, resulting in a decrease in service life and affecting product quality.

Method used

By introducing the position recording module and light source controller into the machine vision system, industrial computers and motion controllers are used to establish the system parameter information database of the object template, generate and save the set position information that needs to be photographed and strobe, and generate based on this information Trigger instructions to control the opening and closing of the light source channel to achieve strobe mode.

Benefits of technology

It effectively prevents the light source from being in a working state all the time, avoids the light source from continuing to heat up and high temperature for a long time, prolongs the service life of the light source, and improves the product quality of machine vision equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115145093B_ABST
    Figure CN115145093B_ABST
Patent Text Reader

Abstract

The present invention provides a machine vision system, a method for realizing stroboscopic control of a light source, and a readable storage medium, and belongs to the field of machine vision technology. The method described in the present application establishes a system parameter information database of an object template through an industrial computer and a motion controller, generates and saves the set position information that needs to be photographed and stroboscopic through a position recording module, and generates a trigger instruction according to the set position information; the trigger instruction is saved in the light source controller in the form of a stack; the real-time position of the object is monitored through the position recording module, and when the position information is monitored to meet the set position information, the trigger instruction is controlled to synchronously trigger the industrial camera to take pictures and control the opening of the light source channel of the light source controller, and when the position information is monitored to not meet the set position information, the light source channel of the light source controller is controlled to be closed, so the present application can effectively avoid the problem that the light source continues to heat up and is in a high temperature state for a long time, resulting in a decrease in service life and affecting product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine vision technology, and in particular to a machine vision system, a method for realizing light source control stroboscopic light, and a readable storage medium. Background Art

[0002] Machine vision is a necessary technical means to achieve industrial automation and intelligence, and plays an important role in the realization of Industry 4.0. At present, machine vision equipment on the market usually integrates three major components: light source and light source controller, industrial camera, and motion controller. Among them, the motion controller is used to drive the machine track transmission, the industrial camera is used to shoot objects moving on the track, and the light source is used to provide lighting when the camera lens shoots images. The lighting methods usually have constant light and strobe modes. The light source controller is the core module of the machine vision system. Its main function is to control the brightness and switching time of the light source to achieve constant light and strobe effects. Traditional light source controllers usually use PWM (Pulse Width Modulation) technology to adjust the brightness of the light source. This technology is a constant light mode, which will cause the light source to remain constant when the camera is turned off, so that the light source continues to heat up and stays in a high temperature state for a long time, resulting in a decrease in the service life of the light source, thereby affecting the overall quality of machine vision equipment products. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a machine vision system, a method for implementing light source control stroboscopic and a readable storage medium, aiming to solve the problem that the existing light source controller adopts a constant light mode when adjusting the brightness of the light source, the light source will continue to generate heat and be in a high temperature state for a long time, which will cause the service life of the light source to decrease and affect product quality.

[0004] The technical solution adopted by the present invention to solve the above technical problems is as follows:

[0005] A first aspect of the present invention provides a machine vision system, comprising a motion controller, a light source controller, a light source and an industrial camera, wherein the motion controller, the light source controller and the industrial camera are respectively connected to an industrial computer, the light source controller is connected to the light source and is used to control the opening and closing of the light source, the motion controller provides a motion control trajectory and power for an object, and the industrial computer is used to set parameter information of the system, display an interface and process data information;

[0006] It further includes a position recording module, which is respectively connected to the industrial camera, light source controller and motion controller. The position recording module is used to record set position information and generate a trigger instruction according to the set position information. The trigger instruction triggers the industrial camera to take pictures and control the opening of the light source channel of the light source controller.

[0007] In some embodiments, the set position information includes: a photographing position and a flash setting position.

[0008] In some embodiments, the system parameter information includes: object moving speed, photographing position, camera exposure time, strobe channel, strobe time, light source opening position, light source opening time, strobe interval time, and instruction quantity.

[0009] In some embodiments, the light source controller includes a light source control module and a memory, the light source control module is used to control the opening and closing of the light source channel according to the trigger instruction, and the trigger instruction is stored in the memory in the form of a stack.

[0010] In one embodiment, a power supply module is further included, the light source includes at least one light source driving module and LED lamp beads electrically connected to the light source driving module, the power supply module supplies power to the light source driving module, and the light source driving module is integrated with an LED driving circuit.

[0011] In one embodiment, the power supply module is a 48V power supply.

[0012] In one embodiment, the motion controller includes a motion control module and a motor device module. The motion control module is used to control the motion trajectory of the object. The motor device module provides power for the motion control module. The motor device module is also connected to a machine working platform and provides transmission power for the machine working platform.

[0013] A second aspect of the present invention further provides a method for implementing light source control stroboscopic light, which is applied to the above-mentioned machine vision system and comprises the following steps:

[0014] Establish a system parameter information database of object templates based on industrial computers and motion controllers;

[0015] Based on the parameter information database, the position recording module generates and saves the set position information that needs to be photographed and strobed, and generates a trigger instruction according to the set position information;

[0016] The trigger instruction is stored in the light source controller in the form of a stack;

[0017] The position recording module monitors the real-time position of the object. When the monitored position information satisfies the set position information, the trigger instruction is controlled to synchronously trigger the industrial camera to take pictures and control the opening of the light source channel of the light source controller.

[0018] In some embodiments, the steps include:

[0019] The light source channel of the light source controller generates a pulse signal according to the system parameter information and the sequence number of the stack of trigger instructions;

[0020] Each pulse signal is independently connected to the light source, and different light source channels are controlled to be turned on or off according to the pulse signal.

[0021] In some embodiments, the steps include:

[0022] When the monitored position information satisfies the set position information, the process further includes the following steps:

[0023] Determine whether the exposure time of the industrial camera reaches the preset value;

[0024] Determine whether the stroboscopic time of the light source reaches the preset value;

[0025] If the exposure time of the industrial camera and the stroboscopic time of the light source reach the preset values, it is further determined whether the stroboscopic interval time reaches the set value;

[0026] If the strobe interval reaches the system setting value, the trigger instruction is generated and is valid;

[0027] If the strobe interval does not reach the system setting value, neither the industrial camera nor the light source will turn on.

[0028] In some embodiments, the method further comprises the steps of:

[0029] Set the time according to the system parameters. If the exposure time of the industrial camera is greater than the strobe time of the light source controller, the light source controller will be controlled to automatically turn off the light source first, and then the industrial camera will be automatically turned off.

[0030] The present application also provides a readable storage medium, comprising a processor, a computer-readable storage medium, and a computer program stored on the computer-readable storage medium, wherein the computer program implements the steps in the above-described method when executed by the processor.

[0031] The embodiment of the present invention provides a machine vision system, a method for implementing light source control stroboscopic lighting, and a readable storage medium. The method for implementing light source control stroboscopic lighting establishes a system parameter information database of an object template through an industrial computer and a motion controller, and a position recording module generates and saves set position information that requires photographing and strobing, and generates a trigger instruction according to the set position information; the trigger instruction is saved in the light source controller in the form of a stack; the real-time position of the object is monitored through the position recording module, and when the monitored position information meets the set position information, the trigger instruction is controlled to synchronously trigger the industrial camera to take a photo and control the opening of the light source channel of the light source controller; when the monitored position information does not meet the set position information, the light source channel of the light source controller is controlled to be closed. Therefore, the method described in the present application can control the light source to not be in a working state all the time, and can effectively avoid the problem of continuous heating of the light source, being in a high temperature state for a long time, resulting in a decrease in service life, and affecting product quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a structural schematic diagram of an embodiment of a machine vision system according to the present invention;

[0033] Figure 2 A schematic diagram of the structure of another embodiment of a machine vision system provided by an embodiment of the present invention;

[0034] Figure 3 A block diagram showing the principle of implementing stroboscopic light source controller of a machine vision system according to an embodiment of the present invention;

[0035] Figure 4 A flow chart of an embodiment of a method for implementing light source stroboscopic control provided by an embodiment of the present invention;

[0036] Figure 5 A flowchart of another embodiment of a method for implementing light source stroboscopic control provided by an embodiment of the present invention;

[0037] Figure 6 A stroboscopic control timing diagram of a method for implementing stroboscopic control of a light source provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0039] Embodiment 1:

[0040] The present invention provides a machine vision system. Figure 1 and Figure 2The machine vision system includes a motion controller 10, a light source controller 20, a light source 30 and an industrial camera 40. The motion controller 10, the light source controller 20 and the industrial camera 40 are connected to an industrial computer 50 respectively. The light source controller 20 is connected to the light source 30 to control the opening and closing of the light source 30. The motion controller 10 provides the object with a motion control trajectory and power. The industrial computer 50 is used to set the system's parameter information, display the interface and process data information. The industrial camera 40 is used to take pictures of the object to obtain a visual image, and the light source 30 is used to provide the necessary lighting brightness when the industrial camera 40 takes pictures.

[0041] In this embodiment, the system parameter information specifically includes: object moving speed, photographing position, camera exposure time, strobe channel, strobe time, light source opening position, light source opening time, strobe interval time, and instruction quantity.

[0042] The machine vision system further includes a position recording module 60, which is respectively connected to the industrial camera 40, the light source controller 20 and the motion controller 10. The position recording module 30 is used to record the set position information and generate a trigger instruction according to the set position information. The trigger instruction triggers the industrial camera 40 to take pictures and control the opening of the light source channel of the light source controller 20.

[0043] Specifically, see Figure 3 The trigger instruction generated by the position recording module 30 according to the set position information is saved in the light source controller 20 in the form of a stack. The light source channel of the light source controller 20 generates a strobe pulse signal according to the set system parameter information and the sequence number of the stack. Each pulse signal is independently connected to the light source 30. The pulse signal can control any light source channel to open independently, or can control multiple light source channels or all light source channels to open at the same time.

[0044] In one embodiment, the location recording module 30 is used to record the setting location information including the recorded photographing location and the flash setting location information.

[0045] The light source controller 20 includes a light source control module 201 and a memory 202 . The light source control module 201 is used to control the opening and closing of the light source channel according to the trigger instruction. The trigger instruction is stored in the memory 202 in the form of a stack.

[0046] In the embodiment of the present application, there can be 7 light source channels forming a flash channel. As shown in the following Table 1,

[0047]

[0048] in,

[0049] 1. Command 1 means turning on the light source of channel 1, with a strobe time of 1us, and turning off the light source channels of channels 2, 3, 4, 5, 6, and 7 at the same time;

[0050] 2. Instruction 2 means turning on the light source of channel 2, with a strobe time of 2us, and turning off the light source channels of channels 1, 3, 4, 5, 6, and 7 at the same time;

[0051] 3. Instruction 3 means turning on the light source of channel 3, with a strobe time of 3us, and turning off the light source channels of channels 1, 2, 4, 5, 6, and 7 at the same time;

[0052] 4. Instruction 4 means turning on the light source of channel 4, with a strobe time of 4us, and turning off the light source channels of channels 1, 2, 3, 5, 6, and 7 at the same time;

[0053] 5. Instruction 5 means turning on the light source of channel 5, with a strobe time of 5us, and turning off the light source channels of channels 1, 2, 3, 4, 6, and 7 at the same time;

[0054] 6. Instruction 6 means turning on the light source of channel 6, with a strobe time of 6us, and turning off the light source channels of channels 1, 2, 3, 4, 5, and 7 at the same time;

[0055] 7. Instruction 7 means turning on the light source of channel 7, with a strobe time of 7us, and turning off the light source channels of channels 1, 2, 3, 4, 5, and 6 at the same time;

[0056] 8. Instruction 8 means turning on all light source channels, from channel 1 to channel 7, and the strobe times are: 1us, 2us, 3us, 4us, 5us, 6us, 7us.

[0057] This process controls the industrial camera and the light source to be turned on simultaneously according to the trigger instruction of the position recording module 60 .

[0058] After opening the light source channel of the light source controller according to the trigger instruction, the industrial computer further processes the data information, specifically including:

[0059] Determine whether the exposure time of the industrial camera reaches the preset value;

[0060] Determine whether the stroboscopic time of the light source reaches the preset value;

[0061] If the exposure time of the industrial camera and the stroboscopic time of the light source reach the preset values, it is further determined whether the stroboscopic interval time reaches the set value;

[0062] If the strobe interval reaches the system setting value, the trigger instruction is generated and is valid;

[0063] If the strobe interval does not reach the system setting value, neither the industrial camera nor the light source will be turned on.

[0064] The motion controller 10 includes a motion control module 101 and a motor device module 102. The motion control module 101 is used to control the motion trajectory of an object. The motor device module 102 provides power for movement for the motion control module 101. The motor device module 102 is also connected to a machine working platform 70 and provides transmission power for the machine working platform 70 at the same time.

[0065] The machine vision system further includes a power supply module 80, the light source 30 includes at least one light source driving module 301 and an LED lamp bead 302 electrically connected to the light source driving module 301, the power supply module 80 supplies power to the light source driving module 301, and drives the LED lamp bead 302 to light up through the light source driving module 301, and the light source driving module 301 is integrated with an LED driving circuit.

[0066] In this embodiment, the power supply module is a DC 48V power supply.

[0067] The power module 80 supplies power to the light source 30 by providing a DC 48V power supply. Since the 48V power supply does not exceed the maximum voltage value of the light source 30, it can provide a voltage twice as high as the DC 24V power supply in the constant light mode without affecting the service life of the light source 30, thereby generating higher lighting brightness. For machine vision system applications, the high-voltage stroboscopic mode allows the industrial camera 40 to acquire high-definition images within an extremely short exposure time. The stroboscopic time value range of the present application is 1 microsecond to 10 microseconds. Due to the short shooting time and the high brightness of the light source, the combination of the industrial camera 40, the light source controller 20, and the power module 80 described in the present application is very suitable for capturing high-speed moving objects. The machine vision system described in the embodiment of the present application can not only ensure the service life of the entire equipment, but also greatly improve production efficiency.

[0068] The machine vision system described in the embodiment of the present application records the set position information through the position recording module 60 and generates a trigger instruction according to the set position information. The trigger instruction triggers the industrial camera 40 to take pictures and controls the opening of the light source channel of the light source controller 20. After the light source channel of the light source controller is opened, the industrial computer further compares the shooting exposure time and the strobe time of the industrial camera with the preset values. When the preset value is reached, the strobe interval time is further compared with the set value of the system to determine the validity of the trigger instruction to determine whether to turn on the industrial camera and the light source again. Therefore, the light source of the machine vision system described in the present application is not always in a working state, which can effectively avoid the problem that the light source will continue to heat up and be in a high temperature state for a long time, resulting in a decrease in service life and affecting product quality.

[0069] Embodiment 2:

[0070] The present invention also provides a method for realizing light source control stroboscopic Figures 4 to 6 The method for implementing light source control stroboscopic frequency is applied to the above-mentioned machine vision system, and the method for implementing light source control stroboscopic frequency specifically comprises the following steps:

[0071] S101, establishing a system parameter information database of an object template based on an industrial computer and a motion controller;

[0072] Specifically, the parameter information of the system is set through the parameters of the industrial computer and the motion controller, and a template parameter information database of the object is established according to the parameter information. The system parameter information includes: object movement speed, photo shooting position, camera exposure time, strobe channel, strobe time, light source opening position, light source opening time, strobe interval time, and number of instructions.

[0073] S102, based on the parameter information database, the position recording module generates and saves the set position information that needs to be photographed and strobed, and generates a trigger instruction according to the set position information;

[0074] Specifically, the position recording module 60 establishes an object template parameter information database based on the industrial computer 50 and the motion controller 10. The position recording module 60 generates and saves the set positions that need to be photographed and strobed, and pre-generates N trigger instructions, which are sent to the light source controller 20 at one time. The light source controller 20 saves the received trigger instructions in the form of a stack into the memory (FLASH) to form an instruction frame. In the event of a sudden power outage in the system, the trigger instruction data will also be automatically saved in the memory 202 of the light source controller 20. When the visual machine is powered on again, the above-mentioned trigger instruction data will be automatically loaded. The instruction frame information content includes the light source opening time, the light source closing time, the strobing interval time, the light source brightness value, etc. The instruction frame content can be modified by the software of the industrial computer host computer, and the trigger instruction is sent to the light source controller 20 through the position recording module 60. This process is the transmission and storage of the pre-set position and parameter data information.

[0075] S103, storing the trigger instruction in the light source controller in the form of a stack;

[0076] S104, the position recording module monitors the real-time position of the object, and when the monitored position information satisfies the set position information, controls the trigger instruction to synchronously trigger the industrial camera to take pictures and controls to open the light source channel of the light source controller.

[0077] Specifically, the position recording module monitors the real-time position of the object. During the movement of the object, whenever the pre-set position information for taking pictures and strobing is generated, the position recording module will output a signal to control the turning on of the strobing trigger of the industrial camera. This signal is also connected to the input interrupt (Interrupter) of the light source controller. The strobing trigger signal can turn on the camera for exposure while opening the light source controller channel to ensure that the camera and the light source are turned on at the same time. This process is the output of the external strobing trigger (Trigeer) command signal.

[0078] This embodiment has 7 flash channels, and the parameter settings and trigger instructions are shown in Table 1 below.

[0079]

[0080] in,

[0081] 1. Command 1 means turning on the light source of channel 1, with a strobe time of 1us, and turning off the light source channels of channels 2, 3, 4, 5, 6, and 7 at the same time;

[0082] 2. Instruction 2 means turning on the light source of channel 2, with a strobe time of 2us, and turning off the light source channels of channels 1, 3, 4, 5, 6, and 7 at the same time;

[0083] 3. Instruction 3 means turning on the light source of channel 3, with a strobe time of 3us, and turning off the light source channels of channels 1, 2, 4, 5, 6, and 7 at the same time;

[0084] 4. Instruction 4 means turning on the light source of channel 4, with a strobe time of 4us, and turning off the light source channels of channels 1, 2, 3, 5, 6, and 7 at the same time;

[0085] 5. Instruction 5 means turning on the light source of channel 5, with a strobe time of 5us, and turning off the light source channels of channels 1, 2, 3, 4, 6, and 7 at the same time;

[0086] 6. Instruction 6 means turning on the light source of channel 6, with a strobe time of 6us, and turning off the light source channels of channels 1, 2, 3, 4, 5, and 7 at the same time;

[0087] 7. Instruction 7 means turning on the light source of channel 7, with a strobe time of 7us, and turning off the light source channels of channels 1, 2, 3, 4, 5, and 6 at the same time;

[0088] 8. Instruction 8 means turning on all light source channels, from channel 1 to channel 7, and the strobe times are: 1us, 2us, 3us, 4us, 5us, 6us, 7us.

[0089] This process controls the camera and the light source to be turned on simultaneously according to the trigger instruction of the position recording module.

[0090] In one embodiment, the method further comprises the steps of:

[0091] The light source channel of the light source controller generates a pulse signal according to the system parameter information and the sequence number of the trigger instruction stack; each pulse signal is independently connected to the light source, and different light source channels are controlled to be turned on or off according to the pulse signal.

[0092] S106, judging whether the trigger instruction is valid, when the monitored position information satisfies the set position information, it means that the trigger instruction is valid, and further, the process after controlling the trigger instruction to synchronously trigger the industrial camera to take pictures and control the opening of the light source channel of the light source controller also includes the following steps:

[0093] S1061, determining whether the exposure time of the industrial camera reaches a preset value;

[0094] Specifically, according to the parameter information set by the system, when the trigger instruction is met to synchronously control turning on the industrial camera and the light source, it is determined whether the exposure time of the industrial camera reaches a preset value. If the preset value is reached, step S1063 is executed; if the preset value is not reached, the industrial camera continues to be turned on for exposure;

[0095] S1062, determining whether the stroboscopic time of the light source reaches a preset value;

[0096] Specifically, determine whether the stroboscopic time of the light source reaches a preset value. If so, execute step S1063; if not, continue to turn on the light source. In this embodiment, the exposure time is 2ms and the stroboscopic time is 1-10us.

[0097] S1063. If the exposure time of the industrial camera and the stroboscopic time of the light source both reach the preset values, further determine whether the stroboscopic interval time reaches the set value;

[0098] S1064: If the stroboscopic interval reaches the system setting value, the trigger instruction is generated and is effective; the industrial camera is controlled to take a photo and the light source channel of the light source controller is controlled to be opened to acquire an image;

[0099] S1065. If the stroboscopic interval does not reach the system setting value, the trigger command is invalid, and the industrial camera and light source will not turn on and will automatically turn off.

[0100] Set the time according to the system parameters. If the exposure time of the industrial camera is greater than the strobe time of the light source controller, the light source controller will be controlled to automatically turn off the light source first, and then the industrial camera will be automatically turned off, that is, the strobe will be turned off.

[0101] After the strobe is turned off, it cannot be turned on again immediately. You need to wait for the set strobe interval time, which should be at least twice the exposure time. The light source off time must be greater than 4ms. The external strobe trigger command signal output will be effective. Before the industrial camera exposure or strobe trigger command ends, the external trigger command signal is invalid. This process is strobe idle. The strobe timing control is as follows: Figure 6 shown.

[0102] The above steps S101 to S106 are methods for implementing the first stroboscopic process. As the machine vision system continues to operate, when the position recording module detects the position where stroboscopic is required again, the stroboscopic process can be completed by starting from the above step S104 and ending at step S106.

[0103] The parameter data information set will be saved in the memory of the light source controller 20 even after power failure. There is no need to set parameters when restarting the system. The light source controller 20 only needs to detect whether there is an external trigger command signal input, so steps S101-S103 do not need to be repeated.

[0104] The method for implementing light source control stroboscopic lighting described in the embodiment of the present application establishes a system parameter information database of an object template through an industrial computer 50 and a motion controller 10, and the position recording module 60 generates and saves the set position information required for taking pictures and strobing, and generates a trigger instruction according to the set position information; the trigger instruction is saved in the light source controller 20 in the form of a stack; the real-time position of the monitored object is recorded by the position recording module 60, and when the monitored position information meets the set position information, the trigger instruction is controlled to synchronously trigger the industrial camera 40 to take pictures and control the opening of the light source channel of the light source controller 20; when the monitored position information does not meet the set position information, the light source channel of the light source controller is controlled to be closed. Therefore, the method described in the present application can control the light source to not be in a working state all the time, and can effectively avoid the problem that the light source will continue to heat up and be in a high temperature state for a long time, resulting in a decrease in service life and affecting product quality.

[0105] Embodiment three:

[0106] According to one embodiment of the present invention, a readable storage medium is provided, including a processor, a computer-readable storage medium, and a computer program stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps in the above-mentioned light source control stroboscopic implementation method are implemented. The specific steps are as described in Example 1 and will not be repeated here.

[0107] The memory in this embodiment can be used to store software programs and various data. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0108] According to an example of this embodiment, all or part of the processes in the above-mentioned embodiment method can be completed by computer program commands related hardware, and the program can be stored in a computer-readable storage medium. For example, in the embodiment of the present invention, the program can be stored in the storage medium of the computer system and executed by at least one processor in the computer system to implement the processes including the embodiments of the above-mentioned methods. The storage medium includes but is not limited to a disk, a USB flash drive, an optical disk, a read-only memory (ROM), etc.

[0109] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0110] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0112] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A machine vision system, comprising a motion controller, a light source controller, a light source and an industrial camera, characterized in that: The motion controller, light source controller, and industrial camera are connected to the industrial computer respectively. The light source controller is connected to the light source to control the opening and closing of the light source. The motion controller provides the object with motion control trajectory and power. The industrial computer is used to set the system parameter information, display the interface, and process data information. It further includes a position recording module, which is connected to the industrial camera, the light source controller and the motion controller respectively, and is used to record the set position information and generate a trigger instruction according to the set position information, and trigger the industrial camera to take pictures and control the light source channel of the light source controller to open through the trigger instruction; The trigger instruction generated by the position recording module according to the set position information is stored in the light source controller in the form of a stack; The light source channel of the light source controller generates a stroboscopic pulse signal according to the set system parameter information and the sequence number of the stack, and each pulse signal is independently connected to the light source. The pulse signal can control any light source channel to be turned on independently, and can also control multiple light source channels or all light source channels to be turned on at the same time; After opening the light source channel of the light source controller according to the trigger instruction, the industrial computer further processes the data information, specifically including: Determine whether the exposure time of the industrial camera reaches the preset value; Determine whether the stroboscopic time of the light source reaches the preset value; If the exposure time of the industrial camera and the stroboscopic time of the light source reach the preset values, it is further determined whether the stroboscopic interval time reaches the set value; If the strobe interval reaches the system setting value, the trigger instruction is generated and is valid; If the strobe interval does not reach the system setting value, the industrial camera and light source will no longer be turned on and will be automatically turned off.

2. The machine vision system according to claim 1, characterized in that: The set position information includes: a photographing position and a flash frequency setting position.

3. The machine vision system according to claim 1, characterized in that: The system parameter information includes: object moving speed, photographing position, camera exposure time, strobe channel, strobe time, light source opening position, light source opening time, strobe interval time, and instruction quantity.

4. The machine vision system according to claim 2 or 3, characterized in that: The light source controller includes a light source control module and a memory. The light source control module is used to control the opening and closing of the light source channel according to the trigger instruction. The trigger instruction is stored in the memory in the form of a stack.

5. The machine vision system according to claim 4, characterized in that: It further includes a power supply module, the light source includes at least one light source driving module and an LED lamp bead electrically connected to the light source driving module, the power supply module supplies power to the light source driving module, and the light source driving module is integrated with an LED driving circuit.

6. The machine vision system according to claim 5, characterized in that: The power supply module is a 48V power supply.

7. The machine vision system according to claim 1, characterized in that: The motion controller includes a motion control module and a motor device module. The motion control module is used to control the motion trajectory of the object. The motor device module provides power for the motion control module. The motor device module is also connected to a machine working platform and provides transmission power for the machine working platform.

8. A method for realizing stroboscopic control of a light source, characterized in that: The method is applied to the machine vision system according to any one of claims 1 to 7, and the method comprises the following steps: Establish a system parameter information database of object templates based on industrial computers and motion controllers; Based on the parameter information database, the position recording module generates and saves the set position information that needs to be photographed and flashed, and generates a trigger instruction according to the set position information; The trigger instruction is stored in the light source controller in the form of a stack; The position recording module monitors the real-time position of the object. When the monitored position information satisfies the set position information, the trigger instruction is controlled to synchronously trigger the industrial camera to take pictures and control the opening of the light source channel of the light source controller; The light source channel of the light source controller generates a stroboscopic pulse signal according to the set system parameter information and the sequence number of the stack, and each pulse signal is independently connected to the light source. The pulse signal can control any light source channel to be turned on independently, and can also control multiple light source channels or all light source channels to be turned on at the same time; After opening the light source channel of the light source controller according to the trigger instruction, the industrial computer further processes the data information, specifically including: Determine whether the exposure time of the industrial camera reaches the preset value; Determine whether the stroboscopic time of the light source reaches the preset value; If the exposure time of the industrial camera and the stroboscopic time of the light source reach the preset values, it is further determined whether the stroboscopic interval time reaches the set value; If the strobe interval reaches the system setting value, the trigger instruction is generated and is valid; If the strobe interval does not reach the system setting value, the industrial camera and light source will no longer be turned on and will be automatically turned off.

9. The method for realizing light source control stroboscopic lighting according to claim 8, characterized in that: Also includes the steps: Set the time according to the system parameters. If the exposure time of the industrial camera is greater than the strobe time of the light source controller, the light source controller will be controlled to automatically turn off the light source first, and then the industrial camera will be automatically turned off.

10. A computer-readable storage medium, comprising a processor, a computer-readable storage medium and a computer program stored on the computer-readable storage medium, wherein the computer program implements the steps of the method according to any one of claims 8 to 9 when executed by the processor.

Citation Information

Patent Citations

  • Device and method for photographing object moving at high speed

    CN104333706A

  • Flying shooting control module, flying shooting control panel, flying shooting control circuit and flying shooting equipment

    CN111510639A