WO1993001559A1 - Appareil et procede de determination ou de selection des conditions adequates d'eclairage et de prise de vues, notamment, dans un systeme de traitement d'images; et appareil et procede d'aide a la realisation de cette operation de determination ou de selection - Google Patents

Appareil et procede de determination ou de selection des conditions adequates d'eclairage et de prise de vues, notamment, dans un systeme de traitement d'images; et appareil et procede d'aide a la realisation de cette operation de determination ou de selection Download PDF

Info

Publication number
WO1993001559A1
WO1993001559A1 PCT/JP1992/000893 JP9200893W WO9301559A1 WO 1993001559 A1 WO1993001559 A1 WO 1993001559A1 JP 9200893 W JP9200893 W JP 9200893W WO 9301559 A1 WO9301559 A1 WO 9301559A1
Authority
WO
WIPO (PCT)
Prior art keywords
lighting
illumination
image
evaluation value
information
Prior art date
Application number
PCT/JP1992/000893
Other languages
English (en)
French (fr)
Inventor
Fumio Shibata
Hiroshi Teramoto
Toshihiko Matsumoto
Shiro Fujieda
Original Assignee
Omron Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corporation filed Critical Omron Corporation
Priority to KR1019930700721A priority Critical patent/KR970003328B1/ko
Publication of WO1993001559A1 publication Critical patent/WO1993001559A1/ja

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/506Illumination models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/145Illumination specially adapted for pattern recognition, e.g. using gratings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Definitions

  • the present invention provides an image processing system that captures an object under illumination by an illumination device using an imaging device, and processes image data obtained by the imaging.
  • the type of lighting equipment that is appropriate or optimal
  • the choice of the lighting method and the lighting method are determined, and the setting of the lighting device installation position, installation angle, luminous intensity, etc. are not determined, and the cameras and lenses that compose the imaging device are selected.
  • a visual inspection device or a positioning device captures an image of a recognition target using a television camera under illumination from a lighting device.
  • the obtained image data is taken into an image processing device and subjected to a binarization process.
  • Features such as the area and center of gravity of the object are measured based on the binary image data, and the quality of the object is determined and the position is determined.
  • a good binary image means that the edge of the object in the binary image is smoothly continuous, and is isolated noise (small white point or black point). ) Means images with few.
  • the optimum illumination condition is that the resulting binary image does not change due to the addition of some disturbance light ⁇ -.
  • the type of lighting equipment and lighting method are selected according to the purpose of inspection and so on. In the past, the guidelines for selecting lighting devices and lighting methods were not clearly organized. The choice of lighting equipment and lighting method was arbitrarily chosen by ⁇ 53 ⁇ 4 Ts.
  • the lighting conditions include not only the position and angle of the lighting device but also its luminous intensity as important factors.
  • the optimal lighting conditions for non-defective product inspection are those that can reliably determine good and defective products, that is, lighting conditions that increase the accuracy of discrimination.
  • the optimal lighting conditions for measurement are illumination that reduces the dispersion of the measured values, that is, measurement accuracy. It can be said that the increased lighting conditions are optimal.
  • the camera should be placed at a convenient location in the inspection system configuration, and the optimal level should be set so that a field of view suitable for the inspection purpose can be maintained. You need to select a lens. In other cases, it may be necessary to use a close-up ring to achieve the desired installation distance and field of view. How to properly set the installation distance and close-up ring to achieve the desired field of view under the restriction of using the current lens A solution to this problem may be required. Disclosure of the invention
  • the present invention does not require any skill, and it is not necessary to determine the lighting device and the lighting method, or to select the lighting device, and to determine the installation position of the lighting device, the installation angle, and the luminous intensity. Whether or not to determine the lighting conditions, the setting, the lens, the close-up ring, the type of camera, and the imaging conditions including the set distance of the camera are automatically determined or selected. Or semi-automatically.
  • This invention also evaluates and optimizes lighting and imaging conditions based on image data obtained by actually imaging the object. More specifically, if the purpose of the inspection is to check the non-defective product, it is necessary to determine whether the non-defective product and the non-defective product can be reliably determined. In other words, it is possible to set the lighting conditions from the viewpoint of obtaining a very small measurement value.
  • the present invention provides a lighting condition determination support device and method for deriving an appropriate setting position of a lighting device.
  • the lighting condition determination assisting device includes an input device for inputting information on a shape characteristic of an object, a storage device for storing information on characteristics of the lighting device, and an entry above. Based on the shape characteristics of the object input from the force device and the characteristics stored in the storage device with respect to the specified lighting device, a suitable An arithmetic device for deriving the set position of the lighting device that satisfies the requirement for photographing, and an output device for outputting the set position derived by the arithmetic device are provided. Yes.
  • the lighting condition determination support method includes a lighting device for illuminating an object, an image of the object under illumination by the lighting device, and a video signal representing the captured object.
  • the output imaging device and the video output from this imaging device In an image processing system including a processing device for performing image processing on an object by using a signal, information on a shape characteristic of the object is acquired and acquired. Based on the information about the shape characteristics of the object and the characteristics that have been set in advance for the specified lighting device, a suitable image of the object can be obtained. It derives the set position of the above lighting device that satisfies the above requirements and outputs the derived set position.
  • an appropriate setting position of the lighting device can be output only by inputting necessary information as described above.
  • the luminaire can be set to an appropriate position without skill.
  • the lighting device can be positioned by the user or automatically by using the position adjustment device of the lighting device.
  • the present invention provides a lighting condition determination support device and method for deriving an appropriate setting angle of a lighting device.
  • An illumination condition determination support device is an input device for inputting information on a shape characteristic of an object, and a lighting condition determination support device based on the shape characteristic of the object input from the input device. Then, the arithmetic unit that derives the set angle of the lighting device that satisfies the requirements for the appropriate photographing of the object, and the set angle that is derived by the arithmetic unit, is output. Output device.
  • the lighting condition determination support method includes a lighting device for illuminating an object, an image of the object under illumination by the lighting device, and a video signal representing the imaged object.
  • An image processing system comprising an imaging device for outputting, and a processing device for executing image processing on an object using a video signal output from the imaging device.
  • information on the shape characteristics of the object is captured, and based on the information on the shape characteristics of the captured object, information on the object is appropriately captured. It derives the set angle of the lighting device that satisfies the requirements, and outputs the derived set angle.
  • an appropriate setting angle of the lighting device can be output only by inputting necessary information as described above. Therefore, the lighting system can be set at an appropriate angle without skill.
  • the angle setting of the lighting device may be performed by the user, or may be automatically performed by using the angle adjusting device of the lighting device.
  • the present invention provides a lighting condition determination support device and method for deriving an appropriate lighting device type and lighting method.
  • the lighting condition determination support device provides an appropriate lighting device type in response to information on the lighting purpose and the difference in the optical properties of the eye and the background of the object.
  • Oyo Storage device that stores the lighting and lighting method in advance, an input device for inputting information on the illumination purpose and the difference in optical properties between the eye and the background of the object,
  • a processing device that derives an appropriate lighting device type and lighting method stored in the storage device according to the information input from the device, and the processing device. It has a display device that displays the type and lighting method of the appropriate lighting device derived by the method.
  • the lighting condition determination support method captures information on the illumination purpose and the difference in the optical properties between the eye and the background of the object, and conforms to the captured information. Select the type of lighting device and lighting method from those set in advance, and output the selected lighting device and lighting method in a visible form. It is a thing.
  • the present invention by inputting the inspection purpose, the difference between the optical properties of the eye and the background, and if necessary, the size of the field of view, Since the types and lighting methods of various lighting devices are derived, appropriate lighting devices and methods can be selected without requiring specialized experience and knowledge. In addition, if you are an expert, you can reduce the time required to determine the lighting equipment and method.
  • the present invention is a device for evaluating and optimizing lighting conditions based on real image data obtained by actually imaging an object, or for supporting the same. And methods are doing .
  • the position of the lighting device is adjusted.
  • the lighting condition setting support device is a lighting device for illuminating an object, a support device for supporting the lighting device so that its position can be adjusted, and an image of the object under illumination by the lighting device.
  • An imager that outputs a video signal representing an image of the object, and, based on the video signal output from the above-mentioned imager, indicates the degree of quality of the image with respect to brightness.
  • Image quality histogram generating circuit means for generating an image quality histogram, image quality histogram generated by the image quality histogram generating circuit means
  • Evaluation value calculation circuit means for calculating the evaluation value of the lighting based on the evaluation value, and the current evaluation value calculated by the evaluation value calculation circuit means is used for the previous evaluation before the position change of the lighting device.
  • Comparison circuit means for comparing with the value and the above comparison Output means for outputting the comparison result by the circuit means is provided.
  • the output means is a display device which indicates a position adjustment direction of the lighting device according to a result of comparison by the comparison circuit means.
  • the supporting device includes a driving device for changing a position of the lighting device.
  • the output means is a display device that indicates a position adjustment direction of the lighting device in accordance with a comparison result by the comparison circuit means. Then, a command for driving the above driving device is input. And a control device for controlling the driving device in response to a command input through the input device.
  • the support device includes a drive device for changing the position of the lighting device. Further, control means for controlling the driving device in accordance with the result of comparison by the comparing circuit means and adjusting the position of the lighting device to an optimum position is further provided.
  • a lighting condition setting support method includes a lighting device that illuminates an object, a support device that supports the lighting device in a position-adjustable manner, and an object under illumination by the lighting device.
  • an image processing system provided with an image pickup device that picks up an object and outputs a video signal representing an image of the target object, based on the video signal output from the above image pickup device.
  • An image quality histogram showing the degree of quality of the image with respect to the brightness is generated, and the illumination evaluation value is calculated based on the generated image quality histogram. This evaluation value is compared with the previous evaluation value before the position change of the lighting device, and the result of this comparison is output.
  • the illumination conditions are optimized so that a good image can be obtained based on the image data obtained by actually imaging the object. Therefore, the same good image can always be obtained even if the workers are different.
  • the worker adjusts the height of the lighting device manually while watching the displayed instructions, and in the second embodiment, the height of the lighting device is adjusted semi-automatically. .
  • the position setting of the lighting device is further facilitated, so that the work efficiency and the rationalization can be realized. .
  • the main part of the above-mentioned image quality histogram generation circuit means can be used as an edge image generation device.
  • the present invention provides an edge image generation device using image quality histogram generation circuit means.
  • An edge image generating apparatus captures an object, outputs an image signal representing a captured image, and outputs the image signal from the image capturing apparatus.
  • AZD conversion means for converting video signals into digital image data
  • image memory for storing AZD-converted digital image data for one screen
  • image memory for the above one screen
  • a window means for setting a window in image data and extracting pixel data for a plurality of pixels in the window, the above window
  • Means for calculating each of them means for calculating an edge-likeness evaluation value from the above-mentioned degree of matching, Have e Bei a good beauty above error Tsu di et al. And of all of the pixels in One have that control Ni Let 's cormorant row by means of one screen the calculation of the evaluation value of the O
  • a window is set for one screen of image data, and pixel data for a plurality of pixels in the window is extracted. , Generating data relating to the inclination of the image data in the window, and determining the degree of coincidence between the data relating to the inclination and a plurality of edge patterns. Each of them is calculated, an edge-likeness evaluation value is calculated from the degree of matching, and the edge-likeness evaluation value is calculated for all pixels of one screen. Since edge image data consisting of the above evaluation values is obtained, a good edge image in which good quality edges are emphasized can be generated. It is possible to eliminate effects such as noise.
  • a sample of an inspection or recognition (measurement) object is actually captured under illumination by a lighting device, and image data obtained by the captured image is obtained. Inspection or recognition (measurement) of the sample is actually performed based on the inspection conditions, and the evaluation of the inspection or recognition results in determining the lighting conditions (for example, the lighting device). It provides equipment and methods for optimizing light intensity.
  • the lighting condition setting support device sequentially supplies a plurality of samples of good and defective products to a predetermined observation position.
  • the sample supply device to be supplied, the illumination conditions for illuminating the sample at the above observation position, the illumination device with variable lighting conditions, and the observation device were brought to the observation position by the above supply device.
  • An imaging device that captures images of non-defective products and defective products under illumination by the illumination device described above, and outputs a video signal representing the sampled image.
  • a feature quantity measuring means for measuring the feature quantity of each sample based on the output video signal, and a non-defective product based on the feature quantity measured by the feature quantity measuring means.
  • a lighting device with variable lighting conditions for illuminating a predetermined observation position is arranged, and a plurality of non-defective and defective products are sent to the observation position.
  • Samples of non-defective products and non-defective products supplied to the observation position are sequentially taken under the illumination of the above lighting device, and based on the video signal obtained by the imaging.
  • the feature value of each sample is measured by using this method, and based on the measured feature value, an evaluation value related to the accuracy of discriminating a good product from a bad product is calculated. However, the evaluation value is obtained for each lighting condition, and the lighting condition with the best evaluation value is searched.
  • An illumination condition setting support device includes a sample supply device that sequentially supplies a plurality of samples to a predetermined observation position, and an illumination condition variable illumination device that illuminates the sample at the observation position. Of each sample brought to the above-mentioned observation position by the above-mentioned lighting device and the above-mentioned lighting device, and the video signal representing the sampled image is taken under the illumination by the above-mentioned lighting device.
  • Device that outputs the image characteristic amount measuring means that measures the characteristic amount of each sample based on the video signal output from the above image capturing device, and measurement by the above characteristic amount measuring device.
  • the lighting condition setting support method includes a method of arranging an illuminating device ′ with variable lighting conditions for illuminating a predetermined observing position, sequentially supplying a plurality of samples to the observing position, and Each sample supplied to the position is imaged under the illumination of the lighting device, and based on the video signal obtained by the imaging. The features of each sample are measured, the variance of the features of all the measured samples is calculated, and the lighting conditions of the above lighting device are changed while changing the lighting conditions. The variance is calculated, and the lighting condition that minimizes the variance is searched.
  • a sample of an object to be measured is actually imaged, and the features of the sample are actually measured using image data obtained by the imaging.
  • the lighting conditions that reduce the variance of the measured quantities are reduced, the dispersion of the measured values is reduced, and high-precision measurement is always possible. It becomes.
  • the above-mentioned sample supply device is constituted by a rotating table on which each sample is placed and a driving device for rotating the rotating table. Therefore, it is possible to simplify the configuration and save space.
  • the present invention provides a photographing condition determination support device for determining an appropriate photographing condition by a camera in which a lens and a necessary close-up ring are attached and detached. .
  • This device has at least two of the following: camera field-of-view information, camera installation distance information for the object to be shot, lens information, and close-up ring information.
  • An input device for inputting the information of the above, an arithmetic device for calculating the remaining information using at least two pieces of information input from the input device, and the arithmetic device for calculating the remaining information
  • a display device is provided for displaying the above-mentioned remaining information represented by the calculation result by the device. 6
  • At least one of the information of the camera's field of view, the information of the installation distance of the camera to the object to be photographed, the information of the lens, and the information of the close-up ring is used.
  • the remaining information is calculated and displayed, so that the appropriate lens, close-up ring, The camera installation distance can be selected or determined.
  • the object is evaluated under each of a plurality of types of imaging conditions. It is not possible to calculate the evaluation value of the imaging conditions based on the image data obtained by the actual imaging, and to perform the evaluation based on this evaluation value. Not bad.
  • Figures 1 to 6 show examples of lighting devices.
  • FIG. 1 is a perspective view showing a ring fluorescent lamp.
  • FIG. 2 is a perspective view showing a straight tube fluorescent lamp.
  • FIG. 3 is a perspective view showing a ring / light guide.
  • Fig. 4 is a perspective view showing the slit light guide.
  • Fig. 5 is a perspective view showing the straight light guide Is
  • Figure 6 is a perspective view showing the bifurcated light guide.
  • FIG. 7 to 11 show examples of lighting methods.
  • Figure 7 shows the transmitted light illumination
  • Figure 8 shows uniform light illumination
  • Figure 9 shows coaxial epi-illumination.
  • Figure 10 shows collimated light illumination.
  • Figure 11 shows darkfield illumination
  • Fig. 1 shows the overall configuration of the image processing system.
  • Fig. 13 shows another example of an image processing system.
  • Figure 14 is a block diagram showing the configuration of a lighting condition determination support device suitable for supporting the determination of the optimum height of a lighting device.
  • Figure 15 shows an example of the display of the determined optimal height on the display device.
  • Figures and Fig. 2 are intended to explain how to determine the optimal installation height of the lighting equipment.
  • Fig. 18 shows C, which shows the illuminating device and its illuminance curve of the illuminating light.
  • Figure 19 is a graph showing the relationship between the radius of the area illuminated at equal illuminance and the installation height of the lighting device.
  • Figure 20 shows the flow of the optimal height determination process. It is a chat.
  • Figure 21 shows yet another example of an image processing system.
  • Fig. 5 is a perspective view showing the shape of the object and the positional relationship between the object and the lighting device.
  • Fig. 5 is a block diagram showing the configuration of the lighting condition determination support device suitable for supporting the optimal angle determination.
  • Figure 24 illustrates the method for determining the optimal installation angle of a lighting device.
  • FIG. 2g is a flow chart showing the procedure of the optimum angle determination processing.
  • the ⁇ figure Ru Oh In-flops lock diagram showing the configuration of the suited to the support of the decision of the lighting device your good beauty method of illumination lighting conditions determination assisting device Q
  • FIG. 5 is a perspective view showing the appearance of a connection as an example of an object.
  • FIG. 29 is a flow chart showing the overall procedure for determining the lighting device and the lighting method.
  • Fig. 30 is a flow chart showing the processing procedure for determining the lighting equipment and the lighting method for the purpose of inspecting the shape and dimensions. .
  • Figure ⁇ ⁇ shows the processing procedure for determining the lighting equipment and lighting method for the purpose of inspecting the presence or absence of parts and missing parts.
  • Fig. 2 is a flowchart showing the procedure for determining the lighting and the lighting method for the purpose of inspecting the wound.
  • Fig. 2 is a flowchart showing the processing procedure for determining the lighting device and the lighting method for the purpose of color inspection.
  • Fig. 34a and Fig. 34b are flow charts showing the lighting equipment and the processing procedure for determining the lighting method for positioning purposes. It is.
  • Fig. 35 is a front chart showing the procedure for determining the HS lunar equipment and lighting method for the purpose of inspecting foreign substances.
  • Figure 1 is a flowchart showing the procedure for determining the lighting device and the lighting method of the mouth for the purpose of inspecting characters and marks.
  • Figure ⁇ shows a display example of a screen for transmitted light illumination
  • Figure ⁇ shows a display example of a screen for uniform light illumination.
  • Fig. 2 shows a display example of a screen for illuminating projections and depressions.
  • Fig. 4 ⁇ shows a display example of a screen for illumination of concave and convex holes.
  • Fig. 41 shows a display example of a concave / convex edge illumination screen ⁇ ⁇
  • Fig. 42 shows a display example of a concave / convex line illumination screen ⁇
  • FIG. 44 shows a display example of a screen for lighting using specular reflection.
  • Fig. 44 shows the determination of the lighting device and lighting method
  • FIG. 4 is a block diagram showing a configuration of a device suitable for supporting determination of an optimum height or an optimum angle.
  • Fig. 45 is a flow chart showing the lighting device and lighting method, and the entire process of determining the optimum height or optimum angle.
  • Fig. 46 is a flow chart showing the procedure for determining the optimum height when there are multiple lighting devices.
  • Fig. 47 is a block diagram showing the circuit configuration of the image processing device in the optimal lighting condition setting support device.
  • FIG. 48 is a block diagram showing a circuit configuration of the histogram generating circuit.
  • Fig. 49 is a block diagram showing the circuit configuration of the nonconformity calculation unit.
  • Fig. 50 shows the window set on the image.
  • FIG. 51 is for explaining the operation of the subtraction circuit for converting the brightness data into the data representing the brightness difference.
  • Fig. 52a and Fig. 52h show a fuzzy model representing the edge pattern.
  • Figure 53 is a graph showing the membership function.
  • Fig. 54 is a graph showing the image quality histogram.
  • Figure 55 is a graph showing the relationship between the installation height of the lighting equipment and the evaluation value of the lighting.
  • FIGS. 56 and 57 are flow charts showing the procedure for setting the height position of the lighting device.
  • FIGS. 58 to 60 show display examples of the display screen indicating the height setting.
  • FIGS. U and 62 are flow charts showing another example of the height position setting processing of the lighting device.
  • Figs. 64 are flow charts showing still another example of the height position setting processing of the lighting device.
  • Figures 65a to 65h show other fuzzy models representing edge patterns.
  • Figures 66a and 66b show how an edge image is generated from a gray image.
  • Fig. 6 shows the overall configuration of the automatic inspection equipment.
  • Figure U shows the overall configuration of the optimal lighting condition setting support device.
  • FIG. 5 is a plan view showing the arrangement of the samples on the rotating table.
  • FIG. 70 is a block diagram showing a circuit configuration example of the image processing apparatus.
  • FIG. 5 is a flow chart showing a processing procedure for determining an optimum lighting condition of the lighting device.
  • FIG. 2 shows the overall configuration of the optimal lighting condition setting support device.
  • FIG. 5 is a plan view showing the arrangement of the sample on the rotating table.
  • FIG. 5 is a block diagram showing the configuration of the imaging condition determination support device.
  • Fig. 75 is for explaining the camera and lens parameters.
  • FIG. 5 is a flowchart showing a processing procedure for supporting the determination of the imaging conditions.
  • FIG. 5 is a flow chart showing another processing procedure for supporting the determination of the imaging conditions.
  • FIG. 7 is a display example showing the selected imaging condition.
  • the main lighting devices (light sources) used in image processing systems are fluorescent lamps and halogen lamps.
  • Fluorescent lamps are broadly divided into ring-type and straight-tube types based on their shapes, and those with various dimensions are commercially available.
  • FIG. 1 shows a ring-type fluorescent lamp 11.
  • FIG. 2 shows a straight tube type fluorescent lamp 12.
  • the light source called the halogen lamp power or the light power guide is used. It is guided to the light irradiating part by using an inverter.
  • an inverter There are various types of light irradiating parts such as a ring type, a slit type, a straight type, and a bifurcated type, which are commercially available. There is a shot o
  • FIG. 3 shows a so-called ring light guide 13 having a ring-type light irradiation section.
  • a large number of optical fibers 17 are bundled, and the light irradiating section is constituted by the fact that their tips are arranged in a ring shape. .
  • FIG. 4 shows a lighting device 14 called a so-called slit ring guide.
  • the light irradiating section is constituted, which is suitable for generating slit light.
  • FIG. 5 shows a lighting device 15 that projects light having a circular cross section from the tip end where a large number of optical fibers 17 are bundled, and is a straight light gauge. It is called Eid.
  • the lighting device 1 shown in Fig. 6 is divided into two fluxes of the optical fiber 17 and the light with a circular cross section is projected from each end. It is done. This is called a two-branch light guide.
  • the slit light guide 14, the straight light guide 15 and the bifurcated light guide 1 J It is suitable when the size is narrow.
  • Ring fluorescent lamp 1 1 (Fig. 1)
  • Straight tube fluorescent lamp 1 2 (Fig. 2)
  • Fig. 7 to Fig. 11 show the various lighting methods shown below.
  • the transmitted light illumination (Fig. 7) irradiates the light from the light source 10 from below the diffuser 29 on which the object ⁇ B is placed.
  • an imaging device for example, a CCD television or a camera
  • the camera 2G is located at a location other than the area occupied by the object 0B. Then, an image is formed by the light transmitted through the diffusion plate 29.
  • —Same light illumination (Fig. 8) irradiates the same object at the place where the camera 20 is placed ⁇ Light with a uniform intensity distribution from above B to the object 0B It is something.
  • the illuminating light is depicted as a parallel light, but it does not have to be a parallel light. Uniform light illumination is also called uniform illumination
  • a no-flip mirror tilted at approximately 45 ° is placed between the camera 20 and the object 0B. .
  • Light is applied to the half mirror 28 from the lateral direction, and the light reflected by the mirror 28 is applied to the object 0B.
  • the light reflected by the object OB and transmitted through the half mirror ⁇ enters the camera 20.
  • Coaxial epi-illumination means illumination as if the illuminating light is emitted from a camera 2G as an imaging device.
  • Parallel light illumination is a method of irradiating parallel light to the object 0B.
  • Fig. 1G parallel light is irradiated on the object OB from diagonally above. This is called collimated lighting.
  • the object O B may be irradiated with parallel light from above vertically.
  • the background B G on which the object 0 B is placed is composed of a substance that generates diffuse reflection. As a result, both the object 0 B and the background BG appear bright to the camera 20.
  • a background BG with a mirror surface or a surface close to it is used. Illumination light is emitted from obliquely above. The reflected light (diffuse reflected light) from the object 0 B is incident on the camera 20. Since the diffuse reflection light from the background BG is very small, the background BG is dark for the camera 2Q.
  • An object is illuminated by a lighting device, an image of the illuminated object is imaged by an imaging device, and image data for various inspections and the like is obtained by using the image data obtained thereby.
  • image processing system that performs processing, we explain a supporting device for determining the optimal height of the lighting device for the object.
  • Fig. 12 shows the overall configuration of the image processing system including the optimal height determination support device.
  • the image processing system includes a lighting device 11 for illuminating the object 0B, a television camera 20 as an imaging device for imaging the object OB, and an image processing device 40. It contains.
  • a ring fluorescent lamp shown in Fig. 1 is used, and the object 0B is illuminated from directly above it.
  • the center of the ring of the fluorescent lamp ⁇ is located directly above the object 0B.
  • Let h be the distance between the lighting device 11 and the object 0B, that is, the height of the lighting device 11 relative to the object OB.
  • a ring / light guide 13 shown in FIG. 3 can be used.
  • the lighting device 11 is vertically supported by a support 30 and a supporting device 31.
  • the support device 31 is provided with a grip portion ⁇ of the lighting device 11, and a sliding portion 33 fixedly connected to the grip portion 32 via an arm.
  • the sliding portion 33 is a cylindrical body, and the column 30 penetrates through the bore of the cylindrical body so as to slide itself. are doing . Therefore, the sliding part 33 is vertically supported by the column 3Q.
  • a stopper 34 such as a stop screw, a stop bolt, etc. is provided on the sliding part 33, and the sliding part ⁇ is provided with this stopper.
  • the lighting device 11 is manually adjusted to an arbitrary height and fixed.
  • the camera 20 as an imaging device is arranged at a position directly above the object 0B with the center of the imaging coincident with the center of the ring of the lighting device 11 and facing downward. Then, the object 0B is imaged from above under illumination by the illumination device 11. In order to avoid complicating the drawing, the support device of the camera 20 is not shown.
  • the camera 20 is fixedly supported by a support device. Needless to say that the camera 20 can be supported by the vertical movement itself.
  • a video signal representing the object 0B photographed by the camera 20 (a video signal of a monochrom is sufficient, but a power-color video signal.
  • the image processing device 40 is preferably composed of a combination device and a system, and has a function as a lighting condition determination support device described later.
  • the image processing device 40 has a CRT display device 41.
  • the display device 41 displays an image of the object 0B photographed by the camera 20 and displays the image determined by the image processing device 4Q.
  • the optimal height hp of the lighting device 1 1 is displayed as shown in Fig. 15 The user is notified of the optimum height hp.
  • Fig. 3 shows another example of the image processing system.
  • the same components as those shown in Fig. 12 are denoted by the same reference numerals, and duplicate description will be avoided.
  • the lighting device 11 is automatically moved up and down by a command from the image processing device 4Q, and is positioned at the optimum height hp.
  • the elevating mechanism ⁇ of the lighting device 11 includes a rack 35 fixed to the sliding portion ⁇ and a pinion 36 that fits into the rack 35.
  • the pinion 36 is rotatably supported by a fixed bearing (not shown).
  • the pinion ⁇ is also rotationally driven by a loose motor ⁇ .
  • the device 4 (I can rotate the motor ⁇ in the forward or reverse direction so that the lighting device 11 is at this height hp). Since the motor 37 rotates by the specified rotation amount, the lighting device 11 is moved up and down via the pinion 36 and the rack 35, and the optimum height h is obtained. It is positioned at the position of p.If necessary, a lock mechanism is installed on the elevator structure or motor, and the lighting device 11 is held at the optimum height position.
  • FIG. H shows a configuration of a lighting condition determination support device suitable for supporting determination of an optimum height of the lighting device 11.
  • the lighting condition determination support device 50 includes a user machine interface interface 53 and an optimum height determination unit 54. These components 53 and 54 are included in the image processing device 40. There
  • Input device ⁇ is composed of keyboard, light pen, mouse, etc.
  • the output device 52 includes the above-mentioned CRT display device "and a panoramic monitor ⁇ .
  • the user can use the user machine interface 53 to operate the device.
  • the user operates the input device 51 in accordance with the menu, instruction, mark, force console, and the like displayed on the display device 41, and interactively inputs various data and information. Make the input.
  • the optimum height hp determined by the optimum height determination unit 54 is displayed on the display device 41 (output device 52) or used as a command to the motor 37, as described above. It is.
  • the optimum height determination unit 54 is preferably a CPU that operates with the power specified in the program, as well as the data, base, and input described later.
  • O is composed of memory that stores various data.
  • Fig. 16 to Fig. 19 show the annular illumination for the object 0B with the annular groove (marked part) g formed on the surface.
  • the optimal installation height hp is the object of the lighting device 13 for obtaining the lighting such that the groove g is dark and the surface of the object 0B other than the groove g is uniformly lit.
  • the height relative to object 0 B When the lighting device 13 is installed at a very high position as shown in Fig. 16, the light from the lighting device 13 reaches the bottom of the groove g. Therefore, a part of the bottom surface of the groove g is illuminated, and the groove g does not become dark.
  • the lighting device U when the lighting device U is lowered to a height below a certain upper limit value hi, the illuminating light reaches the bottom of the groove g, as shown in Fig. III.
  • the groove g is darkened. Therefore, the condition of the height h of the illuminating device 13 for obtaining the illumination state in which the groove g becomes a dark portion is given by h ⁇ h1.
  • the upper limit h 1 is expressed by the following equation.
  • W where d is the depth of groove g, W is the width of groove g, R1 is the distance from the center of the visual field to the center force of groove g, the distance from the farthest edge to the furthest edge, and R2 is the lighting device. This is a radius of 13.
  • FIG. 18 shows an iso-illuminance curve of the ring light guide lighting device 13.
  • the radius R of the area to be illuminated at equal illuminance is the vertical distance from the illuminator 13, that is, the installation height of the illuminator 13.
  • Fig. 19 shows the relationship between the radius R of the area illuminated at equal illuminance and the installation height h of the illuminator 13.
  • R 0 be the radius of the 20 field of view (the area that illuminates the object).
  • Fig. 19 the radius of the area illuminated at equal illuminance
  • the installation height h of the illumination device 13 is h 0. Therefore, in order to illuminate the part other than the groove g brightly and uniformly, the lower limit of the installation height h of the illuminating device 13 may be set to h0. This condition is h ⁇ h 0 and O o
  • the optimal installation height hp of the lighting device ⁇ can be determined within the range h0 ⁇ p ⁇ hl.
  • information on the radius R2 and the isoluminous curve for each type of lighting device is stored as a database. ing .
  • Fig. 2G shows that the groove g of the object 0B having the groove g described above is taken as a dark part, and the surface other than the groove g of the object 0B is taken as a uniform bright part. This shows the procedure of the optimum height determining process of the lighting device, which is executed by the optimum height determining unit 54.
  • the depth d and width W of the groove g and the distance R1 from the center of the visual field to the furthest edge of the groove g are input as information on the geometric characteristics of the object 0B.
  • the device 51 is manually operated by the user by the user.o
  • the radius R 0 of the field of view of the imaging device 13 is input. It is entered by the user through the device (step 201). Since the field of view radius R 0 must be at least equal to the radius of the object OB or half the length of its diagonal, this is one of the characteristic features of the object 0 B. You can also enter it.
  • the radius R2 of that illuminator is read from the data base.
  • the lower limit value h O of the height is derived from the data and the base relating to the iso-illuminance curve of the illuminating device, using the already input visual field radius R 0. (Step 2 Q 2) o
  • Step 2 the calculation of Eq. (U) is performed to calculate the upper limit value h i of the installation height of the lighting device (Step 2). It is determined whether or not the calculated upper limit value h1 is equal to or greater than the lower limit value h0 (Step 2Q4).
  • the optimum height can be determined. Then, the average value of the lower limit value hO and the upper limit value hi is calculated as the optimum installation height hp of the lighting device using the equation (2) (step 205). h_0 + h 1
  • the calculation of the optimum height hp is not limited to the formula (2), and it is difficult to select the height hp that satisfies hO h ⁇ h as the optimum one.
  • optimum height h p that has been determined is Ru are output and through the output equipment 5 2 (scan STEP 2 Q 6).
  • a message image as shown in Fig. 15 to inform the user of the optimum installation height hp of the lighting device is displayed on the display device 41. It is.
  • the motor ⁇ is driven based on the optimum height hp, and the lighting device is automatically positioned at the height hp.
  • a message indicating that the optimal height hp is not obtained is displayed on the display device 41 (step 2). ).
  • Fig. 21 shows the overall configuration of the image processing system including the optimal angle determination support device.
  • a slit light guide 14 shown in FIG. 4 is used as a lighting device.
  • the illumination device 14 is held in a horizontal position in the longitudinal direction, and is arranged so as to irradiate the object BB with illumination light obliquely from above.
  • the straight tube fluorescent lamp 12 shown in Fig. 2 can be used. O
  • Fig. 21 the same thing as that shown in Fig. 12 is the same Assign a sign to avoid duplicate explanations.
  • the gripping portion 32A of the lighting device 14 is held by the sliding portion 33 in a tilting position, and the direction of the lighting device 14 is manually set at an arbitrary angle and fixed. Wear .
  • a mechanism for automatically moving the sliding part 33 up and down, and automatically positioning the gripper ⁇ at an arbitrary angle It is also possible to set up a mechanism so that the height and angle can be automatically set in response to a command from the image processing device 40.
  • FIG. 22 shows an example of the object OB.
  • the target object 0B is a plate-like body, and has a linear groove G extending in the longitudinal direction on the surface thereof.
  • FIG. 5 shows the configuration of a lighting condition determination support device suitable for supporting the determination of the optimum installation angle of the lighting device 14.
  • an optimum angle determination unit 55 is provided instead of the optimum height determination unit 54.
  • Other configurations are the same as those shown in Fig. H.
  • Figures 24 and 25 show the optimal values for the installation angle of the lighting device 14 (slit, light, and guide lighting device) for the object OB having the groove G. O shows how to set
  • the optimal installation angle 0 of the lighting device 14 is such that the groove G of the object OB is a dark part and the other surface part is a bright part. It's about getting lighting.
  • the width of the groove G is S and the depth of the groove G is t, the relationship of Eq. (3) must be satisfied.
  • the angle 6> is the angle between the light ray (optical axis) from the illumination device 14 and the horizontal plane, and O ta ⁇ « (3)
  • the light incident on the object is incompletely diffusely reflected as shown in Fig. 25.
  • the intensity of the specular reflected light equal to the incident angle is the strongest, and the intensity of the reflected light decreases as the angle deviates from the specular angle.
  • the groove incident on the imaging device 20 is required. It is necessary to increase the intensity of the reflected light from parts other than G. 0
  • the imaging device 20 is installed directly above the object 0 B or at a position close to it.
  • the installation angle ⁇ of the illumination device 14 can be 90 degrees. It is better to be close. From this, the optimal installation angle ⁇ of the lighting device 14 is given by equation (4).
  • the user inputs data on the width S and the depth t of the groove G of the object OB from the input device 51 (step 211).
  • the calculation of equation (4) is performed, and the optimum installation angle p of the lighting device 14 is calculated (step 212).
  • the calculated optimum installation angle Sp is output from the output device 52 (step 2U). For example, on the screen of the display device 41, a message image (not shown) for notifying the user of the optimum installation angle Sp of the illumination device 14 to the user. Is displayed.
  • the inventors examined in detail what lighting equipment power and what lighting method were used to examine what and how, and examined the following three. We learned that an appropriate lighting device and lighting method can be determined based on the factors. In other words, there are three factors: (1) the purpose of the inspection, (2) the difference in optical properties between the eye and the background, and (3) the size of the field of view.
  • the lighting equipment and lighting method should be based on factors 1 and 3 above. A decision can be made. More strictly, based on the difference in the optical properties (transmittance, reflectance, reflection direction, color, etc.) of the eye and the background of factor (1), the lighting device and the lighting are determined based on which difference It is also important to decide on a method. This is because the eye and background to be inspected generally do not differ only in one of transmittance, reflectance, reflection direction, and color. .
  • FIG. 5 shows an example of the configuration of a lighting condition determination support device suitable for supporting the determination of a lighting device and a lighting method.
  • the deciding unit 54 or 55 is replaced by a deciding unit 56 for lighting equipment and a lighting method. Yes.
  • Fig. 28 shows the appearance of two connectors as an example of the inspection object (work). This connector will be referred to later in the concrete example of determining the lighting device and lighting method.
  • Fig. 29 shows the overall procedure of the process for determining the lighting device and lighting method by the lighting condition determination support device 50.
  • the display screen of the display device 41 was used by the user. Through the dialog, from the input device 51, (1) When the inspection purpose is input, the processing shown in FIGS. 30 to 36 is performed according to the input inspection purpose. You will jump to either one (step 221). The relationship between the inspection purpose and these processes is as follows.
  • a lighting device suitable for the size of the field of view is displayed, as can be seen from the side of the display screen shown in Figs.
  • the user can determine the lighting device without inputting the size of the visual field.
  • the difference in the optical properties between the focused part of Factor I and the background. are sequentially asked on the screen of the display device 41, and the user receives an answer to the question.
  • the difference in the optical properties between the optimal eyedrop portion and the background to be focused on for inspection is derived (step 22).
  • the lighting device and the lighting method are determined according to the result (Step 222).
  • the user finally decides on the lighting device and the lighting method from among several combinations of the lighting device and the lighting method shown on the displayed screen. You have to decide on the lighting method.
  • step 2 In the determination process for the purpose of inspecting the shape and dimensions shown in Fig. 30, it is first asked whether or not the shield inspection is possible (step 2). 3 1). If the user inputs a response to the effect that it is possible, it is the best to look at for the inspection. 2 The difference between the optical properties of the spot and the background is transmittance.
  • the screen for transmitted light illumination shown in Fig. 5 is displayed on the display device 41 (step 2 32) o
  • This screen for transmitted light illumination indicates that the transmitted light illumination shown in Fig. 7 is suitable if a shield inspection is possible.
  • transmitted light illumination there are two types: the illuminator, the object, and the force camera, which are arranged horizontally, and the illuminator, the object, and the force camera, which are arranged vertically (the arrangement shown in Fig. 7).
  • an appropriate illuminator is displayed according to the size of the field of view. The user will select one of these displayed lighting devices according to the size of the field of view.
  • is the diameter of the ring type lighting device
  • (see Fig. 38) is the diameter of the linear lighting device. The length is indicated.
  • the display device 41 When the user inputs that the slit inspection is not possible, the display device 41 then asks the user whether or not the color of the eye and the background are similar. Appears (step 2 33). If the color of the background and the background is not similar, the differences that should be focused on are color and reflectance. Then, the screen for uniform light illumination shown in Fig. 2 is displayed (Step 4).
  • the screen for uniform light illumination indicates that uniform light illumination (Fig. 8) is appropriate and that the type of illuminator that is appropriate for various visual field sizes in uniform light illumination is displayed. It is done.
  • the sheath inspection is not possible and the color of the eye and the background are similar, the difference to be seen is the direction of light reflection. Then, it is asked whether there is a projection or a hole in the joint (steps 23, 23).
  • the uneven projection illumination screen shown in Fig. 39 (the screen for the illumination with the projection on the uneven surface) is displayed. Step 2 36).
  • the appropriateness of parallel light illumination (Fig. 1) and the type of illuminator used for this parallel light illumination indicate the size of the field of view. It is displayed every time ⁇ .
  • the concave / convex hole illumination screen shown in Fig. 40 (for illuminating the hole in the concave / convex hole) is displayed. (Step 238). On this screen, depending on the purpose or location of the inspection, parallel light illumination or Four
  • the uneven projection illumination screen shown in Fig. 41 is displayed (step 239).
  • the type of illuminator corresponding to the size of the field of view and the size of the field of view are displayed.
  • Step 24 1 For the purpose of the inspection shown in Fig. 31 for the presence or absence of parts and for missing parts, whether or not a shellet inspection is possible (Step 24 1) )
  • the color of the part and the color of the base (the main body on which the part is mounted) and the power (whether or not they are similar (step 2 43)) are sequentially passed through the display device 41. Asked.
  • Illumination using specular reflection includes collimated light illumination (Fig. 1D) and dark field illumination (Fig. 11). The user can see the illumination method and field of view displayed on this screen. Lighting equipment can be selected according to the size of
  • FIGS. 32 to 36 The processing shown in FIGS. 32 to 36 is almost the same as that described above, and the contents of the processing can be understood from these drawings. Let's go. To explain a little about the concave-convex line illumination screen in Fig. 42 that has not been mentioned yet, In the case of lighting shown in Fig. 32 for the purpose of flaw inspection, when the slit inspection cannot be performed and the direction of the flaw cannot be specified (step 25 1 , 253 is displayed as NO). It is appropriate to use parallel light illumination to properly image the flaws (thin line-shaped irregularities) formed on the surface of the target object, and the size of the field of view depends on the size of the field of view. It indicates that you should choose a slit light guide or a straight tube fluorescent light.
  • the predetermined question and the user's answer to the predetermined question are repeated through the display device 41 and the input device 51 according to the purpose of the inspection. It is judged whether there is a difference in the optical properties between the optimal joint and the background to be focused on for the intended inspection, and based on the result of the judgment. The appropriate lighting equipment and lighting method will be determined.
  • the purpose of the inspection corresponds to the inspection for missing parts and missing parts. If the inspection line is configured to allow a shield inspection, the screen for transmitted light illumination shown in Fig. 2 will be displayed. Since the field of view is about 30 images, horizontal or vertical transmitted light illumination using a ring-type fluorescent lamp is appropriate. If the shield inspection cannot be performed, proceed to the next judgment. Since the parts and the base are not similar in color, use the uniform light illumination shown in Fig. 38. The screen is displayed . In this example, the object is horizontally long (type 2), and the visual field is about 30 thighs. Therefore, using a slit, light, and guide, the object is obliquely upward. When it is appropriate to illuminate from it, $ ⁇ books can be obtained.
  • the processing proceeds as the user and the decision unit 56 communicate with each other through the display device 41 ⁇ the input device 51. What is it.
  • the user inputs various data and information by using the selection flow and guidebook to select the above factors 1, 2, and 3. You may let it go.
  • the factors are selected in the order of 1, 2, and 3, but for example, even if it is a procedure that first determines “3 the size of the field of view”. Good ⁇
  • the lighting condition determination support device 50 as shown in FIG. 44 includes the above-described optimum height determination unit 54, optimum angle determination unit 55, and the lighting device and lighting method.
  • a decision unit 56 is provided.
  • Other configurations are the same as those shown in Fig. 14, Fig. I and Fig. 27.
  • the processing procedure executed in this device 50 is shown in FIG. 45.
  • a lighting device and a lighting method suitable for the inspection purpose are determined through a dialog between the user and the determination unit 56 (step 311). .
  • the user selects and inputs the most suitable lighting device and lighting method from those displayed on the display device 41.
  • the determining unit, 55 Either is selected (step 312).
  • the determining unit, 55 Either is selected (step 312).
  • Necessary information is input according to the optimum height or angle to be determined, and the optimum height hp is obtained using the processing shown in FIG. 20 or the processing shown in FIG. 26.
  • the optimum angle 0p is determined (step # 3), and the result is displayed on the display device 41 or a height or angle adjusting device (elevating / lowering). (Step # 4).
  • Fig. 46 shows the processing procedure for determining the optimum height for each of multiple types (n types) of lighting devices when they are selected. .
  • the same processes as those shown in FIG. 20 are denoted by the same step numbers, and description thereof is omitted.
  • Step 2Q1 the type of the i-th lighting device is input (Step), and the optimum height of the input lighting device is set. It is determined whether hp can be determined (step 204). If it can be determined, the optimum height hp is determined, and the process is completed. If the optimum height cannot be determined for all types (n types) of lighting devices (step 3224), a message to that effect is displayed. And the process ends (Step 2).
  • the radius R0 of the field of view with uniform illuminance of the illuminator may be entered for each type of illuminator in step o.
  • the above-mentioned lighting condition determination support devices determine the optimum height and angle of the lighting device based on the positional relationship between the lighting device and the inspection object. ing .
  • a description will be given of a device that determines the optimal position of the lighting device from the viewpoint of the quality of the image captured by the camera, or that assists the determination.
  • the image processing device 40 captures a video signal representing the object 0B imaged by the television camera 20, and supports setting of the optimum height of the lighting device 11. Image processing to be described later.
  • the CRT display device 41 displays a captured image of the object 0B, and displays a message for enhancing the position setting of the lighting device 11.
  • FIG. 47 shows the circuit configuration 3 ⁇ 4r of the image processing device 40.
  • the image processing device 4Q includes an image input unit 61, an image memory 62, an image output unit 63, a microphone opening evening, and a evening control unit. It is composed of
  • the image input unit 61 includes an AD converter that converts an analog video signal output from a television camera 20 into digital image data.
  • the image data is given to the image memory 62.
  • the image input unit 61 generates an image quality histogram in real time based on the input analog video signal, with the brightness as the horizontal axis. The specific circuit configuration and operation of the Oo histogram program are described later.
  • the image memory 62 stores the image data provided from the image input unit 61 in units of pixels.
  • the image output unit 63 includes a DZA converter for converting the image data read from the image memory 62 into an analog video signal, and converts the converted analog image data for one screen.
  • the microcomputer has a CPU 65 that is the main body of control and calculation, and the CPU 65 is connected to the CPU 65 via a system bus. / 0 The control unit is connected.
  • the CPU 65 decodes and executes the program stored in the R0M 66, and reads and writes various data from and to the RAM to perform predetermined image processing. Execute.
  • the keyboard ⁇ is connected to the IZ 0 control unit 68.
  • the key input signal from the keyboard ⁇ is sent to the CPU 65 via the I 0 control section 68.
  • the timing control unit 64 controls input / output operations of various data to the image input unit 61, the image memory 62, and the image output unit 63 under the control of the CPU 65. Output a timing signal for the purpose.
  • FIG. 48 shows a specific example of a histogram generating circuit provided in the image input unit 61.
  • the CPU 65 controls the address / judgement 80 via the CPU node.
  • the address generator 80 generates the necessary address signal, control signal, and timing signal, and provides them to the components of the configuration.
  • the writing and reading of the image memory 62 are controlled by a control signal input via a control bus.
  • Data is written and read.
  • Address ⁇ The bus, control and data nodes are connected to other circuits as well. In, one field (or one frame) of image data is written.
  • this embodiment stores the image data for one field (or one frame) stored in the image memory 62 as shown in FIG.
  • the center of the pixel of this window fin de window and P Q, denoted by the sign of the P i ⁇ P 8 to anticlockwise to the center pixel P I Ri of a pixel between the Q of this. 33
  • the window in 3 moves the full screen area in the horizontal and vertical scanning directions.
  • the latch circuits 76, 75, 1H delay circuit (shift register) 78, and the latch circuit 77 , 1H delay circuit 71 and latch circuits 72 and 73 are provided, and image data read out from image memory 62 in the order of horizontal and vertical scanning is The data is sequentially transferred to the latch circuit and the 1H delay circuit in the order described above.
  • the 1-H delay circuits 78 and delay the input data by 1 H (one horizontal scanning period) and output it.
  • the latch circuits 76, 75, 70, 74, 72, and 73 output the input data by one. Output with a delay of the pixel clock cycle.
  • FIG. 49 shows an example of the configuration of the nonconformity calculation unit ⁇ .
  • the non-conformity calculation unit has eight types of edge patterns (eight directions) extending vertically, horizontally, and diagonally, in the window for each of them.
  • Eight subtraction circuits 91 to 98 are provided. These subtraction circuits 91 to 98 are provided with the image data of the pixels P i to P 8 in the window described above, respectively.
  • the image data of the center pixel P0 is given to all the subtraction circuits 91 to 98.
  • the subtraction circuit 91 calculates the difference between the image data of the pixel P i and the image data of the central pixel P ().
  • Image data is stored in a monochrome image as described above.
  • the difference data is ⁇ q. Is, the brightness separately the difference of the pixel P i P 8 of the ambient of the center pixel ⁇ ⁇ and their you are table ring.
  • edge patterns are represented by a fuzzy model expressed using a main-ship function.
  • This fuzzy model is shown in Figures 52a to 52h. N represents Negative, Z represents zero, and P represents Positive, and the member specified by these codes (called labels) is used.
  • the ship function is shown in FIG.
  • the member-ship function P has a minimum value of 0 in a range smaller than the brightness difference q power 0.
  • Ri I q b Ri bet the maximum value in the range have come large, Ru door a value between linearly you change 0-1 corresponds to the value of its in the range of 0 ⁇ q b.
  • the fuzzy model shown in Fig. 52a is brighter in the lower right direction and darker in the upper left direction, and has a diagonal edge to the upper right. Represents a turn.
  • Figure 52b shows an edge pattern that is bright to the right, dark to the left, and extends vertically. It is easy to see that the fuzzy models shown in Figures 52c to 52h also represent other types of edge patterns. .
  • the direction of the edge pattern in Fig. 52a to 52h is defined as direction 1 to direction 8.
  • the edge suitability calculation circuit 111 includes a membership function circuit (hereinafter, referred to as MFC) 101 to 108, and outputs of the outputs. And a MIN circuit 109 for selecting the minimum value. Output data of each subtraction circuit 91 to 98 ⁇ (! 8 is input to MFC 101 to 1 respectively.
  • MFC membership function circuit
  • the MFCs 101 to 108 have a member model corresponding to the edge model of the edge 'pattern in direction 1 pointing upward 45 degrees to the right shown in Fig. 52a.
  • Top function Z, N, or P is set. If specifically, the pixel P i and P c (Brightness of the difference and Q 5)
  • Main the MFC 1 G 1 and 105 that corresponds to the emission bar shea-up function number Z is, picture element P 2, P 3 , P 4 (brightness difference q, Q 3 'Q 4 ⁇ ) MFC 102, 103, and 1 M have the member-ship function N with the pixels P g, P 7 , P 8 (brightness differences q 6 , q 1 , q 8 ), the MFCs 1, 107, 108 have member-ship functions P, respectively.
  • MFC 101 is you output to calculate the goodness-of-fit u of the input data Q t against the main emissions Roh one Shi-up function Z that have been set in there.
  • the MFC function is composed of a memory that stores the member function data
  • the member function corresponding to the input data is used. It is enough to read out the function data.
  • the MFCs 1G2 to 1Q8 are assigned to the member function N, Z or P that has been set. Calculates the fitness i 2 ⁇ 8 of the input ⁇ evening q 2 qg to the corresponding output.
  • the MIN circuit 109 selects the smallest one of the degrees of universality 11 ⁇ 18 output from the MFC 1Q11, and sets the fitness 1 and the fitness 1 of the edge fitness calculation circuit 111. And output
  • MAX circuit 85 also to select the Hare Chi greatest of or falling edge of di adaptability calculation circuit 111 U 8 is output to that fit to 8, you output as fit. It is obtained when the direction of the edge in the window (pixel pattern) corresponds to direction 1-direction 8 (preset pattern). Since the largest of the fitness levels is selected, the fitness level ⁇ represents the fitness level in the direction that most closely matches one of the directions 1 to 8. It will be.
  • the fitness // output from the MAX circuit 85 is given to the subtraction circuit 87.
  • data representing a logical value 1 output from the 1 generation circuit 86 is provided.
  • the above processing is repeated by scanning the window over all the pixels of the image data for one field (or one frame). Will be returned. As a result, the degree of non-conformity is required for all pixels (for the window ⁇ where each pixel is the center pixel).
  • the nonconformity obtained by the nonconformity calculation unit 81 is supplied to a nonconformity histogram program 82.
  • the non-goodness-of-fit human be sampled g raw generating unit 82 was or, image data of the central pixel P 0 to the cormorants I described above (to the table sum of Ru Ming of the central pixel P n 0) is given It has been obtained.
  • Non-suited Godo human be sampled g generator 82 it a non-goodness-of-fit that is given, et al., A non-suited tide of its in Tsu by the image data of the central pixel P Q that was raw Ji is table Cumulative addition is performed for each brightness (for each of the 256 levels in the case of 8-bit representation) to generate a nonconformity histogram.
  • this nonconformity histogram the horizontal axis is the brightness and the vertical axis is the sum of the nonconformity.
  • the brightness histogram generator ⁇ is adapted to receive a given reference image. Based on the image data of elementary P o, based on the evening (brightness), the number of reference pixels P 0 having that brightness is cumulatively added for each brightness, and the brightness history Generates a graph o The horizontal axis of this brightness histogram is bright (for example, 256 levels), and the vertical axis is the number of pixels with that brightness. O
  • the incompatibility histogram and the brightness generated in the non-conformance histogram program generation unit 82 The generation in the history diagram generation unit 83 Data representing each of the brightness histograms provided is supplied to an image quality histogram generation unit 84.
  • the image quality histogram generation unit 84 calculates, for each brightness, the cumulative addition value of the nonconformity in the nonconformity histogram and the brightness histogram. By dividing by the corresponding number of pixels in the system, normalization is performed, and the average value of nonconformity is calculated.
  • the histogram that can be obtained by taking the average value of this nonconformity on the vertical axis and the brightness on the horizontal axis is the image quality histogram shown in Fig. 54. It is.
  • the average value of the non-conformity on the vertical axis indicates the poor image quality as a criterion for image quality.
  • the CPU 65 is generated by the image quality histogram generator 84.
  • the CPU 65 reads the Q max and the minimum value Q min. Further , after reading the brightness corresponding to the minimum value Q min , the CPU 65 sets the brightness in the image quality histogram.
  • R k k pt is the center of the search, and the bright axis and the dark axis are searched on the horizontal axis, and the value on the vertical axis is (1a) XQ —
  • a is a positive coefficient less than 1 and represents tolerance.
  • the CPU 65 calculates the evaluation value V of the illumination at the set height h of the illumination device 11 according to the equation (5), and stores the calculation result in R AM.
  • Qmax'Qm1 ⁇ represents the depth of the valley in the image quality histogram, and the larger the value, the larger the value. Since the parts that are not likely to be edged are separated from the parts that are not likely to be edged, the contrast of the image is sharp. This will be.
  • WB is a force that is the width of the valley, and the larger the value, the more the image quality does not change even if the illuminance of the lighting device fluctuates. The variability is good.
  • Q mlnkopt gives an evaluation value that takes into account the absolute value of the illuminance fluctuation of the light source and the range of brightness that can be taken stably.
  • the degree to which the light source becomes darker due to the inferiority of the light source is proportional to the illuminance at that time. Therefore, the absolute value of the illuminance fluctuation due to the deterioration of the light source with lower illuminance Is small.
  • the width WB is constant. (Q max ⁇ Q. In) Assuming that WB is constant, k 0 pt is small.
  • the evaluation value V is large.
  • Figure 55 shows the installation height h of lighting device 11 and the evaluation value of lighting.
  • the height of the lighting device 11 can be set to an optimum value in consideration of the evaluation value V as follows.
  • the evaluation value V Q is obtained at a certain installation height h O, and when the installation height is increased up to the installation height hi (h 1> h 0), the evaluation value VI (V 1 > V 0), the height of the lighting device 11 should be increased in the direction to further increase the height h in order to set the optimum installation height h Q pt . You only need to make adjustments o
  • the evaluation value V 0 is obtained at a certain installation height h O, and then the evaluation value becomes smaller when the installation height is increased to hi (h 1> h 0). If VI (V 1 ⁇ V 0) is obtained, in order to set the optimum installation height h fl pt , the height of the lighting device 11 should be reduced in the direction to reduce the installation height h. You only need to make adjustments.
  • the CPU 65 of the image processing device 40 captures an image of the object OB with the camera 20 and converts the video signal output from the camera 20 into an A / D signal.
  • the user can set the lighting device 11 to an appropriate position by displaying the instruction on the position setting of the lighting device 11 on the display device 41 by evaluating the image quality of the captured image based on the Support the operation.
  • FIG. 56 and FIG. 57 show a processing procedure by such a CPU 65.
  • An initial screen including a message as shown in FIG. 58 is displayed on the CRT display device 41 (step 1).
  • the user looks at this initial screen and unlocks the fasteners.
  • the user presses the setting key of the keyboard 69, so that the answer is YES in step 332.
  • the CPU 65 causes the television camera 20 to capture an image of the object, and captures the obtained video signal into the image input unit U (step 3).
  • the captured image is displayed on the display device 41 if necessary.
  • the image input unit converts the captured video signal into AZD data and converts it to image data, and then generates the image quality histogram by the method described above.
  • CPU 65 is image quality human be sampled g generate maximum value poor of section 84 image quality human be sampled grams or al picture quality generated by the Q ma ⁇ and the minimum value of Q m i ⁇ , your good beauty
  • the brightness k Q pt corresponding to the minimum value Q min is read (step 334). Further, the CPU 65 determines the width WB of the light in the valley from the image quality histogram, and calculates the expression (5) or the expressions (6) to (10). Calculate the lighting evaluation value V 0 by executing one of the formulas and store that value in RAM 67 (step 335).
  • the CPU 65 causes the display device 20 to display a message as shown in FIG. 59 (Step 6). O The user sees this display and turns on the lighting device 11. Manually move to an appropriate height position hi, which is higher than the initial height h0, and fix it. After this, the user operates the setting key, so in step 337 It becomes YES.
  • the imaging of the object, the input of image data, and the creation of a quality histogram based on the input image data are performed again (step 338), and this new image quality histogram is created.
  • the evaluation value VI of the lighting corresponding to the height h1 is calculated based on the program (steps # 9, 340).
  • the CPU 65 compares the previous (initial state) evaluation value V 0 with the current evaluation value VI (step 341), and if VI> V 0, compares the previous evaluation value V 0 with the current evaluation value V 0.
  • the current evaluation value VI is stored in the RAM so that it can be replaced with the value V1 (step 342).
  • the message shown in FIG. 59 is displayed on the display device 41 in order to further increase the height of the lighting device 11 (step).
  • the CPU 65 stores the current evaluation value VI in the RAM and updates the evaluation value (step 344), and in order to reduce the height of the lighting device 11, the CPU 65 sets the evaluation value VI to 60.
  • the message shown in the figure is displayed on the display device 41 (Step 5).
  • the user changes the lighting device 11 to the height position h1 higher than the previous time.
  • the user changes the lighting device 11 to a lower height position h1 than the previous time.
  • the user operates the setting key of the keyboard ⁇ , so that the judgment of step 346 becomes YES, and the step Return to 3 3 8.
  • the CPU 65 repeats the imaging of the object 0B by the camera 20, the creation of the image quality histogram, and the calculation of the evaluation value again.
  • the support device for setting the optimum position described above is one in which the user manually positions the position of the lighting device 11. Next, when the user inputs the moving direction and the moving distance (or position) of the lighting device 11 from the keyboard, the position where the lighting device 11 is commanded is input. An embodiment in which the positioning is automatically performed will be described below.
  • the image processing system one having an automatic elevating mechanism shown in Fig. U is used.
  • the configuration of the image processing device 40 the configuration shown in FIG. 47 is used.
  • the pulse motor is connected to the I / 0 control unit 68. It is. This motor is driven and controlled by a command from the CPU 65 (or by a command from the I / O control unit ⁇ 8), and various circuits shown in FIGS. 48 and FIG. The configuration of is also used as it is.
  • FIGS. 61 and 62 show a processing procedure by the CPU 65.
  • FIG. In this figure, the same parts as those shown in FIGS. 56 and 57 are denoted by the same reference numerals, and duplicate descriptions are avoided.
  • steps # 1 to # 6 is the same as that shown in FIG.
  • the user inputs the moving direction (up or down) and moving distance of the lighting device U from the keyboard 69. (Step 352), operate the setting key (Step ⁇ 7).
  • the pulse and motor 37 are driven via 68 (step 353 :).
  • the lighting device 11 moves in the designated direction for the designated distance, and then stops there.
  • imaging of the object 0 mm, creation of an image quality histogram, and calculation of the evaluation value V1 are performed (steps 338 to 3U).
  • the user looks at the message shown in FIG. 59 or FIG. 60 displayed on the display device 41, and uses the force applied to the message to move the lighting 11 in the direction and direction of movement. Through the keyboard ⁇ (Steps 354, 355). After that, if there is a setting key input, return to Step 353 to drive motor ⁇ . The lighting device 11 is moved by the control.
  • the user While viewing the message displayed on the display device U in this way, the user inputs a command from the keyboard 69 to set the installation height of the lighting device 11. To adjust it up or down.
  • the adjustment operation is completed by the user operating the end key of the keyboard 69 (step 341).
  • the user is instructed on the direction of movement of the lighting device 11 by a visual display using a display device.
  • the instruction by voice and the direction of movement are provided.
  • the user may be instructed through different alarm sounds depending on the situation.
  • the image processing system shown in Fig. U is adopted.
  • the configuration of the image processing apparatus shown in FIGS. 47 to 49 is used.
  • the pulse / mouse is connected to the I0 control unit 68.
  • the control processing procedure by the CPU 65 is shown in FIGS. 63 and 64.
  • the same reference numerals are given to the same processes as those shown in FIGS. 56 and 57.
  • the rotation angle S i and the rotation direction of the pulse motor ⁇ are input from the keyboard ((step 362).
  • the CPU 65 calculates the rotation angle 0 of the motor ⁇ necessary for moving the lighting device 11 by the input distance.
  • the direction of rotation will generally be set up, but may be down.
  • Step 3 the illumination by the illumination device 11 positioned at the initial height hO is performed. Then, the object 0B is imaged, and an image quality histogram is created and the evaluation value V0 is calculated (steps to # 5).
  • the CPU 65 determines whether or not the absolute value of the difference between the previous evaluation value V 0 and the current evaluation value V I is equal to or less than a predetermined threshold value TH (step 5). If the result of this determination is N 0, the process proceeds to 1.
  • the angle ⁇ (step What etc. or flop 3 6 7 angles that have been updated in) is Ru Oh at less than or equal to a predetermined and Ki have value 0 th is determined, scan tape class tap 3 4 1 Ri is Oh Rebaya in N 0 Proceed to.
  • step 1 the evaluation values V0 and V1 are compared.
  • V 1> V 0 the process returns to the step, and the pulse motor 37 is rotated in the same direction as the previous one by the same angle 0 i as the previous one.
  • the lighting device 11 is raised or lowered in the same direction. After this, imaging and evaluation value calculation are performed again.
  • step ⁇ 4 The pulse motor ⁇ is rotated only in the newly set angle 0 in the opposite direction to move the lighting device 11 in the opposite direction, and again captures the image data.
  • the evaluation value is calculated.
  • An edge image can be generated using the edge-like fitness described above.
  • the configuration of the image processing device shown in FIG. 1 is adopted as an edge image generation device.
  • an image memory 88 that stores the goodness-of-fit // for each pixel is also provided.
  • the nonconformity calculation unit shown in FIG. 49 is also used as it is. No nonconformity is required, and only the conformity ⁇ needs to be output.
  • Fig. 65a to Fig. 65h show the fuzzy models representing the edge patterns respectively set in the edge matching degree calculation circuits 111 to 118. Another example is shown. Here, the main ship function Z is not used. The main shipping functions P and N have the shape shown in Fig. 53.
  • the MFC 101, 102, and 103 of the edge fitness calculation circuit 111 output the member function P
  • the member function N is set in the MFC 105, 106, 107, respectively.
  • Other MFC 1 and 108 are set to a member function that always outputs the maximum logical value 1 irrespective of the value of the input data.
  • the force shown in Fig. 65b and the force shown in Fig. 65h are set as shown in Fig. 65h. .
  • the degree of conformity for each pixel is obtained. Is calculated, and is stored in the corresponding field of the image memory 88.
  • an image representing the edge of the image as shown in Fig. 66a is generated as shown in Fig. 66b. It is also possible to convert the degree of goodness into two values using an appropriate threshold value, and then store it in the image memory 88.
  • the following describes an embodiment of a device that sets optimal lighting conditions based on image data of an object obtained by imaging again, or that supports the setting.
  • FIG. 67 shows the overall configuration of an automatic inspection device having an illumination system in which the optimal illumination conditions have been set by the illumination condition setting support device.
  • the automatic inspection system consists of a lighting system 10, a force camera 20, an image processing system 40, and a transport mechanism 45.
  • the transfer mechanism is realized by a transfer conveyor, and sequentially transfers a large number of inspection objects OB to a predetermined inspection position.
  • the lighting device 10 and the camera 20 are arranged above the inspection position.
  • the camera 20 picks up an image of the object OB at the inspection position from directly above, and gives image data obtained by the image pickup to the image processing device 40.
  • the illuminator 1G is realized by, for example, a halogen lamp, and illuminates the inspection object OB at the inspection position from obliquely above.
  • the luminous intensity of the lighting device 1Q is set to an optimum value so that the optimum inspection of the object OB is guaranteed, as described later.
  • the luminous intensity of the illuminating device 10 is set so that the accuracy of discriminating a defective product is maximized. This is the optimal lighting condition.
  • the lighting conditions are not limited to the luminous intensity, but may be the setting position or setting angle of the lighting device 10.
  • the optimal lighting conditions may be set in the image processing device 4 or may be set in the controller incorporated in the lighting device 10. In any case, the image processing device 4G or the control device described above is used so that the illumination device 10 can provide illumination that satisfies the set optimal illumination conditions.
  • the lighting device 10 is controlled by the controller.
  • the image processing device 40 performs a binarization process on the video signal representing the object OB given from the camera 20, and uses the binary image data to obtain the area of the object. Based on processing such as measuring feature values and comparing the measured values with a predetermined reference value, it is determined whether the object 0B is a non-defective product or is missing. Determine if something is defective. Judgment base
  • the characteristic amount used as the foundation is not limited to the area, but may be the circumference or the center of gravity.
  • Fig. 68 and Fig. I show the equipment that supports the setting of optimal lighting conditions.
  • Illumination devices 10, cameras 20, image processing devices 40, and display devices are indicated by the same reference numerals as those in the inspection device shown in FIG. O This is because the inspection device and the optimal lighting condition setting support device can be used together. Of course, these two devices may be configured separately.
  • the force camera 20 is located just above the observation position OV and at the same height as the automatic inspection equipment.
  • the illuminator 10 is placed diagonally above the observation position 0 V and at the same height and at the same angle as that used for automatic inspection.
  • the same camera and lighting equipment are preferably used for the automatic inspection equipment and the support equipment.
  • the support device has a sample supply mechanism.
  • This sample supply mechanism includes a rotary table 120, a table drive mechanism 121, and a detector 123.
  • the rotating table ⁇ 0 is disk-shaped, and has a non-defective sample 0Ba on the periphery of its upper surface, a defective sample 0Bb with a chipped portion, and a rotary table ⁇ 0. Defective samples 0Bc with holes are positioned and fixed at equal angular intervals.
  • an identification object 122 a On the rotating template 12 fl, on the outside of the fixed position of each sample, an identification object 122 a, which is made of a metal plate, is provided.
  • the table driving mechanism # 1 includes a motor connected to the center of rotation of the rotating table 120, and intermittently drives the rotating table 12Q in response to a control signal from the image processing device 40. Then, each sample OBa, 0Bb, OBc is sequentially guided to the observation position 0V in the field of view of the camera 120.
  • the detector 123 compares the non-defective sample 0Bb that has reached the observation position 0 V, the defective defective sample 0Bb, and the defective defective sample ⁇ Bc. It is provided for detection while distinguishing from each other, and is arranged outside the rotating table 120.
  • This detector 123 is composed of three proximity switches 123a, 123b and 123c, and the first proximity switch 123a is a non-defective sample switch.
  • Identifier for B a In order to detect 122a, it is located at the same height as the discriminator 122a, and the second proximity switch 123b is connected to the defective defective sample 0Bb.
  • the third adjacent switch 123c In order to detect all of the discriminating bodies 122b, the third adjacent switch 123c is located at the same height as the discriminating body 1 ⁇ b. In order to detect the discriminator 1 ⁇ c for sample 0Bc, they are respectively installed at the same height position as discriminator 122c.
  • Each proximity switch 123a, 123b, 123c is an identifier
  • a detection signal is given to the image processing device 40.
  • Fig. 7G shows the circuit configuration of the image processing device 40, which includes an A / D converter U1, a binarization processing unit 1 ⁇ , a display device 41. a synchronous signal generation unit U3, and a CPU. 130, R0M 135, RAM 134, external storage device 1, etc.
  • the AZD converter 131 converts an analog video signal output from the camera 20 into digital image data.
  • a binarization processing unit 132 binarizes the digital image data supplied from the AZD converter 131 with a predetermined threshold value. Displays the binarized image represented by the data.
  • the synchronizing signal generator 133 generates a vertical synchronizing signal, a horizontal synchronizing signal, and other timing signals, and outputs these signals to the AZD converter Ul, the binarization processing unit 1 ⁇ , and the CPUU. Give to 0.
  • the CPU 130 is a control unit for searching for and determining an optimum lighting condition and executing calculations, and receives a detection signal from the detector 123 and receives the detection signal. , Lighting device 10, table drive mechanism 121, etc.
  • the program is stored in R0M135, and various data is temporarily stored in RAMU4.
  • the external storage device 1 is composed of a floppy disk device and the like, and stores the determined optimum lighting conditions of the lighting device 10 and the like.
  • Fig. 7 shows the processing procedure by CPUUG to determine the optimal lighting conditions for lighting device i0.
  • the number N of non-defective samples OBa placed on the rotating table 12G. Are entered number N p pixels Rezoreki over board or these number N b Li of Ah Ru defective Shinasa down pull-OB c of Ah Ru defective Shinasa down pull OB b of missing only (Ste 371).
  • the image processing device 40 gives a start signal to the table drive mechanism 121, so that the rotating table 12Q rotates (step # 2).
  • the first proximity switch 123a has a force and a defective product with a chip is missing.
  • the second proximity switch 1 ⁇ b is the defective sample sample 0Bc with variability
  • the third proximity switch 1 ⁇ b is the third proximity switch 1 ⁇ b.
  • c detects the corresponding discriminators 122 a, 122 b, and 122 c, respectively, and provides a detection signal to the image processing device 40 (step ⁇ 3) o
  • the CPU 130 When this detection signal is input, the CPU 130 outputs a stop signal to stop the tape drive mechanism 121 and stop the rotation of the rotary table 120 (step 374). As a result, the sample is positioned within the field of view of the camera 20 at the observation position 0 V.
  • the luminosity of the lighting device 10 is optimized.
  • the illuminating device 1 ⁇ is provided with an initial luminous intensity from the image processing device 4 Q, and the illuminating device 10 emits light at this initial luminous intensity and illuminates the sample.
  • a sample at the observation position OV is captured by the camera 20 under illumination by the illumination device 10 (step 375).
  • the output video signal of the camera 20 is input to the image processing device 4 ⁇ .
  • This video signal is subjected to AZD conversion and binarized.
  • CPU UQ uses this binary image data to measure the characteristic amount of the sample at the observation position OV (step 376).
  • the feature amount is the area of the sample on the captured image.
  • the measured features are stored in RA 134.
  • the RAM 134 an area is provided to separately memorize the feature values for non-defective products, defective defective products, and defective defective products. ing .
  • the CPU 13Q Based on the detection signal input from the detector 123, the CPU 13Q has a good sample at the observation position of 0 V, a defective product with a chip, or a defective product. Judge which sample is the defective product, and store the measured characteristic amount in the storage area for the judged type of sample.
  • steps 372 to 376 is sequentially performed for all the samples on the rotating table 120. Number of processes, the total sum N a + N b + N rotated Te over table G Once you reach the "number of sub emission pull-which is previously input ing in and this was one rotation (scan STEP ⁇ 7).
  • the measurement area stored in the RAM 134 is changed according to the type of the sample.
  • the average value of the area S. only of Oh Ru bad Shinasa down pull OB b of the area average value S t of the mean value s e of surface product of your good beauty Roh Oh Ru bad Shinasa down pull-OB c of Lee Ru are prompted (the scan Step).
  • the evaluation value calculation process shown in FIG. 71 is repeated a plurality of times while changing the initial luminosity set for the lighting device 10.
  • Horizontal initial luminosity When the calculated evaluation value S is plotted on the axis and the vertical axis is plotted on the axis, the evaluation value S has one peak as in the case of the evaluation value V shown in Fig. 55. It is a convex function.
  • the initial luminosity which gives the maximum value or an evaluation value in the vicinity of the maximum value, indicates the lighting conditions under which a good product and a defective product can be distinguished with the highest accuracy.
  • Such initial brightness is determined by the CPU 13Q or by the operator.
  • the optimal lighting conditions (optimal initial luminous intensity) determined in this way are stored in the external storage device 1336 together with other necessary data.
  • the optimum lighting conditions are used in the inspection equipment shown in Fig. II.
  • the optimal lighting conditions are set based on the area of the sample.
  • set the optimal lighting conditions based on the idea that the lighting conditions that minimize the dispersion of the characteristic amount of the sample are the optimal ones, or The equipment that supports the setting is described.
  • the illumination system optimized based on the above concept is used for an automatic measurement device that measures features such as the position of the center of gravity, the area, and the circumference from the captured image of the measurement object. It is. What is the configuration of this automatic instrumentation device? Same as shown in the figure
  • Fig. 2 and Fig. 3 show the optimal lighting condition setting support system. The configuration is shown, and the same components as those shown in Figs. 69 and 69 are assigned the same reference numerals and duplicate explanations are avoided.
  • a plurality of samples 0 B ⁇ ⁇ ⁇ are positioned and fixed at equal angular intervals on the peripheral edge of the upper surface of the disk-shaped rotating table 0.
  • the fixed position of each sample 0 B S On the outside, an identifier 122 made of a metal plate is arranged at the same height, while on the outer side of the rotating table 120, the identifier is located near the observation position 0 V.
  • a detector 123 composed of a proximity switch is arranged at the same height position as I ⁇ .
  • the configuration of the image processing device 40 is the same as that shown in FIG. 70, and its illustration and description are omitted.
  • the processing procedure for determining the optimum lighting conditions for measurement is basically the same as that shown in Fig. II.
  • the points that are different from the processing in Fig. U are mainly explained below.
  • the number of samples OB fixed on the rotating table 120 in the first step # 1 is input.
  • Rotating the rotary tape over b le 12 G, or Re not have service down-pull 0 B c is that the rotation Te over table ⁇ stops reaches the observation position 0 V, Sa emission pull-os.
  • a predetermined initial luminous intensity is set by the image processing device 40 in the illumination device 10 that performs imaging of the object.
  • the image processing device 40 processes the image data captured from the camera 20 and measures features such as the center of gravity and area. Then, the measured features are recorded.
  • the luminous intensity of the illumination device 10 is changed by the image processing device 40, similar measurement and calculation of variance are performed.
  • the luminous intensity with the minimum variance is searched, and the luminous intensity is determined as the optimal lighting condition.
  • a rotating table is provided, but the sample is placed and transported as shown in Fig. 67. It may be a belt conveyor.
  • FIG. 5 shows the configuration of the imaging condition determination support device 50.
  • the same reference numerals as in Fig. 14 denote the same items. Since the supporting device 50 can be realized even by using the same image processing device as the supporting device shown in FIG. 14, the same reference numeral 50 is assigned for convenience.
  • the imaging condition determination support device 50 has a lens selection unit 57 I'm afraid.
  • the lens selecting section 57 is used to determine information input by the user from the input device 51, such as a desired field of view, a desired installation distance, and what to prioritize. According to the information, the lens, close-up ring, installation distance, etc., which are suitable for this will be derived.
  • the installation distance of the camera 20 (the distance A between the imaging target OB and the camera 20 is given by the following equation.
  • the feed-out amount d of the helicon is expressed by the following equation using the focal length f0 of the lens ⁇ ⁇ (combination lens or lens barrel).
  • the optimal lens type given the desired visual field size L s Q and the desired installation distance A Q
  • the constants l ens for these lenses are already known.
  • the lens constant lens is pre-stored in memory for each type of lens. The user may enter the lens constant lens each time.
  • Figure 7 shows the process when the desired field of view L s fl is prioritized.
  • the user inputs the desired visual field L s from the input device 51.
  • the calculated helicoid feed amount is d. It is determined whether the displacement d is greater than the maximum feed amount d max (step 384).
  • Equation (20) If the calculated feed-out amount d is larger than the maximum feed-out amount dmax by J, the inequality shown in the following equation (20) is satisfied. Since a close-up ring with a thickness t must be used, a close-up ring having a thickness that satisfies Equation (20) is selected (step 385). Data on the close-up ring Evening is preferably stored in memory in advance.
  • the type of lens selected in this way, the thickness of the close-up ring, and the installation distance A are displayed on the marking device 41 as shown in FIG.
  • Fig. 77 shows the process for prioritizing the desired installation distance. The same processes as those shown in Fig. 76 are assigned the same reference numerals and duplicate explanations are avoided.
  • the amount of receding d is d. Is calculated (Step 3 ⁇ ). In the case of d> d m , _, the close-up ring thickness t is calculated (Step ⁇ 5).
  • the field of view L s is calculated according to the equation (19) using the calculated amount of fed out d of the helicoid (step 391).
  • Step 393 This process is repeated for all lens types. It is done. Later, most also One-les-down's force is selected a near-have vision field L s in the field of view L s Q of hope (the scan STEP 392), its selection result is displayed on the cormorant good of the 78 views ("Step 393")
  • Equation (17) the desired field of view L s Q and the constant lens of the designated lens are substituted into Equation (17), and The amount of retrieving d is calculated. Since the amount of helical feed-out d must be smaller than the maximum amount of helical feed-out of the lens, d ma , In the case where the retrieving amount d is greater than the maximum retrieving amount dmauß, a close-up ring with a thickness t that satisfies the inequality in Equation (20) is used. It is.
  • the installation distance A is obtained from Eq. (16) using the calculated amount of spiral feed-out d, the desired visual field L s Q, and the lens constant lens. It is.
  • the relation B + d ⁇ A is, of course, between the total length B of the lens, the amount of feed-out d of the lens, and the distance A of the camera. If B + d> A, the desired field of view cannot be realized with the specified lens because the relationship must be established. This will be. In the jar good on the following, if you enter the installation distance A Q of hope and vision field L s 0 of the input equipment 5 1 or Nozomi Luo, as a recommended value, Les emissions's (focal length ), The thickness of the close-up ring and the installation distance are displayed on the CRT display. Also, if the desired field of view and lens are input, an appropriate installation distance A is calculated and displayed. Industrial applicability
  • the image processing system is effectively used for inspection of products on the conveyor line of factories and recognition of objects by robots.
  • the support device for determining lighting conditions, setting optimal lighting conditions, determining imaging conditions, and the like according to the present invention is intended to provide appropriate imaging of a target object that matches the purpose of inspection and high-precision recognition of the object. This is used as a tool for the user to determine and set more appropriate lighting conditions and imaging conditions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Signal Processing (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Image Input (AREA)
  • Image Analysis (AREA)

Description

明 細 書
■ 画像処理 シ ス テ ム に お い て, 好適 な 照明 条件, 撮影条件等を決定 も し く は設定す る た め の, ま た は決定 も し く は設定を支援す る た め の装置 お よ び方法 技術分野
こ の 発明 は, 照明装置 に よ る 照明下で撮像装置を用 い て 対 象 物 を 撮 像 し , こ の 撮像 に よ り 得 ら れ る 画 像 デ ー タ を処理す る 画像処理 シ ス テ ム に お い て, 目 的 に 適合 し た対象物の 照明 を行な い, 目 的 に適合 し た撮像 を行な う た め に, 適切 な も し く は最適な 照明装置の 種 類お よ び照明方法の選択な い し は決定, 照明装置 の設 置位置, 設置角 度, 光度等の 決定な い し は設定, な ら び に 撮像装置を構成す る カ メ ラ , レ ン ズ, 接写 リ ン グ の選択な い し は決定を行な う た め の, ま た は選択, 決 定 も し く は設定を支援す る た め の装置お よ び方法 に 関 す る 。 背景技術
工業製品な どの 目 視検査を 自 動化す る た め に, 自 動 検査装置が普及 し , こ の 自 動検査装置 に は 画像処理 シ ス テ ム が導入 さ れて い る 。 自 動検査装置 に よ っ て高精 度の検査を実現す る た め に は, 検査 目 的 に適 し た最適 な 画像 を 得 る 必要 が あ る 。 最適 な 画 像 を 得 る た め に は, 最適な 照明条件, 撮像条件等を設定す る こ と が重 要で の 。 。
一例 を挙げて具体的 に説明す る と , 外観検査装置や 位置決め装置で は, 照 明装置 に よ る 照明下で テ レ ビ · カ メ ラ に よ り 認識対象物が撮像 さ れ る 。 得 ら れ た 画像 デ ー タ は 画像処理装 置 に 取 り 込 ま れ 2 値化処理 さ れ る 。 2 値画像デー タ に基づい て対象物の面積や重心位 置な どの特徴量が計測 さ れ, 対象物の良否判別や位置 決め が行な わ れ る 。
特徴量を 高精度で計測す る た め に は, 良好な 2 値画 像デ ー タ を得 る 必要があ り , そ の た め に観測系の 照明 を最適状態に設定す る 必要があ る 。 こ こ で良好な 2 値 画像 と は, 2 値画像 に お け る 対象物の エ ッ ジが滑 ら か に 連続 し , し か も 孤立 ノ イ ズ (小 さ な 白 点 ま た は 黒 点) が少な い 画像を意味す る 。
し た力《 つ て そ の よ う な 2 値画像が得 ら れ た と き に, 観測系の 照明 は最適状態 に設定 さ れて い る も の と 判断 さ れ る 。 多少の 外乱光が加わ っ て ^-, 得 ら れ る 2 値画 像が変化 し な い こ と も 最適な 照明 の必要条件で あ る 。
照明装置の種類や照明方法 は, 検査な どの 目 的 に応 じ て選択 さ れ る 。 従来 は照明装置や照明方法の選択指 針が明確に整理 さ れて い な 力、 つ た た め に, ど の よ う な 照明装置や照明方法を採用 す る か に つ い て κよ 5¾ T s曰 的 に選択 さ れて い た。
た と え, 照明装置や照明方法が適切 に選択 さ れた と し て も , 照明装置を最適な 設置位置や設置角度 に設定 す る の は容易で な い。 従来 は モ ニ タ に 映 し 出 さ れ た画 像を見 な が ら 照明装置 の 位置や角 度を調整す る 作業が 行な わ れて い た。
し か し な 力 ら こ の よ う な 従来の方法 に よ る と , 照明 装置の 位置や 角 度を決定す る の に熟練を要 し , 経験の 浅 い 作業者 に は 最適状態 に 調整 す る の が困難 で あ つ た。 ま た作業者 に よ っ て照明装置の位置, 角 度 に ば ら つ き が生 じ や す く , 照明装置が常 に最良の 位置, 角 度 に設置 さ れ る と は 限 ら ず, 調整の 都度, 認識精度が変 化す る と い う 問題があ る 。
照明条件 に は照明装置の位置, 角度の み な ら ずそ の 光度 も 重要な ブ ァ ク タ と し て含ま れ る 。
照 明 条件 が 適切 か ど う か の 判 断 は , よ り 現実的 に は, 得 ら れた画像を評価す る こ と に よ り 行な う こ と が 好 ま し い。 た と え ば良品検査の た め の 最適な 照明 の 条 件 は, 良品 と 不良品 と を確実 に判别可能な こ と , す な わ ち 判 別精度 が高 く な る 照 明 条件 が最適 な も の で あ る
ま た計測の た め の最適 な照明の条件 は, 計測値の ば ら つ き が小 さ く な る よ う な照明, す な わ ち 計測精度が 高 く な る 照明条件が最適な も の と い え る 。
し か し な 力く ら 上述 し た従来の調整方法 に よ る と , 良 品 と 不良品 と が確実 に判別可能な照明条件や計測値の ば ら つ き が小 さ く な る よ う な照明条件が常に得 ら れ る と い う 保証 は な い。
適切な 撮影条件な い し は撮影環境の設定 も 重要な事 項で あ る 。 た と え ば, 検査 シ ス テ ム構成上好都合な 位 置 に カ メ ラ を設置 し , かつ検査 目 的 に適 し た視野を確 保で き る よ う に す る た め に最適な レ ン ズを選択す る 必 要があ る 。 ま た, 所望の設置距離 と 視野を実現す る た め に接写 リ ン グ の 使用 が必要 と な る 場合 も あ る 。 現在 あ る レ ン ズを使用 す る と い う 制約の下で, 希望の視野 を実現す る た め に は どの よ う に し て設置距離や接写 リ ン グを適切 に 設定すればよ い か と い う 問題の解決が要 求 さ れ る こ と も あ る 。 発明の 開示
こ の発明 は, 熟練を要す る こ と な く , 照明装置お よ び照 明 方 法 の 決定 な い し は 選択 , 照 明装置 の 設置位 置, 設 置 角 度, 光 度等 の 照 明 条件 の 決定 な い し は 設 定, レ ン ズ, 接写 リ ン グ, カ メ ラ の種類お よ び カ メ ラ の設定距離を含む撮像条件の決定な い し は選択を 自 動 的 ま た は半 自 動的 に行な え る よ う にす る こ と を 目 的 と す る 。 こ の 発 明 は ま た , 対象 物 を 実 際 に 撮 像 す る こ と に よ っ て得 ら れ る 画像デ ー タ に基づ い て照明条件, 撮像 条件の 評価 と 最適化を 図 る よ う にす る こ と を 目 的 と す よ り 具体的 に い え ば, 良品検査で あ れば, 良品 と 不 良品 と を い か に 確実 に判別で き る か, 計測で あ れば, い か に ば ら つ き の少な い計測値が得 ら れ る か と い う 観 点か ら 照明条件を設定す る こ と がで き る よ う に す る も の で あ る 。
こ の 発明 は照明装置 の適切 な設定位置を導 き 出す照 明条件決定支援装置お よ び方法を提供 し て い る 。
こ の 発明 に よ る 照明条件決定支援装置 は, 対象物の 形状的特徴 に 関す る 情報を入力す る た め の 入力装置, 照明装置 の特性 に 関す る 情報を記憶す る 記憶装置, 上 記入力装置か ら 入力 さ れた対象物の形状的特徴 と , 指 定 さ れた照明装置 に つ い て上記記憶装置 に記憶 さ れて い る 特性 と に基づ い て, 対象物の好適な 撮影の た め の 要求を満 たす上記照明装置 の設定位置を導 き 出す演算 装置, お よ び上記演算装置 に よ っ て導 出 さ れた設定位 置を 出力す る 出力装置を備え て い る 。
こ の 発明 に よ る 照明条件決定支援方法 は, 対象物を 照明す る 照明装置 と , こ の 照明装置に よ る 照明下で対 象物を撮影 し , 撮影 し た対象物を表わす映像信号を 出 力す る 撮像装置 と , こ の 撮像装置か ら 出力 さ れ る 映像 信号を用 い て対象物 に関す る 画像処理を実行す る 処理 装置 と を備え た画像処理 シ ス テ ム に お い て, 対象物の 形状的特徴に 関す る 情報を取込み, こ の取込ん だ対象 物の形状的特徴 に 関す る 情報 と , 指定 さ れ た照明装置 に つ い て あ ら か じ め 設定 さ れ て い る 特性 と に 基 づ い て, 対象物の好適な撮影の た め の要求を満たす上記照 明装置の設定位置を導 き 出 し, 導 き 出 さ れ た設定位置 を 出力す る も の で あ る 。
こ の 発明 に よ る と , 上述の よ う に必要な 情報 を入力 す る だ け で照明装置の 適切 な設定位置が出力 さ れ る 。 し たが っ て, 熟練を要す る こ と な く 照明装置を適切な 位置 に設定で き る 。
照明装置の位置決め は ユ ー ザが行な っ て も よ い し , 照明装置の 位置調整装置を利用 し て 自 動的 に行 な う こ と も で き る 。
こ の発明 は照明装置の適切 な設定角度を導 き 出す照 明条件決定支援装置お よ び方法を提供 し て い る 。
こ の 発明 に よ る 照明条件決定支援装置 は, 対象物の 形状的特徴 に 関す る 情報を入力す る た め の 入力装置, 上記入力装置か ら 入力 さ れた対象物の形状的特徴 に基 づい て, 対象物の好適な撮影の た め の要求を 満たす照 明装置の 設定角度を導 き 出す演算装置, お よ び上記演 算装置 に よ っ て導出 さ れた設定角 度を 出力す る 出力装 置を備えて い る 。 こ の発明 に よ る 照明条件決定支援方法 は, 対象物を 照明す る 照明装置 と , こ の 照明装置 に よ る 照明下で対 象物を撮影 し , 撮影 し た対象物を表わす映像信号を 出 力す る 撮像装置 と , こ の撮像装置か ら 出 力 さ れ る 映像 信号を用 い て対象物 に 関す る 画像処理を実行す る 処理 装 ^ と を備 え た 画像処理 シ ス テ ム に お い て, 対象物の 形状的特徵 に 関す る 情報を取込み, こ の取込ん だ対象 物の形状的特徴 に 関す る 情報 に基づ い て, 対象物の好 適な撮影の た め の要求を満たす上記照明装置 の 設定角 度を導 き 出 し , 導 き 出 さ れた設定角 度を 出力す る も の で め る 。
こ の発明 に よ る と , 上述の よ う に必要な情報を入力 す る だ け で照明装置の適切な設定角 度が 出 力 さ れ る 。 し た が つ て, 熟練を要す る こ と な く 照明装置を適切な 角度 に設定で き る o
照明装置の 角 度設定 はユ ー ザが行な っ て も よ い し , 照明装置の 角 度調整装置 を利用 し て 自 動的 に行な う こ と も で る
こ の 発明 は適切 な 照明装置の種類お よ び照明方法を 導 き 出す照明条件決定支援装置 お よ-び方法を提供 し て い る 。
こ の 発明 に よ る 照明条件決定支援装置 は, 照明 目 的 お よ び対象物の 着 目 部 と 背景部 と の光学的性質の差異 に 関す る 情報 に対応 し て, 適切 な 照明装置の種類お よ び照明方法を あ ら か じ め記憶 し た記憶装置, 照明 目 的 お よ び対象物の着 目 部 と 背景部 と の 光学的性質の差異 に 関す る 情報を入力す る 入力装置, 上記入力装置か ら 入力 さ れた情報 に し たが っ て上記記憶装置 に記憶 さ れ て い る 適切 な照明装置の 種類お よ び照明方法を導 き 出 す処理装置, な ら び に上記処理装置 に よ っ て導 き 出 さ れた適切な照明装置の 種類お よ び照明方法を表示す る 表示装置を備え て い る 。
こ の 発明 に よ る 照明条件決定支援方法 は, 照明 目 的 お よ び対象物の着 目 部 と 背景部 と の光学的性質の差異 に 関す る 情報を取込み, 取込ん だ上記情報 に適合 し た 照明装置の種類お よ び照明方法を あ ら か じ め設定 さ れ た も の の 中か ら 選択 し , 選択 さ れ た照明装置お よ び照 明方法を視認可能な形態で 出力す る も の で あ る 。
こ の 発明 に よ る と , 検査 目 的, 着 目部 と 背景部 と の 光学的性質 と の差異, お よ び必要な ら ば視野の大 き さ を入力す る こ と に よ り , 適切な 照明装置の 種類お よ び 照明方法が導 き 出 さ れ る の で, 専門的経験や知識を要 す る こ と な く 適切 な 照 明 装 置 お よ び方法 を選択 で き る 。 ま た専門家の場合に は照明装置お よ び方法の 決定 に要す る 時間を短縮で き る 。
こ の 発明 は, 対象物を実際 に撮像 し て得 ら れ る 実画 像デー タ に基づい て照明条件を評価 し かつ最適化す る た め の , ま た は そ れを支援す る 装置お よ び方法を提供 し て い る 。 と く に こ の 発明 で は照明装置の 位置が調整 れ る 。
こ の発明 に よ る 照明条件設定支援装置 は, 対象物を 照明す る 照明装置, 上記照明装置を位置調整可能 に支 持す る 支持装置, 上記照明装置 に よ る 照明下で対象物 を撮像 し , 対象物の 画像を 表わす映像信号を 出 力す る 撮像装置, 上記撮像装置か ら 出力 さ れ る 映像信号 に基 づ い て, 明 る さ に 対す る 画質の良否の程度 を表わ す画 質 ヒ ス ト グ ラ ム を生成す る 画質 ヒ ス ト グ ラ ム生成回路 手段, 上記画質 ヒ ス ト グ ラ ム 生成回路手段 に よ っ て生 成 さ れ た画質 ヒ ス ト グ ラ ム に基づ い て照明 の評価値を 算出す る 評価値算出回路手段, 上記評価値算出 回路手 段 に よ っ て算出 さ れ た 今回の評価値を上記照明装置 の 位置変更前の 前回 の評価値 と 比較す る 比較回路手段, お よ び上記比較回路手段 に よ る 比較結果を 出力す る 出 力手段を備 え て い る 。
第 1 の 実施態様 に お い て は, 上記出力手段が上記比 較回路手段 に よ る 比較結果に応 じ て上記照明装置の 位 置調整方 向 を指示す る 表示装置で あ る 。
第 2 の 実施態様 に お い て は, 上記支持装置が上記照 明装置の 位置を変更 さ せ る 駆動装置を含む .。 上記 出力 手段は上記比較回路手段 に よ る 比較結果 に 応 じ て上記 照明装置の位置調整方向 を指示す る 表示装置で あ る 。 そ し て, 上記駆動装置を駆動す る た め の 指令を入力す る 入力装置 と , こ の入力装置を通 し て入力 さ れた指令 に応答 し て上記駆動装置を制御す る 制御装置 と が さ ら に設 け ら れ る 。
第 3 の 実施態様 に お い て は, 上記支持装置が上記照 明装置の 位置を変更 さ せ る 駆動装置を含む。 そ し て, 上記比較回路手段 に よ る 比較結果 に応 じ て上記駆動装 置を制御 し, 上記照明装置の位置を最適位置 に調整す る 制御手段が さ ら に設 け ら れ る 。
こ の発明 に よ る 照明条件設定支援方法 は, 対象物を 照明す る 照明装置, 上記照明装置を位置調整可能 に支 持す る 支持装置, お よ び上記照明装置 に よ る 照明下で 対象物を撮像 し , 対象物の 画像を表わす映像信号を 出 力す る 撮像装置を備え た 画像処理 シ ス テ ム に お い て, 上記撮像装置か ら 出力 さ れ る 映像信号 に基づ い て, 明 る さ に対す る 画質の良否の程度を表わす画質 ヒ ス ト グ ラ ム を生成 し , 生成 さ れた画質 ヒ ス ト グ ラ ム に基づ い て照明の評価値を算出 し , 算出 さ れた今回 の評価値を 上記照明装置の 位置変更前の前回の評価値 と 比較 し, こ の比較結果を 出力す る も の で あ る 。
こ の 発明 に よ る と , 対象物を実際 に撮像 し て得 ら れ る 画像デー タ に基づい て良好な 画像が得 ら れ る よ う に 照明条件を最適化 し て い る の で, 熟練を要 さ ず, 作業 者が異な っ て も 常 に 同 じ よ う に良好な画像が得 ら れ る こ と に な る 。 第 1 の 実施態様で は作業員が表示 さ れた指示を見な が ら 手動で, 第 2 の実施態様で は半 自 動的 に, 照明装 置の高 さ の調整が行な わ れ る 。
第 3 の実施態様で は照明装置 の高 さ 設定が完全 に 自 動化 さ れて い る か ら , 照明装置の 位置設定が一層容易 で あ り , 作業の 効率化 と 合理化 と を実現で き る 。
上述 し た画質 ヒ ス ト グ ラ ム生成回路手段の主要部 は エ ツ ジ 画像生成装置 と し て利用 で き る 。
こ の 発明 は画質 ヒ ス ト グ ラ ム生成回路手段を利用 し た エ ツ ジ 画像生成装置を提供 し て い る 。
こ の発明 に よ る エ ッ ジ 画像生成装置 は, 対象物を撮 像 し , 撮 像 画 像 を 表 わ す 映像信号 を 出 力 す る 撮像装 置, 上記撮像装置か ら 出力 さ れ る 上記映像信号を デ ィ ジ タ ル画像デー タ に変換す る A Z D 変換手段, A Z D 変換 さ れた 1 画面分の デ ィ ジ タ ル画像デー タ を記憶す る 画像 メ モ リ , 上記 1 画面分の 画像デ ー タ に ウ ィ ン ド ゥ を設定 し て そ の ウ イ ン ド ウ 内 の複数の 画素 に つ い て の 画素デ ー タ を抽 出す る ウ ィ ン ド ウ 手段, 上記 ウ ィ ン ド ウ 内 の 画像 デ ー タ の傾 き に 関す る デ ー タ を生成す る 手段, 上記傾 き に 関 す る デ ー タ と 複数 の エ ッ ジ · パ タ ー ン と の 合致度を そ れぞれ演算す る 手段, 上記合致 度か ら エ ッ ジ ら し さ の評価値を演算す る 手段, お よ び 上記エ ツ ジ ら し さ の評価値の演算を 1 画面分の すべて の 画素 に つ い て行な う よ う に制御す る 手段を備 え て い る o
こ の発明 に よ る と , 1 画面分の 画像デー タ に ウ ィ ン ド ウ を設定 し て そ の ウ イ ン ド ウ 内 の複数の 画素 につ い て の 画素 デ ー タ を 抽 出 し , 上記 ウ ィ ン ド ウ 内 の 画像 デー タ の 傾 き に 関す る デー タ を生成 し, 上記傾 き に 関 す る デー タ と 複数の エ ツ ジ · パ タ ー ン と の 合致度を そ れぞれ演算 し , 上記合致度か ら エ ッ ジ ら し さ の評価値 を演算 し , 上記エ ッ ジ ら し さ の評価値の演算を 1 画面 分の すべて の 画素 に つ い て行な い, 上記評価値か ら な る エ ッ ジ 画像デー タ を得 る よ う に し て い る の で, 良質 の エ ツ ジ が強調 さ れた良好な エ ツ ジ 画像を生成で き , ノ ィ ズな どの影響を 除去す る こ と が可能で あ る 。
こ の 発明 は, 照明装置 に よ る 照明下で検査ま た は認 識 (計測) 対象物の サ ン プ ルを実際 に撮像 し , こ の 撮 像 に よ り 得 ら れ る 画像デ ー タ に基づい て実際に サ ン プ ル の検査 ま た は認識 (計測) を行な い, こ の検査 ま た は認識結果を評価す る こ と に よ り 照明条件 (た と え ば 照明装置 の光度) を最適化す る 装置お よ び方法を提供 し て い る 。
ま ず, 良品 と 不良品 と を判別す る良品検査を行な う シ ス テ ム の た め の照明条件設定支援装置お よ び方法 に つ い て述べ る 。
こ の 発明 に よ る 照明条件設定支援装置 は, 良品 お よ び不良品 の複数の サ ン プルを所定の観測位置へ順次供 3
給す る サ ン プル供給装置, 上記観測位置の サ ン プルを 照 明 す る 照 明 条件可 変 な 照 明 装 置 , 上記供給装 置 に よ つ て上記観測位置 に も た ら さ れた良品 お よ び不良品 の各サ ン プルを上記照明装置 に よ る 照明下で撮像 し , 撮像 し た サ ン プ ルを表わ す映像信号を 出力す る 撮像装 置, 上記撮像装置か ら 出力 さ れ る 映像信号 に基づ い て 各サ ン プ ル の 特徴量を計測す る 特徴量計測手段, 上記 特徴量計測手段 に よ り 計測 さ れた特徴量 に基づ い て良 品 と 不良 品 の 判別精 度 に 関 す る 評 価値 を 算 出 す る 手 段, な ら び に上記照明装置 の 照明条件を変え な が ら 求 め ら れ た照明条件 ご と の評価値 に基づ い て, 評価値が 最良 と な る 照明条件を検索す る 手段を備 え て い る 。
こ の 発明 に よ る 照明条件設定支援方法 は, 所定の観 測位置 を 照明す る 照明条件可変な照明装置 を配置 し , 良品 お よ び不良品の 複数の サ ン プ ルを上記観測位置へ 順次供給 し, 上記観測位置 に供給 さ れた良品 お よ び不 良品の 各サ ン プルを上記照明装置 に よ る 照明下で撮像 し, 撮像 に よ り 得 ら れ る 映像信号 に基づ い て各サ ン プ ル の 特徴量を計測 し, 計測 さ れた特徴量 に基づ い て良 品 と 不良品の判別精度 に 関す る 評価値を算 出 し , 上記 照明装置の照明条件を変え な が ら , 照明条件 ご と の 評 価値を求め, 評価値が最良 と な る 照明条件を検索す る も の で あ る 。
こ の 発明 に よ る と , 実 際 の 良品 と 不良品 サ ン プ ル の 撮像画像か ら 照明条件の評価を行な い, 良品 と 不良品 の判別がで き る だ け確実 に行な え る 照明条件を検索 し て い る の で, 常 に判別精度の 高い良品検査が可能 と な る o
次に, 対象物の 特徴量を計測す る シ ス テ ム の た め の 照明条件設定支援装置お よ び方法 に つ い て説明す る 。
こ の発明 に よ る 照明条件設定支援装置 は, 複数の サ ン プルを所定の 観測位置へ順次供給す る サ ン プル供給 装置, 上記観測位置 の サ ン プ ルを照明す る 照明条件可 変な照明装置, 上記供給装置 に よ っ て上記観測位置 に も た ら さ れた各サ ン プルを上記照明装置 に よ る 照明下 で撮像 し , 撮像 し た サ ン プルを表わ す映像信号を 出力 す る 撮像装置, 上記撮像装置か ら 出力 さ れ る 映像信号 に基づ い て各サ ン プ ルの 特徴量を計測す る 特徵量計測 手段, 上記特徴量計測手段に よ り 計測 さ れ た特徵量の 分散を算出す る 手段, お よ び上記照明装置の 照明条件 を変え な が ら 求め ら れた照明条件 ご と の 分散 に基づ い て, 分散が最小 と な る 照明条件を検索す る 手段を備 え て い る 。
こ の 発明 に よ る 照明条件設定支援方法 は, 所定の 観 測位置を照明す る 照明条件可変な 照明装置'を配置 し , 複数の サ ン プルを上記観測位置へ順次供給 し , 上記観 測位置 に供給 さ れた各サ ン プルを上記照明装置 に よ る 照明下で撮像 し , 撮像 に よ り 得 ら れ る 映像信号 に基づ い て各サ ン プル の 特徴量を計測 し , 計測 さ れた全サ ン プ ル の特徴量の 分散を 算 出 し , 上記照明装置の照明条 件を変え な が ら , 照明条件 ご と の 分散を求め, 分散が 最小 と な る 照明条件を検索す る も の であ る 。
こ の発明 に よ る と , 計測対象物の サ ン プルを実際 に 撮像 し , こ の撮像 に よ り 得 ら れ る 画像デ ー タ を用 い て サ ン プ ル の 特徴量を実際 に計測 し , 計測 し た特徵量の 分散が小 さ く な る 照明条件を検索 し て い る の で, 計測 値の ば ら つ き が小 さ く な り , 常 に精度の 高 い計測が可 能 と な る 。
上記サ ン プル供給装置を, 各サ ン プルを載置す る 回 転テ ー ブ ル と , こ の 回転テ ー ブ ル を 回転駆動す る 駆動 装置 と か ら 構成す る こ と に よ り , 構成の 簡素化 と 省 ス ペ ー スィ匕を 図 る こ と がで き る 。
最後 に こ の発明 は, レ ン ズ と 必要な接写 リ ン グが着 脱 自 在な カ メ ラ に よ る 適切な撮影条件を決定す る た め の 撮影条件決定支援装置を提供 し て い る 。
こ の 装置 は, カ メ ラ の 視野情報 と , 撮影対象 に対す る カ メ ラ の設置距離情報 と , レ ン ズ の情報 と , 接写 リ ン グの情報の う ち の少な く と も 2 つ の情報を入力す る た め の入力装置, 上記入力装置か ら 入力 さ れた少な ぐ と も 2 つ の 情報を用 い て残 り の情報を算出す る 演算装 置, お よ び上記演算装置 に よ る 演算結果 に よ っ て表わ さ れ る 上記残 り の情報を表示す る 表示装置 を備え て い 6
る O
こ の 発明 に よ れば, カ メ ラ の視野情報 と , 撮影対象 に対す る カ メ ラ の設置距離情報 と , レ ン ズ の情報 と , 接写 リ ン グ の情報 の う ち の少な く と も 2 つ の情報を入 力す る こ と に よ っ て, 残 り の情報が演算 さ れて表示 さ れ る の で, 対話形式で短時間で適切な レ ン ズ, 接写 リ ン グ, カ メ ラ 設置距離な どを選択 ま た は決定す る こ と がで き る 。
撮像条件 (撮像系) の評価 と 最適化につ い て も , 照 明条件の評価 と 最適化の場合 と 同 じ よ う に, 複数種類 の撮像条件の そ れぞれの下で対象物を実際 に撮像 し, 撮像 に よ り 得 ら れた画像デー タ に基づい て撮像条件の 評価.値を算出 し , こ の 評価値 に基づ い て行な う こ と が で き る の は い う ま で も な い 。 図面の 簡単な説明
第 1 図か ら 第 6 図 は照明装置の 例を 示す。
第 1 図 は リ ン グ蛍光灯を示す斜視図で あ る 。
第 2 図 は直管蛍光灯を示す斜視図であ る 。
第 3 図 は リ ン グ · ラ イ ト · ガ イ ド を示す斜視図で あ る O
第 4 図 は ス リ ツ ト · ラ イ ト · ガ イ ドを示す斜視図で め 。
第 5 図 は ス ト レ ー ト · ラ イ ト · ガ イ ドを示す斜視図 で あ る
6 図 は 二分 岐 ラ イ ト · ガ イ ド を 示 す 斜 視図 で あ る
7 図か ら 第 1 1図 は照明方法の例を示す。
7 図 は透過光照明 を 示 し て い る 。
8 図 は一様光照明 を示 し て い る 。
9 図 は 同軸落射照明 を示 し て い る 。
1 0図 は平行光照明 を 示 し て い る 。
1 1図 は 暗視野照明 を示 し て い る 。
1 2図 は 画像処理 シ ス テ ム の 全体構成を示す も の で あ る ο
1 3図 は画像処理 シ ス テ ム の他の例 を示す も の で あ る ο
1 4図 は照明装置 の最適高 さ 決定の支援 に適 し た照 明条件決定支援装置 の構成を示す プ ロ ッ ク 図で あ る 。
1 5図 は表示装置 に お け る 決定 さ れた最適高 さ の 表 示例を示す。
図お よ び第 Π図 は, 照明装置 の最適な 設置高 さ を決定す る 方法を説明す る た め の も の で あ る 。
1 8図 は照明装置 と そ の 照明光の等照度曲線を示す も の C、 あ る 。
1 9図 は等照度で照明 さ れ る 領域の半径 と 照明装置 の設置高 さ と の 関係を示す グ ラ フ であ る 。
2 0図 は 最適高 さ 決定処理 の 手順 を 示 す フ ロ ー · チ ヤ 一 ト で あ る 。
第 2 1図 は画像処理 シ ス テ ム の さ ら に他の 例を示す も の であ る 。
第 Π図 は, 対象物の形状, お よ び対象物 と 照明装置 と の位置関係を示す斜視図であ る 。
第 Π図 は最適角 度決定の支援 に適 し た照明条件決定 支援装置 の構成を示す プ ロ ッ ク 図で あ る 。
第 2 4図 は照明装置の最適な設置角 度を決定す る 方法 を説明す る も の で あ る 。
第 2 5図 は不完全拡散反射の状態を示す も の であ る 。 第 2 g図 は 最適角 度決定処理 の 手順 を 示 す フ ロ ー · チ ヤ 一 ト であ る 。
第 Π図 は照明装置 お よ び照明方法の決定の支援 に適 し た照明条件決定支援装置の構成を示す プ ロ ッ ク 図で あ る Q
第 Π図 は対象物の一例 と し て の コ ネ ク 夕 の外観を示 す斜視図で あ る 。
第 2 9図 は照明装置お よ び照明方法の決定処理の 全体 的な手順を示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 3 0図 は形状, 寸法の検査を 目 的 と す る 場合の照明 装 置 お よ び 照 明 方 法 を 決 定 す る 処 理 手 順 を 示 す フ ロ ー · チ ヤ 一 ト であ る 。
第 Π図 は部品の 有無や欠品の検査を 目 的 と す る 場合 の照明装置お よ び照明方法を決定す る 処理手順を示す 9
フ ロ ー · チ ヤ 一 ト で あ る 。
第 Π図 は傷の 検査を 目 的 と す る 場合の 照明 お よ び照明方法を決定す る 処理手順を示す フ 口 一 • チ ャ 一 ト で あ る 。
第 Π図 は色の検査を 目 的 と す る 場合の照明装置 ¾> よ び照明方法を決定す る 処理手順を示す フ ロ ー • チ ャ 一 ト で あ る 。
第 3 4 a 図お よ び第 3 4 b 図 は位置決 め を 目 的 と す る 場 合の 照明装置 お よ び照明方法を決定す る 処理手順を示 す フ ロ ー · チ ヤ 一 ト で あ る 。
第 3 5図 は, 異物の検査を 目 的 と す る 場合の HS Β月装置 お よ び照 明方 法 を 決 定 す る 処 理手 順 を 示す フ 口 チ ヤ 一 ト で あ る 。
第 図 は文字や マ ー ク の検査を 目 的 と す る 口 の 照 明 装 置 お よ び 照 明方 法 を 決定す る 処理手順 を 示す フ 口 — · チ ャ ー ト で あ る 。 第 Π図 は透過光照明用 画面の表示例 を示す
第 Π図 は一様光照明用 画面の 表示例 を示す
第 Π図 は凹凸突起照明用 画面の表示例 を示す。
第 4 β図 は 凹 凸穴照明用画面の表示例 を示す 0
第 4 1図 は 凹 凸エ ツ ジ照明用画面の表示例 ^示す 第 4 2図 は 凹凸線照明用 画面の表示例 を 示す ο
第 図 は正反射利用照明用 画面の表示例 を 示す 第 4 4図 は照明装置 お よ び照明方法の 決定, な ら び に 最適高 さ ま た は最適角度の 決定の支援に適 し た装置の 構成を示す プ ロ ッ ク 図であ る 。
第 4 5図 は照明装置お よ び照明方法, な ら び に最適高 さ ま た は 最適角 度 の 決定処理 の 全体 を 示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 4 6図 は複数の 照明装置があ る 場合の最適高 さ の決 定処理手順を示す フ ロ ー · チ ヤ 一 ト であ る 。
第 4 7図 は最適照明条件設定支援装置 に お け る 画像処 理装置の 回路構成を示す プ ロ ッ ク 図であ る 。
第 4 8図 は ヒ ス ト グ ラ ム生成回路の 回路構成を示す ブ ロ ッ ク 図で あ る 。
第 4 9図 は非適合度演算部の 回路構成を示す プ ロ ッ ク 図で あ る 。
第 5 0図 は画像上 に設定 さ れた ウ イ ン ド ウ を示す も の め る o
第 5 1図 は 明 る さ の デー タ を 明 る さ の差を表わすデ ー 夕 に変換す る 減算回路の動作を説明す る た め の も の で あ る 。
第 5 2 a 図力、 ら 第 5 2 h 図 は エ ツ ジ · パ タ ー ン を表わす フ ア ジ ィ · モ デルを示す も の であ る。
第 5 3図 は メ ン バ ー シ ッ プ関数を示す グ ラ フ で あ る 。 第 5 4図 は画質 ヒ ス ト グ ラ ム を示す グ ラ フ で あ る 。 第 5 5図 は照明装置の設置高 さ と 照明の評価値 と の 関 係を示す ダ ラ フ で あ る 。 第 5 6図お よ び第 5 7図 は照明装置の 高 さ 位置 の設定処 理手順を示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 5 8図か ら 第 6 0図 は高 さ 設定を指示す る 表示画面の 表示例を示す。
第 U図お よ び第 6 2図 は 照明装置の高 さ 位置設定処理 の 他の 例 を示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 図お よ び第 6 4図 は 照明装置の 高 さ 位置設定処理 の さ ら に他の 例 を 示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 6 5 a 図か ら 第 6 5 h 図 は エ ツ ジ · パ タ ー ン を表わ す 他の フ ァ ジ ィ · モ デルを 示す も の で あ る 。
第 6 6 a 図お よ び第 6 6 b 図 は グ レ イ 画像か ら エ ツ ジ 画 像が生成 さ れ る 様子を示す。
第 6 ?図 は 自 動 検査装 置 の 全体構成 を 示 す も の で あ る o
第 U図 は最適照明条件設定支援装置の 全体構成を示 す も の であ る 。
第 Π図は 回転テ ー ブル上の サ ン プルの配置状態を 示 す平面図で あ る 。
第 7 0図 は画像処理装置 の 回路構成例 を示す プ ロ ッ ク 図で あ る 。
第 Π図 は照明装置の最適な照明条件を決定す る た め の処理手順を示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 Π図 は最適照明条件設定支援装置の 全体構成を示 す も の で あ る 。 第 Π図 は回転テ ー ブル上の サ ン プ ル の配置状態を示 す平面図で あ る 。
第 Π図 は撮像条件決定支援装置の構成を示す プ ロ ッ ク 図であ る 。
第 7 5図 は カ メ ラ , レ ン ズ等の パ ラ メ 一 夕 を説明す る た め の も の であ る 。
第 図 は撮像条件の 決定を支援す る 処理手順を示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 Π図 は撮像条件の決定を支援す る 他の処理手順を 示す フ ロ ー · チ ヤ 一 ト で あ る 。
第 図 は選択 さ れた撮像条件を示す表示例で あ る 。 発明を実施す る た め の最良の形態
( 1 ) 照明装置 と 照明方法の種類
画像処理 シ ス テ ム に お い て用 い ら れ る 照明装置 (光 源) の主な も の に は蛍光灯 と ハ ロ ゲ ン · ラ ン プ と があ る ο
蛍光灯 は そ の形状か ら リ ン グ型 と 直管型 と に大別 さ れ, 種々 の寸法の も の が市販 さ れて い る 。 第 1 図 は リ ン グ型の 蛍光灯 1 1を 示す も の で あ る 。 第 2 図 は 直管型 の蛍光灯 1 2を示 し て い る 。
光源 にハ ロ ゲ ン · ラ ン プを用 い る 照明装置 に お い て は, ハ ロ ゲ ン · ラ ン プ力、 ら の光力 ラ イ ト · ガ イ ド と 呼 ばれ る 光 フ ァ イ バを用 い て光照射部 ま で導かれ る 。 リ ン グ 型 , ス リ ッ ト 型 , ス ト レ — ト 型 , 二分岐型 な ど 種 々 の形状の光照射部を も つ も の が市販 さ れて お り , 寸法 に も バ リ エ ー シ ョ ン が あ る o
第 3 図 は リ ン グ型の光照射部を も つ, い わ ゆ る リ ン グ · ラ イ ト · ガ イ ド と 呼ばれ る 照明装置 1 3を示 し て い る 。 多数本の光 フ ァ イ バ 1 7が束 に な っ て お り , そ れ ら の先端が リ ン グ状 に配列 さ れて い る こ と に よ り 光照射 部が構成 さ れて い る 。
第 4 図 は, い わ ゆ る ス リ ッ ト • リ ン グ · ガ ィ ド と 呼 ばれ る 照明装置 1 4を示 し て い る 。 多数本の光 フ ァ ィ バ Πの先端が一直線状 に配列 さ れ る こ と に よ り 光照射部 が構成 さ れ, ス リ ッ ト 光を発生す る の に適 し て い る 。
第 5 図 は多数本の光 フ ァ イ バ 1 7を束ね た先端部か ら 円形断面を も つ光を投射す る 照明装置 1 5を 示 し, ス ト レ ー ト · ラ イ ト · ガ イ ド と 呼ばれて い る 。
第 6 図 に 示す照明装置 1 こ お い て は, 光 フ ァ ィ バ 1 7 の束力 2 つ に分 け ら れ, そ れぞれの先端部か ら 円形断 面を も つ光が投射 さ れ る 。 こ れ は二分岐 ラ イ ト • ガィ ド と 呼ばれ る 。
と く に , ス リ ッ ト · ラ イ ト ' ガ ィ ド 1 4, ス ト レ ー ト · ラ イ ト · ガ イ ド 1 5お よ び二分岐 ラ イ ト ガ ィ ド 1 J は照明領域が狭 い場合 に適 し て い る 。
以上を ま と め る と 次の よ う に な る 。
リ ン グ蛍光灯 1 1 (第 1 図) 直管蛍光灯 1 2 (第 2 図)
リ ン グ · ラ イ ト · ガ イ ド U (第 3 図)
ス リ ッ ト · ラ イ ト · ガ イ ド 1 4 (第 4 図
ス ト レ ー ト · ラ イ ト · ガイ ド 1 5 (第 5 図) 二分岐 ラ イ ト · ガ イ ド 1 6 (第 6 図)
第 7 図か ら 第 1 1図 は以下 に示す種 々 な 照明方法を示 し て い る 。
透過光照明 (第 7 図)
一様光照明 (第 8 図)
同軸落射照明 (第 9 図)
平行光照明 (第 U図)
暗視野照明 (第 1 1図)
透過光照明 (第 7 図) は, 対象物 ◦ B が載置 さ れた 拡散板 2 9の 下方 か ら 光 源 1 0の 光 を 照射す る も の で あ る 。 対象物 O B の上方 に撮像装置 (た と え ば C C D テ レ ビ , カ メ ラ ) 2 Gが配置 さ れ, こ の カ メ ラ 2 Gは対象物 0 B が 占 め る 部分以外の 箇所 に お い て拡散板 2 9を透過 し た光 に よ る 像を撮像す る 。
—様光照明 (第 8 図) は, カ メ ラ 2 0が配置 さ れ る 箇 所 と 同 じ対象物 ◦ B の上方か ら 一様な 強度分布を も つ 光を対象物 0 B に 照射す る も の で あ る 。 第' 8 図で は照 明光が平行光の よ う に描かれて い る が必ず し も 平行光 で は な く て も よ い。 一様光照明 は均一照明 と も い われ る 同 軸 落射照 明 (第 9 図 ) で は , カ メ ラ 2 0と 対象物 0 B と の 間 に ほ ぼ 4 5 ° で 傾 い た ノヽ 一 フ · ミ ラ ー Πが配 置 さ れ る 。 横方向 か ら 光がハ ー フ · ミ ラ ー 2 8に 照射 さ れ, こ の ノヽ ー フ ' ミ ラ ー 2 8に よ る 反射光が対象物 0 B に 照射 さ れ る 。 対 象 物 O B で 反射 し か つ ハ ー フ · ミ ラ ー Πを透過 し た光が カ メ ラ 2 0に入射す る 。 同軸落射 照明 と は, あ た か も 撮像装置 と し て の カ メ ラ 2 Gか ら 照 明光が発射 さ れて い る かの よ う な 照明 と い う 意味で あ o
平行光照明 (第 1 0図) は平行光を対象物 0 B に照射 す る 方法で あ る 。 第 1 G図で は斜め上方か ら 平行光が対 象物 O B に照射 さ れて い る 。 こ れを特 に平行射方照明 と い う 。 も ち ろ ん, 対象物 O B に対 し て垂直上方か ら 平行光を 照射 し て も よ い。 一般 に対象物 0 B が置かれ た背景 B G は乱反射を生 じ さ せ る 物質で構成 さ れ る 。 こ れ に よ り , 対象物 0 B お よ び背景 B G の 両方力《 カ メ ラ 2 0に と つ て 明 る く 見え る 。
暗視野照明 (第 1 1図) で は , 鏡面 ま た は そ れ に近 い 表面を も つ背景 B G が使用 さ れ る 。 照明光 は斜め上方 か ら 照射 さ れ る 。 対象物 0 B か ら の 反射光 (拡散反 射光) が カ メ ラ 2 0に 入射す る 。 背景 B G か ら の乱反射 光 は非常 に少な い の で, カ メ ラ 2 Qに と つ て背景 B G は 暗 ヽ 兄 o ο
( 2 ) 照明条件決定支援装置 ( そ の 1 : 最適高 さ の決定 支援)
対象物を照明装置 に よ り 照明 し , 照明 さ れた対象物 の 画像を撮像装置 に よ り 撮像 し, こ れ に よ り 得 ら れ た 画像デ ー タ を用 い て各種検査等の 画像処理を実行す る 画像処理 シ ス テ ム に お い て, 照明装置の対象物 に対す る 最適高 さ を決定す る た め の支援装置 に つ い て説明す る o
第 12図 は最適高 さ 決定支援装置を含む画像処理 シ ス テ ム の 全体的構成を示 し て い る 。
画像処理 シ ス テ ム は, 対象物 0 B を照明す る 照明装 置 11, 対象 物 O B を 撮像 す る 撮像装 置 と し て の テ レ ビ · カ メ ラ 20お よ び画像処理装置 40を含ん で い る 。
照明装置 11と し て は第 1 図 に示す リ ン グ蛍光灯が用 い ら れて お り , 対象物 0 B を そ の真上か ら 照明す る 。 蛍光灯 Πの リ ン グ中心が対象物 0 B の 真上 に位置 し て い る 。 照明装置 11と 対象物 0 B と の距離, すな わ ち 照 明装置 11の対象物 O B に対す る 高 さ を h と す る 。 照明 装置 11と し て, 第 3 図 に示す リ ン グ · ラ イ ト · ガ イ ド 13を用 い る こ と も で き る 。
照明装置 11は支柱 30と 支持装置 31と に よ つ て上下動 自 在 に支持 さ れて い る 。 支持装置 31は照明装置 11の 把 持部 Πと , 把持部 32と ア ー ム を介 し て固定的 に結 合 さ れ た 摺 動 部 33と を 備 え て い る 。 摺 動 部 33は 筒状体 で あ っ て, こ の 筒状体の孔内 を支柱 30が摺動 自 在 に 貫通 し て い る 。 し たが っ て, 摺動部 3 3は支柱 3 Qに上下動 自 在 に支持 さ れて い る 。 摺動部 3 3に は止め ね じ , 止め ボ ル ト 等の 止め具 3 4が設 け ら れ, 摺動部 Πは こ の 止め 具
3 4に よ つ て支柱 3 0に 固定 さ れ る 。 し た が っ て, 照明装 置 1 1は手動で任意の 高 さ 位置 に調整 さ れかつ 固定 さ れ る o
撮像装置 と し て の カ メ ラ 2 0は, 対象物 0 B の 真上の 位置 に , 撮像 中心を照明装置 1 1の リ ン グの 中心 に一致 さ せ て下方 に 向 け て配置 さ れ, 照明装置 1 1に よ る 照明 下で対象物 0 B を上方か ら 撮像す る 。 図面が繁雑 に な る の を避 け る た め に カ メ ラ 2 0の支持装置の 図示が省略 さ れて い る 。 カ メ ラ 2 0は支持装置 に よ っ て固定的 に支 持 さ れて い る 。 も っ と も カ メ ラ 2 0も 上下動 自 在 に支持 し て も よ い の は い う ま で も な い。
カ メ ラ 2 0に よ っ て撮影 さ れた対象物 0 B を表わ す映 像信号 (モ ノ ク ロ ー ム の 映像信号で充分で あ る が, 力 ラ ー 映像信号であ っ て も よ い) は 画像処理装置 4 0に与 え ら れ る 。 画像処理装 置 4 0は 好 ま し ぐ は コ ン ビ ユ ー 夕 , シ ス テ ム に よ り 構成 さ れ, 後述す る 照明条件決定 支援装置 と し て の機能を有 し て い る 。 画像処理装置 4 0 は C R T 表示装置 4 1を備 え て い る 。 こ の 表示装置 4 1に は, カ メ ラ 2 0が撮影 し た対象物 0 B の 画像が表示 さ れ る と と ち に , 画 像処理装 置 4 Qに よ っ て 決定 さ れ た 照 明装置 1 1の最適高 さ h p が第 1 5図 に 示す よ う に表示 さ れ, ユ ー ザ に最適高 さ h p が報知 さ れ る 。
第 図 は画像処理 シ ス テ ム の 他の 例を示 し て い る 。 第 12図 に示す も の と 同一物 に は 同一符号を付 し , 重複 説明 を避 け る 。 こ の 画像処理 シ ス テ ム で は照明装置 11 が画像処理装置 4 Qか ら の 指令 に よ り 自 動的 に上下動 さ れ, かつ最適高 さ h p に 位置決め さ れ る 。
照明装置 11の昇降機構 Πは, 摺動部 Πに 固定 さ れ た ラ ッ ク 35と , こ の ラ ッ ク 35に 嚙み 合 う ピニォ ン 36と を 備え て い る 。 ピニオ ン 36は固定 さ れた軸受 (図示略) に よ り 回転 自 在 に支持 さ れて い る 。 ピニオ ン Πは ま た ル ス · モ ー タ Πに よ り 回転駆動 さ れ る 。
画像処理装置 が照明装置 11の最適高 さ h P を決定 す る と , 装置 4 (Iは照明装置 11が こ の高 さ h p に な る よ う に モ ー タ Πに正 ま た は逆方向 の 回転指令を与え る 。 モ ー タ 37は指令 さ れた 回転量回転す る の で, ピニ オ ン 36, ラ ッ ク 35を介 し て照明装置 11が上下動 さ れ, 最適 高 さ h p の 位置 に位置決め さ れ る 。 必要な ら ば昇降機 構 Πま た は モ ー タ Πに ロ ッ ク 機構を設 け, 照明装置 11 を最適高 さ 位置 に保持す る 。
第 H図 は照明装置 11の最適高 さ の決定を支援す る の に適 し た照明条件決定支援装置の構成を示 し て い る 。
照 明 条件決定支援装 置 50は ユ ー ザ · マ シ ン · イ ン タ ー フ ユ イ ス 53に お よ び最適高 さ 決定部 54を備 え て い る 。 こ れ ら の 各部 53, 54は 画像処理装置 40に 含 ま れて い る
入力装置 Πは キ ー ボ ー ド, ラ イ ト ペ ン , マ ウ ス 等か 構成 さ れ る 。 出 力装置 52は上述 し た C R T表示装置 "やパ ノレ ス · モ 一 夕 πを 含む。 ユ ー ザ は, ユ ー ザ · マ シ ン • イ ン タ ー フ ェ イ ス 53の 働 き に よ り , 表示装置 41 に表示 さ れた メ ニ ュ ー , 指示, マ — ク , 力 一 ソ ル等 に し た が っ て入力装置 51を操作 し , 対話形式で各種デ— タ , 情報の入力 を行な う 。
最適高 さ 決定部 54が決定 し た最適高 さ h p は, 上述 し た よ う に, 表示装置 41 (出力装置 52) に表示 さ れた り , モ ー タ 37への 指令 と し て使用 さ れ る 。 こ の 最適高 さ 決定部 54は好 ま し く は プ ロ グ ラ ム に し た力 つ て動作 す る C P U , な ら び に後述す る デー 夕 · ベ ー ス お よ び 入力 さ れた各種デー タ を記憶す る メ モ リ か ら 構成 さ れ O
第 16図 か ら 第 19図 は , 表面 に 円 環状 の 溝 (刻 印部 分) g が形成 さ れ た対象物 0 B に対す る 円環状の 照明
13 (た と え ば リ ン グ ' ラ イ ト · ガ イ ド照明装置) の最適 な設置高 さ h p を決定す る 方法を示す も ので あ る o
最適 な設置高 ざ h p と は, 溝 g が暗 く , 対象物 0 B の 溝 g 以外の表面が均一 に 明 る く な る よ う な 照明 を得 る た め の 照 明 装 置 13の 対象 物 0 B に 対す る 高 さ を い ラ o 照明装置 1 3が, 第 1 6図 に 示す よ う に, か な り 高 い位 置 に設置 さ れて い る 場合に は, 照明装置 1 3か ら の光が 溝 g の底面 に 到達す る の で, 溝 g の底面の一部が照明 さ れ, 溝 g は暗 く は な ら な い。
こ れ に対 し て, 照明装置 Uを, あ る 上限値 h i 以下 の高 さ ま で下 げ る と , 第 Π図 に示す よ う に, 照明光 は 溝 g の 底面 に到達す る こ と は な く , 溝 g は 暗 く な る 。 し たが っ て, 溝 g が暗部 と な る よ う な照明状態を得 る た め の 照明装置 1 3の 高 さ h の条件 は h ^ h 1 で与え ら れ る 。
上限値 h 1 は次式で表わ さ れ る 。
R 1 _- R 2
h = d X ( 1 )
W こ こ で, d は溝 g の深 さ , W は溝 g の 幅, R 1 は視 野中心か ら 溝 g の該中心力、 ら 最 も 遠い縁 ま での距離, R 2 は照明装置 1 3の半径であ る 。
他方, 対象物 O B の溝 g 以外の表面を一様に 照明す る ため に は, 照明装置 1 3の 等照度曲線を考慮 し て, 対 象物 0 B の 表面 に 照明む ら が生 じ な い よ う な条件を満 たす必要があ る 。
第 1 8図 は リ ン グ · ラ イ ト · ガイ ド照明装置 1 3の 等照 度曲線を示 し て い る 。
等照度で照明 さ れ る 領域の半径 R は, 照明装置 1 3か ら の垂直方向 の距離, す な わ ち 照明装置 1 3の設置高 さ 3
h に応 じ て変化す る こ と 力く こ の 図か ら 分 る '。
第 1 9図 は, 等照度で照明 さ れ る 領域の半径 R と 照明 装置 1 3の 設置高 さ h と の 関係を示 し て い る 。 撮像装置
2 0の視野 (対象物を照明す る 範囲) の半径を R 0 と す る 。 第 1 9図 に お い て, 等照度で照明 さ れ る 領域の 半径
R が上記視野の半径 R 0 に等 し い と き の 照明装置 1 3の 設置高 さ h は h 0 で あ る 。 し た が っ て溝 g 以外の 部分 を 明 る く かつ 一様 に 照明す る た め に は, 照明装置 1 3の 設置高 さ h の下限値を h 0 に設定すれば よ い。 こ の 条 件 は h ≥ h 0 で め O o
上述 し た 2 つ の条件か ら 照明装置 Πの最適な設置高 さ h p は, h 0 ≤ p ≤ h l の範囲内 で定め る こ と が で き る 。 最適高 さ 決定部 5 4内 の メ モ リ に は, 照明装置 の 種類 ご と に そ の半径 R 2 と 等照度曲線 に 関す る 情報 がデー タ · ベ ー ス と し て ス ト ァ さ れて い る 。
第 2 G図 は, 上述 し た溝 g を も つ対象物 0 B の溝 g を 暗部 と し , 対象物 0 B の溝 g 以外の表面を均一な 明部 と し て撮影す る た め に, 最適高 さ 決定部 5 4に よ っ て実 行 さ れ る 照明装置 の最適高 さ 決定処理の手順を示す も の で あ る 。
ま ず, 対象物 0 B の形状的特徴 に 関す る 情報 と し て 溝 g の 深 さ d , 幅 Wお よ び視野中心か ら 溝 g の最 も 遠 い縁 ま で の距離 R 1 が入力装置 5 1か ら ユ ー ザ に よ っ て 人力 さ れ る o ま た撮像装置 1 3の 視野の 半径 R 0 が入カ 装置 を通 し てユ ー ザ に よ っ て入力 さ れ る (ス テ ッ プ 201 ) 。 も っ と も こ の視野半径 R 0 は対象物 O B の半 径ま た は そ の対角線の長 さ の 半分 に等 し ければ よ い か ら , 対象物 0 B の形状的特徵の一つ と し て入力す る こ と も で き る 。
照明装置の 種類 は既に入力 ま た は決定 さ れて い る も の と す る と , そ の 照明装置の 半径 R 2 がデ ー タ · ベ 一 ス か ら 読出 さ れ る 。 ま た, そ の 照明装置の 等照度曲線 に 関す る デー タ , ベ ー ス か ら , 既に入力 さ れ た視野半 径 R 0 を用 い て高 さ の下限値 h O が導 き 出 さ れ る (ス テ ツ プ 2 Q 2 ) o
次に, 第 U ) 式の 演算が実行 さ れて照明装置の 設置 高 さ の上限値 h i が算出 さ れ る (ス テ ッ プ 2 ) 。 算 出 さ れた上限値 h 1 が上記下限値 h 0 以上であ る か否 かが判定 さ れ る (ス テ ッ プ 2 Q 4 ) 。
h 0 ≤ h 1 であ れば最適高 さ の決定が可能で あ る 。 そ こ で下限値 h O と 上限値 h i と の平均値が第 (2) 式 を用 い て照明装置の最適な設置高 さ h p と し て算 出 さ れ る (ス テ ッ プ 205 ) 。 h_0 + h 1
h D = (2)
2 最適高 さ h p の 算 出 は 第 (2) 式 に 限 ら ず , h O h ≤ h を満たす高 さ h p を最適な も の と し て選ぶ こ と 力 で き る の は い う ま で も な い こ の よ う に し て, 決定 さ れた最適高 さ h p は 出力装 置 5 2を 通 し て 出 力 さ れ る ( ス テ ッ プ 2 Q 6 ) 。 た と え ば, 照明装置の最適な 設置高 さ h p を ユ ー ザに知 ら せ る た め の 第 1 5図 に 示す よ う な メ ッ セ ー ジ 画像が表示装 置 4 1に表示 さ れ る 。 ま たは, こ の最適高 さ h p に基づ い て モ ー タ Πが駆動 さ れ, 照明装置が こ の高 さ h p の 位置 に 自 動的 に位置決め さ れ る 。
h 0 h 1 を満 た さ な い場合 に は, 表示装置 4 1に最 適な高 さ h p が.得 ら れな い 旨の メ ッ セ ー ジ が表示 さ れ る (ス テ ッ プ 2 ) 。
( 3 ) 照明条件決定支援装置 (そ の 2 : 最適角 度の 決定 の支援)
次に, 画像処理 シ ス テ ム に お い て, 照明装置の対象 物 に対す る 最適角 度を決定す る た め の 支援装置 に つ い て説明す る 。
第 2 1図 は最適角 度決定支援装置を含む画像処理 シ ス テ ム の 全体的構成を示 し て い る 。
照明装置 と し て第 4 図 に示す ス リ ッ ト · ラ イ ト · ガ ィ ド 1 4が用 い ら れて い る 。 こ の照明装置 1 4は そ の長手 方向に は水平な 姿勢で保持 さ れ, かつ対象物 ◦ B に対 し て斜め上方か ら 斜め に照明光を照射す る よ う に配置 さ れて い る 。 照明装置 と して は第 2 図 に 示す直管蛍光 灯 1 2を 使用 す る こ と も で き る o
第 2 1図 に お い て第 1 2図 に示す も の と 同一物 に は 同一 符号 を 付 し 重複 説 明 を 避 け る 。 照 明 装置 14の 把持部 32 A は摺動部 33に 傾動 自 在 に 保持 さ れて お り , 照明装 置 14の 向 き を任意の 角度 に手動で設定 し て固定す る こ と 力 で き る 。
第 図 に示す シ ス テ ム構成 と 同 じ よ う に, 摺動部 33 を 自 動的 に昇降す る 機構, お よ び把持部 Π Α を任意の 角 度に 自 動的 に 位置決めす る 機構を設 け, 画像処理装 置 40か ら の 指令 に 応 じ て高 さ お よ び角度を 自 動的 に設 定で き る よ う に す る こ と も で き る の は い う ま で も な い o
第 22図 は 対象物 O B の 一例 を 示 し て い る 。 対象物 0 B は板状体で あ っ て そ の表面 に長手方向 に の び る 直 線状の 溝 G が形成 さ れて い る 。
第 Π図 は照明装置 14の最適設置角度の決定を支援す る の に適 し た 照明条件決定支援装置の構成を示 し て い る 。 第 14図 に 示す構成 と 比較す る と , 最適高 さ 決定部 54に代えて最適角 度決定部 55が設け ら れて い る 。 他の 構成 は第 H図 に示す も の と 同 じ で あ る 。
第 24図お よ び第 25図 は, 溝 G を有す る 対象物 O B に 対す る 照明装置 14 ( ス リ ッ ト · ラ イ ト · ガ イ ド照明装 置) の設置角 度 を最適値 に設定す る 方法を示 し て い o
照明装置 14の 最適な設置角度 0 と は, 対象物 O B の 溝 G が暗部, そ れ以外の表面部分が明部 と な る よ う な 照明 を得 る た め の も の で あ る 。 こ れを実現す る た め に は, 溝 G の 幅を S , 溝 G の 深 さ を t と す る と , 第 (3 ) 式の 関係 を満た さ な け ればな ら な い。 角 度 6> は照明装 置 1 4か ら の 光線 (光軸 ) と 水平面 と の な す 角 度 で あ る O t a η Θ … (3 )
S と こ ろ で通常の 物体の表面で は , 第 2 5図 に 示すよ う に, 物体への入射光 は不完全拡散反射す る 。 す な わ ち 入射角 に 等 し い正反射光の 強度が最 も 強 く , 正汉射角 か ら ずれ る に し た が つ て反射光強度 は弱 く な る 。 対象 物 0 B の 溝 G 以外の表面 明部 と し て撮像 し , 暗部の 溝 G と t 明確な コ ン ト ラ ス ト を得 る た め に は, 撮像装 置 2 0に 入射す る 溝部 G 以外の部分か ら の反射光の 強度 を大 き く す る 必要がめ る 0 撮像装置 2 0は対象物 0 B の 真上, ま た は そ れ に近 い位置 に 設置 さ れて い る の で, 撮像装置 2 0に正反射光がで き る だ け多 く 入射す る よ う にす る た め に は, 照明装置 1 4の設置角 度^ は 9 0度 に で き る だ け近 い方が よ い。 こ の こ と か ら 照明装置 1 4の最 適な設置角 度 Θ は, 第 (4 ) 式で与ん れ る 。
( 4 ) θ p = t a n _ 1 第 2 6図 は, 溝 G を も つ 対象物 0 B に つ い て, 溝 G を 暗部, そ れ以外の部分を 明部 と し て撮像す る た め の 照 明条件を見つ け 出す た め に , 適角度決定部 5 5に よ っ て 実行 さ れ る 処理の手順を示す も の であ る 。
ま ず, ユ ー ザが入力装置 5 1か ら 対象物 O B の 溝 G の 幅 S お よ び深 さ t に つ い て の デ ー タ を 入力 す る ( ス テ ツ プ 2 1 1 ) 。 次 に 第 (4 ) 式 の 演算 が実行 さ れ, 照 明装置 1 4の最適設置角度 p が算出 さ れ る ( ス テ ッ プ 2 1 2 ) 。 こ の 算出 さ れた最適設置角度 S p は 出 力装置 5 2か ら 出力 さ れ る (ス テ ッ プ 2 U ) 。 た と え ば表示装 置 4 1の 画面 に , 照 明 装 置 1 4の 最適 な 設 置 角 度 S p を ユ ー ザへ知 ら せ る た め の メ ー セ ー ジ 画像 (図示略) が 表示 さ れ る 。
( 4 ) 照明条件決定支援装置 (そ の 3 : 照明装置お よ び 照明方法の決定の支援)
画像処理 シ ス テ ム に お い て, 検査 目 的 に適 し た 画像 を得 る た め に は, どの 照明装置を用 い て, どの よ う な 照明方法で照明す る の か, と い う こ と も き わ め て重要 な要因であ る 。
発明者 ら は, 何を どの よ う に検査す る た め に , どの よ う な 照明装置力 どの よ う な 照明方法で用 い ら れて い る かを詳細 に調べ, 次の 3 つ の要因 に基づ け ば適切 な 照明装置 と 照明方法を決定で き る と の知見を得た。 す な わ ち , ①検査 目 的, ②着 目 部 と 背景 と の光学的性質 の差異, お よ び③視野の大 き さ の 3 要因で あ る 。
照明装置 と 照明方法 は上記要因② と ③ に基づい て一 応決定 は で き る 。 よ り 厳密 に は要因②の着 目 部 と 背景 の光学的性質の差異 (透過率, 反射率, 反射方向, 色 な ど) の う ち , ど の 差異 に基づい て照明装置 お よ び照 明方法を決定す る の か と い う こ と も 重要で る 。 な ぜな ら ば, 一般 に検査すべ き 着 目 部 と 背景 は透過率, 反射 率, 反射方向, 色な どの う ち どれか 1 つ だ け が異な る わ けで は な い か ら で あ る 。
そ こ で, 要因①を基 に し て, 各検査 目 的 に適 し た要 因②を考慮す る 必要が あ る 。 こ の た め に は, 予 め獲得 し て お い た専門家の経験知識や光学的解析結果が利用 さ れ る 。
第 Π図 は照明装置 と 照明方法の決定を支援す る の に 適 し た照明条件決定支援装置の構成例を示 し て い る 。 第 1 4図 お よ び第 2 3図 と の比較で い う と , 決定部 5 4ま た は 5 5に代え て, 照明装置お よ び照明方法の 決定部 5 6が 設 け ら れて い る 。
第 2 8図 は検査対象物 ( ワ ー ク ) の一例 と し て 2 つ の コ ネ ク タ の外観を示 し て い る 。 こ の コ ネ ク タ に つ い て は後に具体的 に照明装置お よ び照明方法を決定す る 実 例で触れ る こ と に す る 。
第 2 9図 は照明条件決定支援装置 5 0に よ る'照明装置 と 照 明 方 法 の 決定処理 の 全体 的 な 手順 を 示 す も の で あ
«& o
ユ ー ザ に よ つ て, 表示装置 4 1の 表示画面 を利用 し た 対話を通 し て, 入力装置 5 1か ら ①検査 目 的が入力 さ れ る と , 入 力 さ れ た 検査 目 的 に し た が っ て第 3 0図 か ら 第 3 6図 の 処理 の い ず れ か に ジ ャ ン プ す る こ と に な る (ス テ ッ プ 2 2 1 ) 。 検査 目 的 と こ れ ら の処理 と の 関係 は次の通 り で あ る 。
形状, 寸法の検査 第 3 0図の処理
物品の 有無や欠品の検査 第 3 1図の 処理
傷の検査 第 Π図の処理
色 の 検査 第 Π図の処理
位置決め 第 3 4 a 図, 第 3 4 b 図 の処理
異物の検査 第 図の処理
文字, マ ー ク の 検査 第 Π図の 処理
③視野 の 大 き さ も 入 力 し て も よ い が , 第 Π図 か ら 第 図 に 示す表示画面の側か ら 分 る よ う に, 視野の大 き さ に適 し た照明装置が表示 さ れ る の で, ユ ー ザ は視 野の大 き さ を入力 し な く て も 照明装置を決定す る こ と がで き る 。 も ち ろ ん, 視野の大 き さ の入力 を待 っ て, 入力 さ れた視野の大 き さ に適 し た照明装置 の み を表示 す る よ う に し て も よ い。
後 に詳述す る よ う に, 第 3 D図か ら 第 図 に 示す検査 目 的 に 合致 し た具体的処理に お い て, 要因②の着 目 部 と 背景 と の光学的性質の 差異が表示装置 4 1の 画面上 に お い て順次質問 さ れ, ユ ー ザか ら そ れ に対す る 回答が 入力装置 5 1を通 し て入力 さ れ る と , 検査の た め に 着 目 すべ き 最適な 着 目 部 と 背景 と の光学的性質の差異が導 かれ (ス テ ッ プ 2 2 2 ) , そ の 結果 に応 じ て照明装置 お よ び照明方法が決定 さ れ る (ス テ ッ プ 2 2 3 ) 。 こ の 実 施例で は, 表示 さ れた画面 に表わ さ れた照明装置 と 照 明方法 と の い く つ かの組合わせ の 中か ら ユ ー ザが最終 的 に 照明装置お よ び照明方法を決定す る こ と に な る 。
第 3 0図 に 示す形状 と 寸法の 検査を 目 的 と し た決定処 理 に お い て は, ま ず シ ルエ ツ ト 検査が可能か ど う かが 質問 さ れ る ( ス テ ッ プ 2 3 1 ) 。 ユ ー ザが可能であ る 旨 の 回 答 を 入力 す る と , 検査 の た め に 着 目 す べ き 最適 な ②着 目 部 と 背景の光学的性質の差異 は透過率で あ る か ら , 第 Π図 に 示す透過光照明用 画面が表示装置 4 1に 表示 さ れ る (ス テ ッ プ 2 3 2 ) o
こ の透過光照明用 画面 は, シ ルエ ッ ト 検査が可能で あ れば第 7 図 に 示す透過光照明が適 し て い る こ と を表 わ し て い る 。 透過光照明 に は, 照明装置 と 対象物 と 力 メ ラ と を水平 に配置す る タ イ プ 1 と , こ れ ら を垂直 に 配置す る (第 7 図 に示す配置) タ イ プ 2 と 力 あ る 。 こ れ ら の両 タ イ プ に共通 し て, 視野の 大 き さ に対応 し て 適切な 照明装置が表示 さ れ る 。 ユ ー ザ は こ れ ら の 表示 さ れた照明装置の 中 か ら 視野の 大 き さ に 合 っ た も の を 選択す る こ と に な る 。 こ こ で ø は リ ン グ型の照明装置 の 径で あ り , Ά (第 3 8図参照) は直線状の 照明装置の 長 さ を示 し て い る 。
シ ルエ ツ ト 検査が不可能で あ る 旨がユ ー ザか ら 入力 さ れ る と , 次 に着 目 部 と 背景の 色が似て い る か ど う か の 質問が表示装置 4 1に現わ れ る (ス テ ッ プ 2 3 3 ) 。 着 目 部 と 背景の色が似て い な け れば着 目 すべ き 差異 は色 や反射率であ る 。 そ こ で, 第 Π図に示す一様光照明用 画面が表示 さ れ る (ス テ ッ プ Π 4 ) 。
一様光照明用 画面で は一様光照明 (第 8 図) が適切 であ る こ と , 一様光照明 に お い て各種の視野の大 き さ に適 し た照明装置 の 種類が表示 さ れ る 。
シ ルエ ツ ト 検査が不可能でかつ着 目 部 と 背景の 色が 似て い る 場合に は, 着 目 すべ き 差異は光の 反射方向 で あ る 。 そ こ で着 目 部 に突起があ る か, 穴があ る かが尋 ね ら れ る (ス テ ッ プ 2 3 5 , 2 3 7 ) 。
対象物の 着 目 部 に突起があ る 場合に は第 3 9図 に 示す 凹凸突起照明用 画面 (凹凸 の う ち突起 に着 目 し た照明 の た め の 画面) が表示 さ れ る ( ス テ ッ プ 2 3 6 ) 。 こ の 画面で は平行光照明 (第 1 ΰ図) が適切で あ る こ と , お よ び こ の平行光照明 に お い て用 い ら れ る 照明装置 の 種 類が視野の大 き さ ご と に表示 さ れ ^。
着 目 部 に穴があ る 場合に は第 4 0図 に示す凹 凸穴照明 用画面 (凹凸の う ち 穴に着 目 し た照明を行な う た め の も の ) が表示 さ れ る ( ス テ ッ プ 2 3 8 ) 。 こ の 画面で は, 検査の 目 的 ま た は場所 に応 じ て, 平行光照明 ま た 4
は 同軸落射照明 (第 9 図) が適切で あ る こ と , お よ び そ れ ら に適 し た視野の 大 き さ ご と の照明装置が表示 さ れ る
着 目 部 に突起 も 穴 も な い場合 に は第 4 1図 に 示す凹凸 ェ ッ ジ照明用 画面が表示 さ れ る (ス テ ッ プ 2 3 9 ) の 画面で は平行光照明が適切で あ る こ と , お よ び視野 の大 き さ に応 じ た照明装置の 種類が表示 さ れ る 。
第 3 1図 に 示す部品の 有無お よ び欠品の 有無を 目 的 と し た 検査 の た め に , , シ ル エ ッ ト 検 査が可能 か ど う か ( ス テ ツ プ 2 4 1 ) 部品の色 と ベ ー ス (部品が搭載 さ れて い る 本体) の 色 と 力《似て い る か ど う か ( ス テ ッ プ 2 4 3 ) が順次表示装置 4 1を通 し て質問 さ れ る 。
第 3 0図を参照 し て説明 し た照明用 画面以外の も の に つ い て特 に言及すれば, 部品 と ベ ー ス の色が似て い る に は, 第 図 に 示す正反射利用 照明用 画面が表示 さ れ る (ス テ ッ プ 2 4 5 ) 。 正反射利用照明 に は平行光 照明 (第 1 D図) お よ び暗視野照明 (第 1 1図) が含 ま れ ユ ー ザ は こ の 画面に表示 さ れた, 照明方法お よ び 視野の大 き さ に対応 し た照明装置 を選択す る こ と がで き る
第 3 2図か ら 第 3 6図 に 示 さ れた処理 も 上述 し た も の と ほ ぼ同 じ で あ り , そ の処理の 内容 は こ れ ら の 図面か ら 理解で き る であ ろ う 。 ま だ言及 し てい な い第 4 2図の 凹 凸線照明用 画面 に つ い て少 し説明す る と , こ の 画面 は 第 3 2図 に示す傷の検査を 目 的 と し た照明 に お い て, シ ルエ ツ ト 検査が不可能でかつ傷の方向が特定不可能で あ る 場合 ( ス テ ッ プ 2 5 1 , 2 5 3 の い ず れ に お い て も N O ) に表示 さ れ る 。 対象物の表面 に で き て い る 傷 (細 い線状の 凹凸) を適切 に撮像す る た め に平行光照明 を 用 い る の が適当 であ り , 視野の 大 き さ に応 じ て ス リ ツ ト · ラ イ ト · ガイ ド ま た は 直管蛍光灯を選択すべ き で あ る こ と が示 さ れて い る 。
以上の よ う に し て, 検査 目 的 に応 じ て表示装置 4 1お よ び入 力 装 置 5 1を 通 し て 所定 の 質 問 と そ れ に 対す る ユ ー ザの 回答 と が繰 り 返 さ れ, 目 的 と す る 検査の た め に着 目 すべ き 最適な着 目 部 と 背景 と の光学的性質の 差 異が何で あ る かが判断 さ れ, そ の判断結果 に基づ き 適 切な照明装置 お よ び照明方法が決定 さ れ る 。
具体例 と し て第 2 8図 に示す コ ネ ク タ · ピ ン の抜 け を 検査す る 場合につ い て説明す る 。 ①検査 目 的 は部品の 有無, 欠品検査に相当す る の で, 第 Π図 に 示す処理 に 進む。 検査 ラ イ ン で シ ルエ ツ ト 検査で き る よ う な構成 に な っ て い れば, 第 Π図 に示す透過光照明用 画面が表 示 さ れ る 。 視野 は 3 0画程度で あ る の で, リ ン グ型の蛍 光灯を用 い た水平型 ま た は垂直型の透過光照明が適切 と い う こ と に な る 。 シ ルエ ッ ト 検査がで き な い場合に は, 次の判断 に移 り , 部品 と ベ ー ス の色 は似て い な い の で 第 3 8図 に 示 さ れ る 一様光照 明 用 画面が表示 さ れ る 。 こ の 例で は対象物 は横長で あ り ( タ イ プ 2 ) , 視 野 は 3 0腿程度で あ る の で, ス リ ッ 卜 · ラ イ 卜 · ガ ィ ド を用 い て斜め上方か ら 照明す る こ と が適当 と い つ $π δ冊 力 得 ら れ る 。
上記 の 例 で は , 表 示装 置 4 1 <ヒ 入 力 装 置 5 1を 通 し て ユ ー ザ と 決定部 5 6と が対話す る こ と に よ り 処理が進行 す る よ う に な っ て い る 。 上記要因①, ②, ③を選択す る 選択 フ ロ ー や ガ イ ド · ブ ッ ク に し た力 つ てュ一ザが 各種デ ー タ , 情報を入力す る こ と に よ り 処理を進行 さ せ て も よ い。 ま た, 要因①, ② , ③の順で選択が行な わ れて い る が, た と え ば 「③視野の大 き さ 」 を ま ず定 め る よ う な手順で あ っ て も よ い ο
( 5 ) 照明条件決定支援装置 (そ の 4 )
照明条件決定支援装置の最後の例 と し て, 上述 し た 照明装置 お よ び照明方法の 決定, な ら び に 照明装置の 最適高 さ ま た は最適角度を決定す る た め の 装置 に つ い て説明す る 。
第 4 4図 に 示す こ の よ う な 照明条件決定支援装置 5 0に は, 上述 し た最適高 さ 決定部 5 4 , 最適角度決定部 5 5な ら び に 照明装置お よ び照明方法の決定部 5 6が設 け ら れ て い る 。 他の構成 は, 第 1 4図, 第 Π図 お よ び第 2 7図 に 示す も の と 同 じ で あ る 。
こ の 装置 5 0に お い て実行 さ れ る 処理手順が第 4 5図 に 示 さ れて い る 。 ま ず, 上述 し た よ う に検査 目 的 に適 し た照明装置 お よ び照明方法がユ ー ザ と 決定部 56と の対話を通 し て決 定 さ れ る (ス テ ッ プ 311 ) 。 ユ ー ザ は表示装置 41に表 示 さ れた も の の 中か ら 最適な 照明装置お よ び照明方法 を選択 し て入力す る 。
こ の よ う に し て決定 さ れた照明装置 に つ い て, 最適 高 さ を決定すべ き か, 最適角度を決定すべ き かが判定 さ れ, そ れ に応 じ て決定部 , 55の い ずれかが選択 さ れ る (ス テ ッ プ 312 ) 。 一般的 に は リ ン グ状の 照明装 置 につ い て は最適高 さ の 決定が必要で あ り , 直線状の 照明装置 に つ い て は最適角度の決定が必要 と な ろ う 。 決定すべ き最適高 さ ま た は角度に応 じ て, 必要な情報 が入力 さ れ, 第 20図 に示す処理 ま た は第 26図 に示す処 理 に し た力 つ て, 最適高 さ h p ま た は最適角度 0 p が 決定 さ れ (ス テ ッ プ Π3 ) , そ の結果が表示装置 41に 表 示 さ れ る か, ま た は 高 さ も し く は 角 度 の 調整装置 (昇降機構等) に与え ら れ る (ス テ ッ プ Π4 ) 。
第 46図 は複数種類 ( n 種類) の 照明装置が選択 さ れ た場合 に, そ れ ら の そ れぞれ に つ い て最適高 さ を決定 す る た め の処理手順を示 し て い る 。 第 20図 に示す も の と 同一処理に つ い て は 同一ス テ ツ プ番号を付 し 説明を 省略す る 。
カ ウ ン タ i が設 け ら れて お り , こ の カ ウ ン タ i は ま ず i = l に初期設定 さ れ ( ス テ ッ プ Π1 ) , ス テ ッ プ 2 0 4 の 条件 h O ^ h l を 満た さ な い照明装置があ つ た 場合 に イ ン ク レ メ ン ト さ れて い く (ス テ ツ プ ) 。 各種条件の入力 ( ス テ ッ プ 2 Q 1 ) の の ち , i 番 目 の 照 明装置の 種類が入力 さ れ ( ス テ ツ プ ) , 入力 さ れ た照明装置 に つ い て最適高 さ h p か決定で き る か ど う かが判定 さ れ る ( ス テ ッ プ 2 0 4 ) 。 決定で き れば最適 高 さ h p が求め ら れ, 処理が終 る 。 すべて の種類 ( n 種類) の 照明装置 に つ い て最適高 さ が決定で き な い場 合 に は ( ス テ ッ プ 3 2 4 ) , そ の 旨 の メ ッ セ 一 ジ が表示 さ れて処理が終 る ( ス テ ツ プ 2 ) 。 照明装置 の 均一 照度を も つ視野の 半径 R 0 は ス テ ッ プ 2 に お い て照 明装置の 種類 ご と に 入力 さ れ る 場合 も あ ろ う o
( 6 ) 最適照明条件設定支援装置 (そ の 1 : 照明装置の 位置の 設定)
上述 し た照明条件決定支援装置 ( そ の 1 , そ の 2 ) で は照明装置 と 被検査対象物 と の 位置関係 に基づ い て 照 明 装 置 の 最適 高 さ , 最適 角 度 を 決定 し て い る 。 次 に, カ メ ラ に よ り 撮像 さ れた 画像の質の観点か ら 照明 装置の最適位置 を決定す る , ま た は そ の 決定を支援す る 装置 に つ い て説明す る o
こ の実施例 に お い て も 第 Π図 に示す画像処理 シ ス テ ム の構成が適用 さ れ る 。 画像処理装置 4 0は, テ レ ビ · カ メ ラ 2 0に よ っ て撮像 さ れ た対象物 0 B を表わす映像 信号を取込み, 照明装置 1 1の最適高 さ の設定を支援す る た め の 後述す る 画像処理を実行す る 。 C R T 表示装 置 4 1は対象物 0 B の撮影画像を表示す る と と も に, 照 明装置 1 1の 位置設定を ア ドパイ ス す る た め の メ ッ セ 一 ジ を表示す る 。
第 4 7図 は画像処理装置 4 0の 回路構成 ¾r 不 し て い る 。 画像処理装置 4 Qは, 画像入力部 6 1 , 画像 メ モ リ 6 2, 画 像出力部 6 3 , マ イ ク 口 υ ン ピ ュ ー 夕 , 夕 ィ ミ ン グ制御 部 な ど に よ っ て構成 さ れて い る 。
画像入力部 6 1は, テ レ ビ • カ メ ラ 2 0力、 ら 出力 さ れ る ア ナ ロ グ映像信号を 丁 ィ ジ タ ル画像デー タ に変換す る A D 変換器を含み , こ の 丁 イ ジ 夕 ゾレ画像デ ー タ を画 像 メ モ リ 6 2に 与え る 。 ま た 画像入力部 6 1は , 入力す る ア ナ ロ グ映像信号 に基づ い て, 明 る さ を横軸 と し て画 質を表わす画質 ヒ ス ト グ ラ ム を実時間で生成す る ヒ ス ト グ ラ ム生成回路を備え て ■ O o の ヒ ス ト グ ラ ム生 成回路 の具体的回路構成お よ び動作に つ い て は後述す
Ό o
画 像 メ モ リ 6 2は 画 像入力 部 6 1か ら 与 え ら れ る 画像 デー タ 画素単位で記憶す る 。 画像出力部 6 3は画像 メ モ リ 6 2か ら 読出 さ れた画像デー タ を ア ナ 口 グ映像信号 に変換す る D Z A 変換器を含み, 変換 さ れた 1 画面分 の ア ナ 口 グ映像信号を C R T 表示装置 4 1に 与 L る こ れ に よ り , テ レ ビ · カ メ ラ 2 0に よ っ て撮影 さ れ た対象 物 0 B の 画像が表示装置 に も 表示 さ れ る マ イ ク ロ コ ン ピ ュ ー タ は, 制御, 演算の 主体で あ る C P U 65を有 し , こ の C P U 65に シ ス テ ム バ ス を介 し て R 0 M 66, R A M Π, I / 0 制御部 な どが接続 さ れて い る 。 C P U 65は R 0 M 66に格納 さ れた プ ロ ダ ラ ム を解読, 実行 し , ま た R A M に対 し て各種デ ー タ の 読 み 書 き を 行 っ て , 所 定 の 画 像処理 を 実行す る 。 I Z 0 制御部 68に は キ ー ボ ー ド Πが接続 さ れて い る 。 キ ー ボ ー ド Πか ら の キ ー入力信号 は I 0 制御部 68を 経て C P U 65へ送 ら れ る 。
タ イ ミ ン グ制御部 64は, C P U 65の制御の下 に , 画 像入力部 61, 画像 メ モ リ 62, 画像 出力部 63に対 し て, 各種デ ー タ の 入出力動作を制御す る た め の タ イ ミ ン グ 信号を 出力す る 。
第 48図 は, 画像入力部 61に設 け ら れた ヒ ス ト グ ラ ム 生成回路 の具体例を示 し て い る 。
C P U 65は C P U ノ ス を 介 し て ァ ド レ ス • ジ ェ 不 レ ー 夕 80を制御す る 。 了 ド レ ス · ジ ヱ ネ レ 一 夕 80は必 要な ァ ド レ ス 信号, コ ン ト ロ ー ル信号お よ び タ イ ミ ン グ信号 を 生成 し , 構 成各部 へ与 え る 。 画像 メ モ リ 62 は, コ ン ト ロ ー ル ' バ ス を介 し て入力す る コ ン ト ロ ー ル信号 に よ っ て書込 と 読出 が制御 さ れ る 。 'ァ ド レ ス , バ ス を介 し て入力す る ァ ド レ ス 信号に し た が う 画像 メ モ リ の ア ド レ ス に , デ ー タ · バ ス か ら 供給 さ れ る 画 像デ ー タ が書込 ま れ, ま た, 読出 さ れ る 。 ァ ド レ ス · バ ス, コ ン ト ロ ー ル ' ノ ス お よ びデー タ · ノ"? ス は, 他 の 回路 に も 接続 さ れて い る の は い う ま で も な い。 画像 メ モ リ に は , 1 フ ィ ー ル ド分 ( ま た は 1 フ レ ー ム 分) の 画像デー タ が書込ま れ る 。
画像 メ モ リ 62に ス ト ア さ れた 1 フ ィ 一 ノレ ド分 (ま た は 1 フ レ ー ム 分) の 画像デ ー タ に, 第 50図 に 示す よ う に, こ の実施例で は 3 X 3 = 9 画素の ウ イ ン ド ウ が設 定 さ れ る 。 こ の ウ ィ ン ド ウ の 中心の 画素を P Q と し, こ の 中心画素 P Q の ま わ り の 画素に反時計回 り に P i 〜 P 8 の 符号を付す。 3 3 の ウ イ ン ド ウ は全画面の ェ リ ァ を水平お よ び垂直走査方向 に移動 し て い く 。
こ の よ う な ウ ィ ン ド ウ を設定す る た め に , ラ ッ チ 回 路 76, 75, 1 H 遅延 回 路 ( シ フ ト · レ ジ ス タ ) 78, ラ ッ チ 回路 7 7 , 1 H 遅延回路 71お よ び ラ ッ チ 回路 72, 73が設 け ら れてお り , 画像 メ モ リ 62か ら 水平, 垂 直走査の順序で読出 さ れた 画像デ ー タ は こ れ ら の ラ ッ チ 回路お よ び 1 H遅延回路 に上記の順序で順次転送 さ れ て い く 。 1 H 遅延 回 路 78, Πは 入 力 デ ー タ を 1 H ( 1 水平走査期間) 遅延 し て 出力 し , ラ ッ チ 回路 76, 75, 70, 74, 72 , 73は入力 デー タ を 1 画素 ク ロ ッ ク 周 期遅延 し て 出力す る 。
画 像 メ モ リ 62か ら 読 出 さ れ た 画 像 デ ー タ ( 画 素 P 7 ) , ラ ッ チ 回 路 76 , 75 , 70, 74, 72, 73の 出 力画像デ ー タ (画素 P 6 , P J , P 0 , P ^t , P 2 - P 3 ) お よ び 1 H 遅 延 回 路 78, 71の 出 力 画 像 デ — 夕 (画素 P 8 , P ! ) は非適合度演算部 に与え ら れ る 。 ラ ッ チ 回路 ? 0の 出力画像デ ー タ (中心画素 P Q ) は ま た, 非適合度 ヒ ス ト グ ラ ム生成部 82お よ び明 る さ ヒ ス ト グ ラ ム生成部 Πに も 与え ら れ る 。
第 49図 は非適合度演算部 Πの構成例 を示す も の で あ る 。 こ の 非適合度演算部 Πは, 縦, 横, 斜 め に の び る 8 種類 ( 8 方向) の エ ッ ジ · パ タ ー ン の そ れぞれ に対 す る ウ ィ ン ド ウ 内 画 像 デ ー タ の 適 合度 ( エ ッ ジ適 合 度 ; エ ッ ジ ら し さ ) 〜 J" 8 を求め, こ れ ら の 適合 度 〃 i 〜 〃 8 の M A X 演算 (最大の も の を選択す る こ と ) を行 っ てエ ッ ジ適合度 ^ を求め, さ ら に ^ = 1 — // よ り 非適合度 (エ ッ ジ ら し く な さ ) を求 め る も の で あ O 0
8 個 の減算回路 91〜 98が設 け ら れて い る 。 こ れ ら の 減算 回 路 91〜 98に は そ れ ぞ れ, 上述 し た ウ ィ ン ド ウ 内 画素 P i 〜 P 8 の画像デ ー タ が与え ら れ る 。 ま た, すべて の 減算回路 91〜 98に は 中心画素 P 0 の 画像デー 夕 が与え ら れ る 。 減算回路 91は画素 P i の 画像デ ー タ と 中心画素 P () の 画像デー タ と の 差 ( こ れを と す る ) を算出す る 。 同 じ よ う に減算回路 92〜 98は, 画素 P 2 〜 P 8 の 画像 デー タ の そ れぞれ と 中心画素 P Q の 画像 デ ー タ と の差 ( こ れ ら を q 2 〜 Q 8 と す る ) を算 出す る 。 画像デ ー タ は上述 し た よ う に モ ノ ク ロ ー ム 画 像を表わす も の で あ る か ら (カ ラ ー 画像デ ー タ の場合 に は輝度デー タ を抽 出すれば よ い) , 各画素の 明 る さ を示 し て い る 。 し た力 つ て, 差デ ー タ 〜 q 。 は, 中心画素 Ρ θ と そ の 周 囲の 画素 P i P 8 と の 明 る さ の差を表わ し て い る 。 第 51図 に ウ ィ ン ド ウ 内 の 明 る さ タ ー ン P Q P 8 ( P o P g は こ こ で は画像デ ー 夕 を示す) 力、 ら ウ イ ン ド ウ 内 の 中心画素を基準 と し た 明 る さ タ ー ン (明 る さ の差の パ タ ー ン ) q β - q g が生成 さ れ る 様子が示 さ れて い る 。
こ の 実施 例 で は 8 種類 の エ ツ ジ · パ タ ー ン を メ ン 一 シ ッ プ関数を用 い て表現 さ れた フ ア ジ ィ · モ デル に よ っ て 表 わ し て い る 。 こ の フ ア ジ ィ ' モ デ ル が 第 52 a 図か ら 第 52 h 図 に示 さ れて い る 。 N は N e g a t i v e を, Z は z e r oを, P は Po s i t i v eを そ れぞれ表わ し て お り , こ れ ら の 符号 ( こ れを ラ ベル と い う ) で指定 さ れ る メ ンバ 一 シ ッ プ関数が第 53図に示 さ れて い る 。
メ ン バ 一 シ ッ プ関数 N は, 破線で示す よ う に , 明 る さ の差 q 力 あ る 負の値 一 q b よ り 小 さ い範囲で は, 関 数値が最大値 1 の値を と り , 0 よ り 大 き い範囲で は最 小値 0 の 値を と り , — Q b か ら 0 ま での範囲で は そ の 値に対応 し て直線的 に変化す る 1 か ら 0 ま での値を と る
メ ン バ 一 シ ッ プ関数 P は, 明 る さ の差 q 力 0 よ り 小 さ い 範 囲 で は 関数値 が最小値 0 を と り . あ る 正 の 値 q b よ り 大 き い範囲で は最大値を と り , 0 〜 q b の 範 囲で は そ の値 に対応 し て直線的 に変化す る 0 〜 1 の 間 の値を と る 。
メ ン バ ー シ ッ プ 関数 Z は , 明 る さ の 差 q の 絶対値 があ る 値 q a よ り 大 き い 範 囲 で は 関数値 が最 小値 と な り , 絶対値が Q b よ り 小 さ い範囲で は最大値 1 と な る 。 そ し て, 明 る さ の 差 q の絶対値が q b よ り 大 き く かつ q よ り 小 さ い範囲で は, そ の値 に対応 し て, 関 数値 は, 直線的 に変化す る 1 か ら 0 ま で の 中間の値 と な る 。
第 52 a 図 に示す フ ア ジ ィ · モ デル は, 右下方向 に 明 る く か つ 左上方 向 に 暗 く な り , 右上 り の 斜 め の エ ツ ジ · ノ、。 タ ー ン を表わ し て い る 。 第 52 b 図 は右方向 に 明 る く , 左方 向 に 暗 く , 垂 直方 向 に の び る エ ッ ジ · パ タ ー ン を表わ し て い る 。 第 52 c 図か ら 第 52 h 図 に 示す フ ア ジ ィ · モ デ ル も 他の 種類の エ ッ ジ · パ タ ー ン を表 わ し て い る こ と は容易 に理解で き ょ う 。 第 52 a 図か ら 第 52 h 図の エ ツ ジ · パ タ ー ン の方向を, 方向 1 〜方 向 8 と 定め る 。
第 49図 に 戻 っ て, 上述 し た 8 方向 の エ ッ ジ · パ タ ー ン に対応 し て 8 個 の エ ッ ジ適合度演算回路 111 〜 118 が設 け ら れて い る 。 こ れ ら の エ ッ ジ適 台度演算回路 は 設定 さ れた メ ン バ ー シ ッ プ関数を 除 いて 同一の構成を も つ の で, 回路 111 に つ い て説 明 す る 。 エ ッ ジ 適 合度演算 回 路 111 は , そ れ ぞ れ メ ン バ 一 シ ッ プ関数回路 (以下 M F C : Memb e r s h i p F un c t i o n C i r c u i t と い う ) 101 〜 108 と , そ れ ら の 出力 の 最小 値 を 選択す る M I N 回 路 109 と に よ り 構成 さ れ て い る 。 各減 算 回 路 91〜 98の 出 力 デ ー タ 〜 (! 8 は, M F C 101 〜 1 に そ れぞれ入力す る 。
M F C 101 〜 108 に は, 第 52 a 図 に示す右 45度上方 を指向す る 方向 1 の エ ツ ジ ' パ タ ー ン の フ ァ ジ シ · モ デル に対応 し て, メ ン バ ー シ ッ プ関数 Z , N ま た は P が設定 さ れて い る 。 詳述すれば, 画素 P i と P c (明 る さ の差 と Q 5 ) に対応す る M F C 1 G 1 と 105 に は メ ン バ ー シ ッ プ 関 数 Z が, 画 素 P 2 , P 3 , P 4 (明 る さ の差 q り , Q 3 ' Q 4 } に 対 応 す る M F C 102 , 103 , 1 M に は メ ンバ 一 シ ッ プ関数 N が, 画素 P g , P 7 , P 8 (明 る さ の差 q 6 , q 1 , q 8 ) に 対応す る M F C 1 , 107 , 108 に は メ ン バ 一 シ ッ プ 関数 P が, それぞれ設定 さ れて い る 。
M F C 101 は そ こ に設定 さ れて い る メ ン ノ 一 シ ッ プ 関数 Z に対す る 入力 デー タ Q t の適合度 uを算出 し て 出力す る 。 M F C 力《 メ ンバ ー シ ッ プ関数デ 一 夕 を記 憶 し た メ モ リ に よ り 構成 さ れ て い る と き' に は, 入力 デー タ に対応す る メ ン バ ー シ ッ プ関数デ一 夕 を読 出すだ けで足 り る 。 同 じ よ う に M F C 1 G 2 〜 1 Q 8 は, 設定 さ れて い る メ ン バ ー シ ッ プ関数 N , Z ま た は P に 対す る 入力 τ 夕 q 2 q g の適合度 i 2 β 8を演 算 し て 出 力す る 。
M I N 回 路 109 は , M F C 1 Q 1 1 か ら 出 力 さ れ る 遍合 度 11 β 18の う ち の最小の も の を選択 し , ェ ッ ジ適合度算 出 回路 111 の適合度 1 と し て 出 力す
-S) o の適合度 // 1 の値が大 き い ( 1 に近 い) 程, 画 素 P 0 の 明 る さ を基準 に し て こ の ウ ィ ン ド ウ 内 の他の 画素の デ ー タ の 2 値化を行 う と , よ り 適切 な 2 値化画 像が得 ら れ る こ と に な る 。
他の エ ッ ジ適合度演算回路 112 〜 118 の M F C に は 第 52 b 図〜第 52 h 図 に示 さ れ る エ ツ ジ · パ タ ー ン を表 わす メ ン ノ 一 シ ッ プ関数がそ れぞれ設定 さ れて い る 。 減算回路 91〜 98の 出力 デ 夕 q i q 。 の すベて は こ れ ら の エ ッ ジ適 合 度演算 回 路 112 〜 118 に そ れ ぞ れ 与え ら れ, こ れ ら の 回路 112 〜 U 8 か ら 適 合度 2 〜 8 を表わす デ ー タ が得 ら れ る 。
M A X 回路 85は, エ ッ ジ適合度演算回路 111 U 8 が 出力す る 適合度 〜 8 の う ち 最大の も の を選択 し , 適合度 と し て 出力す る 。 ウ ィ ン ド ウ 内 の ェ ッ ジ の方向 (画素パ タ ー ン) を, 方向 1 -方 向 8 (予 め設 定 し たパ タ ー ン) に対応 さ せた場合に得 ら れ る 適合度 の う ち 最 も 大 き い も の が選択 さ れ る の で, 適 台度 β は, 方向 1 〜方 向 8 の う ち 最 も 合致 し た方向 の適合度 を表わ し て い る こ と に な る 。 M A X 回路 85か ら 出力 さ れ る 適合度 // は, 減算回路 87に与え ら れ る 。 こ の減算回路 Πの の他方の 入力 と し て 1 発生回路 86か ら 出力 さ れ る 論理値 1 を表わすデ ー 夕 が与え ら れて い る 。 減算回路 Πは, 値 1 か ら 適合度 を減算 し た値 = 1 — ^ を 出力す る 。 こ の値 は最 も 適切 な エ ッ ジ · パ タ ー ン に対す る 非適合度 (エ ッ ジ ら し く な さ ) を表わ し て い る 。
以上 の 処理 は, 1 フ ィ ー ル ド ( ま た は 1 フ レ ー ム ) 分の 画像デ ー タ の 全画素に わ た っ て ウ イ ン ド ウ を走査 す る こ と に よ り 繰返 し行わ れ る 。 し た力《 つ て, 全画素 に つ い て (全画素を そ れぞれ中心画素 と し た ウ イ ン ド ゥ に つ い て) 非適合度 が求め ら れ る 。
非適合度演算部 81で得 ら れた非適合度 は非適合度 ヒ ス ト グ ラ ム生成部 82に与え ら れ る 。 非適合度 ヒ ス ト グ ラ ム 生 成部 82に は ま た , 上述 し た よ う に 中心画素 P 0 の 画像デ ー タ (中心画素 P n 0 の 明 る さ を表わ す) が与 え ら れ て い る 。 非適 合度 ヒ ス ト グ ラ ム 生成部 82 は, 与え ら れ る 非適合度 を, そ の 非適台度 を生 じ さ せ た 中心画素 P Q の 画像デー タ に よ っ て表わ さ れ る 明 る さ ご と に ( 8 ビ ッ ト 表現の場合 に は, 256 段階の 各段階 ご と に) 累積加算 し て非適合度 ヒ ス ト グ ラ ム を 生成す る 。 こ の非適合度 ヒ ス ト グ ラ ム は, 横軸が明 る さ で あ り , 縦軸が非適合度の加算値で あ る 。
明 る さ ヒ ス ト グ ラ ム 生成部 Πは, 与え ら れ る 基準画 素 P o の 画像デ — 夕 (明 る さ ) に基づい て, 明 る さ ご と に, そ の 明 る さ を も つ 基準画素 P 0 の数を累積加算 し て, 明 る さ ヒ ス ト グ ラ ム を生成す る o こ の 明 る さ ヒ ス ト グ ラ ム の横軸 は 明 る さ (た と え ば 2 5 6 段階) , 縦 軸 は そ の 明 る さ を も つ 画素数で め る o
非適合度 ヒ ス ト グ ラ ム生成部 8 2に い て生成 さ れた 非適合度 ヒ ス ト グ ラ ム お よ び明 る さ ヒ ス ト ダ ラ ム 生成 部 8 3に お い て生成 さ れ た 明 る さ ヒ ス ト グ ラ ム を そ れぞ れ表わ すデ ー タ は画質 ヒ ス ト グ ラ ム生成部 8 4に与え ら れ る 。 画質 ヒ ス ト グ ラ ム 生成部 8 4は, 明 る さ ご と に , 非適合度 ヒ ス ト グ ラ ム に お け る 非適 合度の 累積加算値 を, 明 る さ ヒ ス ト グ ラ ム に お け る 対応す る 画素数で除 算す る こ と に よ り , 正規化 し , 非適合度 の平均値を 算出す る 。 こ の非適合度 の平均値を縦軸 に, 明 る さ を横軸 に そ れぞれ と っ てで き る ヒ ス ト グ ラ ム が第 5 4図 に示す画質 ヒ ス ト グ ラ ム で あ る 。 縦軸 に お け る 非適合 度 の平均値 は画質の評価基準 と し て の 画質の悪 さ を 表わ し て い る 。
第 5 4図 の 画 質 ヒ ス ト グ ラ ム に お い て , 最 大 値 を ο ^ m a X ,' 最取小 J 値 'し ^ Q m i n と す る 。 最小値 Q m i n が得 ら れ る 明 る さ k 0 p t を し き い値 と し て画質デ ー タ を 2 値 化す る と , 画質の悪 さ が最 も 小 さ く な っ て最 も 良好な 2 値画像デ ー タ が得 ら れ る o
C P U 6 5は, 画質 ヒ ス ト グ ラ ム生成部 8 4に よ っ て生 成 さ れ た 画質 ヒ ス ト グ ラ ム か ら 画 質 の 悪 さ の 最大値
Q m a x と 最小値 Q m i n と を読取 る ' さ ら に C P U 65は 最小値 Q m i n に対応す る 明 る さ を読取 る こ の 後 C P U 65は画質 ヒ ス ト グ ラ ム に お い て明 る さ k Q p t を 中心 に横軸上を 明 る い方 と 暗 い方に そ れぞれ探索 し て い っ て, 縦軸の値が最初 に ( 1 a ) X Q —
^ m a。 T + a x
X Q m i n の値を超え る 明 る さ の 幅 W B を算出す る 。 こ こ で a は 1 よ り 小 さ い正の 係数であ り , 許容度を表わ す。
C P U 65は照明装置 11の設定高 さ h に お け る 照明の 評価値 V を第 (5) 式に し たが っ て計算 し, そ の 計算結 果を R A M に格納す る 。
Q m a x
V = • B … (5)
Q m l n
第 (5) 式 に お い て, Q m a x ' Q m 1 π は画質 ヒ ス ト グ ラ ム に お け る 谷の 深 さ を表現 し て お り , こ の値が大 き い ほ ど, エ ッ ジ ら し い部分 と エ ッ ジ ら し く な い部分が は っ き る 分れて い る の で画像の コ ン ト ラ ス ト 力く は っ き り し て い る と い う こ と に な る 。 ま た W B は上述の よ う に谷の 幅で あ る 力、 ら , こ の値が大 き い ほ ど照明装置の 照度が変動 し て も 画質が変わ ら な い, す な わ ち 対照度 変動性力 よ い と い う こ と に な る 。
上記評価値 V の 算出 は, 第 (5) 式 に 限 ら ず, 以下の 第 (6) 式〜第 (10)式を用 い て行 う こ と も で き る 。 Q m a x
V = … (6)
V W B … m
V =
Q …
m l n W B
V =
Q … (9) m l n
Q W B
m a x
V = x … (10)
Q m l n k o p t と く に第 ( 1 G )式 は光源の 照度変動の絶対値 と 安定 に 撮 で き る 明 る さ の 幅 を 考慮 し た 評 価値 を 与 え 。 一般 に光源の 劣ィ匕 に よ り 暗 く な る 度合 い は そ の と き の 照度 に 比例 し て い る の で, 照度の 低 い光源の方が劣化 に-よ る 照度 変動 の 絶対値 は 小 さ い 。 一方, 幅 W B は 一定で あ る 。 ( Q m a x ^ Q . i n ) W B が一定で あ る と 仮定す る と k 0 p t は小 さ い方力《 よ L が小 さ
k o p t
い ほ ど評価値 V は大 き い。
55図 は, 照明装置 11の設置高 さ h と 照明 の評価値
V と の 関係を示す。 あ る 設置高 さ h Q p t に お い て照明 の評価値 V が最大値 V m a χ を と り , そ の両側で は評価 値 V は単調 に減少 し て い る 。 すな わ ち , 評価値 V は 1 個 の ピ ー ク を も つ 凸関数で あ る 。
し た が っ て, 照明装置 11の 高 さ は評価値 V を考慮 し て次の よ う に し て最適な と こ ろ に 設定す る こ と がで き る
あ る 設置高 さ h O で評価値 V Q が得 ら れ, 次 に 設置 高 さ h i ( h 1 > h 0 ) ま で高 く し た と き に よ り 大 き な評価値 V I ( V 1 > V 0 ) が得 ら れた場合 に は, 最 適 な設置高 さ h Q p t に設定す る た め に は, さ ら に 高 さ h を高 く す る 方向で照明装置 11の 高 さ 調整を行え ば よ い o
逆に あ る 設置高 さ h O で評価値 V 0 が得 ら れ, 次 に 設置高 さ を h i ( h 1 > h 0 ) ま で大 き く し た と き に よ り 小 さ な評価値 V I ( V 1 < V 0 ) が得 ら れた場合 は, 最適な設置高 さ h fl p t に設定す る た め に は, 設置 高 さ h を低 く す る 方向で照明装置 11の高 さ 調整を 行え ばよ い。
画像処理装置 40の C P U 65は, 対象物 O B を カ メ ラ 20に よ っ て撮像 し, カ メ ラ 20か ら 出力 さ れ る 映像信号 を A / D 変換 し て得 ら れ る 画像デー タ に基づい て撮像 画像の 画質を評価 し, 照明装置 11の 位置設定 に 関す る 指示を表示装置 41に表示す る こ と に よ り , ユ ー ザが照 明装置 11を適切な位置 に設定す る 操作を支援す る 。
第 56図お よ び第 57図 は こ の よ う な C P U 65に よ る 処 理手順を示す も の で あ る 。
C R T表示装置 41に, 第 58図に示す よ う な メ ッ セ 一 ジ を 含 む 初期 画面 が表示 さ れ る ( ス テ ッ プ 1 ) 。 ユ ーザ は こ の初期画面を見て, 止め具 を ゆ る め て照 明装置 11を適当 な 高 さ h 0 に位置決め し , 止め 具 34を 締め固定す る 。 ユ ー ザ は照明装置 11の設定が終了す る と キ ー ボー ド 69の設定キ ー を押すの で, ス テ ッ プ 332 で Y E S と な る 。
C P U 65は テ レ ビ · カ メ ラ 20に対象物の 像を撮像 さ せ , 得 ら れ る 映 像 信号 を 画 像 入 力 部 Uに 取込 ま せ る (ス テ ッ プ 3 Π ) 。 必要な ら ば, 撮像画像 は表示装置 41に表示 さ れ る 。
画像入力部 で は取込ん だ映像信号を A Z D 変換 し て画像デー タ に変換 し た の ち , 上述 し た手法 に よ り 画 質 ヒ ス ト グ ラ ム を生成す る 。 C P U 65は画質 ヒ ス ト グ ラ ム 生成部 84で生成 さ れ た 画 質 ヒ ス ト グ ラ ム か ら 画 質の悪 さ の最大値 Q m a χ と 最小値 Q m i η , お よ び最小 値 Q m i n に対応す る明 る さ k Q p t を読取 る ( ス テ ッ プ 334 ) 。 さ ら に C P U 65は画質 ヒ ス ト グ ラ ム か ら そ の 谷 に お け る 明 る さ の 幅 W B を決定 し , 第 ( 5 ) 式 ま た は 第 ( 6 ) 式〜第 ( 10 )式の い ずれかの演算を実行 し て照明 の評価値 V 0 を算出 し , そ の値を R A M 67に ス ト ア す る ( ス テ ッ プ 335 ) o
続い て C P U 65は表示装置 20に 第 59図 に示す よ う な メ ッ セ ー ジ を表示 さ せ る ( ス テ ッ プ Π 6 ) o ユ ー ザ は こ の表示を見て照明装置 11を手動で, 初期高 さ h 0 よ り も 高 い適当 な 高さ 位置 h i に移 し て固定す る 。 こ の 後 ユ ー ザ は 設定 キ ー を 操作 す る の で ス テ ッ プ 337 で YES と な る 。
対象物の撮像, 画像デー タ の 入力, 入力画像デー タ に 基づ く 画 質 ヒ ス ト グ ラ ム の 作成 が再 び行 わ れ ( ス テ ツ プ 338 ) , こ の新た な 画質 ヒ ス ト グ ラ ム に基づい て高 さ h 1 に対応 し た照明の評価値 V I が算出 さ れ る (ス テ ッ プ Π 9 , 340 ) 。
C P U 65は前回 (初期状態) の 評価値 V 0 と 今回 の 評価値 V I と を 比較 し て ( ス テ ッ プ 341 ) , V I 〉 V 0 で あ れば前回の 評価値 V 0 を今回の 評価値 V 1 で 置 き かえ る た め に, 今回の評価値 V I を R A M に記 憶す る (ス テ ッ プ 342 ) 。 ま た, 照明装置 11の 高 さ を さ ら に高 く さ せ る た め に第 59図の メ ッ セ ー ジ が表示装 置 41に表示 さ れ る (ス テ ッ プ ) 。
の 場合 に は , C P U 65は 今 回 の 評価値 V I を R A M に記憶 し て評価値を更新 し (ス テ ッ プ 344 ) , 照明装置 11の高 さ を低 く さ せ る た め に第 60図 に示す メ ッ セ ー ジ を表示装置 41に表示 さ せ る (ス テ ツ プ 5 ) 。
第 59図の メ ッ セ ー ジ が表示 さ れた と き に は ユ ー ザ は 照明装置 11を前回 よ り 高い高 さ 位置 h 1 に変更す る 。 ま た第 6 Q図の メ ッ セ ー ジが表示 さ れた と き は, ユ ー ザ は 照 明 装置 11を 前 回 よ り 低 い 高 さ 位 置 h 1 に 変更す る 。 こ の 後, ユ ー ザ は キ ー ボー ド Πの設定キ 一 を操作 す る の で ス テ ッ プ 346 の判定が Y E S と な っ て ス テ ッ プ 3 3 8 に 戻 る 。 C P U 6 5は 再 び カ メ ラ 2 0に よ る 対象物 0 B の 撮像, 画質 ヒ ス ト グ ラ ム の作成, 評価値の算出 を繰返す。
こ の よ う に し て表示装置 4 1に表示 さ れた メ ッ セ ー ジ を見な が ら ユ ー ザ は照明装置 1 1の設置高 さ を上下 に調 整 し かつ移動量を次第 に 小 さ く し な が ら 上記の手順を 返す 。 遂 に 高 さ を わずか に調整す る だ け で第 5 9図 と 第 6 0図の メ ッ セ ー ジ が切換わ る 状態 と な る 。 そ の と き の設置高 さ の近傍が最適な 設置高 さ h Q p t であ る と い ラ こ と に な る 。 最後 に ユ ー ザ は キ ー ボ ー ド 6 9の 終了 キ ー を操作す る の で ( ス テ ッ プ 3 4? ) , 調整作業が終 了す る
( 7 ) 最適照明条件設定支援装置 (そ の 2 : 照明装置の 位置 の設定)
上述 し た最適位置設定の支援装置 は ユ ー ザが照明装 置 1 1の 位 置 を 手動 で 位 置決 め す る も ので あ る 。 次 に ユ ー ザが照明装置 1 1の移動方向 と 移動距離 ( ま た は位 置) を キ ー ボ ー ドか ら 入力す る こ と に よ り , 照明装置 1 1が指令 さ れ た 位置 に 自 動的 に位置決め さ れ る 実施例 に つ い て述ベ る 。
画像処理 シ ス テ ム と し て は第 U図 に 示す 自 動昇降機 構を備え た も の が用 い ら れ る 。 画像処理装置 4 0の構成 と し て は第 4 7図 に 示す も の が用 い ら れ る 。 鎖線で示す よ う に , パ ル ス · モ ー タ Πが I / 0 制御部 6 8に接続 さ れ る 。 こ の モ ー タ Πは C P U 65か ら の 指令 に よ り ( ま た は I / O 制御部 δ8か ら の 指令に よ り ) 駆動制御 さ れ 第 48図お よ び第 図に示す各種回路の 構成 も そ の ま ま 用 い ら れ る 。
第 61図お よ び第 図 は C P U 65に よ る 処理手順を示 し て い る 。 こ の 図 に お い て も 第 56図お よ び第 57図 に 示 す も の と 同一物 に は 同 一 符号 を 付 し 重複説 明 を 避 け る o
第 61図 に お い て ス テ ッ プ Π1 〜 Π6 の処理は第 56図 に 示す も の と 同 じ で あ る 。
第 59図 に示 さ れた メ ッ セ ー ジ を見てユ ー ザ は, キ ー ボ一 ド 69か ら , 照明装置 Uの 移動方向 (上 ま た は下) と 移動距離 と を入力 し ( ス テ ッ プ 352 ) , 設定キ ー を 操作す る ( ス テ ッ プ Π 7 ) 。
す る と , キ ー ボー ド 69か ら 入力 さ れた移動方向 お よ び移動距離を表わすデ ー タ に基づい て, I Ζ◦ 制御部
68を介 し てパ ル ス , モ ー タ 37が駆動 さ れ る (ス テ ッ プ 353 :) 。 こ れ に よ り , 照明装置 11は指定 さ れた方向 に 指定 さ れた距離移動 し た の ち , そ こ に停止す る 。 こ の 後, 対象物 0 Β の 撮像, 画質 ヒ ス ト グ ラ ム の作成, 評 価値 V 1 の 算出が行わ れ る (ス テ ッ プ 338 〜 3 U ) 。
ュ一ザ は表示装置 41に表示 さ れた第 59図 ま た は第 60 図の メ ッ セ ー ジ を見て, メ ッ セ ー ジ に し た 力く つ て照明 11の移動方向 と 移動距離 と を キ 一 ボー ド Πを通 し て入力す る の で ( ス テ ッ プ 3 5 4 , 3 5 5 ) , こ の後, 設 定キ 一入力があ れば ス テ ッ プ 3 5 3 に戻 っ て モ ー タ Πの 駆動制御 に よ り 照明装置 1 1の移動が行わ れ る 。
こ の よ う に し て表示装置 Uに表示 さ れた メ ッ セ ー ジ を見な が ら ユ ー ザ は照明装置 1 1の設置高 さ をキ ー ボ 一 ド 6 9か ら 指令を入力す る こ と に よ り 上下 に調整す る 。 調整が完了す る と , ユ ー ザがキ ー ボ ー ド 6 9の終了 キ ー を操作す る こ と に よ り 調整作業が終了す る (ス テ ッ プ 3 4 1 ) o
上述 し た 2 つ の実施例で は, 照明装置 1 1の 移動方 向 を表示装置を用 い た視覚表示 に よ り ユ ー ザ に 指示 し て い る が, 音声 に よ る 指示, 移動方向 に 応 じ た異な る 警 報音等を通 し て ユ ー ザ に 指示 し て も よ い。
( 8 ) 最適照明条件設定支援装置 ( そ の 3 : 照明装置の 位置の設定)
照明装置の高 さ 位置を 自 動的 に最適高 さ に設定す る 装置の実施例 に つ いて詳述す る 。
第 U図 に示す画像処理 シ ス テ ムが採用 さ れ る 。 第 4 7 図 か ら 第 4 9図 に 示 す 画 像 処理装 置 の 構成 が用 い ら れ る 。 第 4 7図 に お い てパ ルス · モ ー 夕 Πが I 0 制御部 6 8に接続 さ れ る 。
C P U 6 5に よ る 制御処理手順が第 6 3図お よ び第 6 4図 に 示 さ れて い る 。 こ こ で も , 第 5 6図, 第 5 7図 に 示す も の と 同一処理 に は 同一符号が付 さ れて い る 。 ま ず, パ ル ス · モ ー タ Πの 回転角度 S i と 回転方向 と がキ ー ボー ド Πか ら 入力 さ れ る (ス テ ッ プ 362 ) 。 回転角度 S に代え て, 移動距離を入力す る よ う に し て も よ い。 こ の 場合に は, C P U 65は照明装置 11を入 力 さ れた移動距離移動 さ せ る に必要な モ ー タ Πの 回転 角 度 0 を算出す る 。 回転方向 は一般 に は上方 と 設定 さ れ る であ ろ う が, 下方 と し て も よ い。
こ の後, キ ー ボー ド 69か ら ス 夕 一 ト · キ ー入力があ る と (ス テ ッ プ 3 ) , 初期高 さ h O に位置決め さ れ た照明装置 11に よ る 照明 の下で対象物 0 B の撮像が行 わ れ, 画質 ヒ ス ト グ ラ ム の作成, 評価値 V 0 の 算出が 実行 さ れ る (ス テ ッ プ 〜 Π 5 ) 。
次 に C P U 65は , ノ、0 ル ス · モ 一 夕 Πを , ス テ ッ プ 362 に お い て 入 力 さ れ た 方 向 へ 初 期設定 さ れ た 角 度 θ { 回転駆動 し て照明装置 11を対応す る 距離上昇 ま た は下降 さ せ る (ス テ ッ プ ) 。 照明装置 11の高 さ 位 置 は h i と な る 。 こ の 高 さ 位置 h i で撮像, 画質 ヒ ス ト グ ラ ム の 作成, 評 価値 V I の 算 出 が行わ れ る ( ス テ ツ プ 339 , 340 ) 。
C P U 65は, 前回の評価値 V 0 と 今回の 評価値 V I と の差の絶対値が所定の し き い値 T H以下で あ る か ど う かを判定す る (ス テ ッ プ 5 ) 。 こ の判定で N 0と な れば 1 に進む。
こ の 判定で Y E S の 場 合で あ っ て も , 角 度 Θ ( ス テ ツ プ 3 6 7 で更新 さ れた 角 度) が所定の し き い値 0 t h以下 で あ る か ど う かが判定 さ れ, N 0で あ ればや は り ス テ ツ プ 3 4 1 に進む。
ス テ ッ プ 1 で は 評価値 V 0 と V 1 と が比較 さ れ o
V 1 〉 V 0 で あ れば, ス テ ッ プ に 戻 っ て, 前回 と 同 じ 角 度 0 i だ けパ ル ス · モ ー タ 3 7が前回 と 同 じ 方 向へ回転駆動 さ れ照明装置 1 1が同方向へ上昇 ま た は下 降 さ れ る 。 こ の 後, 再 び撮像, 評価値の 算出が行わ れ
O o
V I の 場 合 に は , ノ、0 ノレ ス · モ ー 夕 Πの 回転 角 度 0 が前回 の 角 度 の半分の値 に設定 さ れ る と と も に , 回 転 方 向 が 反 対 方 向 に 設 定 さ れ ( ス テ ッ プ
3 6 ? ) , ス テ ッ プ Π 4 に戻 る 。 新たに設定 さ れ た角 度 0 だ けパ ル ス · モ ー タ Πが前回 と 反対方 向 に 回転駆動 さ れ照明装置 1 1を反対方向へ移動 さ せ, 再び画像デ 一 夕 の取込み, 評価値の算出が行わ れ る 。
こ の よ う に V 1 ≤ V 0 と 判定 さ れ る ご と に ノ、 ° ル ス · モ ー 夕 Πの 回転角 度 0 が順次小 さ く 設定 さ れかつ 回転 方向が反転 さ れな が ら 同様の手順が繰返 さ れ る 。 そ の 結果, ス テ ッ プ 3 6 5 お よ び 3 の判定が Y E. S と な っ た と き に, 照明装置 1 1は最適な設置高 さ h Q M に設定 さ れた こ と に な る 。 こ れに よ り 照明装置の 高 さ 位置調整 動作が完了す る 。 (9) エ ッ ジ 画像生成装置
上述 し たエ ツ ジ ら し さ の適合度 を用 い てエ ツ ジ 画 像を生成す る こ と がで き る 。
第 図 に示す画像処理装置の構成がエ ツ ジ 画像生成 装置 と し て採用 さ れ る 。 好 ま し く は, 適合度 // を画素 ご と に 記 憶 す る 画像 メ モ リ 88力《 さ ら に 設 け ら れ る 。 第 49図 に示す非適合度演算部 も ま た そ の ま ま 利用 さ れ る 。 非適合度 は不要で, 適合度 ^ の み を 出力 さ せ れ ば よ い o
第 65 a 図か ら 第 65 h 図 は エ ツ ジ適合度算出 回路 11 1 - 118 に そ れぞれ設定 さ れ る エ ツ ジ · パ タ ー ン を表わ す フ ア ジ ィ · モ デルの他の 例 を示 し て い る 。 こ こ で は メ ン ノ 一 シ ッ プ関数 Z は用 い ら れて い な い。 メ ン ノく 一 シ ッ プ関数 P, N は第 53図 に示す形状を も つ 。
第 65 a 図 に 示 さ れ た フ ァ ジ ィ · モ デ ノレ に し た 力 う と , エ ッ ジ適合度算出回路 111 の M F C 101 , 102 , 103 に メ ン バ 一 シ ッ プ関数 P 力く, M F C 105 , 106 , 107 に メ ン バ ー シ ッ プ関数 N がそ れぞれ設定 さ れ る 。 他の M F C 1 お よ び 108 に は, 入力デー タ の 値 に か か わ ら ず, 常 に 最大 の 論理値 1 を 出 力 す る メ ン バ 一 シ ッ プ関数が設定 さ れ る 。
他の エ ッ ジ適合度算出回路 112 〜 118 に も 同 じ よ う に 第 65 b 図力、 ら 第 65 h 図に し た 力《 ぅ メ ン バ ー シ ッ プ関 数が設定 さ れ る 。 画像 メ モ リ 6 2に記憶 さ れて い る 1 フ ィ ー ノレ ド ( ま た は 1 フ レ ー ム ) を構成す る すべて の 画像デ ー タ に つ い て , 画素 ご と に適合度 が算出 さ れ, 画像 メ モ リ 8 8の 対応す る 場 【こ s己 11 さ れ る 。 こ れ に よ つ て, 第 6 6 a 図 に示す よ う な 画像の エ ツ ジ を表わす画像が第 6 6 b 図 に 示す よ う に生成 さ れ る 。 適合度 を適当 な し き い値を 用 い て 2 値つ— 夕 に変換 し た の ち に 画像 メ モ リ 8 8に記 憶 さ せ て も よ い
( 1 0 )最適照明条件設定支援装置 (そ の 4 : 主 に 照明装 置の光度設定)
再 び撮像 に よ り 得 ら れ た対象物の 画像デ ー タ に基づ い て最適照明条件を設定す る , ま た は設定を支援す る 装置の実施例 につ い て説明す る 。
後 に 詳述 る 最; i 照明条件設定支援装置 に よ っ て最 適照明条件が設定 さ れた照明系 を備え た 自 動検査装置 の 全体的 な構成が第 6 7図 に 示 さ れて い る 。 ごの 自 動検 査装置 は, 照明装置 1 0と 力 メ ラ 2 0と 画像処理装置 4 0と 搬送機構 4 5と か ら 構成 さ れて い る 。 搬送機構 は搬送 コ ンベ ア に よ っ て実現 さ れ , 多数の検査対象物 O B を 所定の検査位置へ順次搬送す る 。
照明装置 1 0お よ び カ メ ラ 2 0は検査位置の 上方 に配置 さ れて い る 。 カ メ ラ 2 0は検査位置の対象物 O B を真上 力、 ら 撮像 し , 撮像 に よ り 得 ら れた 画像デ ー タ を 画像 処理装置 4 0に 与え る 照明装置 1 Gは, た と えばハ ロ ゲ ン · ラ ン プ に よ っ て 実現 さ れ, 検査位置の検査対象物 O B を斜め上方か ら 照 明 す る 。 こ の 照 明 装 置 1 Qの 光度 は , 後述す る よ う に, 対象物 O B の最適な検査が保証 さ れ る よ う に最適 な値に設定 さ れて い る 。
画像処理装置 4 0に よ る 対象物 0 B の検査力 良品で あ る か, 欠 けやバ リ があ る 不良品で あ る かを判別す る サ ン プル検査の 場合 に は, 良品 と 不良品 と の判別精度 が最大 と な る よ う に照明装置 1 0の光度が設定 さ れて い る 。 こ れが最適照明条件であ る 。
照明条件 は光度に 限 ら れ る こ と な く , 照明装置 1 0の 設定位置や設定角 度な どで あ っ て も よ い。 ま た最適照 明条件 は画像処理装置 4 こ設定 さ れて も よ い し , 照明 装置 1 0に組み込 ま れた コ ン ト ロ ー ラ に設定 さ れて も よ い。 い ずれに し て も , 設定 さ れた最適照明条件を 満 た す照明が照明装置 1 0に よ っ て行な われ る よ う に, 画像 処理装置 4 Gま た は上記 コ ン ト ロ 一 ラ に よ っ て照明装置 1 0が制御 さ れ る 。
画像処理装置 4 0は, カ メ ラ 2 0か ら 与え ら れ る 対象物 O B を表わ す映像信号を 2 値化処理 し , そ の 2 値画像 デ ー タ を用 い て対象物の面積な どの特徴量を計測 し, そ の計測値を所定の基準値 と 比較す る 処理な ど に基づ い て, 対象物 0 B が良品で あ る の か, ま た は欠 け ゃバ リ な どがあ る 不良品で あ る の かを判断す る 。 判定の基 礎 と な る 特徵量 は面積に 限 ら ず, 周 囲長や重心な どで あ つ て も よ い。
第 6 8図お よ び第 Π図 は, 最適照明条件設定を支援す る 装置を示 し て い る 。 照明装置 1 0 , カ メ ラ 2 0 , 画像処 理装置 4 0 , 表示装置 な ど は簡便化の た め に第 図 に 示 す検 査装 置 に お け る も の と 同 一 符号 で示 さ れ て い o こ れ は検査装置 と 最適照明条件設定支援装置 と は 兼用す る こ と がで き る か ら で あ る 。 も ち ろ ん, こ れ ら の兩装置を別 々 に構成 し て も よ い。
力 メ ラ 2 0は観測位置 O V の 真上で あ っ て 自 動検査装 お け る も の と 同 じ 高 さ 位置 に配置 さ れ る 。 ま た照 明装置 1 0は観測位置 0 V の斜め上方で あ つ て 自 動検査 に お け る も の と 同 じ 高 さ 位置 に 同 じ 傾 き 角度で配 置 さ れる 。 カ メ ラ , 照明装置 と も , 好 ま し ぐ は, 自 動 検査装置 と 支援装 置 と に お い て 同 じ も の が用 い ら れ 0
支援装置 は サ ン プル供給機構を備え て い る 。 こ の サ ン プル供給機構 は, 回転テ ー ブル 1 20 と テ ー ブル駆動 機構 1 2 1 と 検 出器 1 2 3 と を含んで い る 。
回転テ ー ブ ル Π 0 は, 円板状で あ っ て, そ の上面周 縁部 に は良品サ ン プル 0 B a と , 欠 け があ る 不良品サ ン プル 0 B b と , ノ リ があ る 不良品 サ ン プ ル 0 B c と が, そ れぞれ複数個ずつ 等角度間隔で位置決 め固定 さ れて い る 。 回 転 テ 一 プ ル 12 fl 上 に お い て, 各 サ ン プ ル の 固定 位 置 の 外 側 に は 金 属 板 に よ り 成 る 識 別 体 122 a ,
122 b , 122 c 力 固 定 さ れ て い る 。 こ れ ら の 識 別 体 122 a , 122 b , 122 c は 各 サ ン プ ノレ O B a , 0 B b , 0 B c が観測位置 0 V に到達 し た こ と を検 出 器 123 に検出 さ せ る た め の も の で あ る 。 良品サ ン プル 0 B a に つ い て の識別体 122 a の設置高 さ と , 欠 けが あ る 不良品サ ン プル 0 B b に つ い て の識別体 122 b の 設置高 さ と , ノ リ カ あ る 不良品サ ン プル 0 B c に つ い て の識別体 122 c の設置高 さ と は, 相互 に異な っ て い
Ό o
テ ー ブル駆動機構 Π 1 は, 回転テ ー ブル 120 の 回転 中心 に連結 さ れた モ ー タ を含み, 画像処理装置 40か ら の 制御信号 に応答 し て回転テ ー ブル 12 Q を 間欠的 に 回 転 さ せ, 各サ ン プゾレ O B a , 0 B b , O B c を カ メ ラ 120 の 視野内 の観測位置 0 V へ順次導 く 。
検出器 123 は, 観測位置 0 V に到達 し た良品サ ン プ ル 0 B a と 欠けの あ る 不良品サ ン プル 0 B b と バ リ の あ る 不良品サ ン プル ◦ B c と を相互に 区別 し て検出す る た め の も の で, 回転テ ー ブル 120 の外側 に配置 さ れ て い る 。
こ の 検 出 器 123 は 3 個 の 近接 ス ィ ッ チ 123 a , 123 b , 123 c か ら 構成 さ れ て お り , 第 1 の 近接 ス ィ ツ チ 123 a は良品サ ン プ ゾレ 0 B a に つ い て の識別体 122 a を検出す る た め に識別体 122 a と 同 じ 高 さ 位置 に, ま た第 2 の近接ス ィ ッ チ 123 b は欠 け の あ る 不良 品サ ン プル 0 B b に つ い て の識別体 122 b を検 出す る た め に識別体 1 Π b と 同 じ高 さ 位置 に, さ ら に 第 3 の 近 接 ス ィ ッ チ 123 c は バ リ の あ る 不 良 品 サ ン プ ル 0 B c に つ い て の識別体 1 Π c を検出す る た め に識別 体 122 c と 同 じ 高 さ 位 置 に , そ れ ぞ れ設 置 さ れ て い る 。 各近接ス ィ ッ チ 123 a , 123 b , 123 c は識別体
122 a , 122 b , Π 2 c を そ れぞれ検出 し た と き に検 出信号を画像処理装置 40に与え る 。
第 7 G図 は 画像処理装置 40の 回路構成を示す も の で, A / D 変換器 U 1 , 2 値化処理部 1 Π , 表示装置 41. 同 期 信 号 発 生 部 U 3 ,. C P U 130 , R 0 M 135 , R A M 134 , 外部記憶装置 1 な ど に よ り 構成 さ れて い る 。
A Z D 変換器 131 は カ メ ラ 20か ら 出力 さ れ る ァ ナ 口 グ映像信号を デ ィ ジ タ ル画像デー タ に変換す る 。 2 値 化処理部 132 は A Z D 変換器 131 か ら 与え ら れ る デ ィ ジ タ ル画像デー タ を所定の し き い値で 2 値化す る 示装置 41は 2 値化処理 さ れた 画像デ ー タ に よ っ て表わ さ れ る 2 値化画像を表示す る 。 同期信号発生部 133 は 垂直同期信号, 水平同期信号, そ の他の タ イ ミ ン グ信 号を発生 し , こ れ ら の 信号を A Z D 変換器 U l , 2 値 化処理部 1 Π , C P U U 0 に与え る 。 C P U 130 は, 最適な照明条件を探索 し て決定す る た め の 制 御 お よ び 演算 の 実行主体 で あ っ て, 検 出 器 123 か ら の 検 出 信号 を 受入 れ る と と も に , 照明装置 10, テ ー ブ ル駆動機構 121 な ど の 動作 を 制御す る 。 R 0 M 135 に は プ ロ グ ラ ム が格納 さ れ, R A M U 4 に は各種デ ー タ が一時記憶 さ れ る 。 外部記憶装置 1 は フ ロ ッ ピ 一 デ ィ ス ク 装置 な ど に よ り 構成 さ れ, 決定 さ れた照明装置 10の最適照明条件な どを記憶す る 。
第 7 ί図 は, 照明装置 i 0の最適な照明条件を決定す る た め の C P U U G に よ る 処理手順を示す も の であ る 。
ま ず , 回 転 テ ー ブ ル 12 G 上 に 配 置 さ れ た 良 品 サ ン プル O B a の 個数 N 。 , 欠 け の あ る 不良品サ ン プル O B b の個数 N b リ の あ る 不良品サ ン プ ル O B c の個数 N p がそ れぞれキ ー ボ ー ドか ら 入力 さ れ る (ス テ ツ プ 371 ) 。 ス タ ー ト 指令が与え ら れ る と , 画像処 理装置 40が始動信号を テ ー ブル駆動機構 121 に与え る の で, 回転テ ー ブル 12 Q が回転す る (ス テ ッ プ Π 2 ) いずれかサ ン プルが観測位置 0 V に到達す る と , そ れが良品サ ン プル 0 B a で あ れば第 1 の近接ス ィ ツ チ 123 a 力 , 欠 け の あ る 不良品サ ン プル 0 B b で あ れば 第 2 の近接ス ィ ッ チ 1 Π b が, バ リ の あ る 不良品サ ン プル 0 B c で あ れば第 3 の近接ス ィ ッ チ 1 Π c が, そ れぞれ対応す る 識別体 122 a , 122 b , 122 c を検出 し て, 検出信号を 画像処理装置 40へ与え る (ス テ ッ プ Π3 ) o
こ の検出信号が入力す る と , C P U 130 は停止信号 を 出 力 し て テ 一 プ ル駆動機構 121 を 停止 さ せ , 回転 テ ー ブル 120 の 回転を止め る (ス テ ッ プ 374 ) 0 こ れ に よ り サ ン プ ル は観測位置 0 V の カ メ ラ 20の視野内 に 位置決め さ れ る 。
こ の 実施例 で は照明装置 10の光度が最適化 さ れ る 。 照明装置 1 ϋに は画像処理装置 4 Qか ら 初期光度が与え ら れて お り , 照明装置 10は こ の 初期光度で発光 し , サ ン プルを照明 し て い る 。 照明装置 10に よ る 照明下で観測 位置 O V の サ ン プルが カ メ ラ 20に よ り 撮像 さ れ る (ス テ ツ プ 375 ) 。 カ メ ラ 20の 出力映像信号 は 画像処理装 置 4 βに入力す る 。
こ の 映 像 信号 は A Z D 変換 さ れ, か つ 2 値化 さ れ る 。 C P U UQ は こ の 2 値画像デ ー タ を用 い て観測位 置 O V の サ ン プ ル の 特 徴 量 を 計 測 す る ( ス テ ッ プ 376 ) 。 こ の 実施例で は特徴量 は撮像画像上 に お け る サ ン プ ル の 面積 で あ る 。 計 測 さ れ た 特 徴量 は R A Μ 134 に記憶 さ れ る 。
R A M 134 内 に は, 良品用, 欠 け の あ る 不良品用 お よ びバ リ の あ る 不良品用 の 特徴量を そ れぞれ別個 に記 憶す る エ リ ア が設 け ら れて い る 。 C P U 13Q は検出器 123 か ら 入力す る 検出信号 に基づ い て観測位置 0 V の サ ン プルが良品, 欠 け の あ る 不良品 ま た は バ リ の あ る 不良品 の い ずれの サ ン プルで あ る かを判定 し, 計測 し た特徵量を, 判定 し た種類の サ ン プ ル用 の記憶エ リ ア に S匚 Ί思 す る o
ス テ ッ プ 372 〜 376 の処理 は回転テ ー ブル 120 上の すべて の サ ン プル に つ い て順次, 行な わ れ る 。 処理の 回数が, 先 に入力 さ れた サ ン プ ル の個数の 総和 N a + N b + N „ に達すれば回転テ ー ブル G は 1 回転 し た こ と に な る (ス テ ッ プ Π 7 ) 。
回転テ ー ブル 120 上の すべて の サ ン プル に つ い て特 徵量 (面積) の計測が終了す る と , R A M 134 内 に記 憶 さ れた計測面積の サ ン プルの 種類 ご と の総和を, サ ン プル個数 N a , N b ま た は N „ でそ れぞれ除算す る こ と に よ り , 良 品 サ ン プ ノレ O B a の 面 積 の 平 均 値 S . , 欠 け の あ る 不良品サ ン プル O B b の面積の平均 値 S t , お よ びノ リ の あ る 不良品サ ン プ ル O B c の 面 積の平均値 s e が求め ら れ る (ス テ ッ プ ) 。
こ れ ら の平均値 s a , s b , s e を用 い て, 良品 と 不良品の判別精度の評価値 S が次式 に よ り 算出 さ れ る
( ス テ ッ プ 379 ) o
S = I S c - S a I + I S a - S b I … (11) こ の評価値 s が大 き い程良品 と 不良品 と を判別で き る 精度力 高い と い う こ と に な る 。
照明装置 10に設定す る 初期光度を変え なが ら 第 71図 に示す評価値算出処理を複数回繰返す。 初期光度を横 軸 に と り , 算 出 さ れた評価値 S を縦軸 に と る と , 第 5 5 図 に 示 す 評価値 V と 同 じ よ う に , 評価値 S は 1 つ の ピ ー ク を も つ 凸関数 と な る 。 そ こ で, 最大値 ま た は そ の 付近の評価値を与え る 初期光度が, 良品 と 不良品 と を 最 も 高精度 に 判 別 で き る 照 明 条件 を 示 す こ と に な る 。 こ の よ う な 初期光度力く C P U 1 3 Q に よ り , ま た は 操作者 に よ り 決定 さ れ る 。
こ の よ う に し て決定 さ れた最適照明条件 (最適初期 光度) は, そ の他の必要デ ー タ と と も に 外部記憶装置 1 3 6 に記憶 さ れ る 。 最適照明条件 は第 Π図 に 示す検査 装置で利用 さ れ る 。
( U )最適照明条件設定支援装置 ( そ の 5 : 主 に 照明装 置 の光度の設定)
上記実施例で は サ ン プ ルの面積 に基づ い て最適照明 条件が設定 さ れて い る 。 次 に, サ ン プルの 特徵量の 分 散が最小に な る 照明条件が最適な も の で あ る と い う 考 え方に基づ い て, 最適照明条件を設定す る , ま た は設 定を支援す る 装置 に つ い て述べ る 。
上記の考え方 に基づ い て最適化 さ れた照明系 は, 計 測対象物の撮像画像か ら 重心位置, 面積, 周 囲長な ど の特徴量を計測す る 自 動計測装置 に用 い ら れ る 。 こ の 自 動計 測 装 置 の 構成 は 第 6?図 に 示 す も の と 同 じ で あ る
第 Π図お よ び第 Π図 は最適照明条件設定支援装置の 構成を示 し て お り , 第 図お よ び第 69図 に示す も の と 同一物 に は 同一符号を付 し 重複説明を避 け る 。
円板状の 回転テ ー ブル 0 の上面の周縁部に は, 複 数の サ ン プル 0 B „ が等角度間隔で位置決め 固定 さ れ て い る 。 各サ ン プル 0 B S の 固定位置の 外側 に は金属 板よ り 成 る 識別体 122 が同 じ 高 さ で配置 さ れて い る 。 一方, 回転テ ー ブ ル 120 の外側 に は観測位置 0 V の近 傍 に お い て識別体 I Π と 同 じ 高 さ 位置 に近接ス ィ ッ チ よ り 成 る 検 出器 123 が配置 さ れて い る 。
画像処理装置 40の構成 は, 第 70図 に示す も の と 同 じ であ り , そ の 図示お よ び説明を省略す る 。
計測の た め の 最適な照明条件を決定す る た め の処理 手順 も 第 Π図 に 示 す も の と 基本 的 に は 同 じ 流れ で あ る 。 以下 に, 第 U図の処理 と 異な る 点 に つ い て主 に説 明す る 。 こ の 実施例で は, 最初の ス テ ッ プ Π 1 に お い て回転テ ー ブル 120 上 に固定 さ れた サ ン プル O B の 個数が入力 さ れ る 。
回転 テ ー ブ ル 12 G を 回転 さ せ, い ず れ か サ ン プル 0 B c が観測位置 0 V に達す る と 回転テ ー ブル ϋ が 停止 し, サ ン プ ル o s 。 の撮像が行な わ れ る 照明装 置 10に は画像処理装置 40に よ り 所定の 初期光度が設定 さ れて い る 。
画像処理装 置 40は , カ メ ラ 20か ら 取 り 込ん だ 画像 デー タ を処理 し て重心位置や面積な どの 特徴量を計測 し , そ の計測 し た特徴量を記 —9 る 。
上記の動作が回転テ ー プル 1 2 0 上の すべて の サ ン プ ル に つ い て実行 さ れ る 。
すべて の サ ン プ ル 0 B s に つ い て の 計測が完了 す る と , 計測 さ れ た すベ て の サ ン プノレ に つ い て の特徴量の 分散が求 め ら れ る 。 こ の分散が小 さ い程, 特徴量の ば ら つ き が小 さ く , 計測精度 は高い も の と な る 。
画像処理装置 4 0に よ っ て照明装置 1 0の光度が変更 さ れな カ ら , 同様の計測 と 分散の算 出が実行 さ れ る 。 求 め ら れ た分散が最小 と な る 光度が検索 さ れ, そ の 光度 が最適 な 照明条件 と し て決定 さ れ る 。
上述 し た 2 つ の実施例で は い ずれ も 回転テ ー ブルが 設 け ら れて い る が, サ ン プルを載置 し かつ搬送す る も の は第 6 7図 に示す よ う な ベ ル ト · コ ン ベ ア で も よ い 。
( 1 2 )撮像条件決定支援装置
最疫に , 像系 に 含 ま れ る レ ン ズの選択, 対象物 に 対す る カ メ ラ の設置距離の決定等を支援す る た め の装 置 につ い て説-明す る 。
第 Π図 は撮像条件決定支援装置 5 0の構成を示 し て い る 。 第 1 4図 に 示 す も の と 同 - -物 に は 同一符号 を 付す る 。 支援装置 5 0は第 1 4図 に示す支援装置 と 同 じ 画像処 理装置を用 い て も 実現可能な の で便宜的 に 同一符号 5 0 を付 し て お く
撮像条件決定支援装置 5 0に は レ ン ズ選択部 5 7が設 け ら れて い る 。 こ の レ ン ズ選択部 57は ユ ー ザが入力装置 51か ら 入力す る 情報, た と え ば希望す る 視野の大 き さ や 希望 設 置距離, 何 を 優先 す る か な ど の 情報 に し た が っ て こ れに適す る レ ン ズ, 接写 リ ン グ, 設置距離な ど を 導 く 。
第 75図を参照 し て撮像系 の 各種パ ラ メ 一 夕 の 関係 に つ い て 説 明 し て お く 。
カ メ ラ 20の設置距離 (撮像対象 O B と カ メ ラ 20と の 間の距離 A は次式で与え ら れ る 。
A = ( L s ( F + B - h - A H + d ) / L c )
+ B - h + d - (12) こ こ で, L s : 視野の大 き さ
F : フ ラ ン ジ · ッ ク
B : レ ン ズ 22の 全長
h : レ ン ズ先端か ら 第 1 主点 ま での距離 △ H : 主点間隔
d : へ リ コ イ ド繰 出 し量
L c : 撮像素子の有効画面
ヘ リ コ ィ ド繰出 し量 d は レ ン ズ Π (組合せ レ ン ズ, ま た は レ ン ズ筒) の焦点距離 f 0 を用 い て次式で表わ さ れ る 。
d = ( L c x f o / L s ) — F — B + h + Δ Η
+ f o - (13) カ メ ラ の設置距離 A は第 (13)式力、 ら L s / L c を導 き , そ れを第 (12)式 に 代入す る と 次の よ う に も 表わ さ れ る 。
A = f 0 [ ( F + d + B h - Δ H ) /
( F + d + B - h Δ H - f o ) ]
+ d + B — h - (1 ) 視野 し s は第 ( 1 3 )式 お よ び第 ( 14 )式か ら 次の よ う に 導か «ίレ o
L s = L c ( A - d - B + h ) /
( F + d + B - h - Δ Η ) … (15) フ ラ ン ジ · ノ ッ ク F や撮像素子の有効画面 L c は 力 メ ラ 20に よ っ て決 ま る 定数であ る か ら 固定値 と 考え て よ い。 レ ン ズ全長 B , レ ン ス選択か ら 第 1 主点 ま での 距離 h , 主点間隔 厶 H お よ び実焦点距離 f o は レ ン ズ 22に よ っ て決ま る 定数で あ る の で, こ れ ら の 定数の 集 合を 1 en s と 表現す る こ と に す る 。 定数 l en s は レ ン ズの種類 に よ っ て一義的 に定 ま る 。
そ う す る と , 第 ( 12 )式, 第 ( U )式 は, 関数 f ( ) の 記号 を 甩 い て , そ れ ぞ れ次 の よ う 簡潔 に 表現 さ れ O
A = f ( L s , d , l e n s ) - (16) d = f ( L s , l en s ) … ( 17 )
( 14 )式か ら d を導 く と , へ リ コ イ ド繰 出 し 量 は次 の よ う に も 表わ さ れ る 。
d = f ( A , l e n s ) … (18) さ ら に, 第 (15)式か ら 視野の大 き さ L s は次の よ う に も 表現 さ れ る 。
L s = f ( A , d , l en s ) … U 9) 第 (16)式か ら 第 (17)式 は, カ メ ラ 設置距離 A と , 視 野の大 き さ L s と , へ リ コ イ ド繰出 し量 d と レ ン ズ定 数 l en s と の 間の 関係を表わ し て い る 。 こ の よ う な 関 係式を も ち い て, 上記 4 つ の パ ラ メ ー タ の う ち の 少 く と も 2 つ を与え れば, 残 り の 2 つ が定ま る 。
第 (16)式か ら 第 (19)式の 関係を利用 し て, 希望す る 視野の 大 き さ L s Q と 希望す る 設置距離 A Q を与え た 場合に最適な レ ン ズの種類を選択す る 処理 に つ い て説 明す る 。 N 種類の レ ン ズ力 あ る も の と し , こ れ ら の レ ン ズにつ い て の 定数 l en s は あ ら 力、 じ め分 っ て い る も の と す る 。 好 ま し く は こ の レ ン ズ定数 l e n s は レ ン ズ の種類 ご と に メ モ リ に あ ら か じ め ス ト ア さ れて い る 。 ユ ー ザ が そ の 都度 レ ン ズ定数 l e n s を 入 力 し て も よ い o
第 図 は, 希望の視野 L s fl を優先す る 場合の処理 を示す も の で あ る 。
ま ず, ユ ー ザ は 入 力 装 置 51か ら 希望 の 視野 L s
0 と , 希 望 の 設 置 距 離 A fl を 入 力 す る ( ス テ ッ プ 380 ) o
第 1 番 目 ( n = l ) の レ ン ズの レ ン ズ定数 l en s が メ モ リ か ら 読出 さ れ, ま た は入力装置 51を通 し て入力 8
さ れ, 希望の 視野 L s Q と n 番 目 の レ ン ズ定数 l e n s と を用 い て, 第 ( 17 )式か ら へ リ コ イ ド繰 出 し 量 d が算 出 さ れ る (ス テ ッ プ 1 〜 3 Π ) 0
へ リ コ イ ド繰 出 し量 d はヘ リ コ ィ ド の最大繰 出 し 量 よ り も 小 さ く な け ればな ら な い の で, 算出 さ れ たへ リ コ イ ド繰 出 し量 d が最大繰 出 し 量 d m a x よ り も 大 き い か ど う かが判定 さ れ る ( ス テ ッ プ 384 ) 。
も し , 算出 さ れたヘ リ コ ィ ド繰 出 し 量 d が最大繰 出 し 量 d m a x よ °^ り J も 大 き い塲合 に は, 次の 第 ( 20 )式 に 示 す不等式 満足す る 厚 さ t の接写 リ ン グを使用 し な け ればな ら な い の で, 第 ( 20 )式を 満 た す厚 さ の接写 リ ン グが選択 さ れ る (ス テ ッ プ 385 ) 。 接写 リ ン グ に 関す る デー 夕 も 好 ま し く は あ ら か じ め メ モ リ に ス ト ア さ れ て い る
t < d < ( t + d m ) … (20) 次に , 算 出 さ れ た へ リ コ イ ド繰 出 し 量 d を用 い て, 第 (16)式 に し た 力 つ て, そ の レ ン ズ に つ い て カ メ ラ 設 置距離 A が算出 さ れ る (ス テ ッ プ Π 6 ) 。
以上の処理 は N種類の レ ン ズ に つ い て繰返 し 行な わ れ (ス テ ツ プ 3 Π , 388 ) , 各処理で得 ら れた レ ン ズ 番号 n , 接写 リ ン グ厚 t お よ び設置 Ϊ巨離 A が メ モ リ に ス ト ア さ れ る
N種類の レ ン ズ に つ い て の処理が終了す る と , こ れ ら の レ ン ズ の 中か ら , 希望 の設置距離 A ^ に最 も 近 い 設 置 距 離 A を も つ レ ン ズ番号 n G が選択 さ れ る ( ス テ ツ プ 289 ) 。 選択 さ れた レ ン ズ番号 n Q に つ い て接 写 リ ン グの厚 さ t に つ い て の デ 一 タ カ《あ ればそ れ も 選 択 さ れ る 。 算出 さ れた カ メ ラ 設置距離 A が実際 に カ メ ラ 20を設置すべ き 距離であ る 。 レ ンズ 22の 全長 B , へ リ コ イ ド繰出 し量 d , カ メ ラ 設置距離 A の 間 に は, 当 然の こ と な 力 ら B + d < A な る 関係が成 り 立た な けれ ばな ら な い の で, そ の よ う な レ ン ズを選ぶ必要が あ る の は い う ま で も な い。
こ の よ う に し て選択 さ れた レ ン ズ の 種類 と , 接写 リ ン グの厚 さ と , 設置距離 A が, 第 図 に示す よ う に , 標示装置 41に 表示 さ れ る 。
第 77図 は希望の設置距離を優先す る 処理を示 し て い る 。 第 76図 に示す処理 と 同 じ も の につ い て は 同一符号 を付 し, 重複説明を避 け る 。
希望の 設置距離 A Q と 第 n 番 目 の レ ン ズ の レ ン ズ定 数 1 e n s と を用 い て, 第 ( 18 )式に し たが っ てへ リ コ ィ ド 繰 出 し 量 d が算 出 さ れ る ( ス テ ッ プ 3 Π ) 。 d > d m, _ の 場合 に は接写 リ ン グ厚 さ t が算出 さ れ る ( ス テ ツ プ Π 5 ) 。
算出 さ れたへ リ コ イ ド繰 出 し量 d を用 い て, 第 (19) 式 に し た が っ て , 視野 L s が算 出 さ れ る ( ス テ ッ プ 391 ) o
以上の処理がすべての 種類の レ ン ズ につ い て繰返 し 行な わ れ る 。 そ の 後, 希望の視野 L s Q に最 も 近 い視 野 L s を も つ レ ン ズ力 選択 さ れ (ス テ ッ プ 392 ) , そ の 選択結果 が 第 78図 の よ う に 表示 さ れ る ( ス テ ッ プ 393 ) o"
最後 に, 希望 の視野を, 指定 さ れた レ ン ズ で実現す る た め の接写 リ ン グ と 設置距離を求め る 処理 に つ い て 説明す る 。 こ の 処理 に つ い て は特 に フ ロ ー ' チ ャ ー ト は示 さ れて い な い。
こ の 場 合 に は , レ ン ズ 22は 既 知 で あ る の で , 第 (17)式 に希望の 視野 L s Q と 指定 さ れた レ ン ズの 定 数 l e n s を代入 し て, へ リ コ イ ド繰 出 し 量 d が算出 さ れ る 。 ヘ リ コ ィ ド繰 出 し 量 d は レ ン ズの へ リ コ ィ ド最 大繰出 し量 d m a χ よ り も 小 さ く な け れ ば な ら な い の で, 算出 さ れた へ リ コ イ ド繰 出 し 量 d が最大繰 出 し 量 d m a„ よ り も 大 き い場合 に は, 第 (20)式の 不等式を満 足す る 厚 さ t の接写 リ ン グが用 い ら れ る 。
次に, 算出 さ れた へ リ コ イ ド繰出 し 量 d と 希望の視 野 L s Q と レ ン ズ 定数 l e n s と を 用 い て 第 (16) 式 に よ っ て設置距離 A が求 め ら れ る 。
こ の場合 に も , レ ン ズの 全長 B と へ リ コ イ ド繰 出 し 量 d , カ メ ラ 設置距離 A の 間 に は, 当然の こ と な が ら B + d < A な る 関 係 力 成 り 立 た な け れ ば な ら な い の で, B + d 〉 A と な る と き に は指定 さ れた レ ン ズで希 望の 視野 は実現で き な い と い う こ と な る 。 以 上 の よ う に し て , 入 力 装 置 5 1か ら 希 望 の 視 野 L s 0 と 希望の設置距離 A Q を入力す る と , 推奨値 と し て, レ ン ズ (焦点距離) , 接写 リ ン グ の 厚 さ , 設置 距離が C R T 表示装置 に表示 さ れ る 。 ま た, 希望の視 野 と レ ン ズ と を入力すれば, そ れ に適 し た設置距離 A が算出 さ れ, 表示 さ れ る 。 産業上の利用可能性
画像処理 シ ス テ ム は , 工場の コ ン ベ ア · ラ イ ン に お け る 製品の検査, ロ ボ ッ ト に よ る 物体の認識等に お い て有効 に利用 さ れ る 。 こ の発明 に よ る 照明条件決定, 最適照明条件設定, 撮像条件決定等の た め の支援装置 は, 検査 目 的 に 合致 し た対象物の適切 な 撮像, 物体の 高精度の認識の た め に, よ り 適切 な照明条件, 撮像条 件をユ ー ザが決定 し, 設定す る た め の ツ ー ル と し て利 用 さ れ る 。

Claims

請求の 範囲
1 . 対象物の形状的特徴に 関す る 情報を入力す る た め の 入力装置 ( 51). ,
照明装置 ( 11, 13) の特性 に関す る 情報を記憶す る 目し ί思 置 ( 54) ,
上記 入 力 装 置 か ら 入力 さ れ た 対象 物 の 形 状 的特徴 と , ^曰定 さ れ た照明装置 に つ い て上記記憶装置 に記憶 さ れて い る 特性 と に基づ い て, 対象物の好適な 撮影の た め の要求を満たす上記照明装置 の設定位置 を導 き 出 す演算装置 ( H ) , お よ び
上記演算装置 に よ っ て導出 さ れ た設定位置を 出力す る 出力装置 ( 41, 52) , .
を備 え た照明条件決定支援装置。
2 . 対象物の形状的特徴 に 関す る 情報 に, 対象物を照 明す る の に必要な 照明装置の視野の大 き さ が含 ま れて い る , 請求の 範囲第 1 項 に記載の 装置。
3 . 照明装置の 特性 に 関す る 情報 に, 照明装置の大 き さ , お よ び等 照度特性 が 含 ま れ て い る , 請求 の 範囲 第 1 項 に記載の装置。
4 . 照明装置の設定位置が照明装置 と 対象物 と の 間の 距離 に よ っ て表わ さ れ る , 請求の 範囲第 1 項 に記載の 农 m B. o
5 . 上 記 出 力 装 置 が 設 定 位 置 を 表 示 す る 表 示 装 置 ( 41) で あ る , 請求の範囲第 1 項に記載の装置。
6 . 上記 出力装置が, 照明装置を そ の設定位置を調整 自 在 に支持す る 支持装置 ( Π, 38) を制御す る も の で あ る , 請求の 範囲第 1 項 に記載の装置。
7 . 照明 目 的 お よ び対象物の 着 目 部 と 背景部 と の 光学 的性質の差異 に 関す る 情報 に対応 し て, 適切な 照明装 置の 種類お よ び照明方法を あ ら か じ め記憶 し た記憶装 置 ( ) ,
照明 目 的お よ び対象物の着 目 部 と 背景部 と の光学的 性質の差異に 関す る 情報を入力す る 入力装置 ( 51) , 上記入力装置 ( 51) か ら 入力 さ れた情報 に し た が つ て上記記憶装置 に記憶 さ れて い る 適切 な 照明装置の 種 類お よ び照明方法を導 き 出す処理装置 ( 56) , な ら び に
上記処理装置 ( 5 G ) に よ っ て導 き 出 さ れた適切な 照 明 装 置 の 種 類 お よ び 照 明 方 法 を 表 示 す る 表 示 装 置 ( 1) ,
を さ ら に備え た請求の範囲第 1 項 に記載の 装置。
8 . 上記照明 目 的が対象物の 検査 目 的で あ る , 請求の 範囲第 7 項に記載の 装置。
9 . 上記入力装置が視野の 大 き さ を-入力す る も の で あ ,
上記処理装置が入力 さ れた視野の大 き さ に適合 し た 照明装置お よ び照明方法を選択す る も の であ る , 求の 範囲第 7 項 に記載の装置。
10. 対象物を照明す る 照明装置 ( 11, 13) と , こ の 照 明装置 に よ る 照明下で対象物を撮影 し , 撮影 し た対象 物を表わ す映像信号を 出力す る 撮像装置 ( 20) と , こ の 撮像装置か ら 出力 さ れ る 映像信号を用 い て対象物 に 関す る 画像処理を実行す る 処理装置 ( 40, 50) と を備 元 た画像処理 シ ス テ ム に お い て ,
対象物の形状的特徵 に 関す る 情報を取込み,
の取込ん だ対象物の形状的特徴 に 関す る 情報 と , 指定 さ れ た照明装置 に つ い て あ ら か じ め設定 さ れて い る 特性 と に基づ い て, 対象物の好適な 撮影の た め の要 求を満 た す上記照明装置の設定位置を導 き 出 し ,
導 き 出 さ れた設定位置を 出力す る ,
画像処理 シ ス テ ム に お け る 照明条件決定支援方法。
11. 照明 目 的 お よ び対象物の着 目 部 と 背景部 と の 光学 的性質の 差異 に関す る 情報を取込み,
取込ん だ上記情報 に適合 し た照明装置の 種類お よ び 照 明方 法 を あ ら か じ め 設定 さ れ た も の の 中 か ら 選択 し ,
選択 さ れた照明装置 お よ び照明方法 に適 し た上記設 定位置を導 き 出す,
求の 範囲第 10項 に記載の方法。
12. 対象物の形状的特徴 に 関す る 情報を入力する た め の 入力装置 ( 51) , 上記入力装置か ら 入力 さ れた対象物の形状的特徵 に 基 づ い て , 対 象 物 の 好適 な 撮 影 の た め の 要 求 を 満 た す 照 明 装置 ( 14) の 設定角 度 を 導 き 出 す演算装置 ( 55) , お よ び
上記演算装置 に よ つ て導出 さ れた設定角 度を 出力す る 出力装置 ( 41, 52) ,
を備え た照明条件決定支援装置。
13. 上 記 出 力 装 置 が 設 定 角 度 を 表 示 す る 表 示 装 置 ( 1) であ る , 請求の 範囲第 12項 に記載の装置。
14. 上記出力装置が, 照明装置を そ の設定角 度を調整 自 在 に 支持す る 支持装 置 ( 39) を 制 御 す る も の で あ る , 請求の範囲第 12項に記載の装置。
15. 照明 目 的お よ び対象物の 着 目 部 と 背景部 と の光学 的性質の 差異 に 関す る 情報 に対応 し て, 適切な照明装 置の種類お よ び照明方法を あ ら か じ め記憶 し た記憶装 置 ( 56) , '
照明 目 的 お よ び対象物の着 目 部 と 背景部 と の光学的 性質の差異 に 関す る 情報を入力す る 入力装置 ( 51) , 上記入力装置 ( Π ) か ら 入力 さ れ た 情報 に し た が つ て上記記憶装置 に記憶 さ れて い る 適切な 照明装置の 種 類お よ び照明方法を導 き 出す処理装置 ( 56) , な ら び に
上記処理装置 ( 56) に よ っ て導 き 出 さ れた適切な照 明 装 置 の 種 類 お よ び 照 明 方 法 を 表 示 す る 表 示 装 置 ( 1)
を さ ら に備 え た請求の 範囲第 12項 に記載の装置。
16. 上記照明 目 的が対象物の検査 目 的で あ る , 請求の 範囲第 15項 に記載の装置。
Π. 上記入力装置が視野の大 き さ を入力す る も の で あ り ,
上記処理装置が入力 さ れ た視野の 大 き さ に適合 し た 照明装 お よ び照明方法を選択す る も の で あ る ,
の 範囲第 項に記載の装置。
18. 対象物を照明す る 照明装置 ( 14) と , こ の 照明装 fc に よ る 照明下で対象物を撮影 し , 撮影 し た対象物を 表わす映像信号を 出力す る 撮像装置 U0) と , こ の撮 像装置か ら 出力 さ れ る 映像信号を用 い て対象物 に 関す る 画像処理を実行す る 処理装置 ( 40, 50)· と を備え た 画像処理 シ ス テ ム に お い て
対象物の形状的特徴 に 関す る 情報を取込み, こ の取込ん だ対象物の形状的特徴 に 関す る 情報 に基 づ い て , 対象物の好適 な撮影の た め の要求を満たす上 記照明装置 の 設定角 度を導 き 出 し ,
導 き 出 さ れ た設定角 度を 出力す る ,
画像処理 シ ス テ ム に お け る 照明条件決定支援方法。
19. 照明 目 的お よ び対象物の着 目 部 と 背景部 と の光学 的性質の 差異に 関す る 情報を取込み,
取込ん だ上記情報 に適合 し た照明装置の 種類お よ び 照 明方 法 を あ ら 力、 じ め 設 定 さ れ た も の の 中 か ら 選択 し,
選択 さ れた照明装置お よ び照明方法 に適 し た上記設 定角度を導 き 出す,
請求の 範囲第 項 に記載の方法。
20. 照明 目 的 お よ び対象物の 着 目 部 と 背景部 と の光学 的性質の差異 に 関す る 情報 に対応 し て, 適切な 照明装 置の 種類お よ び照明方法を あ ら か じ め記憶 し た記憶装 置 ( 56) ,
照明 目 的 お よ び対象物の 着 目 部 と 背景部 と の光学的 性質の 差異 に関す る 情報を入力す る 入力装置 ( 51) , 上記入力装置 ( Π ) か ら 入力 さ れた情報 に し たが つ て上記記憶装置 に記憶さ れて い る 適切 な照明装置の 種 類お よ び照明方法を導 き 出す処理装置 ( 5 G ) , な ら び に
上記処理装置 ( ) に よ っ て導 き 出 さ れた適切な 照 明 装 置 の 種 類 お よ び 照 明 方 法 を 表 示 す る 表 示 装 置 ( 1) ,
を備え た照明条件決定支援装置。
21. 上記照明 目 的が対象物の検査 目 的であ る , 請求の 範囲第 20項 に記載の装置。
22. 上記入力装置が視野の大 き さ を入力す る も の で あ り ,
上記処理装置が入力 さ れ た視野の大 き さ に適合 し た 照明装置お よ び照明方法を選択す る も の で あ る , 請求の 範囲第 20項 に記載の 装置。
23. 照明 目 的 お よ び対象物の 着 目 部 と 背景部 と の光学 的性質の差異 に 関す る 情報を取込み,
取込ん だ上記情報 に適合 し た照明装置 の 種類お よ び 照 明 方 法 を あ ら か じ め 設定 さ れ た も の の 中 か ら 選択 し ,
選択 さ れた照明装置お よ び照明方法を 視認可能な形 態で 出力す る ,
照明条件決定支援方法。
24. 対象物を 照明す る 照明装置 ( 11) ,
上記照 明 装 置 を 位 置 調 整可能 に 支持 す る 支持装 置 ( 30, 31, 38) ,
上 記 照 明 装 置 に よ る 照 明 下 で 対 象 物 を 撮 像 し , 対象 物 の 画 像 を 表 わ す 映 像 信号 を 出 力 す る 撮像装 置 ( 20) ,
上記撮像装置か ら 出力 さ れ る 映像信号 に基づ い て, 明 る さ に 対す る 画 質 の 良否 の 程度 を 表 わ す 画質 ヒ ス ト グ ラ ム を 生成 す る 画 質 ヒ ス ト グ ラ ム 生成 回路手段 ( 61 , 82 , 83 , 84 ) ,
上記画質 ヒ ス ト グ ラ ム生成回路手段 に よ っ て生成 さ れた画質 ヒ ス ト グ ラ ム に基づい て照明 の評価値を算出 す る 評価値算出回路手段 ,
上記評価値算出 回路手段 に よ つ て算出 さ れた今回 の 評価値を上記照明装置の位置変更前の前回 の評価値 と 比較す る 比較回路手段 ( 65) , お よ び
上記比較回路手段に よ る 比較結果を 出力す る 出力手 段 ( 41, 68) ,
を備え た照明条件設定支援装置。
25. 上記出力手段が上記比較回路手段 に よ る 比較結果 に応 じ て上記照明装置 の位置調整方向 を指示す る 表示 装置 ( 41) で あ る , 請求の範囲第 24項 に記載の 装置。
26. 上記支持装置が上記照明装置の 位置を変更 さ せ る 駆動装置 ( Π) を含み,
上記出力手段が上記比較回路手段に よ る 比較結果 に 応 じ て上記照明装置の位置調整方向 を指示す る 表示装 置 ( 41) で あ り ,
上記駆動装置を駆動す る た め の 指令を入力す る 入力 装置 ( 69) と , こ の入力装置を通 し て入力 さ れた指令 に 応答 し て 上記駆動装 置 を 制 御 す る 制御装置 ( 65, 68) と を さ ら に備えて い る ,
請求の 範囲第 24項に記載の装置。
27. 上記支持装置が上記照明装置の 位置を変更 さ せ る 駆動装置 ( 37) を含み,
上記比較回路手段に よ る 比較結果 に応 じ て上記駆動 装置 ( 37) を制御 し , 上記照明装置の位置を最適位置 に調整す る 制御手段 ( 65, 68) を さ ら に備 え て い る 請 求の範囲第 24項 に記載の装置。
28. 上記画質 ヒ ス ト グ ラ ム 生成回路手段が,
上記 映像信号 を デ ィ ジ タ ル 画 像 デ ー タ に 変換す る A ノ D 変'換手段 ( 61) ,
A Z D 変換 さ れた 1 画面分の デ ィ ジ タ ル画像デ ー タ を記憶す る 画像 メ モ リ ( 62) ,
上記 1 画面分の 画像デ ー タ に ウ イ ン ド ウ を設定 し て そ の ウ イ ン ド ウ 内 の複数の 画素 に つ い て の 画素デ ー タ を抽 出す る ウ ィ ン ド ウ 手段 ( 7!)〜 76, 78) ,
上記 ウ イ ン ド ウ 内 の 画像デ ー タ の 傾 き に 関す る デ ー 夕 を生成す る 手段 ( 91〜 98) ,
上記傾 き に 関す る デー タ と 複数の エ ツ ジ · パ タ ー ン と の 合致度 を そ れ ぞ れ演算 す る 手段 ( 101 〜 109 , 111 〜 1 U ) ,
上記合致度か ら 画質の評価値を演算す る 手段 ( 85, 86, ) , お よ び
上記画質の評価値の 演算を 1 画面分の すべて の 画素 に つ い て行な う よ う に制御 し , 各画素の 画像デ ー タ に よ っ て表わ さ れ る 明 る さ ご と に上記評価値の平均値を 算 出す る 手段 ( 65, 80, 82, 83 , 84 ) ,
か ら 構成 さ れ る 請求の 範囲第 24項 に記載の装置。 29. 対象物を照明す る 照明装置 ( 11) , 上記照明装置 を位置調整可能 に支持す る 支持装置 ( 30, 31, Π) , お よ び上記照明装置 に よ る 照明下で対象物を撮像 し, 対象物 の 画 像 を 表 わ す 映 像 信号 を 出 力 す る 撮像装置 ( 20) を備え た 画像処理 シ ス テ ム に お い て,
上記撮像装置か ら 出力 さ れ る 映像信号に基づ い て, 明 る さ に対す る 画質の良否の程度を表わす画質 ヒ ス ト グ ラ ム を生成 し,
生成 さ れた画質 ヒ ス ト グ ラ ム に基づい て照明の評価 値を算出 し ,
算出 さ れた今回 の評価値を上記照明装置の 位置変更 前の前回 の評価値 と 比較 し ,
こ の比較結果を 出力す る ,
画像 シ ス テ ム に お け る 照明条件設定支援方法。
30. 対象物を撮像 し, 撮像画像を表わす映像信号を 出 力す る 撮像装置 ( 20) ,
上記撮像装置か ら 出力 さ れ る 上記映像信号を デ ィ ジ タ ル画像デー タ に変換す る A / D 変換手段 ( U) ,
A Z D 変換 さ れた 1 画面分の デ ィ ジ 夕 ル画像デ ー タ を記憶す る 画像 メ モ リ ( 62) ,
上記 1 画面分の 画像デー タ に ウ ィ ン ド ウ を設定 し て そ の ウ イ ン ド ウ 内 の複数の 画素につ い て の 画素デー タ を抽 出す る ウ ィ ン ド ウ 手段 ( 70〜 ? 6, 78) ,
上記 ウ イ ン ド ウ 内 の 画像 デー タ の傾 き に 関す る デ ー 夕 を生成す る 手段 ( Π〜 98) ,
上記傾 き に 関す る デ ー タ と 複数の エ ツ ジ · パ タ ー ン と の 合致度 を そ れ ぞ れ演算 す る 手段 ( 101 〜 109 , 111 〜 118 ) , 上記合致度か ら エ ツ ジ ら し さ の評価値を演算す る 手 段 ( 85 ) , お よ び
上記エ ツ ジ ら し さ の 評価値の演算を 1 画面分の すべ て の 画 素 に つ い て 行 な う よ う に 制 御 す る 手段 ( 65, 80) ,
を備 え たエ ツ ジ 画像生成装置。
31. 上記エ ッ ジ ら し さ の評価値を記憶す る エ ッ ジ 画像 メ モ リ ( 88) を さ ら に 備 え た請求の 範囲第 30項 に記載 の装置。
32. 上記エ ツ ジ ら し さ の評価値を所定の し き い値で レ ベル弁別 し て 2 値化す る 手段を さ ら に備え た請求の範 囲第 Π項 に記載の 装置。
33. 対象物を撮像装置 ( 20) に よ り 撮像 し , こ れ に よ り 得 ら れ る 撮像画像を表わす映像信号 に基づ い て撮像 画像の エ ツ ジ 画像を表わ す デ ー タ を生成す る 方法で あ ¾ ,
1 画 面 分 の 映 像 信 号 を デ ィ ジ タ ル 画 像 デ ー タ に A Z D変換 し ,
上記 1 画面分の 画像デ ー タ に ウ ィ ン ド ウ を設定 し て そ の ウ イ ン ド ウ 内 の複数の 画素に つ い て の 画素デー タ を抽 出 し ,
上記 ウ イ ン ド ウ 内 の 画像デ ー タ の傾 き に 関す る デ ー 夕 を生成 し ,
上記傾 き に 関す る デ ー タ と 複数の エ ッ ジ · パ タ ー ン と の 合致度を そ れぞれ演算 し,
上記合致度か ら エ ツ ジ ら し さ の評価値を演算 し , 上記エ ツ ジ ら し さ の評価値の演算を 1 画面分の すべ て の 画素 に つ い て行な い, 上記評価値か ら な る エ ツ ジ 画像デー タ を得 る ,
エ ツ ジ画像生成方法。
34. 良 品 お よ び不良品 の 複数 の サ ン プ ル を 所定 の 観 測 位 置 へ 順 次 供 給 す る サ ン プ ル 供 給 装 置 ( 120 ,
121 ) ,
上記観測位置の サ ン プルを照明す る 照明条件可変な 照明装置 ( 10) ,
上記供給装置 に よ っ て上記観測位置 に も た ら さ れた 良品お よ び不良品の各サ ン プ ルを上記照明装置 に よ る 照明下で撮像 し , 撮像 し たサ ン プルを表わす映像信号 を 出力す る 撮像装置 ( 20) ,
上 記 撮 像 装 置 か ら 出 力 さ れ る 映 像 信 号 に 基 づ い て 各 サ ン プ ル の 特 徴 量 を 計 測 す る 特 徴 量 計 測 手 段
( 130 ) ,
上記特徴量計測手段に よ り 計測 さ れた特徴量に基づ い て良品 と 不良品 の判別精度 に 関す る 評価値を算出す る 手段 ( U 0 ) , な ら びに
上記照明装置の 照明条件を変え な が ら 求め ら れた照 明条件 ご と の評価値に基づい て, 評価値が最良 と な る 照明条件を検索す る 手段 ( 130 ) , を備 え た照明条件設定支援装置。
35. 上記観測位置 に供給 さ れ る サ ン プルの 有無 と , 良 品 か 不 良 品 か の 区 別 と を 検 出 す る 検 出 装 置 ( 123 ,
123 a , 123 b , 123 c ) を さ ら に備え て い る , i 求 の 範囲第 34項 に記載の 装置。
36. 上記サ ン プ ル供給装置が, 各サ ン プ ルを載置す る 回転テ ー ブル ( 120 ) と , こ の 回転テ ー プル ( 120 ) を 回転駆動す る 駆動装置 ( 121 ) と か ら 構成 さ れて い る , 請求の 範囲第 Π項に記載の 装置。
37. 所定の観測位置 を照明す る 照明条件可変な 照明装 置 ( 10) を配置 し ,
良品 お よ び不良品の複数の サ ン プルを上記観測位置 へ順次供給 し ,
上記観測位置 に供給 さ れ た良品 お よ び不良品 の各サ ン プルを上記照明装置 に よ る 照明下で撮像 し ,
撮像 に よ り 得 ら れ る 映像信号 に 基づ い て各サ ン プル の 特徴量を計測 し ,
計測 さ れ た特徴量 に基づ い て良品 と 不良品の判別精 度 に 関す る 評価値を算出 し ,
上記照明装置の 照明条件を変え な が ら , 照明条件 ご と の評価値を求め, 評価値が最良 と な る 照明条件を検 索す る ,
照明条件設定支援方法。
38. 複数の サ ン プルを所定の 観測位置へ順次供給す る サ ン プル供給装置 ( 120 , 121 ) ,
上記観測位置の サ ン プ ルを照明す る 照明条件可変な 照明装置 ( 10) ,
上記供給装置 に よ っ て上記観測位置 に も た ら さ れた 各サ ン プルを上記照明装置 に よ る 照明下で撮像 し , 撮 像 し た サ ン プルを表わす映像信号を 出力す る 撮像装置 ( 20) ,
上 記 撮 像 装 置 か ら 出 力 さ れ る 映 像 信 号 に 基 づ い て 各 サ ン プ ル の 特 徴 量 を 計 測 す る 特 徴 量 計 測 手 段
( 130 ) ,
上記特徴量計測手段 に よ り 計測 さ れた特徴量の分散 を算出す る 手段 ( 130 ) , お よ び
上記照明装置の 照明条件を変え な が ら 求め ら れた照 明条件 ご と の分散 に基づ い て, 分散が最小 と な る 照明 条件を検索す る 手段 ( 130 ) ,
を備え た照明条件設定支援装置。
39. 上記観測位置 に 供給 さ れ る サ ン プ ルを検出す る 検 出装置 ( 123 ) を さ ら に 備え て い る , 請求の 範囲第 Π 項 に記載の装置。
40. 上記サ ン プ ル供給装置が, 各サ ン プ ルを載置す る 回転テ ー ブル ( 120 ) と , こ の 回転テ 一 プル ( Π0 ) を回転駆動す る 駆動装置 ( 121 ) と か ら 構成 さ れて い る , 請求の 範囲第 38項に記載の装置。
41. 所定の観測位置を照明す る 照明条件可変な 照明装 置 ( 1 0 ) を配置 し ,
複数の サ ン プル を上記観測位置へ順次供 α し 上記観測位置 に供給 さ れた各サ ン プ ルを上記照明装 置 に よ る 照明下で撮像 し ,
撮像 に よ り 得 ら れ る 映像信号 に基づい て各サ ン プ ル の特徴量を計測 し ,
計測 さ れた全サ ン プルの特徴量の 分散を算 lil し , 上記照明装置の 照明条件を変え な が ら , 照明条件 ご と の 分散を求め, 分散が最小 と な る 照明条件を検索す る ,
照明条件設定支援方法。
4 2 . レ ン ズ と 必要な接写 リ ン グが着脱 自 在 な 力 メ よ る 影条件を決定す る た め に,
カ メ ラ の視野情報 と , 撮影対象 に対す る カ メ ラ の 設 置距離情報 と , レ ン ズ の情報 と , 接写 リ ン グの情報の う ち の少な く と も 2 つ の情報を入力す る た め の 入力装 置,
上記入力装置か ら 入力 さ れた少な く と も 2 つ の情報 を用 い て残 り の情報を算出す る 演算装置, お よ び
上記演算装置 に よ る 演算結果 に よ っ て表わ さ れ る 上 記残 り の情報を表示す る 表示装置,
を備え た撮影条件決定支援装置。
PCT/JP1992/000893 1991-07-12 1992-07-13 Appareil et procede de determination ou de selection des conditions adequates d'eclairage et de prise de vues, notamment, dans un systeme de traitement d'images; et appareil et procede d'aide a la realisation de cette operation de determination ou de selection WO1993001559A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930700721A KR970003328B1 (ko) 1991-07-12 1992-07-13 화상 처리 시스템에 있어서, 알맞은 조명조건, 촬영조건등을 결정 및 설정하기 위한 또는 결정 및 설정을 지원하기 위한 장치 및 방법

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
JP19869491 1991-07-12
JP3/198694 1991-07-12
JP30704691 1991-10-25
JP3/307046 1991-10-25
JP4/166997 1992-06-01
JP16699792 1992-06-01
JP17161392 1992-06-04
JP4/171613 1992-06-04

Publications (1)

Publication Number Publication Date
WO1993001559A1 true WO1993001559A1 (fr) 1993-01-21

Family

ID=27474107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1992/000893 WO1993001559A1 (fr) 1991-07-12 1992-07-13 Appareil et procede de determination ou de selection des conditions adequates d'eclairage et de prise de vues, notamment, dans un systeme de traitement d'images; et appareil et procede d'aide a la realisation de cette operation de determination ou de selection

Country Status (5)

Country Link
EP (1) EP0569589A4 (ja)
KR (1) KR970003328B1 (ja)
AU (1) AU644973B2 (ja)
CA (1) CA2092709A1 (ja)
WO (1) WO1993001559A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5756448A (en) * 1992-02-26 1998-05-26 The General Hospital Corporation Constitute activator of retinoid (CAR) receptor polypeptides
WO2022085185A1 (ja) * 2020-10-23 2022-04-28 日本電気株式会社 個体識別装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6836553B2 (en) * 2000-07-25 2004-12-28 The Hillman Group, Inc. Key identification system
DE102004016077B4 (de) * 2004-03-30 2008-05-08 Daimler Ag Positionieren einer Komponente eines optischen Systems
US20120162377A1 (en) * 2009-09-03 2012-06-28 Ccs Inc. Illumination/image-pickup system for surface inspection and data structure
KR101897043B1 (ko) * 2018-02-09 2018-10-18 미세기술(주) 자동으로 조명 처리가 이루어지는 광학검사장치 및 이를 이용한 광학검사방법
JP6977634B2 (ja) * 2018-03-13 2021-12-08 オムロン株式会社 外観検査装置、外観検査方法及びプログラム
CN111105485B (zh) * 2018-10-09 2024-02-27 杭州海康威视数字技术股份有限公司 一种线条渲染方法、装置
CA3110206A1 (en) * 2018-11-07 2020-05-14 Marel Salmon A/S A food processing device and a method of providing images of food objects in a food processing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62194589A (ja) * 1986-02-21 1987-08-27 Fujitsu Ltd 映像入力装置
JPS6461872A (en) * 1987-09-01 1989-03-08 Omron Tateisi Electronics Co Visual recognizer
JPH0269080A (ja) * 1988-09-03 1990-03-08 Fuji Electric Co Ltd 照明技術支援装置
JPH0322181A (ja) * 1989-06-20 1991-01-30 Fujitsu Ltd 閾値を可変にした輪郭抽出方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4706168A (en) * 1985-11-15 1987-11-10 View Engineering, Inc. Systems and methods for illuminating objects for vision systems
JPS62299948A (ja) * 1986-06-20 1987-12-26 Fujitsu Ltd 照明光量の自動設定方法
US5184159A (en) * 1989-07-25 1993-02-02 Asahi Kogaku Kogyo Kabushiki Kaisha Light source apparatus for endoscope

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62194589A (ja) * 1986-02-21 1987-08-27 Fujitsu Ltd 映像入力装置
JPS6461872A (en) * 1987-09-01 1989-03-08 Omron Tateisi Electronics Co Visual recognizer
JPH0269080A (ja) * 1988-09-03 1990-03-08 Fuji Electric Co Ltd 照明技術支援装置
JPH0322181A (ja) * 1989-06-20 1991-01-30 Fujitsu Ltd 閾値を可変にした輪郭抽出方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP0569589A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5756448A (en) * 1992-02-26 1998-05-26 The General Hospital Corporation Constitute activator of retinoid (CAR) receptor polypeptides
WO2022085185A1 (ja) * 2020-10-23 2022-04-28 日本電気株式会社 個体識別装置

Also Published As

Publication number Publication date
EP0569589A4 (en) 1994-10-12
CA2092709A1 (en) 1993-01-13
AU2274892A (en) 1993-02-11
EP0569589A1 (en) 1993-11-18
AU644973B2 (en) 1993-12-23
KR970003328B1 (ko) 1997-03-17

Similar Documents

Publication Publication Date Title
US7446864B2 (en) Defect inspection method and defect inspection system using the method
EP0706027B1 (en) Visual inspection apparatus for printed circuit boards and use thereof for solder control and correction
JP3235387B2 (ja) 照明条件設定支援装置および方法
KR20050013488A (ko) 합성구조의 제조중 이물질과 파편 및 결함을 확인하기위한 시스템 및 방법
JPH0599861A (ja) 透明容器の検査方法及び装置
TW200532162A (en) Inspection system and method for providing feedback
WO1993001559A1 (fr) Appareil et procede de determination ou de selection des conditions adequates d&#39;eclairage et de prise de vues, notamment, dans un systeme de traitement d&#39;images; et appareil et procede d&#39;aide a la realisation de cette operation de determination ou de selection
US20240062363A1 (en) Grading cosmetic appearance of a test object
CN1132554C (zh) 具有视点检测功能的电子设备
CN212409647U (zh) 内螺纹孔检测装置
JPH06160066A (ja) 外観検査装置
JP2006313147A (ja) 欠陥検査方法およびその方法を用いた欠陥検査装置
JP2020016471A (ja) 画像検査装置
JP5318384B2 (ja) 電線表面の画像検査装置
JP3931130B2 (ja) 測定システム、演算方法および演算プログラム
JPH11118730A (ja) 被検査面の欠陥検査方法およびその装置
JP2589132B2 (ja) 歯車の歯当たり測定装置
JP4247362B2 (ja) 特徴抽出装置
JP7080123B2 (ja) 画像検査装置
CN112013799A (zh) 内螺纹孔检测方法及装置
JP3559391B2 (ja) 光学部材検査装置
JP2020135660A (ja) 情報管理装置及び情報管理方法
JPH06213820A (ja) 異物判別方法
US20240187719A1 (en) Grading system and a method thereof
JP3668318B2 (ja) 反射面を有するワークの検査方法およびその装置

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AU CA JP KR US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IT LU MC NL SE

WWE Wipo information: entry into national phase

Ref document number: 2092709

Country of ref document: CA

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
WWE Wipo information: entry into national phase

Ref document number: 1992914785

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1992914785

Country of ref document: EP

WWW Wipo information: withdrawn in national office

Ref document number: 1992914785

Country of ref document: EP