Smart camera and image inspection system

The smart camera system addresses processing resource limitations by enabling mode-switching and network-connected lighting control, preventing conflicts and improving inspection efficiency and installation flexibility.

JP2024145720APending Publication Date: 2024-10-15KEYENCE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023058199
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Smart cameras lack sufficient processing resources for complex inspections, and connecting them to image processing controllers leads to lighting control conflicts when capturing workpiece images.

Method used

A smart camera with a lighting control function that includes an interface for connecting to an image processing controller, allowing mode switching between master and slave modes to prevent lighting control conflicts, and a network-connected lighting controller for flexible installation and management.

Benefits of technology

Prevents lighting control conflicts by allowing the smart camera or image processing controller to manage lighting independently, enhancing processing capabilities and installation flexibility without interfering with each other's control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024145720000001_ABST
    Figure 2024145720000001_ABST
Patent Text Reader

Abstract

To prevent a conflict between the lighting control of a smart camera and the lighting control of an image processing controller in a usage form in which a smart camera having a lighting control function is connected to the image processing controller.SOLUTION: In a master mode, a smart camera 7 turns on an external lighting 8C connected via an interface unit 72 using a lighting control function of the smart camera 7, captures the light from the external lighting 8C reflected by a workpiece using an imaging unit 70 to generate a workpiece image, and executes inspection processing of the workpiece image. In a slave mode, the smart camera 7 captures the light from the lighting turned on under the control of the image processing controller 3 connected via an interface unit 72 using the imaging unit 70 to generate a workpiece image and transfer it to the image processing controller 3.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a smart camera and image inspection system with lighting control capabilities. [Background technology]

[0002] Conventionally, a controller-type system has been known as an image inspection system, which includes a camera that captures an image of a workpiece and an image processing controller that controls the connected camera, and which performs inspection on the image captured by the camera using the image processing controller.

