Image processing device and robot control device

The image processing device efficiently determines exposure times and imaging frequencies to generate a High Dynamic Range composite image, addressing the challenge of expressing a wide brightness range in a single image capture.

JP7568725B2Active Publication Date: 2024-10-16FANUC LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022542820
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-08-11
Filing Date
2021-08-04
Publication Date
2024-10-16
Estimated Expiration
2041-08-04

AI Technical Summary

Technical Problem

Conventional image capturing methods struggle to adequately express a wide dynamic range of brightness in a single image, leading to issues such as dark areas becoming black or bright areas being blown out, and there is a need for an efficient technique to determine appropriate exposure times and imaging frequencies.

Method used

An image processing device that includes units to determine minimum and maximum exposure times, along with an imaging condition determination unit to set exposure times and imaging frequencies, and a composite image generation unit to combine multiple images, generating a High Dynamic Range (HDR) composite image.

Benefits of technology

The solution allows for the determination of an appropriate exposure time range and imaging frequency, resulting in a composite image with a wider dynamic range and high resolution, without the need for additional photometric sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568725000001
    Figure 0007568725000001
  • Figure 0007568725000002
    Figure 0007568725000002
  • Figure 0007568725000003
    Figure 0007568725000003
Patent Text Reader

Abstract

Provided are an image processing device and a robot control device capable of determining an appropriate exposure time range and the number of imaging times for imaging a subject. An image processing device which processes a captured image of a subject comprises: a first exposure time determining unit which determines a minimum value of an exposure time for imaging the subject; a second exposure time determining unit which determines a maximum value of the exposure time for imaging the subject; an imaging condition determining unit which determines the exposure time for imaging the subject and the number of imaging times for imaging the subject, on the basis of an exposure time range including the determined minimum value of the exposure time and the determined maximum value of the exposure time; and a composite image generation unit that synthesizes a plurality of captured images of the subject using the determined exposure time and the number of imaging times to generate a composite image.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing device and a robot control device. [Background technology]

[0002] Conventionally, in order to accurately perform operations such as handling or machining of a workpiece using a robot, it has been necessary to accurately recognize the position where the workpiece is placed and the deviation of the workpiece held by the robot. For this reason, in recent years, visual sensors have been used to visually recognize the position and deviation of the workpiece (for example, see Patent Document 1). [Prior art documents] [Patent documents]

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

[0004] When capturing an image of a subject (e.g. a workpiece) with a visual sensor, there are cases where the brightness range cannot be properly expressed in a single image. For example, if the brightness is adjusted to a bright area in the field of view, the dark area will be crushed to black and will not be visible. Conversely, if the brightness is adjusted to a dark area in the field of view, the bright area will be blown out and will not be visible.

[0005] To address these issues, a technique called HDR (High Dynamic Range) synthesis is known. This technique synthesizes multiple captured images to generate an image with a wide dynamic range that cannot be obtained with a single image.

[0006] Since capturing multiple captured images takes time, it is desirable to capture images as few times as possible. Therefore, a technique for determining an appropriate range of exposure times and the number of captures for capturing an image of a subject is desired. [Means for solving the problem]

[0007] An image processing device according to the present disclosure is an image processing device that processes captured images of a subject, and includes: a first exposure time determination unit that determines a minimum value of an exposure time for capturing images of the subject; a second exposure time determination unit that determines a maximum value of the exposure time for capturing images of the subject; an imaging condition determination unit that determines the exposure time for capturing images of the subject and the number of times of capturing images of the subject based on an exposure time range including the determined minimum value of the exposure time and the determined maximum value of the exposure time; and a composite image generation unit that combines a plurality of captured images of the subject using the determined exposure time and the determined number of times of capturing images to generate a composite image.

