Image inspection system
The image inspection system addresses delays in inspection processes by using separate control units for imaging and display, allowing parallel processing and enhancing speed.
Patent Information
- Application Number
- JP2023058214
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
AI Technical Summary
Existing spreadsheet-based user interfaces for image processing delay inspection processes due to numerical calculations being inseparable from display processes, causing execution delays.
An image inspection system with separate control units for imaging and display processing, allowing parallel execution of mathematical calculations and inspection processes, thereby preventing delays in the inspection process.
The system accelerates the overall inspection process by separating control units for imaging and display, enabling faster processing speeds without delaying the inspection.
Smart Images

Figure 2024145732000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image inspection system that performs inspection based on a workpiece image. [Background technology]
[0002] For example, Patent Document 1 discloses a user interface using a spreadsheet. In the user interface disclosed in Patent Document 1, the contents of image processing, parameters of each image processing, numerical calculation of output results, etc. are expressed in cells. Since both the execution of image processing and the numerical calculation are inseparably integrated, the numerical calculation is also performed by software built into the image processing device. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] U.S. Patent No. 7,107,519 Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the user interface using a spreadsheet in Patent Document 1, some of the parameters and numerical calculations of output results displayed in cells are not referenced when the inspection process is executed, but are simply for display purposes, and this display process may cause delays in the execution of the inspection process.
[0005] The present disclosure has been made in consideration of the above points, and has as its object to speed up the entire inspection by preventing the display process from delaying the execution of the inspection process. [Means for solving the problem]
[0006] In order to achieve the above object, in one aspect of the present disclosure, an image inspection system that performs inspection based on a workpiece image obtained by imaging a workpiece can be assumed. The image inspection system includes an imaging unit that images a workpiece to generate a workpiece image, a first control unit that generates a setting screen in which mathematical settings of imaging parameters of the imaging unit, mathematical settings of inspection parameters of the workpiece image, and display settings of inspection results can be set in cells on a worksheet, and causes a display unit to display the inspection results according to the display settings set in the cells on the worksheet, and a second control unit that executes imaging processing by the imaging unit, inspection processing of the workpiece image, and mathematical calculations related to the imaging parameters and inspection parameters set on the worksheet.
[0007] According to this configuration, since the imaging parameters, the inspection parameters, and the inspection result display settings can be set in cells on the worksheet, the user can easily grasp the relationship between them when making the desired settings. During operation, a display process for displaying the inspection results on the display unit is executed by a first control unit. Meanwhile, the imaging process, the workpiece image inspection process, and the mathematical calculations related to the imaging parameters and the inspection parameters are executed by a second control unit different from the first control unit. Since the control units are separated in this way and the inspection process and the display process are executed by different control units, the inspection process is not delayed by the execution of the display process.
[0008] The first control unit may operate in a client device, and the second control unit may operate in an image processing controller connected to the client device. The second control unit may analyze a reference relationship between the imaging process, the inspection process, and cells on the worksheet, and automatically identify the formula operation based on the analysis result. By analyzing the reference relationship, the second control unit can automatically identify the cell to be executed, eliminating the need for a user to specify it.
[0009] The imaging parameters may include at least one of an exposure time, a focus position, a zoom magnification, an HDR setting, and a gain, and the inspection parameters may include information specifying a position on the image coordinate system to which an inspection tool is applied.
[0010] The inspection parameters may include a search region and search parameters of a positioning tool that searches the inspection target region. The inspection parameters may include information regarding cooperation between a plurality of inspection tools. The inspection parameters may include inspection parameters of a second inspection tool that is executed based on an inspection result of a first inspection tool.
[0011] The display settings may include at least one of displaying the non-defective and defective products obtained by the inspection process, displaying a graph of the number of non-defective and defective products obtained by the inspection process, and displaying an image of the workpiece that has been inspected. The first control unit may also cause the display unit to display a graph using the inspection results according to the display settings set in the cells on the worksheet. In other words, the first control unit also executes a high-load process such as generating a graph using the inspection results, thereby avoiding a delay in the inspection process.
[0012] The second control unit may have an imaging calculation unit and an inspection calculation unit. In this case, the mathematical calculation of the imaging parameters by the imaging calculation unit and the mathematical calculation of the inspection parameters by the inspection calculation unit can be executed in parallel, so that, for example, the calculation of the inspection parameters used in the inspection of the acquired workpiece image and the calculation of the imaging parameters used in the next imaging can be processed in parallel, resulting in a high processing speed.
[0013] When the inspection process includes a first inspection tool and a second inspection tool executed after the first inspection tool, the second control unit can transmit a completion notification of the first inspection tool and a first inspection result of the first inspection tool to the first control unit after the execution of the first inspection tool is completed, and can start a mathematical calculation of the inspection parameters of the second inspection tool. The first control unit can start execution of a display process using the first inspection result according to the display setting, and the display process by the first control unit can be executed in parallel with the mathematical calculation by the second control unit. In other words, since the mathematical calculation of the inspection parameters and the display process using the inspection result can be executed in parallel by different control units, the result display can be accelerated without affecting the inspection time.
[0014] After the second control unit completes the imaging process and the inspection process, the first control unit executes all the formula operations set on the worksheet and generates a display screen reflecting the execution results of the formula operations. That is, depending on how the inspection process is set up, an inspection tool may be skipped, but the display on the worksheet side is not updated because the second control unit does not perform calculations on the cells referenced by the skipped inspection tool. However, in this configuration, after the completion of all imaging processes and inspection processes, the formula operations of all cells are executed, making it possible to update the display even if there is a skipped inspection tool. At this time, the inspection process is completed, so there is no delay in the inspection process. Effect of the Invention
[0015] As described above, the system is equipped with a first control unit that displays the inspection results on the display unit, and a second control unit that executes imaging processing, inspection processing, and mathematical calculations related to imaging parameters and inspection parameters, thereby making it possible to speed up the entire inspection by preventing the display processing from delaying the execution of the inspection processing. [Brief description of the drawings]
[0016] [Figure 1]1 is a schematic diagram showing a configuration of a first image inspection system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a cross-sectional view showing the internal structure of the camera. [Diagram 3] FIG. 1 is a block diagram of a first image inspection system. [Figure 4] FIG. 13 is a diagram showing an example of a setting screen having a worksheet area. [Diagram 5] 13A and 13B are diagrams showing examples of input in a palette area and a worksheet area. [Figure 6] FIG. 1 is a diagram for explaining a first image inspection example. [Figure 7] FIG. 11 is a diagram for explaining a second image inspection example. [Figure 8] 1A to 1C are diagrams illustrating a specific example of image inspection when the workpiece is a bearing. [Figure 9] 5A to 5C are diagrams illustrating the procedure of each process executed by an image processing controller. [Figure 10] FIG. 4 is a diagram showing the procedure of each process executed by a client device. [Figure 11] FIG. 2 is a schematic diagram showing the configuration of a second image inspection system according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] 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.
[0018] (First image inspection system) 1 is a schematic diagram showing the configuration of a first image inspection system 1A according to an embodiment of the present invention. The image inspection system 1A is a system that performs inspection based on a workpiece image obtained by capturing an image of a workpiece W. The inspection includes, for example, judging whether there is a scratch, whether a measured dimension is within a tolerance range, and whether the workpiece W is a good or defective product.
[0019] FIG. 1 shows the first image inspection system 1A in operation, which includes a camera 2 that captures an image of a workpiece W, an image processing controller 7 that performs inspection and the like based on a workpiece image generated by the camera 2, and a client device 8. The image inspection system 1A may also include an external device 9 such as a PLC (Programmable Logic Controller), and the external device 9 may or may not be a component of the image inspection system 1A. In the case of the first image inspection system 1A, the inspection process is performed by a control unit 70 included in the image processing controller 7, so the camera 2 may be a normal camera equipped with an image generation function.
[0020] 3, the control unit 70 of the image processing controller 7 is composed of a CPU, a ROM, a RAM, etc., and has an imaging calculation unit 70a and an inspection calculation unit 70b. The control unit 70 is capable of performing various image processing at high speed on the workpiece image input from the camera 2. The camera 2 of the first image inspection system 1A may be a smart camera equipped with an image inspection function in addition to an image generation function.
[0021] The first image inspection system 1A is used at a site where multiple workpieces W are transported in sequence. At such a site, the workpieces W are transported at a predetermined speed by a transport device such as a belt conveyor C. The camera 2 is controlled by, for example, an external device 9 or an image processing controller 7 so as to capture an image of the workpiece W transported by the belt conveyor C when the workpiece W enters the field of view of the camera 2. By repeating this process, the camera 2 sequentially captures images of the multiple workpieces W transported by the belt conveyor C.
[0022] The first image inspection system 1A also includes lighting 10 (shown in FIG. 3) that irradiates light onto the workpiece W when the workpiece W is imaged by the camera 2. In this embodiment, a case will be described in which the lighting 10 is provided on the camera 2, but the lighting 10 may be an external lighting separate from the camera 2.
[0023] Although not shown, the camera 2 can also capture an image of a stationary workpiece W. The camera 2 can also be operated in a state where it is attached to, for example, a robot arm, and the operation form of the first image inspection system 1A is not particularly limited.
[0024] The workpiece W may have any shape and size. The workpiece W includes, for example, a metallic workpiece having a glossy surface.
[0025] 2, the camera 2 has a lens unit 20, a sensor board 30, a main board 40, a housing 50, and a storage unit 39 (shown in FIG. 3). The storage unit 39 stores setting information of the camera 2, various images, etc.
[0026] The lens unit 20 mounted on the camera 2 is a zoom lens equipped with a zoom optical system capable of electrically controlling optical zoom, and the optical zoom magnification can be switched to any magnification within a predetermined range. The lens unit 20 is fixed to the housing 50 and is integrated with the housing 50.
[0027] The lens unit 20 has a first lens group 21, a second lens group 22, a third lens group 23, a fourth lens group 24, a fifth lens group 25, and a lens barrel 26 that holds the first to fifth lens groups 21 to 25. The first to fifth lens groups 21 to 25 form a condenser lens that condenses light incident from a light receiving window 51a formed in a housing 50. The number of lenses that constitute each of the first to fifth lens groups 21 to 25 is not particularly limited, and may be any number, and the number of lens groups may be four or less, or six or more. The lens unit 20 may be a zoom optical system that allows manual optical zoom.
[0028] The first lens group 21 is a fixed lens group fixed to the housing 50, and receives light reflected from the workpiece W. The second lens group 22 is a movable lens group for zooming arranged behind the first lens group 21, and receives light emitted from the first lens group 21. The third lens group 23 is a fixed lens group arranged behind the second lens group 22, and receives light emitted from the second lens group 22. The fourth lens group 24 is a focusing lens group (movable lens group) consisting of a non-telecentric lens, and arranged behind the third lens group 23, and receives light emitted from the third lens group 23. The fifth lens group 25 is a fixed lens group arranged behind the fourth lens group 24, and receives light emitted from the fourth lens group 24.
[0029] The lens barrel 26 is provided with a zoom ball screw 56a, a zoom guide shaft 56b, and a zoom motor 56c for rotating the zoom ball screw 56a in forward and reverse directions. The second lens group 22 is supported by the zoom ball screw 56a and the zoom guide shaft 56b, and when the zoom ball screw 56a is rotated by the zoom motor 56c, the second lens group 22 moves in the optical axis direction, thereby obtaining a desired zoom magnification. The zoom ball screw 56a, the zoom guide shaft 56b, and the zoom motor 56c form a zoom lens driving mechanism that drives the second lens group 22 in the optical axis direction to adjust the optical magnification.
[0030] The lens barrel 26 is also provided with a focusing ball screw 56d, a focusing guide shaft 56e, and a focusing motor 56f for rotating the focusing ball screw 56d in forward and reverse directions. The fourth lens group 24 is supported by the focusing ball screw 56d and the focusing guide shaft 56e, and when the focusing ball screw 56d is rotated by the focusing motor 56f, the fourth lens group 24 moves in the optical axis direction, thereby performing focus adjustment. The focusing ball screw 56d, the focusing guide shaft 56e, and the focusing motor 56f are a focusing lens driving mechanism that drives the fourth lens group 24 in the optical axis direction to adjust the focal position, and the focusing motor 56f is a lens driving unit that adjusts the lens position of the fourth lens group 24.
[0031] 3, the main board 40 is provided with a zoom control unit 40a, an AF control unit 40b, and an interface unit 40c. The interface unit 40c is a part that receives various instructions and designations from a user and outputs the results of calculations performed by the main board 40, workpiece images, and the like to the image processing controller 7 and external equipment 9. For example, data on the workpiece image generated by the imaging unit 2A shown in FIG. 2 is output to the image processing controller 7 via the interface unit 40c and the input / output terminal 60.
[0032] When the interface unit 40c receives a zoom instruction for, for example, optical zoom, the zoom control unit 40a controls the zoom motor 56c to move the second lens group 22 in the optical axis direction so as to achieve the zoom magnification received by the interface unit 40c.
[0033] The AF control unit 40b is a part that executes autofocus control of a conventionally known contrast method or phase difference method. The AF control unit 40b controls the focus motor 56f to move the fourth lens group 24 in the optical axis direction so that the focal position matches the workpiece W.
[0034] 2, the sensor board 30 is disposed behind the fifth lens group 25. An image sensor 31 is mounted on the sensor board 30. The image sensor 31 and the lens unit 20 constitute an imaging section 2A for generating a workpiece image.
[0035] The image sensor 31 has a light receiving surface composed of a number of light receiving elements, and specifically, as shown in Fig. 3, has a photoelectric conversion unit 31a that receives light collected by the first to fifth lens groups 21 to 25 of the lens unit 20, and an imaging control unit 31b that generates a workpiece image from an electrical signal converted by the photoelectric conversion unit 31a. The photoelectric conversion unit 31a is, for example, a CMOS type imaging element.
[0036] 3 is configured with, for example, a semiconductor memory. Imaging parameters are stored in the memory 39. The imaging parameters include at least one of the exposure time of the imaging unit 2A, the focus position of the optical system of the imaging unit 2A, the zoom magnification of the zoom optical system of the imaging unit 2A, and the gain of the imaging unit 2A.
[0037] When the imaging unit 2A generates a workpiece image, the imaging parameters stored in the storage unit 39 are reflected. The workpiece image generated by the imaging unit 2A is output from the input / output terminal 60 to the image processing controller .
[0038] The client device 8 is configured, for example, by a desktop personal computer, a notebook personal computer, or the like, and includes a control unit 80, a storage unit 81, a display unit 82, and an operation unit 83. The control unit 80 is configured, for example, by a central processing unit, a ROM, a RAM, or the like. The storage unit 81 is configured, for example, by a hard disk drive, a solid state drive, or the like. The storage unit 81 stores programs executed by the control unit 80, work images, various setting information, and the like. The control unit 80 is a part corresponding to a first control unit, and operates on the client device 8.
[0039] The operation unit 83 includes, for example, a keyboard 83a and a mouse 83b. The keyboard 83a and the mouse 83b are examples of members for operating the image inspection system 1A, and the operation states of the keyboard 83a and the mouse 83b are detected by the input unit 80a. The operation unit 83 is not limited to the keyboard 83a and the mouse 83b, and may be a so-called touch panel type operation unit. The display unit 82 is composed of, for example, a liquid crystal display device, and is controlled by the control unit 80 to display various setting screens, various images, etc. for setting the image inspection system 1A. A touch panel type operation unit can also be incorporated into the display unit 82.
[0040] The control unit 80 generates a setting screen on which the formula setting of the imaging parameters of the imaging unit 2A, the formula setting of the inspection parameters of the workpiece image, and the display setting of the inspection results can be set in cells on a worksheet, and causes the display unit 82 to display the inspection results according to the display settings set in the cells on the worksheet. Specifically, the control unit 80 generates a setting screen 100 as shown in FIG. 4. The setting screen 100 includes a palette area 101, a worksheet area 102, and a property area 103. The palette area 101 is an area for arranging multiple tools required for image inspection. Since four tools, an imaging tool, a positioning tool, an inspection tool, and an output tool, are required in image inspection, multiple tools including at least these four tools can be arranged in the palette area 101.
[0041] When placing a tool in the palette area 101, for example, a drag-and-drop operation can be used in which a tool on the setting screen 100 is selected using the operation unit 83, dragged, and dropped at any position in the palette area 101. By repeating such an operation, multiple tools can be easily placed at any position in the palette area 101. It is also possible to correct the position of a tool placed in the palette area 101. It is also possible to delete a tool placed in the palette area 101.
[0042] The imaging tool is related to the imaging settings of the camera 2, and may include, for example, tools related to image correction. The positioning tool is related to the positioning settings that position the inspection area for the workpiece image captured by the camera 2, and may include, for example, tools related to pattern search, edge detection, and blob processing. The inspection tool is related to the inspection settings that set the inspection details for the positioned inspection area, and may include, for example, tools related to presence / absence inspection, scratch inspection, dimensional measurement, and blob analysis (blob counting, etc.). The output tool is related to the output settings that set the output of the inspection results, and may include, for example, tools related to result output and image output.
[0043] In image inspection, the imaging process by the camera 2 is performed first, so the imaging tool can be placed at the most upstream position. After the imaging process by the camera 2, the positioning process of the inspection area is performed, so the positioning tool can be placed next to the imaging tool. After the positioning process, the inspection of the inspection area is performed, so the inspection tool can be placed next to the positioning tool. After the inspection process, the output process of the inspection results is performed, so the output tool can be placed at the most downstream position. In the example shown in FIG. 4, the inspection flow is set so that the most upstream of the image inspection is located at the top and the most downstream is located at the bottom, but the tool placement is not limited to this. In this way, the inspection sequence can be set in the palette area 101.
[0044] There is no restriction on the degree of freedom of layout position of tools within the palette area 101. Therefore, regardless of the program state, multiple tools can be placed at any position, which makes it easy to categorize tools according to the inspection points, for example.
[0045] The palette area 101 is also suitable for complex image processing. That is, the palette area 101 is configured to allow the setting of tools having program elements so as to be able to handle complex image processing. That is, the input unit 80a of the control unit 80 is capable of accepting inputs such as conditional branching, repetition, routines, routine schedules, and event issuance. The input conditional branching, etc. are reflected in the image inspection and are stored in the storage unit 81.
[0046] The worksheet area 102 has a plurality of cells and is an area for referring to and performing calculations on data related to a plurality of tools arranged in the palette area 101. The cells in the worksheet area 102 are arranged vertically and horizontally.
[0047] In the property area 103, parameters can be set as detailed settings of each tool arranged in the palette area 101. The parameters can be set via the operation unit 83. In one example of the procedure, the user operates the operation unit 83 to select a tool for which parameters are to be set from among a plurality of tools arranged in the palette area 101. The tool selection operation is accepted by the input unit 80a of the control unit 80. When setting parameters for the selected tool, the user operates the operation unit 83. This operation is also accepted by the input unit 80a, and the various input parameters are reflected and stored in the storage unit 81. In the property area 103, for example, the name of the tool can be input, whether or not it can be executed, and output data can be selected. The property area 103 may be provided as necessary, and may be omitted.
[0048] FIG. 5 is a diagram showing an example of input in the palette area 101 and the worksheet area 102. An imaging tool, an inspection tool 1, an inspection tool 2, and an inspection tool 3 are arranged in the palette area 101. Formulas are input in cells A2, A4, and B3 of the worksheet area 102. Inputting a formula into each cell is called formula setting. This formula setting includes formula setting of the imaging parameters of the imaging unit 2A, formula setting of the inspection parameters of the workpiece image, and the like. Furthermore, display setting of the inspection results can also be performed in the cells of the worksheet area 102. For example, display setting of the inspection results is performed in cells A1, B1, B2, etc.
[0049] Parameter 1 "A4" and parameter 2 "20.000" are set for the imaging tool in palette area 101. Parameter 1 "A4" refers to cell A4 in worksheet area 102, and the value derived from the formula entered in cell A4 is parameter 1 of the imaging tool. Parameter 1 "A2" and parameter 2 "30.000" are set for inspection tool 3 in palette area 101. Parameter 1 "A2" refers to cell A2 in worksheet area 102, and the value derived from the formula entered in cell A2 is parameter 1 of inspection tool 3.
[0050] The control unit 70 of the image processing controller 7 is configured to analyze the reference relationships between the imaging tools and inspection tools arranged on the palette area 101, and the cells on the worksheet area 102, and to automatically identify the mathematical operations set in the worksheet area 102 based on the analysis results. For example, since the blob analysis process needs to refer to the results of the edge extraction process, an analysis of the reference relationships is performed taking into account the execution order at the time of such inspection. If the edge extraction process is performed by the first inspection tool and the blob analysis process is performed by the second inspection tool, the inspection parameters of the second inspection tool, which is executed based on the inspection results of the first inspection tool, are included in the inspection parameters, and the execution order of the inspection tools can be appropriately set based on these inspection parameters.
[0051] When analyzing the reference relationship, the control unit 70 of the image processing controller 7 refers to the identification information assigned to the multiple tools arranged on the palette area 101, analyzes the dependency relationship based on the processing content of each identification information, and executes a sorting algorithm to determine the execution order of each tool when performing an inspection. As the sorting algorithm, a topological sort is preferably used, but is not limited to a topological sort. The dependency relationship may include a specific order in which the positioning tool is executed after the imaging tool, the inspection tool is executed after the positioning tool, and the output tool is executed after the inspection tool. In this case, the control unit 70 of the image processing controller 7 refers to which category the multiple tools arranged on the palette area 101 belong to, that is, the imaging tool, the positioning tool, the inspection tool, and the output tool. Then, the control unit 70 of the image processing controller 7 determines the execution order of each tool when performing an inspection based on the obtained category so as to maintain the order.
[0052] FIG. 6 is a diagram for explaining a first image inspection example. The inspection sequence of the first image inspection is composed of only one inspection tool 1. A parameter table for the inspection tool 1 is set in the worksheet area 102, and the parameters applied to the inspection tool 1 are switched for each type of work. For example, when the type number of the work is 1, the inspection tool 1 is executed by applying the parameter set 1 set in the worksheet area 102, when the type number of the work is 2, the inspection tool 1 is executed by applying the parameter set 2 set in the worksheet area 102, and when the type number of the work is 3, the inspection tool 1 is executed by applying the parameter set 3 set in the worksheet area 102.
[0053] 7 is a diagram for explaining a second image inspection example. The inspection sequence of the second image inspection is composed of three tools: inspection tool 1, inspection tool 2, and inspection tool 3. In the second image inspection, the results of the multiple inspection tools are arranged in a worksheet area 102, making the result list display customizable.
[0054] 8 is a diagram for explaining a specific example of image inspection when the workpiece W is a bearing, and is an example of performing dimensional inspection of the inner and outer diameters of the bearing. In the pallet area 101, an imaging tool 201, a positioning tool 202, a first circle detection tool 203 for detecting the inner diameter of the bearing, a second circle detection tool 204 for detecting the outer diameter of the bearing, and an output tool 205 are arranged, and these five tools 201 to 205 make up an inspection sequence.
[0055] The worksheet area 102 is provided with first to eighth areas 301 to 308. The first area 301 is an area in which parameters to be applied to the imaging tool 201 are input. The control unit 80 determines whether the current type of the workpiece W is type A or type B based on a signal input from the external device 9, and determines a parameter table corresponding to the determined type. The parameters of the determined parameter table are applied when the imaging tool 201 is executed.
[0056] The second area 302 is an area where parameters to be applied to the positioning tool 202 are input, and the positioning tool 202 performs a search for positioning by applying the parameters input in the second area 302. Specifically, an example of the inspection parameters includes information for identifying a position on the image coordinate system to which the inspection tools such as the first circle detection tool 203 and the second circle detection tool 204 are applied. The information for identifying a position on the image coordinate system includes the position x, the position y, and an angle, and based on these, it is possible to identify which part of the workpiece image is the application area (inspection target area) of the inspection tool. The first circle detection tool 203 and the second circle detection tool 204 perform circle detection for the inner diameter and circle detection for the outer diameter, respectively, after correcting the amount of positional deviation detected by the positioning tool 202.
[0057] The inspection parameters may also include a search area and search parameters of a positioning tool that searches the inspection target area. That is, before applying the first circle detection tool 203 and the second circle detection tool 204 to the inspection target area in the workpiece image, the positioning tool 202 searches for the inspection target area based on the search area and search parameters. The search parameters include, for example, rotation, translation, scale, etc.
[0058] In the third area 303, a formula is set for converting the outputs from the first circle detection tool 203 and the second circle detection tool 204 into actual size and accumulating the converted outputs. This formula setting corresponds to information regarding the cooperation of a plurality of inspection tools, and the information regarding the cooperation of a plurality of inspection tools is included in the inspection parameters.
[0059] Specifically, the amount of deviation between the central positions of the inner and outer diameters detected by first circle detection tool 203 and second circle detection tool 204, respectively, is calculated, and the detection results in pixels are converted to actual size (e.g., mm). Fourth area 304 is a display setting for the inspection results, and includes a setting for displaying the output from first circle detection tool 203 as a radius, and a setting for displaying the output from second circle detection tool 204 as a radius. The conversion results "Radius 1" and "Radius 2" are not output to external device 9, but are displayed as reference information. It is not necessary to display "Radius 1" and "Radius 2" on display unit 82.
[0060] In the fifth area 305, a formula is set for accumulating the number of times based on the judgment results for each predetermined time period (1 hour) and calculating the yield.
[0061] In a sixth area 306, a threshold determination is performed on the amount of deviation calculated from the output results of the first circle detection tool 203 and the second circle detection tool 204. The amount of deviation may be output to the external device 9 as byte data, and the result may be stored.
[0062] In the seventh area 307, the judgment result to be referred to by the output tool 205 is acquired. The judgment result is output to the external device 9 as bit data, and is used as judgment information when, for example, classifying good products and defective products. The good products and defective products acquired by the inspection process can be set as display settings, and thereby the good products and defective products can be displayed on the display unit 82. In the eighth area 308, a formula setting is set to draw a graph for displaying the calculation result of the yield in the fifth area 305. The display setting of this graph may be a graph display of the number of good products and the number of defective products acquired by the inspection process, and for example, a histogram or the like can be displayed on the display unit 82. In this case, the control unit 80 of the client device 8 acquires the display setting set in the cell on the worksheet, and causes the display unit 82 to display a graph using the inspection result by the inspection tool according to the acquired display setting. The display setting may also include a setting to display an inspected work image. This allows the inspected work image to be displayed on the display unit 82. Furthermore, in the image inspection system 1A of this embodiment, the fifth area 305 displaying the judgment results in a table format and the eighth area 308 displaying them in a graph can be used as part of a screen (operation screen) that displays the operating status during operation, and can be updated in real time. This makes it possible to visualize the on-site status, such as the production status, in real time. Since the high-load process of updating the display in real time is executed by the control unit 80 of the client device 8, the impact on the inspection process and the imaging process can be suppressed.
[0063] Furthermore, if a robot that transports the workpiece W is installed in a subsequent stage, the outer and inner diameters and the coordinates of the center position may be output and input to a robot control device. In this case, the control unit 70 of the image processing controller 7 also performs actual size conversion of the radius and coordinate calculation.
[0064] FIG. 9 is a diagram showing the procedure of the inspection process and the imaging process executed by the image processing controller 7, and shows the inspection / imaging flow and the worksheet calculation (calculation based on the formula setting set in the worksheet area 102) in correspondence with each other. When an instruction to execute a tool is received, before executing the tool, reference resolution of the parameters applied by the tool is performed. If the parameters refer to cells in the worksheet area 102, worksheet calculation processing is performed at the time of reference resolution, and the calculation result is stored as a parameter. Then, the tool is executed and the result is stored. At this time, only the cells referenced by each tool are subject to the worksheet calculation processing. Therefore, the calculation processing of the cells added for display is not executed. The cells added for display are, for example, the cells in the fourth area 304, the cells in the fifth area 305, and the cells in the eighth area 308 shown in FIG. 8. In this way, the control unit 70 of the image processing controller 7 can execute the imaging process by the imaging unit 2A, the inspection process of the workpiece image, and the formula calculation related to the imaging parameters and the inspection parameters set on the worksheet. The imaging calculation unit 70a is a part that executes mathematical calculations of imaging parameters, and the inspection calculation unit 70b is a part that executes mathematical calculations of inspection parameters. As described above, since the imaging calculation unit 70a and the inspection calculation unit 70b are provided, the mathematical calculations of imaging parameters by the imaging calculation unit 70a and the mathematical calculations of inspection parameters by the inspection calculation unit 70b can be executed in parallel, thereby increasing the processing speed. The control unit 70 is a second control unit, and is operated by the image processing controller 7 connected to the client device 8.
[0065] FIG. 10 is a diagram showing the procedure of a display update process (one example of a display process) executed by the client device 8. This display update flow is executed after the control unit 80 of the client device 8 receives a notification (inspection process completion notification) that the inspection process of the image processing controller 7 shown in FIG. 9 has been completed. When the control unit 80 of the client device 8 requests the image processing controller 7 to obtain a result, the image processing controller 7 transmits a result acquisition and the control unit 80 of the client device 8 receives it. When the control unit 80 of the client device 8 obtains the inspection result by the image processing controller 7, it performs calculation and display update processing of the worksheet area according to the contents of the obtained inspection result. All cells in the worksheet area are the objects of display and calculation. Therefore, cells that are not included in the objects of calculation by the image processing controller 7 shown in FIG. 9 are also updated in the flow shown in FIG. 10.
[0066] For example, in a certain inspection sequence, when the inspection tool 3 (shown in FIG. 7) is skipped, the cells in the worksheet area 102 referred to by the inspection tool 3 may not be calculated by the image processing controller 7, and thus nothing may be displayed on the worksheet. In this case, the cells referred to by the inspection tool 3 are not displayed even if they have the inspection results of the executed inspection tool 1 or inspection tool 2 or the results of calculations using the inspection results. Therefore, by making all cells the objects of calculation by the control unit 80 of the client device 8, the inspection results of the inspection tool 1 or inspection tool 2 and the results of calculations using the inspection results can be displayed (updated) on the worksheet. At this time, after the control unit 70 of the image processing controller 7 completes the execution of the imaging process and the inspection process, the control unit 80 of the client device 8 executes all the mathematical calculations set on the worksheet, generates a display screen reflecting the execution results of the mathematical calculations, and displays the display screen on the display unit 82.
[0067] The image processing controller 7 may notify the control unit 80 of the client device 8 of the inspection results after the entire inspection sequence is completed, or may notify the control unit 80 of the client device 8 of the inspection results for each inspection tool that has completed execution, even if the entire inspection sequence has not been completed.
[0068] When the inspection process includes a first inspection tool and a second inspection tool executed after the first inspection tool, the control unit 70 of the image processing controller 7 transmits a completion notification of the first inspection tool and the first inspection result of the first inspection tool to the control unit 80 of the client device 8 after the execution of the first inspection tool is completed, and starts a mathematical calculation of the inspection parameters of the second inspection tool. The control unit 80 of the client device 8 starts the execution of a display process using the first inspection result according to the display setting on the worksheet, thereby causing the display unit 82 to display a part of the inspection result. The display process by the control unit 80 of the client device 8 can be executed in parallel with the mathematical calculation by the control unit 70 of the image processing controller 7. In this way, the mathematical calculation of the inspection parameters and the display process using the inspection result can be executed in parallel by the different control units 70 and 80, so that the result display can be speeded up without affecting the inspection time.
[0069] (Second image inspection system) 11 shows the second image inspection system 1B during operation, which includes a camera 2 that captures an image of a workpiece W and performs inspection based on a workpiece image generated by capturing the image of the workpiece W, and a client device 8. The second image inspection system 1B may or may not include an external device 9, similar to the first image inspection system 1A.
[0070] In the case of the second image inspection system 1B, the inspection process is performed by the camera 2, so the camera 2 is a smart camera equipped with an image inspection function in addition to an image generation function. The configuration of the camera 2 is as shown in the block diagram of FIG. 3. The imaging process by the imaging unit 2A, the inspection process of the workpiece image, and the mathematical calculation related to the imaging parameters and the inspection parameters set on the worksheet are executed by the calculation unit 41a of the camera 2. Therefore, in the second image inspection system 1B, the calculation unit 41a of the camera 2 is the second control unit. The calculation unit 41a of the camera 2 operates in the same manner as the control unit 70 of the image processing controller 7 of the first image inspection system 1A.
[0071] In the above embodiment, the client device 8 including the first control unit and the controller or smart camera including the second control unit are separate devices. However, the first control unit and the second control unit may be configured to operate on a single integrated hardware (for example, a monitor-integrated controller). Specifically, the inspection process, the imaging process, and the display process may be shared and executed by different cores or threads with different priorities in the hardware. In addition, the controller or smart camera may be configured to execute cell calculations for display using a core or thread other than the core or thread that executes the inspection process and the imaging process, based on a display request from the display device.
[0072] (Effects of the embodiment) As described above, according to this embodiment, as shown in FIG. 5 and FIG. 8, when setting the image inspection systems 1A and 1B, the imaging parameters can be set in the cells on the worksheet as a formula, the inspection parameters can be set in the formula, and the inspection result can be displayed. This makes it easier for the user to understand the relationship between the imaging parameters and the inspection results when making the desired settings. When the image inspection systems 1A and 1B are in operation, the control unit 80 of the client device 8 executes a display process for displaying the inspection results on the display unit 82. On the other hand, the imaging process by the imaging unit 2A, the inspection process of the workpiece image, and the mathematical calculation related to the imaging parameters and the inspection parameters are executed by a control unit (the control unit 70 of the image processing controller 7 in the first image inspection system 1A, and the calculation unit 41a of the camera 2 in the second image inspection system 1B) different from the control unit 80 of the client device 8. In this way, the control units are separated, and the inspection process and the display process are executed by different control units, so that the inspection process is not delayed by the execution of the display process. This can speed up the entire inspection.
[0073] 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]
[0074] As described above, the image inspection system according to the present disclosure can be used when performing inspection based on a workpiece image obtained by capturing an image of a workpiece. [Explanation of symbols]
[0075] 1A, 1B Image Inspection System 2 Camera 2A Imaging unit 7 Image Processing Controller 8 Client Device 41a Calculation unit (second control unit) 70 Control section (second control section) 70a Imaging calculation unit 70b Inspection calculation unit 80 Control section (first control section) 82 Display section
Claims
1. An image inspection system that performs inspection based on a workpiece image obtained by imaging a workpiece, An imaging unit that captures an image of a workpiece and generates a workpiece image; a first control unit that generates a setting screen on which formula settings of imaging parameters of the imaging unit, formula settings of inspection parameters of the workpiece image, and display settings of inspection results can be set in cells on a worksheet, and causes a display unit to display the inspection results in accordance with the display settings set in the cells on the worksheet; An image inspection system comprising: a second control unit that performs imaging processing by the imaging unit, inspection processing of the workpiece image, and mathematical calculations related to the imaging parameters and inspection parameters set on the worksheet.
2. 2. The image inspection system according to claim 1, The first control unit operates on a client device, The second control unit operates in an image processing controller connected to the client device.
3. 2. The image inspection system according to claim 1, The second control unit is an image inspection system that analyzes the imaging process, the inspection process, and reference relationships between cells on the worksheet, and automatically identifies the mathematical operation based on a result of the analysis.
4. 2. The image inspection system according to claim 1, An image inspection system, wherein the imaging parameters include at least one of an exposure time of the imaging unit, a focus position of an optical system of the imaging unit, a zoom magnification of a zoom optical system of the imaging unit, and a gain of the imaging unit.
5. 2. The image inspection system according to claim 1, The inspection parameters include information specifying a location in an image coordinate system to which an inspection tool is applied.
6. 6. The image inspection system according to claim 5, The inspection parameters include a search region and search parameters of a positioning tool for searching the inspection target region.
7. 2. The image inspection system according to claim 1, An image inspection system, wherein the inspection parameters include information regarding coordination of multiple inspection tools.
8. 8. The image inspection system according to claim 7, The image inspection system, wherein the inspection parameters include inspection parameters for a second inspection tool that is performed based on inspection results of the first inspection tool.
9. 2. The image inspection system according to claim 1, An image inspection system, wherein the display settings include at least one of a display of pass / fail products obtained by the inspection process, a graphical display of the number of pass / fail products obtained by the inspection process, and a display of an image of a workpiece that has been inspected.
10. 2. The image inspection system according to claim 1, An image inspection system, wherein the first control unit causes the display unit to display a graph using the inspection results in accordance with display settings set in cells on the worksheet.
11. 2. The image inspection system according to claim 1, The second control unit is The imaging calculation unit and the inspection calculation unit are included. An image inspection system configured to be able to execute, in parallel, the mathematical calculation of the imaging parameters by the imaging calculation unit and the mathematical calculation of the inspection parameters by the inspection calculation unit.
12. 2. The image inspection system according to claim 1, the inspection process includes a first inspection tool and a second inspection tool that is executed after the first inspection tool; The second control unit is After the execution of the first inspection tool is completed, a completion notification of the first inspection tool and a first inspection result of the first inspection tool are transmitted to the first control unit, and a mathematical calculation of an inspection parameter of the second inspection tool is started; The first control unit is starting execution of a display process using the first examination result in accordance with the display setting; An image inspection system, wherein the display process by the first control unit is configured to be executable in parallel with the mathematical operation by the second control unit.
13. 2. The image inspection system according to claim 1, The first control unit is an image inspection system that, after the second control unit has completed execution of the imaging process and the inspection process, executes all mathematical operations set on the worksheet and generates a display screen that reflects the results of the execution of the mathematical operations.
Citation Information
Patent Citations
Spreadsheet-based user interface creation
US7107519B1