[0003] Apart from this controller type, smart cameras that can independently perform operations from image capture to image inspection are now being used in the field of image inspection (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2013-158889 A Summary of the Invention [Problem to be solved by the invention]

[0005] When using a smart camera such as that described in Patent Document 1, it is possible to control lighting by connecting the smart camera to the lighting. However, since smart cameras have fewer processing resources than image processing controllers, there may be cases where the processing resources are insufficient depending on the type of inspection, etc.

[0006] To compensate for the lack of processing resources in the smart camera, it is conceivable to connect an image processing controller to the smart camera. This allows inspection to be performed by combining the processing resources of the smart camera and the image processing controller, making it possible to perform inspections that exceed the processing capabilities of the smart camera alone or the image processing controller alone, or to share processing between the smart camera and the image processing controller, thereby improving the inspection speed.

[0007] However, conventional smart cameras were not designed to be connected to an image processing controller, so when a smart camera was connected to an image processing controller, there was a problem that lighting control conflicts occurred when capturing work images.

[0008] The present disclosure has been made in consideration of such points, and its purpose is to prevent the lighting control of the smart camera from competing with the lighting control of the image processing controller when a smart camera with a lighting control function is connected to an image processing controller. [Means for solving the problem]

[0009] In order to achieve the above object, in one aspect of the present disclosure, a smart camera having a lighting control function can be assumed. The smart camera includes an imaging unit that captures an image of a workpiece to generate a workpiece image, an inspection unit that performs inspection processing of the workpiece image, an interface unit that can be connected to an external lighting and an image processing controller that can perform inspection processing of the workpiece image, and a mode switching unit that switches between a master mode in which the lighting control function can be executed and a slave mode in which the lighting control function cannot be executed. In the master mode, the smart camera turns on the external lighting connected via the interface unit using the lighting control function, captures light reflected by the workpiece from the light of the external lighting using the imaging unit to generate a workpiece image, and executes inspection processing of the workpiece image in the inspection unit. In addition, in the slave mode, the smart camera captures light reflected by the workpiece from the light of the lighting turned on under the control of the image processing controller connected via the interface unit using the imaging unit to generate a workpiece image, and transfers the workpiece image to the image processing controller.

[0010] According to this configuration, when the external lighting is connected to the smart camera via the interface unit and the smart camera is switched to the master mode, the smart camera controls the external lighting by the lighting control function of the smart camera and irradiates the workpiece with light. The inspection process of the workpiece image generated in the master mode is performed by the inspection unit of the smart camera.

[0011] On the other hand, when the image processing controller is connected to a smart camera via an interface unit and switched to the slave mode, the image processing controller controls the lighting and irradiates the workpiece with light. This makes it possible to prevent conflict between the lighting control of the smart camera and the lighting control of the image processing controller in a usage form in which a smart camera with a lighting control function is connected to the image processing controller. The workpiece image generated in the slave mode is transferred to the image processing controller, and the image processing controller executes the inspection process.

[0012] The mode switching unit may be configured to be able to receive a mode switching signal from the image processing controller via the interface unit. In this case, when the mode switching unit receives the mode switching signal, it can switch from the master mode to the slave mode based on the mode switching signal.

[0013] In another aspect of the present disclosure, an image inspection system may be provided that includes a smart camera having a lighting control function, a lighting controller connected to the smart camera via a network and having an IP address, a plurality of external lights connected to the smart camera via the lighting controller, and an inspection setting device connected to the smart camera and for creating an inspection setting including an imaging tool and an inspection tool. The inspection setting device displays a list of the plurality of external lights on the network and accepts from the list a selection from a user of an external light to be used when the imaging tool is executed, thereby creating the inspection setting. The smart camera can instruct the lighting controller to turn on the selected external light when the imaging tool created by the inspection setting device is executed. That is, by connecting the smart camera to the lighting controller via a network, the degree of freedom of installation such as wiring is increased, and since the lighting controller has an IP address, a list of external lights on the network can be confirmed, and an inspection setting including which light to use can be created.

[0014] The smart camera and the image processing controller may be configured to store the inspection settings created by the inspection setting device. In this case, the image processing controller does not refer to the inspection settings stored in the smart camera, but can refer to only the inspection settings stored in the image processing controller, so that the inspection settings stored in the smart camera and the inspection settings stored in the image processing controller do not conflict with each other.

[0015] The inspection setting device may be configured to be able to assign lighting IDs to the multiple external lighting devices on the network. In this case, the inspection setting can be created in which the external lighting devices to be used when executing the imaging tool are specified by the lighting ID, and the inspection setting can be output. That is, lighting can be set for each camera without the user being aware of the IP address of the lighting controller. By making it possible to manage lighting settings on a lighting ID basis, when adding a new device with the same camera and lighting configuration, the inspection setting including the lighting settings can be directly used on the new device by associating the IP address of the lighting controller on the new device with the lighting ID.

[0016] The inspection setting device can also create the inspection setting by further receiving from a user a selection of a first external light to be used when an imaging tool corresponding to a first camera is executed from a list of multiple external lights. In this case, the image processing controller can instruct the lighting controller to turn on the first external light when an imaging tool corresponding to the first camera is executed. Therefore, for example, when multiple cameras are required, an inspection setting can be created in which a light paired with each camera is specified, improving convenience. Effect of the Invention

[0017] As described above, in master mode the external lighting can be turned on by the lighting control function of the smart camera, and in slave mode the lighting can be turned on by control of the image processing controller. Therefore, when a smart camera with a lighting control function is connected to the image processing controller, it is possible to prevent conflict between the lighting control of the smart camera and the lighting control of the image processing controller. [Brief description of the drawings]

[0018] [Figure 1] 1 is a diagram showing a schematic configuration of a first image inspection system according to an embodiment of the present invention. [Diagram 2] FIG. 13 is a diagram showing a schematic configuration of a second image inspection system. [Diagram 3] FIG. 1 is a block diagram of a first image inspection system. [Figure 4] FIG. 2 is a front view of the lighting controller. [Diagram 5] 13 is a flowchart illustrating an example of a procedure for an initialization process. [Figure 6] 13 is an example of a screen displayed during examination setting. [Figure 7] 13 is a flowchart illustrating an example of a procedure for a lighting registration process. [Figure 8] 13 is an example of a display screen of a lighting search result. [Figure 9] 13 is an example of a lighting ID setting screen. [Figure 10] 13 is a flowchart illustrating an example of a procedure for a setting process. [Figure 11] 13 is an example of an update screen. [Figure 12] 13 is a flowchart illustrating an example of a processing procedure during operation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Hereinafter, the preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following description of the preferred embodiments is merely illustrative in nature and is not intended to limit the present invention, its applications, or its uses.

[0020] FIG. 1 is a diagram showing a schematic configuration of a first image inspection system 1A according to an embodiment of the present invention. The first image inspection system 1A includes an inspection setting device 2 for creating an inspection setting including an imaging tool and an inspection tool, an image processing controller 3, a PLC (Programmable Logic Controller) 4, normal cameras 5A and 5B for generating workpiece images, a smart camera 7 for generating workpiece images, external lighting 8A, 8B, and 8C, and lighting controllers 9A and 9B. The inspection setting device 2 is, for example, a personal computer or the like, and has a display unit 2a and an operation unit 2b. The display unit 2a is, for example, a liquid crystal display device or an organic EL display device, and is a member for displaying workpiece images, inspection results, various setting screens, and the like. The operation unit 2b is a member for operating the first image inspection system 1A, and each setting operation, etc., can be performed by the user via the operation unit 2b. The operation unit 2b includes, for example, a keyboard, a mouse, a touch panel, and the like. The touch panel is configured to be able to detect touch operations by the user. The touch panel and the display unit 2a may be integrated together. In this case, for example, a setting image displayed on the display unit 2a can be directly operated using the touch panel.

[0021] The image processing controller 3 is configured to be able to control the external lighting 8A, 8B, 8C, and to execute inspection processing of workpiece images generated by the normal cameras 5A, 5B and the smart camera 7. The inspection results by the image processing controller 3 are output to the inspection setting device 2 and displayed on the display unit 2a. A trigger signal for starting the inspection is input to the image processing controller 3 from the PLC 4.

[0022] The normal cameras 5A and 5B have an image generation function. The smart camera 7 has an image inspection function and a lighting control function in addition to the image generation function. The image generation function is a function of capturing an image of a workpiece to generate a workpiece image. The image inspection function is a function capable of executing one or more types of inspection processing on the workpiece image, and is not provided in the normal cameras 5A and 5B. The lighting control function is a function of controlling the external lighting 8C, and is not provided in the normal cameras 5A and 5B. In other words, a normal camera means a camera that is not provided with an image inspection function and lighting control.

[0023] The first image inspection system 1A is a system for inspecting a workpiece imaged by the normal cameras 5A, 5B or the smart camera 7. The normal cameras 5A, 5B and the smart camera 7 are installed, for example, on a line along which a plurality of workpieces are transported in sequence, and are capable of sequentially capturing images of the workpieces as they are transported.

[0024] Since the normal cameras 5A and 5B are not equipped with an image inspection function, the inspection of the workpiece images generated by the normal cameras 5A and 5B is executed by the image inspection function of the image processing controller 3. On the other hand, since the smart camera 7 is equipped with an image inspection function, the inspection of the inspection target image generated by the smart camera 7 can be executed by the smart camera 7. As will be described later, all or part of the inspection of the inspection target image generated by the smart camera 7 may be executed by the image inspection function of the image processing controller 3.

[0025] FIG. 1 shows an operation mode in which two normal cameras 5A, 5B and one smart camera 7 are connected to the image processing controller 3 simultaneously, but the number of cameras connected is not limited to this, and it is also possible to adopt an operation mode in which one or any number of normal cameras and one or any number of smart cameras are connected to the image processing controller 3 simultaneously.

[0026] In addition, it is also possible to adopt an operation form in which one or any number of normal cameras are connected to the image processing controller 3 and a smart camera is not connected to the image processing controller 3, or an operation form in which one or any number of smart cameras are connected to the image processing controller 3 and a normal camera is not connected to the image processing controller 3. In addition, the number of external lights 8A, 8B, 8C is not limited to three, and the first image inspection system 1A can be configured with any number of lights. Similarly, the number of lighting controllers 9A, 9B can be any number.

[0027] As shown in Fig. 2, the smart camera 7 can inspect workpiece images by itself, and can be used without being connected to the image processing controller 3 in Fig. 1. For example, when there is one line on which works are transported and only one location on the workpiece needs to be inspected, one smart camera 7 can be introduced to the site and operated without introducing the image processing controller 3.

[0028] The second image inspection system 1B shown in Fig. 2 includes an inspection setting device 2, a PLC 4, a smart camera 7, external lighting 8A, 8B, and 8C, lighting controllers 9A and 9B, and a hub (Ethernet hub) 10. The inspection setting device 2, the PLC 4, the smart camera 7, and the lighting controllers 9A and 9B are connected via the hub 10. The lighting controllers 9A and 9B have IP addresses and are connected to the smart camera 7 via a network. The external lighting 8B and 8C are connected to the smart camera 7 via the lighting controllers 9A and 9B. The inspection setting device 2 is also connected to the smart camera 7 via the network.

[0029] Like the first image inspection system 1A, the second image inspection system 1B can have any number of smart cameras, external lights, and light controllers.

[0030] FIG. 3 is a block diagram of the first image inspection system. The first image inspection system 1A includes a first normal camera 5A and a second normal camera 5B. The first normal camera 5A and the second normal camera 5B are connected to an image processing controller 3. The first normal camera 5A is a camera having a general image generating function, so a detailed description is omitted. For example, the first normal camera 5A includes an optical system in which light irradiated from an external lighting 8A is reflected on the surface of a workpiece and enters the workpiece, and an image sensor that receives the light emitted from the optical system. An imaging control signal is input from the image processing controller 3 to the first normal camera 5A. The second normal camera 5B is configured in the same manner.

[0031] The first image inspection system 1A includes a first external illuminator 8A, a second external illuminator 8B, and a third external illuminator 8C. The first external illuminator 8A is provided with a light-emitting body 81a, such as a light-emitting diode. The second external illuminator 8B and the third external illuminator 8C are also provided with light-emitting bodies 82a and 83a, respectively. The first external illuminator 8A is installed so as to irradiate light into the field of view of the first normal camera 5A. The second external illuminator 8B is installed so as to irradiate light into the field of view of the second normal camera 5B. The third external illuminator 8C is installed so as to irradiate light into the field of view of the smart camera 7. Note that the external illuminators can also be installed so that multiple external illuminators irradiate light into the field of view of one camera.

[0032] The first image inspection system 1A includes a first lighting controller 9A and a second lighting controller 9B. A first external lighting 8A is connected to the first lighting controller 9A. The first lighting controller 9A is a device that controls the first external lighting 8A, and is connected to the image processing controller 3 and operates according to a control signal from the image processing controller 3.

[0033] The second external light 8B is connected to the second lighting controller 9B. The second lighting controller 9B is a device that controls the second external light 8B, and is connected to the image processing controller 3 via the first lighting controller 9A and operates according to a control signal from the image processing controller 3.

[0034] Since the first lighting controller 9A and the second lighting controller 9B are the same, the first lighting controller 9A will be described in detail. The first lighting controller 9A includes a control unit 91a and an interface unit 91b. The control unit 91a is configured by combining a microcomputer, a storage device, etc., and is a part that controls the connected external lighting.

[0035] FIG. 4 is a front view of the first lighting controller 9A. The interface unit 91b of the first lighting controller 9A includes a power connector 93a, an external signal input connector 93b, a first Ethernet port 93c, a second Ethernet port 93d, a first lighting output port (1ch) 93e, a second lighting output port (2ch) 93f, a dimming volume 93g, an operation switch 93h, and the like. A power cord (not shown) extending from an external power source is connected to the power connector 93a. A signal line (not shown) extending from an external device is connected to the external signal input connector 93b. A signal line (not shown) extending from the image processing controller 3 is connected to the first Ethernet port 93c and the second Ethernet port 93d. An external lighting can be connected to each of the first lighting output port 93e and the second lighting output port 93f. Therefore, a single first lighting controller 9A can control multiple external lighting.

[0036] The light control volume 93g is for adjusting the brightness of the external lighting connected to the first lighting output port 93e and the second lighting output port 93f. The operation switch 93h is for operating the first lighting controller 9A. The operation of the light control volume 93g and the operation switch 93h by the user is accepted by the control unit 91a, and the operation is reflected.

[0037] When a control signal is input from the image processing controller 3 to the interface unit 91b, the control unit 91a outputs a light emission signal to the connected external lighting to cause the external lighting to emit light. The second lighting controller 9B also includes a control unit 92a and an interface unit 92b, similar to the first lighting controller 9A, and outputs a light emission signal to the connected external lighting to cause the external lighting to emit light in accordance with the control signal input from the image processing controller 3 to the interface unit 92b.

[0038] As shown in Fig. 3, the first image inspection system 1A includes a smart camera 7. The smart camera 7 includes an imaging unit 70, a processor 71, an interface unit 72, a storage unit 73, and a mode switching unit 74. The imaging unit 70 is a part that captures an image of a workpiece to generate a workpiece image, and includes, for example, an optical system into which light irradiated from the third external lighting 8C is reflected on the surface of the workpiece and incident thereon, and an image sensor that receives the light emitted from the optical system, as in the case of a normal camera. An imaging control signal is input to the smart camera 7 from the image processing controller 3.

[0039] The processor 71 is configured with hardware such as a processor, such as a CPU or ASIC, a RAM, and a ROM, and various processes can be performed by the hardware executing a predetermined program. The processor 71 executes a predetermined program to configure an inspection unit 71a and an illumination control unit 71b. The inspection unit 71a is a part that executes inspection processing of the workpiece image generated by the imaging unit 70. The inspection includes, for example, judging whether there is a scratch, whether the measured dimensions are within the tolerance range, and whether the workpiece is good or defective.

[0040] The interface unit 72 of the smart camera 7 is configured to be connectable to an external light and the image processing controller 3. In this example, the third external light 8C is connected to the interface unit 72 of the smart camera 7, but other external lights can also be connected. The third external light 8C connected to the interface unit 72 is controlled by the lighting control unit 71b of the smart camera 7. Specifically, the start of light emission, light emission time, light amount, etc. of the light emitter 83a of the third external light 8C are controlled by the lighting control unit 71b of the smart camera 7, so that the third external light 8C not connected to the lighting controllers 9A and 9B can be made to emit light under desired light emission conditions. The power supply to the third external light 8C may be by a switching power supply, or may be a power supply means by PoE (Power over Ethernet) using a LAN (Local Area Network) cable, for example.

[0041] The storage unit 73 of the smart camera 7 is composed of, for example, a semiconductor memory, and is a part that stores the program executed by the processor 71, the workpiece image generated by the imaging unit 70, various setting information, inspection results, etc.

[0042] The mode switching unit 74 is a part that switches the mode of the smart camera 7 to either a master mode in which the lighting control function by the lighting control unit 71b can be executed, or a slave mode in which the lighting control function by the lighting control unit 71b cannot be executed. The mode switching unit 74 is connected to the image processing controller 3 via the interface unit 72, and is configured to be able to receive a mode switching signal from the image processing controller 3. When the mode switching unit 74 receives a mode switching signal, it switches from the master mode to the slave mode if the current mode is the master mode, and switches from the slave mode to the master mode if the current mode is the slave mode, based on the mode switching signal.

[0043] 3 shows a case where the smart camera 7 is switched to the slave mode and operates in the slave mode. In this slave mode, the lighting control unit 71b of the smart camera 7 is turned OFF, and the third external lighting 8C is controlled by the image processing controller 3. In this case, the lighting control signal output from the image processing controller 3 is input to the third external lighting 8C via the smart camera 7. OFF means that the lighting control unit 71b is in a non-operating state.

[0044] When the smart camera 7 operates in the slave mode, the image processing controller 3 holds various setting information related to lighting, and the smart camera 7 does not hold various setting information related to lighting. As a result, even if the lighting control function of the smart camera 7 is turned off, the third external lighting 8C can be controlled. For example, when the smart camera 7 operated in the master mode is connected to the image processing controller 3, the image processing controller 3 does not refer to various settings of the smart camera 7, but refers to various settings held by the image processing controller 3 itself. That is, the smart camera 7 is configured to be able to store the inspection settings including the imaging tool T1 and the inspection tool T2 (see FIG. 6 described later) created by the inspection setting device 2 in the storage unit 73, etc., and the image processing controller 3 is configured to be able to store the inspection settings including the imaging tool T1 and the inspection tool T2 created by the inspection setting device 2 in the storage unit 32, etc., but when the smart camera 7 is in the slave mode, it is configured to not refer to the inspection settings stored in the smart camera 7, but to refer to only the inspection settings stored in the image processing controller 3.

[0045] 2 shows a case where the smart camera 7 is operated in the master mode. In the master mode, the lighting control function of the smart camera 7 is turned on, and various setting information related to lighting is stored on the smart camera 7 side. Then, the lighting control unit 71b of the smart camera 7 controls the first external lighting 8A. In addition, the lighting control unit 71b of the smart camera 7 also controls the second external lighting 8B and the third external lighting 8C connected to the smart camera 7 via the hub 10.

[0046] That is, in the master mode, the smart camera 7 turns on the first external lighting 8A connected via the interface unit 72 using the lighting control function of the smart camera 7, captures light reflected by the workpiece from the light irradiated from the first external lighting 8A using the imaging unit 70 to generate a workpiece image, and executes inspection processing of the generated workpiece image in the inspection unit 71a of the smart camera 7. On the other hand, in the slave mode, the smart camera 7 captures light reflected by the workpiece from the light of the lighting turned on under the control of the image processing controller 3 using the imaging unit 70 to generate a workpiece image. The workpiece image generated by the imaging unit 70 is transferred to the image processing controller 3 via the interface unit 72.

[0047] As shown in FIG. 3, the image processing controller 3 has a camera input unit 30, a control unit 31, a storage unit 32, and an interface unit 33. Although not shown, the camera input unit 30 may be omitted and the interface unit 33 may have the function of the camera input unit 30. The camera input unit 30 is a part to which the workpiece images generated by the normal cameras 5A and 5B or the smart camera 7 are input. The workpiece images input to the camera input unit 30 are acquired by the control unit 31. The control unit 31 performs various inspections on the workpiece images in the same manner as the inspection unit 71a of the smart camera 7. The image processing controller 3 has a control unit 31 with a higher calculation processing capacity than the smart camera 7, so that it can perform inspections with a higher load than the smart camera 7 in a short time.

[0048] The storage unit 32 is a part that stores the programs executed by the control unit 31, the workpiece images generated by the normal cameras 5A and 5B and the smart camera 7, various setting information, inspection results, and the like.

[0049] The interface unit 33 is a section to which the normal cameras 5A and 5B, the smart camera 7, the external lighting devices 8A, 8B, and 8C, the lighting controllers 9A and 9B, the PLC 4, the inspection setting device 2, and the like are connected. Communication with each device is possible via the interface unit 33.

[0050] The test setting device 2 includes a control unit 20, a storage unit 21, and a reception unit 23 in addition to a display unit 2a and an operation unit 2b. The control unit 20 is configured with, for example, a microcomputer, and can execute various processes by executing a predetermined program. The storage unit 21 is configured with, for example, a semiconductor memory, and is a part that stores the programs executed by the control unit 20, various setting information, etc.

[0051] Each process will be specifically described below. Fig. 5 shows the procedure of the initialization process, which is started when the smart camera 7, the image processing controller 3, and the lighting controllers 9A and 9B are started. The smart camera 7 and the image processing controller 3 determine an IP address in step SA1. The lighting controllers 9A and 9B determine an IP address in step SB1. The procedure for determining the IP address can use a conventionally known method. For example, all devices on the same network search for a DHCP (Dynamic Host Configuration Protocol) server, and if a DHCP server exists, the IP address is assigned from the DHCP server, and if a DHCP server does not exist, the device provisionally determines an IP address on the local network by itself using random numbers, adjusts the provisionally determined IP address of each device so that there is no duplication, and finally determines the IP address.

[0052] After that, the smart camera 7 and the image processing controller 3 search for the lighting controllers 9A and 9B on the network in step SA2. The lighting controllers 9A and 9B execute a response process in step SB2 in response to the search in step SA2. The smart camera 7 and the image processing controller 3 receive the result of the response process by the lighting controllers 9A and 9B, and determine in step SA3 whether or not the lighting controller is a registered lighting controller. That is, the lighting controller can be registered in advance in the smart camera 7 and the image processing controller 3, and for example, the model and identification information of the lighting controller are registered in advance by the user. In step SA3, the model and identification information of the lighting controller transmitted as a result of each response process are obtained, and the information is compared with the previously registered information. If there is a match, it is determined that the lighting controller is registered, and if there is no match, it is determined that the lighting controller is not registered.

[0053] If the determination in step SA3 is YES, then in step SA4, a connection process with the lighting controller is executed, and in step SB3, the lighting controller connects to the smart camera 7 and the image processing controller 3. On the other hand, if the determination in step SA3 is NO, then this flow ends without executing the connection process.

[0054] When setting an inspection, the control unit 20 of the inspection setting device 2 generates a setting screen 100 as shown in FIG. 6 and displays it on the display unit 2a. The setting screen 100 has an inspection setting area 101 for creating inspection settings including the imaging tool T1 and the inspection tool T2, and a property setting area 102. In the inspection setting area 101, various settings related to imaging and various settings related to the inspection can be performed, for example, in a palette format. The property setting area 102 has a lighting setting button 102a that is operated when setting lighting. When the lighting setting button 102a is operated, the reception unit 23 of the inspection setting device 2 receives the operation. Then, the control unit 20 generates a property screen 103 for lighting setting and displays it on the display unit 2a.

[0055] The property screen 103 for setting lighting has a lighting registration button 103a. When the lighting registration button 103a is operated, the reception unit 23 of the inspection setting device 2 receives the operation, and the flow shown in Fig. 7 is executed. In step SC1, the smart camera 7 and the image processing controller 3 search for a lighting controller. In response to the search in step SC1, the lighting controller executes a response process in step SD1.

[0056] In step SC2, the smart camera 7 and the image processing controller 3 cause the test setting device 2 to display the search results. Specifically, the control unit 20 of the test setting device 2 generates a search result display screen 110 as shown in FIG. 8 and causes the display unit 2a to display it. The search result display screen 110 is provided with a result display area 111 in which the lighting controllers and lighting found by the search are displayed, and a registration display area 112 in which the lighting controllers and lighting to be registered are displayed. The result display area 111 is adapted to display all lighting controllers and lighting found by searching the network. That is, the test setting device 2 can display a list of multiple external lighting devices on the network on the display unit 2a. The reception unit 23 can receive, from the user, the selection of an external lighting device to be used when executing the imaging tool T1 (shown in FIG. 6) from the list of external lighting devices.

[0057] As shown in FIG. 4, one lighting controller is provided with a first lighting output port 93e and a second lighting output port 93f, so that at least two external lighting devices can be connected, and are displayed as "1ch" and "2ch" in the result display area 111. However, the IP address is on a lighting controller basis. Also, the user can give any name to the searched lighting controller. When giving a name, the user only needs to operate the operation unit 2b. Information regarding the input name is stored in the memory unit 21 or the like in a state associated with the lighting controller.

[0058] Furthermore, the search result display screen 110 is provided with a lighting ID setting button 113. When the lighting ID setting button 113 is operated, the control unit 20 of the inspection setting device 2 generates a lighting ID setting screen 114 as shown in FIG. 9 and displays it on the display unit 2a. The lighting ID setting screen 114 is provided with a lighting ID setting area 114a. The lighting ID can be used, for example, when setting a pair of a camera and lighting, and is composed of, for example, a combination of characters, symbols, etc. The inspection setting device 2 identifies, for example, an external lighting device to be used when executing the imaging tool T1 by the lighting ID. The inspection setting device 2 creates an inspection setting identified by the lighting ID, and outputs the inspection setting for use during operation.

[0059] For example, in the case of an inspection setting in which the first external light 8A is used when the imaging tool T1 corresponding to the first normal camera 5A is executed, the reception unit 23 of the inspection setting device 2 can receive the selection of the first external light 8A by the user from a list of external lights as shown in Fig. 8. As a result, the inspection setting device 2 creates an inspection setting in which the first normal camera 5A and the first external light 8A are associated with each other. In this case, during operation, the image processing controller 3 instructs the lighting controller 9A to turn on the first external light 8A when the imaging tool T1 corresponding to the first normal camera 5A is executed.

[0060] By setting a lighting ID, it is no longer necessary to use an IP address, making identification work easier. Setting a lighting ID is necessary especially when multiple lighting controllers are connected in a non-daisy chain. On the other hand, in the case of a daisy chain, it is possible to assign consecutive numbers since the order in which the lighting controllers are connected can be identified.

[0061] Here, for example, there are cases where devices with the same configuration are created, for example, devices equipped with cameras and lighting. In such cases, since it is the same device, the settings for the camera and lighting will basically be the same. Therefore, if you simply copy the setting file that defines the setting information such as which camera uses which lighting / not uses, it is possible to operate another device with the same configuration in the same way.

[0062] However, without the concept of lighting ID, lighting controllers would be managed by IP address in the "settings file", and a simple copy would not work because the IP address of the lighting controller in the new device would be different from the IP address of the lighting controller in the device from which it was deployed.

[0063] Therefore, as in this embodiment, by setting a lighting ID for a camera and lighting pair, the lighting can be managed by ID in a "settings file". Separately, by linking the lighting ID in the setting file with the IP address of the lighting controller on the new device through the lighting registration process of the new device, expected operation can be achieved even with another device of the same configuration.

[0064] In step SC3 shown in Fig. 7, it is determined whether or not to register the lighting controller displayed in step SC2. When the user performs a registration operation, the determination in step SC3 is YES. If the determination in step SC3 is YES, a connection process with the lighting controller is executed in step SC4, and the lighting controller connects to the smart camera 7 and the image processing controller 3 in step SD2. On the other hand, if the determination in step SC3 is NO, this flow ends without executing the connection process.

[0065] FIG. 10 is a flowchart showing the procedure of the setting process. The setting screen 100 shown in FIG. 6 is provided with an update button 103b. When the update button 103b is operated, the reception unit 23 of the test setting device 2 receives the operation. Then, the control unit 20 generates an update screen 130 shown in FIG. 11 and displays it on the display unit 2a. The update screen 130 is provided with a lighting ID display area 131, a lighting volume setting area 132, and an output timing setting area 133. The lighting ID display area 131 displays the lighting ID of the selected lighting controller. In the lighting volume setting area 132, it is possible to set the lighting volume with a numerical value, switch the volume limit ON / OFF, set continuous lighting, etc. In the output timing setting area 133, it is possible to set the lighting delay, output time, etc. with a numerical value, and set whether to synchronize with the shutter speed, etc.

[0066] In step SE1 of the flowchart in Fig. 10, the smart camera 7 and the image processing controller 3 transmit setting values ​​to the lighting controller. The setting values ​​are values ​​set on the update screen 130 shown in Fig. 11. In step SF1, the lighting controller reflects the setting values ​​transmitted in step SE1.

[0067] FIG. 12 shows the processing procedure during operation of the image inspection systems 1A and 1B. The start of operation is instructed by a user. Step SG1 waits for a trigger to be input from the PLC 4 or the like. When the trigger is input, the process proceeds to step SG2, in which the smart camera 7 and image processing controller 3 send a turn-on instruction to the lighting controller. When the lighting controller receives the turn-on instruction in step SH1, it turns on the external lighting. In other words, when the imaging tool T1 created by the inspection setting device 2 is executed, the smart camera 7 and image processing controller 3 instruct the lighting controller to turn on the external lighting selected during setting.

[0068] In step SG3, if the smart camera 7 is connected, an imaging instruction is sent to the imaging unit 70 of the smart camera 7. As a result, the imaging unit 70 of the smart camera 7 performs imaging and generates a workpiece image. On the other hand, if the smart camera 7 is not connected, that is, if the normal cameras 5A and 5B are connected, the image processing controller 3 sends an imaging instruction to the connected normal cameras 5A and 5B. As a result, the normal cameras 5A and 5B perform imaging and generate a workpiece image.

[0069] In step SG4, in the case of the smart camera 7, the inspection unit 71a of the smart camera 7 executes various image processing. On the other hand, in the case of the image processing controller 3, the image processing controller 3 executes various image processing on the workpiece images transmitted from the normal cameras 5A and 5B. When the smart camera 7 is connected, a part or all of the inspection processing of the workpiece images generated by the smart camera 7 may be executed by the image processing controller 3.

[0070] (Effects of the embodiment) As described above, according to this embodiment, as shown in FIG. 2, when the smart camera 7 is switched to the master mode in a state where the external lighting 8A is connected to the smart camera 7 via the interface unit 72, the smart camera 7 controls the external lighting 8A by the lighting control unit 71b of the smart camera 7, and irradiates the workpiece with light. The inspection process of the workpiece image generated in the master mode is executed by the inspection unit 71a of the smart camera 7. The inspection result by the inspection unit 71a can be output to the inspection setting device 2, for example, and displayed on the display unit 2a. The inspection result by the inspection unit 71a can also be output to the PLC 4, etc.

[0071] 1, when the image processing controller 3 is connected to the smart camera 7 via the interface unit 72 and the smart camera 7 is switched to the slave mode, the image processing controller 3 controls the external lighting 8A and the like to irradiate the workpiece with light. This makes it possible to prevent conflict between the lighting control of the smart camera 7 and the lighting control of the image processing controller 3 in a usage form in which the smart camera 7 having a lighting control function is connected to the image processing controller 3. The workpiece image generated in the slave mode is transferred to the image processing controller 3, and the image processing controller 3 executes the inspection process.

[0072] The above-described embodiment is merely illustrative in all respects and should not be construed as limiting. Furthermore, all modifications and variations within the scope of the claims are within the scope of the present invention. [Industrial Applicability]

[0073] As described above, the smart camera and image inspection system according to the present disclosure can be used, for example, to inspect various workpiece images. [Explanation of symbols]

[0074] 1A, 1B Image Inspection System 2. Test setting device 3 Image Processing Controller 7. Smart Camera 9A, 9B Lighting Controller 70 Imaging unit 71a Inspection Department 72 Interface section 74 Mode switching section

Claims

1. A smart camera with lighting control functionality, An imaging unit that captures an image of a workpiece and generates a workpiece image; An inspection unit that performs inspection processing of the workpiece image; An interface unit that can be connected to an external light and an image processing controller that can execute inspection processing of the workpiece image; a mode switching unit that switches between a master mode in which the lighting control function can be executed and a slave mode in which the lighting control function cannot be executed, The smart camera includes: In the master mode, an external light connected via the interface unit is turned on by the lighting control function, and light from the external light reflected by a workpiece is captured by the imaging unit to generate a workpiece image, and an inspection process of the workpiece image is executed by the inspection unit. In the slave mode, the smart camera captures light reflected from a workpiece from the light of the lighting turned on under the control of the image processing controller connected via the interface unit using the imaging unit to generate a workpiece image, and transfers the workpiece image to the image processing controller.

2. 2. The smart camera of claim 1, A smart camera, wherein the mode switching unit is configured to be able to receive a mode switching signal from the image processing controller via the interface unit, and upon receiving the mode switching signal, switches from the master mode to the slave mode based on the mode switching signal.

3. A smart camera having a lighting control function; a lighting controller connected to the smart camera via a network and having an IP address; a plurality of external lights connected to the smart camera via the lighting controller; an inspection setup device connected to the smart camera for creating an inspection setup including an imaging tool and an inspection tool, The test setting device includes: creating the inspection setting by displaying a list of the plurality of external lights on the network and receiving from a user a selection of an external light to be used when executing the imaging tool from the list; The smart camera includes: An imaging unit that captures an image of a workpiece and generates a workpiece image; An inspection unit that performs inspection processing of the workpiece image; An interface unit that can be connected to an external light and an image processing controller that can execute inspection processing of the workpiece image; a mode switching unit that switches between a master mode in which the lighting control function can be executed and a slave mode in which the lighting control function cannot be executed, In the master mode, an external light connected via the interface unit is turned on by the lighting control function, and light from the external light reflected by a workpiece is captured by the imaging unit to generate a workpiece image, and an inspection process of the workpiece image is executed by the inspection unit. In the slave mode, the light reflected by the workpiece is captured by the imaging unit out of the light of the illumination turned on under the control of the image processing controller connected via the interface unit to generate a workpiece image, and the workpiece image is transferred to the image processing controller; The image inspection system further instructs the lighting controller to turn on the selected external lighting when the imaging tool created by the inspection setting device is executed.

4. 4. The image inspection system according to claim 3, The test setting device includes: A lighting ID can be assigned to the plurality of external lighting devices on the network, An image inspection system configured to create an inspection setting in which the external lighting to be used when executing the imaging tool is specified by the lighting ID, and to output the inspection setting.

5. A smart camera having a lighting control function; An image processing controller connected to the smart camera and capable of performing inspection processing of a workpiece image generated by the smart camera; a lighting controller connected to the image processing controller via a network and having an IP address; A plurality of external lights connected to the image processing controller via the lighting controller; an inspection setup device connected to the image processing controller for creating an inspection setup including an imaging tool and an inspection tool, The smart camera includes: An imaging unit that captures an image of a workpiece and generates a workpiece image; An inspection unit that performs inspection processing of the workpiece image; an interface unit connectable to an external light and the image processing controller; a mode switching unit that switches between a master mode in which the lighting control function can be executed and a slave mode in which the lighting control function cannot be executed, In the master mode, an external light connected via the interface unit is turned on by the lighting control function, and light from the external light reflected by a workpiece is captured by the imaging unit to generate a workpiece image, and an inspection process of the workpiece image is executed by the inspection unit. In the slave mode, the light reflected by the workpiece is captured by the imaging unit out of the light of the illumination turned on under the control of the image processing controller connected via the interface unit to generate a workpiece image, and the workpiece image is transferred to the image processing controller; The test setting device includes: displaying a list of the plurality of external lights on the network and receiving from a user a selection of an external light to be used when executing an imaging tool corresponding to the smart camera from the list, thereby creating the inspection setting; The image processing controller includes: and an imaging inspection system that, upon execution of the imaging tool, instructs the lighting controller to turn on the selected external lighting.

6. 6. The image inspection system according to claim 5, The smart camera and the image processing controller are configured to store an inspection setting created by the inspection setting device, An image inspection system in which the smart camera does not reference a stored inspection setting, but only references an inspection setting stored by the image processing controller.

7. 6. The image inspection system according to claim 5, The test setting device includes: A lighting ID can be assigned to the plurality of external lighting devices on the network, An image inspection system configured to create an inspection setting in which the external lighting to be used when executing the imaging tool is specified by the lighting ID, and to output the inspection setting.

8. 6. The image inspection system according to claim 5, A first camera connected to the image processing controller, The test setting device includes: creating the inspection setting by further receiving, from the list, a selection from a user of a first external light to be used when executing an imaging tool corresponding to the first camera; The image processing controller includes: The image inspection system instructs the lighting controller to turn on the first external light when an imaging tool corresponding to the first camera is executed.

Citation Information

Patent Citations

  • Camera, camera group, device with camera, device group, and robot device

    JP2013158889A