[0008] A robot control device according to the present disclosure is a robot control device having an image processing device that processes captured images of a subject, and includes: a first exposure time determination unit that determines a minimum value of an exposure time for capturing images of the subject; a second exposure time determination unit that determines a maximum value of the exposure time for capturing images of the subject; an imaging condition determination unit that determines the exposure time for capturing images of the subject and the number of times to capture images of the subject based on an exposure time range including the determined minimum value of the exposure time and the determined maximum value of the exposure time; and a composite image generation unit that combines a plurality of captured images of the subject using the determined exposure time and the determined number of times to capture images to generate a composite image.

[0009] An image processing device according to the present disclosure is an image processing device that processes captured images of a subject, and includes: a first exposure time determination unit that determines a minimum value of an optical parameter for capturing an image of the subject; a second exposure time determination unit that determines a maximum value of the optical parameter for capturing an image of the subject; an imaging condition determination unit that determines the optical parameters for capturing an image of the subject and the number of times to capture the subject based on an optical parameter range that includes the determined minimum value of the optical parameter and the determined maximum value of the optical parameter; and a composite image generation unit that combines a plurality of captured images of the subject using the determined optical parameters and the determined number of times to capture the subject, to generate a composite image. Effect of the Invention

[0010] According to the present invention, it is possible to determine an appropriate range of exposure time and the number of times of imaging for imaging a subject. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram illustrating a configuration of a robot system. [Diagram 2] FIG. 2 is a diagram illustrating a configuration of a robot control device. [Diagram 3] FIG. 1 is a diagram showing the luminance obtainable in an HDR composite image. [Figure 4] 11A and 11B are diagrams showing specific examples of the percentage of whiteout and blackout in a luminance histogram; [Diagram 5] 4 is a flowchart showing a flow of processing by the image processing device. [Figure 6] 1 is a diagram illustrating an example of an image processing system to which a plurality of visual sensors are connected according to an embodiment of the present invention; [Figure 7] 1 is a diagram illustrating an example of an image processing system to which a plurality of image processing devices according to an embodiment of the present invention are connected. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] An example of an embodiment of the present invention will now be described. Fig. 1 is a diagram showing the configuration of a robot system 100. As shown in Fig. 1, the robot system 100 includes a robot control device 1, a robot 2, an arm 3, and a visual sensor 4.

[0013] A hand or a tool is attached to the tip of an arm 3 of the robot 2. The robot 2 performs work such as handling or processing a workpiece W under the control of a robot control device 1. A visual sensor 4 is also attached to the tip of the arm 3 of the robot 2. Note that the visual sensor 4 does not have to be attached to the robot 2, and may be, for example, fixedly installed at a predetermined position.

[0014] The visual sensor 4 captures an image of the workpiece W under the control of the robot control device 1. The visual sensor 4 may be a two-dimensional camera having an imaging element configured with a CCD (Charge Coupled Device) image sensor and an optical system including a lens. In addition, it is preferable that the visual sensor 4 uses an imaging element that can speed up imaging by specifying a binning level of the captured image.

[0015] The robot control device 1 executes a robot program for the robot 2 and controls the operation of the robot 2. In so doing, the robot control device 1 corrects the operation of the robot 2 using an image captured by the visual sensor 4 so that the robot 2 performs a predetermined task with respect to the position of the workpiece W.

[0016] 2 is a diagram showing the configuration of the robot control device 1. The robot control device 1 includes an image processing device 10. Note that the robot control device 1 has a general configuration for controlling the robot 2, but this will be omitted for simplicity of explanation. The image processing device 10 is a device for processing captured images captured by the visual sensor 4. The image processing device 10 includes a control unit 11 and a storage unit 12.

[0017] The control unit 11 is a processor such as a CPU (Central Processing Unit), and executes programs stored in the storage unit 12 to realize various functions.

[0018] The control unit 11 includes a first exposure time determination unit 111, a second exposure time determination unit 112, a third exposure time determination unit 113, an imaging condition determination unit 114, and a composite image generation unit 115.

[0019] The storage unit 12 is a storage device such as a ROM (Read Only Memory) or RAM (Random Access Memory) that stores an OS (Operating System) and application programs, a hard disk drive or SSD (Solid State Drive) that stores various other information, etc. The storage unit 12 stores various information such as a robot program, for example.

[0020] The first exposure time determination unit 111 determines the minimum value of the exposure time for capturing an image of a subject (for example, a workpiece W shown in FIG. 1). Specifically, the first exposure time determination unit 111 calculates the luminance in an image captured by capturing an object with the minimum exposure time, and if the calculated luminance-based value is smaller than a first threshold H1, changes the minimum exposure time. Then, the first exposure time determination unit 111 repeats capturing an object, calculating the luminance, and changing the minimum exposure time until the luminance-based value becomes equal to or greater than the first threshold H1, thereby determining the minimum exposure time.

[0021] More specifically, the first exposure time determination unit 111 sets in advance a minimum value of the exposure time for capturing an image of the subject, and calculates a first histogram of the luminance of the captured image obtained by capturing an image of the subject with the minimum value of the exposure time.

[0022] Next, when the value with the highest brightness in the first histogram is smaller than the first threshold H1, the first exposure time determination unit 111 changes the minimum value of the exposure time so that the value with the highest brightness approaches the first threshold H1. For example, the first exposure time determination unit 111 changes the minimum value of the exposure time by multiplying the minimum value of the exposure time by a predetermined numerical value. The first threshold H1 is a value indicating that the value with the highest brightness in the first histogram is sufficiently large.

[0023] Then, the first exposure time determination unit 111 repeats capturing images of the subject, calculating the first histogram, and changing the minimum value of the exposure time until the highest brightness value in the first histogram becomes equal to or greater than the first threshold value H1, and determines the minimum value of the exposure time.

[0024] The second exposure time determination unit 112 determines the maximum value of the exposure time for capturing an image of a subject (for example, a workpiece W shown in FIG. 1). Specifically, the second exposure time determination unit 112 calculates the luminance in an image captured of the subject at the maximum exposure time, and if the value based on the calculated luminance is greater than the second threshold H2, changes the maximum exposure time, and repeats capturing the subject, obtaining the luminance, and changing the maximum exposure time until the value based on the luminance becomes equal to or less than the second threshold, thereby determining the maximum exposure time.

[0025] More specifically, the second exposure time determination section 112 sets a maximum value of the exposure time for capturing an image of the subject, and calculates a second histogram of the luminance of an image captured by capturing an image of the subject with the maximum exposure time.

[0026] Next, when the value with the smallest luminance in the second histogram is greater than the second threshold H2, the second exposure time determination unit 112 changes the maximum value of the exposure time so that the value with the smallest luminance approaches the second threshold H2. For example, the second exposure time determination unit 112 changes the maximum value of the exposure time by multiplying the maximum value of the exposure time by a predetermined numerical value. The second threshold H2 is a value indicating that the value with the smallest luminance in the second histogram is sufficiently small.

[0027] Then, the second exposure time determination unit 112 repeats capturing images of the subject, obtaining the second histogram, and changing the maximum exposure time until the smallest brightness value in the second histogram becomes equal to or less than the second threshold H2, and determines the maximum exposure time.

[0028] Furthermore, the first exposure time determination unit 111 uses the minimum exposure time of a captured image captured in advance when setting a minimum exposure time in advance, and the second exposure time determination unit uses the maximum exposure time of a captured image captured in advance when setting a maximum exposure time in advance.

[0029] Specifically, the first exposure time determination unit 111 stores in advance the minimum value of the exposure time of the captured image captured in the previous imaging. Then, when setting the minimum value of the exposure time in advance, the first exposure time determination unit 111 uses the minimum value of the exposure time of the captured image captured in the previous imaging.

[0030] Similarly, the second exposure time determination unit 112 prestores the maximum value of the exposure time of the captured image captured in the previous capture. When presetting the maximum value of the exposure time, the second exposure time determination unit 112 uses the maximum value of the exposure time of the captured image captured in the previous capture. This enables the image processing device 10 to speed up the measurement of the range of the exposure time.

[0031] Furthermore, the first exposure time determination unit 111 may use the minimum value of the exposure time of the captured image specified from outside (for example, a teaching operation panel operated by an operator) when setting the minimum value of the exposure time in advance. Furthermore, the second exposure time determination unit 112 may use the maximum value of the exposure time of the captured image specified from outside (for example, a teaching operation panel operated by an operator) when setting the maximum value of the exposure time in advance.

[0032] The third exposure time determination unit 113 calculates a reference histogram of luminance of an image captured by capturing an image of a subject with a reference exposure time between the minimum and maximum exposure times, and stores the calculated reference histogram in the storage unit 12.

[0033] Then, the third exposure time determination unit 113 calculates a third histogram of the luminance of a captured image obtained by capturing an image of a subject with the reference exposure time, and calculates an exposure time coefficient so that the third histogram coincides with the reference histogram.

[0034] The imaging condition determination unit 114 determines the exposure time for imaging the subject and the number of times to image the subject, based on the exposure time range including the determined minimum value of the exposure time and the maximum value of the exposure time.

[0035] For example, the imaging condition determination unit 114 determines the exposure time and the number of times of imaging by dividing the exposure time range including the determined minimum value of the exposure time and the determined maximum value of the exposure time into appropriate predetermined sections, setting each divided section as the exposure time, and setting the number of divided sections as the number of times of imaging.

[0036] For example, when the imaging condition determination unit 114 divides the exposure time range into five, that is, when the imaging number is determined to be five, the predetermined section includes section A1, section A2, section A3, and section A4. Then, the imaging condition determination unit 114 divides the exposure time range so that section A2 is twice as long as section A1, section A3 is four times as long as section A1, and section A4 is eight times as long as section A1. That is, the lengths of section A1, section A2, section A3, and section A4 are proportional to each other.

[0037] Moreover, the image capturing condition determination unit 114 calculates an exposure time range based on the minimum value of the exposure time, the maximum value of the exposure time, and the exposure time coefficient.

[0038] Specifically, the image capturing condition determination unit 114 obtains the minimum and maximum exposure times taking into consideration the reference exposure time by multiplying the minimum and maximum exposure times by the exposure time coefficient calculated by the third exposure time determination unit 113. Then, the image capturing condition determination unit 114 calculates an exposure time range including the obtained minimum and maximum exposure times. This allows the image processing device 10 to calculate the exposure time range taking into consideration the reference histogram and the reference exposure time.

[0039] In addition, the captured image used to determine the exposure time is a reduced image. By using the reduced image, the image processing device 10 can speed up the process of determining the exposure time compared to the case where a captured image of a normal size is used.

[0040] The composite image generating unit 115 generates a composite image by combining a plurality of captured images of a subject using the determined exposure time and number of captures. In this manner, the image processing device 10 generates a composite image that has been subjected to HDR (High Dynamic Range) synthesis.

[0041] Note that the first exposure time determination unit 111 may determine the minimum value based on, for example, the 1st percentile value from the bright side of the luminance, instead of the maximum and minimum values ​​of the luminance described above. Also, the second exposure time determination unit 112 may determine the maximum value based on, for example, the 1st percentile value from the dark side of the luminance, instead of the histogram described above.

[0042] Fig. 3 is a diagram showing luminance that can be obtained from an HDR composite image. As a result, as shown in Fig. 3, the range of luminance that can be obtained from an HDR composite image is wider than the range of luminance that can be obtained from one captured image. Therefore, the image processing device 1 can obtain a captured image having a high resolution.

[0043] In addition, the composite image generation unit 115 allows the user to specify at least one of the percentage of whiteout and the percentage of blackout in a plurality of captured images, and performs tone mapping of the composite image in a state in which pixels with a percentage of whiteout are colored white and pixels with a percentage of blackout are colored black in the composite image.

[0044] Fig. 4 is a diagram showing a specific example of the percentage of whiteout and blackout in a luminance histogram. As shown in Fig. 4, the composite image generating unit 115 colors the pixels in the 10% area with the lowest luminance in the luminance histogram of the composite image as black, and colors the pixels in the 10% area with the highest luminance as white.

[0045] The composite image generating unit 115 can also store images before generating a composite image. For example, the composite image generating unit 115 may store all of the multiple captured images, or may store images before tone mapping. This allows the image processing device 10 to adjust parameters related to image synthesis using the stored images when detection or inspection of an object using a composite image fails. In addition, the image processing device 10 can automatically try another parameter adjustment method to prevent the system from stopping.

[0046] FIG. 5 is a flowchart showing the flow of processing in the image processing device 10. In step S1, the first exposure time determination unit 111 sets in advance a minimum value of the exposure time for capturing an image of the subject, and the second exposure time determination unit 112 sets a maximum value of the exposure time for capturing an image of the subject.

[0047] In step S2, the visual sensor 4 captures an image of the subject with a preset minimum exposure time. In step S3, the first exposure time determination unit 111 calculates a first histogram of the luminance of a captured image obtained by capturing an image of a subject with the minimum exposure time.

[0048] In step S4, the first exposure time determination unit 111 determines whether the maximum luminance value Lmax in the first histogram calculated in step S3 is equal to or greater than the first threshold H1. If Lmax is equal to or greater than the first threshold H1 (YES), the process proceeds to step S6. If Lmax is less than the first threshold H1 (NO), the process proceeds to step S5.

[0049] In step S5, the first exposure time determination unit 111 changes the minimum value of the exposure time so that the maximum luminance value approaches the first threshold value H1.

[0050] In step S6, the first exposure time determination unit 111 repeats the processes from step S2 to step S5 to determine the minimum value of the exposure time.

[0051] In step S7, the visual sensor 4 captures an image of the subject with a preset maximum exposure time. In step S8, the second exposure time determination unit 112 calculates a second histogram of the luminance of a captured image obtained by capturing an image of the subject with the maximum exposure time.

[0052] In step S9, the second exposure time determination unit 112 determines whether the smallest luminance value Lmin in the second histogram calculated in step S8 is equal to or less than the second threshold H2. If Lmin is equal to or less than the second threshold H2 (YES), the process proceeds to step S11. If Lmin exceeds the second threshold H2 (NO), the process proceeds to step S10.

[0053] In step S10, the second exposure time determination unit 112 changes the maximum value of the exposure time so that the smallest luminance value approaches the second threshold value H2.

[0054] In step S11, the second exposure time determination unit 112 repeats the processes of steps S7 to S10 to determine the maximum exposure time.

[0055] In step S12, the imaging condition determination unit 114 determines the exposure time for imaging the subject and the number of times to image the subject, based on the exposure time range that includes the minimum value of the exposure time determined in step S6 and the maximum value of the exposure time determined in step S11.

[0056] In step S13, the composite image generating unit 115 generates a composite image by combining a plurality of captured images of the subject using the exposure time and the number of times of imaging determined in step S12.

[0057] As described above, according to this embodiment, the image processing device 10 includes a first exposure time determination unit 111 that determines a minimum value of the exposure time for imaging the subject, a second exposure time determination unit 112 that determines a maximum value of the exposure time for imaging the subject, an imaging condition determination unit 114 that determines the exposure time for imaging the subject and the number of imaging attempts to image the subject based on an exposure time range including the determined minimum value of the exposure time and the determined maximum value of the exposure time, and a composite image generation unit that generates a composite image by combining a plurality of captured images of the subject using the determined exposure time and the determined number of imaging attempts.

[0058] This allows the image processing device 10 to determine an appropriate range of exposure time and the number of times to capture an image of a subject, and to obtain a composite image, without having a photometric sensor or the like.

[0059] Furthermore, the first exposure time determination unit 111 calculates the luminance in a captured image of a subject captured with the minimum exposure time, and if the calculated luminance-based value is smaller than a first threshold H1, changes the minimum exposure time. The first exposure time determination unit 111 then repeats capturing an image of the subject, calculating the luminance, and changing the minimum exposure time until the luminance-based value becomes equal to or greater than the first threshold H1, thereby determining the minimum exposure time. This allows the image processing device 10 to appropriately determine the minimum exposure time.

[0060] Furthermore, the second exposure time determination unit 112 calculates the luminance in an image captured by capturing an image of the subject at the maximum exposure time, and if the value based on the calculated luminance is greater than a second threshold H2, changes the maximum exposure time. The second exposure time determination unit 112 then repeats capturing an image of the subject, acquiring the luminance, and changing the maximum exposure time until the value based on the luminance becomes equal to or less than the second threshold, thereby determining the maximum exposure time. This allows the image processing device 10 to appropriately determine the maximum exposure time.

[0061] In addition, the captured image used to determine the exposure time is a reduced image. By using the reduced image, the image processing device 10 can speed up the process of determining the exposure time compared to the case where a captured image of a normal size is used.

[0062] Furthermore, the first exposure time determination unit 111 uses the minimum value of the exposure time of a captured image captured in advance when setting the minimum value of the exposure time in advance. The second exposure time determination unit 112 uses the maximum value of the exposure time of a captured image captured in advance when setting the maximum value of the exposure time in advance. This enables the image processing device 10 to speed up the measurement of the range of the exposure time.

[0063] Furthermore, the first exposure time determination unit 111 may use a minimum value of the exposure time of a captured image designated from outside when setting a minimum value of the exposure time in advance. The second exposure time determination unit 112 may use a maximum value of the exposure time of a captured image designated from outside when setting a maximum value of the exposure time in advance. This enables the image processing device 10 to speed up the measurement of the range of the exposure time.

[0064] Furthermore, the third exposure time determination unit 113 calculates a reference histogram of luminance of a captured image obtained by capturing an image of a subject with a reference exposure time between the minimum exposure time and the maximum exposure time, and stores the reference histogram in the storage unit 12. Next, the third exposure time determination unit 113 calculates a third histogram of luminance of the captured image obtained by capturing an image of the subject with the reference exposure time, and calculates an exposure time coefficient so that the third histogram coincides with the reference histogram.

[0065] Furthermore, the imaging condition determination unit 114 calculates the exposure time range based on the minimum exposure time, the maximum exposure time, and the exposure time coefficient, thereby enabling the image processing device 10 to calculate the exposure time range taking into account the reference histogram and the reference exposure time.

[0066] The composite image generating unit 115 can specify at least one of the percentage of whiteout and the percentage of blackout in the multiple captured images, and performs tone mapping of the composite image in a state in which pixels with a percentage of whiteout are colored white and pixels with a percentage of blackout are colored black in the composite image. This allows the image processing device 10 to appropriately obtain a composite image with a high resolution.

[0067] Moreover, the composite image generating unit 115 enables the generation of a composite image by a different synthesis method by recording information on the original image before the composite image is generated. This allows the image processing device 10 to adjust parameters related to image synthesis using the stored image when the detection or inspection of an object using the composite image fails.

[0068] Fig. 6 is a diagram showing a schematic example of an image processing system 201 to which a plurality of visual sensors 4 according to an embodiment of the present invention are connected. In Fig. 6, N visual sensors 4 are connected to a cell controller 200 via a network bus 210. The cell controller 200 has the same functions as the above-mentioned image processing device 10, and acquires captured images from each of the N visual sensors 4.

[0069] In such an image processing system 201 shown in Fig. 6, the cell controller 200 may have, for example, a machine learning device (not shown). The machine learning device acquires a collection of learning data stored in the cell controller 200 and performs supervised learning. In this example, the learning process can also be processed sequentially online.

[0070] Fig. 7 is a diagram showing a schematic example of an image processing system 301 to which a plurality of image processing devices 10 according to an embodiment of the present invention are connected. In Fig. 7, m image processing devices 10 are connected to a cell controller 200 via a network bus 210. One or a plurality of visual sensors 4 are connected to each of the image processing devices 10. The image processing system 301 as a whole is provided with a total of n visual sensors 4.

[0071] In such an image processing system 301 shown in Fig. 7, the cell controller 200 may have, for example, a machine learning machine (not shown). The cell controller 200 may store a collection of learning data sent from a plurality of image processing devices 10 as a learning data set, and perform machine learning to construct a learning model. The learning model becomes available to each image processing device 10.

[0072] In the above-described embodiment, the image processing device 10 controls the exposure time, but may control optical parameters other than the exposure time. For example, the image processing device 10 may control optical parameters such as the gain of the image sensor and the aperture of the lens, instead of the exposure time.

[0073] In this case, the image processing device 10 includes a first exposure time determination unit 111 that determines the minimum value of the optical parameter for imaging the subject, a second exposure time determination unit 112 that determines the maximum value of the optical parameter for imaging the subject, an imaging condition determination unit 114 that determines the optical parameters for imaging the subject and the number of times of imaging the subject based on an optical parameter range including the determined minimum value and maximum value of the optical parameter, and a composite image generation unit that generates a composite image by combining a plurality of captured images of the subject using the determined optical parameters and the number of times of imaging. As a result, the image processing device 10 can determine the appropriate range of optical parameters and the number of times of imaging for imaging the subject and obtain a composite image without having a photometric sensor or the like.

[0074] Although the embodiment of the present invention has been described above, the above robot control device 1 can be realized by hardware, software, or a combination of these. In addition, the control method performed by the above robot control device 1 can also be realized by hardware, software, or a combination of these. Here, being realized by software means being realized by a computer reading and executing a program.

[0075] The program can be stored and provided to a computer using various types of non-transitory computer readable media. The non-transitory computer readable media includes various types of tangible storage media. Examples of the non-transitory computer readable media include magnetic recording media (e.g., hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROM (Read Only Memory), CD-R, CD-R / W, and semiconductor memory (e.g., mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, and RAM (random access memory)).

[0076] Furthermore, although the above-described embodiments are preferred embodiments of the present invention, the scope of the present invention is not limited to only the above-described embodiments, and the present invention can be implemented in various modified forms without departing from the gist of the present invention. [Explanation of symbols]

[0077] 1 Robot control device 2. Robot 3 Arm 4. Visual Sensor 10 Image processing device 11 Control section 12 Storage section 100 Robot System 111 First exposure time determination unit 112 Second exposure time determination unit 113 Third exposure time determination unit 114 Imaging condition determination unit 115 Composite image generation unit

Claims

1. An image processing device that processes an image of a subject, a first exposure time determination unit that determines a minimum value of an exposure time for capturing an image of the subject; a second exposure time determination unit that determines a maximum value of the exposure time for capturing an image of the subject; a third exposure time determination unit that calculates a reference histogram of luminance of the captured image obtained by capturing an image of the subject with a reference exposure time between a minimum value of the exposure time and a maximum value of the exposure time, stores the reference histogram in a storage unit, calculates a third histogram of luminance of the captured image obtained by capturing an image of the subject with the reference exposure time, and calculates an exposure time coefficient so that the third histogram coincides with the reference histogram; an imaging condition determination unit that determines the exposure time for imaging the subject and the number of times to image the subject based on an exposure time range that includes the determined minimum value of the exposure time and the determined maximum value of the exposure time; a composite image generating unit that generates a composite image by combining a plurality of captured images of the subject using the determined exposure time and the determined number of times of imaging, the imaging condition determination unit calculates the exposure time range based on the minimum value of the exposure time, the maximum value of the exposure time, and the exposure time coefficient. Image processing device.

2. The first exposure time determination unit is A minimum value of the exposure time for capturing an image of the subject is set in advance; calculating a luminance in the captured image obtained by capturing an image of the subject with the minimum value of the exposure time, and changing the minimum value of the exposure time when a value based on the calculated luminance is smaller than a first threshold value; repeating the imaging of the subject, the calculation of the luminance, and the change of the minimum value of the exposure time until the value based on the luminance becomes equal to or greater than the first threshold value, and determining the minimum value of the exposure time. The image processing device according to claim 1 .

3. The second exposure time determination unit is setting a maximum value of the exposure time for capturing an image of the subject; calculating a luminance in the captured image obtained by capturing an image of the subject with the maximum exposure time, and changing the maximum exposure time when a value based on the calculated luminance is greater than a second threshold value; repeating the imaging of the subject, the acquisition of the luminance, and the change of the maximum value of the exposure time until the value based on the luminance becomes equal to or less than the second threshold value, and determining the maximum value of the exposure time.

3. The image processing device according to claim 1 or 2.

4. The image processing device according to claim 1 , wherein the captured image used to determine the exposure time is a reduced image.

5. the first exposure time determination unit uses a minimum value of the exposure time of the captured image captured in advance when setting the minimum value of the exposure time in advance, The image processing device according to claim 1 , wherein the second exposure time determination unit is configured to use a maximum value of the exposure time of the captured image captured in advance when setting the maximum value of the exposure time in advance.

6. the first exposure time determination unit uses a minimum value of the exposure time of the captured image that is externally designated when setting the minimum value of the exposure time in advance, The image processing device according to claim 1 , wherein the second exposure time determination unit uses a maximum value of the exposure time of the captured image from an external source when setting the maximum value of the exposure time in advance.

7. The composite image generating unit includes: At least one of a blown-out highlight ratio and a crushed-black ratio in the plurality of captured images can be specified; Tone mapping of the composite image is performed in a state where pixels that are to be overexposed are colored white and pixels that are to be underexposed are colored black in the composite image. The image processing device according to claim 1 .

8. The composite image generating unit includes: The image processing device according to claim 1 , wherein information about an original image before the composite image is generated is recorded, thereby enabling the generation of a composite image by a different synthesis method.

9. A robot control device having an image processing device that processes an image of a subject, a first exposure time determination unit that determines a minimum value of an exposure time for capturing an image of the subject; a second exposure time determination unit that determines a maximum value of the exposure time for capturing an image of the subject; a third exposure time determination unit that calculates a reference histogram of luminance of the captured image obtained by capturing an image of the subject with a reference exposure time between a minimum value of the exposure time and a maximum value of the exposure time, stores the reference histogram in a storage unit, calculates a third histogram of luminance of the captured image obtained by capturing an image of the subject with the reference exposure time, and calculates an exposure time coefficient so that the third histogram coincides with the reference histogram; an imaging condition determination unit that determines the exposure time for imaging the subject and the number of times to image the subject based on an exposure time range that includes the determined minimum value of the exposure time and the determined maximum value of the exposure time; a composite image generating unit that generates a composite image by combining a plurality of captured images of the subject using the determined exposure time and the determined number of times of imaging; Equipped with the imaging condition determination unit calculates the exposure time range based on the minimum value of the exposure time, the maximum value of the exposure time, and the exposure time coefficient. Robot control device.

Citation Information

Patent Citations

  • Shutter speed controller of camera

    JP1999258654A

  • Imaging apparatus, and photographing method

    JP2007180904A

  • Imaging apparatus

    JP2012222540A

  • Work position detection device and work position detection method

    JP2013246149A